# SQLInputWithTables

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/chains/sql_database/query/SQLInputWithTables)

Input for a SQL Chain.

## Signature

```python
SQLInputWithTables()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    question: str,
    table_names_to_use: list[str],
)
```

| Name | Type |
|------|------|
| `question` | `str` |
| `table_names_to_use` | `list[str]` |


## Properties

- `question`
- `table_names_to_use`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/79cab2dc7f58be720cac43db3677b4c1fd971f91/libs/langchain/langchain_classic/chains/sql_database/query.py#L26)