TypeSQL: Knowledge-based Type-Aware Neural Text-to-SQL Generation

Tao Yu, Zifan Li, Zilin Zhang, Rui Zhang, Dragomir Radev
4/25/2018
cs.CL

Official code: taoyds/typesql (113 stars, Python, last commit 2022-04-15).

Abstract

Interacting with relational databases through natural language helps users of any background easily query and analyze a vast amount of data. This requires a system that understands users' questions and converts them to SQL queries automatically.

Show full abstract

In this paper we present a novel approach, TypeSQL, which views this problem as a slot filling task. Additionally, TypeSQL utilizes type information to better understand rare entities and numbers in natural language questions. We test this idea on the WikiSQL dataset and outperform the prior state-of-the-art by 5.5% in much less time. We also show that accessing the content of databases can significantly improve the performance when users' queries are not well-formed. TypeSQL gets 82.6% accuracy, a 17.5% absolute improvement compared to the previous content-sensitive model.

View on arXivView PDF

Code Implementations(1)

taoyds/typesqlOfficial100%

TypeSQL: Knowledge-based Type-Aware Neural Text-to-SQL Generation

11330PythonApr 13, 20184 years ago

Similar Papers

Cite this paper

@article{yu2018typesql,
  title  = {TypeSQL: Knowledge-based Type-Aware Neural Text-to-SQL Generation},
  author = {Tao Yu and Zifan Li and Zilin Zhang and Rui Zhang and Dragomir Radev},
  year   = {2018},
  eprint = {1804.09769},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1804.09769}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1804.09769.svg)](https://codeofpaper.com/paper/1804.09769)

Discussion