# Bidirectional Attention for SQL Generation

arXiv: https://arxiv.org/abs/1801.00076 · HTML: https://mlsanity.com/paper/1801.00076/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 30 Dec 2017.

## Built on by (most cited first, 2 of 2)

- [Recent Advances in Text-to-SQL: A Survey of What We Have and What We Expect](https://mlsanity.com/paper/2208.10099/) (2022)
- [ERATTA: Extreme RAG for Table To Answers with Large Language Models](https://mlsanity.com/paper/2405.03963/) (2024)

## Abstract (arXiv)

Generating structural query language (SQL) queries from natural language is a long-standing open problem. Answering a natural language question about a database table requires modeling complex interactions between the columns of the table and the question. In this paper, we apply the synthesizing approach to solve this problem. Based on the structure of SQL queries, we break down the model to three sub-modules and design specific deep neural networks for each of them. Taking inspiration from the similar machine reading task, we employ the bidirectional attention mechanisms and character-level embedding with convolutional neural networks (CNNs) to improve the result. Experimental evaluations show that our model achieves the state-of-the-art results in WikiSQL dataset.
