Semantic Parsing with Syntax- and Table-Aware SQL Generation

We present a generative model to map natural language questions into SQL queries. Existing neural network based approaches typically generate a SQL query word-by-word, however, a large portion of the generated results are incorrect or not executable due to the mismatch between question words and tab...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Sun, Yibo, Tang, Duyu, Duan, Nan, Ji, Jianshu, Cao, Guihong, Feng, Xiaocheng, Qin, Bing, Liu, Ting, Zhou, Ming
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title
container_volume
creator Sun, Yibo
Tang, Duyu
Duan, Nan
Ji, Jianshu
Cao, Guihong
Feng, Xiaocheng
Qin, Bing
Liu, Ting
Zhou, Ming
description We present a generative model to map natural language questions into SQL queries. Existing neural network based approaches typically generate a SQL query word-by-word, however, a large portion of the generated results are incorrect or not executable due to the mismatch between question words and table contents. Our approach addresses this problem by considering the structure of table and the syntax of SQL language. The quality of the generated SQL query is significantly improved through (1) learning to replicate content from column names, cells or SQL keywords; and (2) improving the generation of WHERE clause by leveraging the column-cell relation. Experiments are conducted on WikiSQL, a recently released dataset with the largest question-SQL pairs. Our approach significantly improves the state-of-the-art execution accuracy from 69.0% to 74.4%.
doi_str_mv 10.48550/arxiv.1804.08338
format Article
fullrecord <record><control><sourceid>arxiv_GOX</sourceid><recordid>TN_cdi_arxiv_primary_1804_08338</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>1804_08338</sourcerecordid><originalsourceid>FETCH-LOGICAL-a678-67b8e6a745a80d87fece87adde37f3570d1cc6e5cff086149779a9526aeec1d33</originalsourceid><addsrcrecordid>eNotj8FOAjEUAHvhYMAP8GR_oGtrt-3bhAshiiabANm9bx7tqzSBaspG4O-N6GlukxnGHpSsajBGPmG5pO9KgawrCVrDHZt3dMQ8Js83WE4pf_BzGve8u-YRL4JjDrzH3YHE4oyFeLdt-YoyFRzTZ56xScTDie7_OWX960u_fBPtevW-XLQCrQNh3Q7IoqsNggzgInkChyGQdlEbJ4Py3pLxMUqwqm6ca7AxzxaJvApaT9njn_aWP3yVdMRyHX43htuG_gFwwUIP</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Semantic Parsing with Syntax- and Table-Aware SQL Generation</title><source>arXiv.org</source><creator>Sun, Yibo ; Tang, Duyu ; Duan, Nan ; Ji, Jianshu ; Cao, Guihong ; Feng, Xiaocheng ; Qin, Bing ; Liu, Ting ; Zhou, Ming</creator><creatorcontrib>Sun, Yibo ; Tang, Duyu ; Duan, Nan ; Ji, Jianshu ; Cao, Guihong ; Feng, Xiaocheng ; Qin, Bing ; Liu, Ting ; Zhou, Ming</creatorcontrib><description>We present a generative model to map natural language questions into SQL queries. Existing neural network based approaches typically generate a SQL query word-by-word, however, a large portion of the generated results are incorrect or not executable due to the mismatch between question words and table contents. Our approach addresses this problem by considering the structure of table and the syntax of SQL language. The quality of the generated SQL query is significantly improved through (1) learning to replicate content from column names, cells or SQL keywords; and (2) improving the generation of WHERE clause by leveraging the column-cell relation. Experiments are conducted on WikiSQL, a recently released dataset with the largest question-SQL pairs. Our approach significantly improves the state-of-the-art execution accuracy from 69.0% to 74.4%.</description><identifier>DOI: 10.48550/arxiv.1804.08338</identifier><language>eng</language><subject>Computer Science - Computation and Language</subject><creationdate>2018-04</creationdate><rights>http://arxiv.org/licenses/nonexclusive-distrib/1.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,780,885</link.rule.ids><linktorsrc>$$Uhttps://arxiv.org/abs/1804.08338$$EView_record_in_Cornell_University$$FView_record_in_$$GCornell_University$$Hfree_for_read</linktorsrc><backlink>$$Uhttps://doi.org/10.48550/arXiv.1804.08338$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Sun, Yibo</creatorcontrib><creatorcontrib>Tang, Duyu</creatorcontrib><creatorcontrib>Duan, Nan</creatorcontrib><creatorcontrib>Ji, Jianshu</creatorcontrib><creatorcontrib>Cao, Guihong</creatorcontrib><creatorcontrib>Feng, Xiaocheng</creatorcontrib><creatorcontrib>Qin, Bing</creatorcontrib><creatorcontrib>Liu, Ting</creatorcontrib><creatorcontrib>Zhou, Ming</creatorcontrib><title>Semantic Parsing with Syntax- and Table-Aware SQL Generation</title><description>We present a generative model to map natural language questions into SQL queries. Existing neural network based approaches typically generate a SQL query word-by-word, however, a large portion of the generated results are incorrect or not executable due to the mismatch between question words and table contents. Our approach addresses this problem by considering the structure of table and the syntax of SQL language. The quality of the generated SQL query is significantly improved through (1) learning to replicate content from column names, cells or SQL keywords; and (2) improving the generation of WHERE clause by leveraging the column-cell relation. Experiments are conducted on WikiSQL, a recently released dataset with the largest question-SQL pairs. Our approach significantly improves the state-of-the-art execution accuracy from 69.0% to 74.4%.</description><subject>Computer Science - Computation and Language</subject><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2018</creationdate><recordtype>article</recordtype><sourceid>GOX</sourceid><recordid>eNotj8FOAjEUAHvhYMAP8GR_oGtrt-3bhAshiiabANm9bx7tqzSBaspG4O-N6GlukxnGHpSsajBGPmG5pO9KgawrCVrDHZt3dMQ8Js83WE4pf_BzGve8u-YRL4JjDrzH3YHE4oyFeLdt-YoyFRzTZ56xScTDie7_OWX960u_fBPtevW-XLQCrQNh3Q7IoqsNggzgInkChyGQdlEbJ4Py3pLxMUqwqm6ca7AxzxaJvApaT9njn_aWP3yVdMRyHX43htuG_gFwwUIP</recordid><startdate>20180423</startdate><enddate>20180423</enddate><creator>Sun, Yibo</creator><creator>Tang, Duyu</creator><creator>Duan, Nan</creator><creator>Ji, Jianshu</creator><creator>Cao, Guihong</creator><creator>Feng, Xiaocheng</creator><creator>Qin, Bing</creator><creator>Liu, Ting</creator><creator>Zhou, Ming</creator><scope>AKY</scope><scope>GOX</scope></search><sort><creationdate>20180423</creationdate><title>Semantic Parsing with Syntax- and Table-Aware SQL Generation</title><author>Sun, Yibo ; Tang, Duyu ; Duan, Nan ; Ji, Jianshu ; Cao, Guihong ; Feng, Xiaocheng ; Qin, Bing ; Liu, Ting ; Zhou, Ming</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a678-67b8e6a745a80d87fece87adde37f3570d1cc6e5cff086149779a9526aeec1d33</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2018</creationdate><topic>Computer Science - Computation and Language</topic><toplevel>online_resources</toplevel><creatorcontrib>Sun, Yibo</creatorcontrib><creatorcontrib>Tang, Duyu</creatorcontrib><creatorcontrib>Duan, Nan</creatorcontrib><creatorcontrib>Ji, Jianshu</creatorcontrib><creatorcontrib>Cao, Guihong</creatorcontrib><creatorcontrib>Feng, Xiaocheng</creatorcontrib><creatorcontrib>Qin, Bing</creatorcontrib><creatorcontrib>Liu, Ting</creatorcontrib><creatorcontrib>Zhou, Ming</creatorcontrib><collection>arXiv Computer Science</collection><collection>arXiv.org</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Sun, Yibo</au><au>Tang, Duyu</au><au>Duan, Nan</au><au>Ji, Jianshu</au><au>Cao, Guihong</au><au>Feng, Xiaocheng</au><au>Qin, Bing</au><au>Liu, Ting</au><au>Zhou, Ming</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Semantic Parsing with Syntax- and Table-Aware SQL Generation</atitle><date>2018-04-23</date><risdate>2018</risdate><abstract>We present a generative model to map natural language questions into SQL queries. Existing neural network based approaches typically generate a SQL query word-by-word, however, a large portion of the generated results are incorrect or not executable due to the mismatch between question words and table contents. Our approach addresses this problem by considering the structure of table and the syntax of SQL language. The quality of the generated SQL query is significantly improved through (1) learning to replicate content from column names, cells or SQL keywords; and (2) improving the generation of WHERE clause by leveraging the column-cell relation. Experiments are conducted on WikiSQL, a recently released dataset with the largest question-SQL pairs. Our approach significantly improves the state-of-the-art execution accuracy from 69.0% to 74.4%.</abstract><doi>10.48550/arxiv.1804.08338</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext_linktorsrc
identifier DOI: 10.48550/arxiv.1804.08338
ispartof
issn
language eng
recordid cdi_arxiv_primary_1804_08338
source arXiv.org
subjects Computer Science - Computation and Language
title Semantic Parsing with Syntax- and Table-Aware SQL Generation
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-11T09%3A43%3A51IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-arxiv_GOX&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Semantic%20Parsing%20with%20Syntax-%20and%20Table-Aware%20SQL%20Generation&rft.au=Sun,%20Yibo&rft.date=2018-04-23&rft_id=info:doi/10.48550/arxiv.1804.08338&rft_dat=%3Carxiv_GOX%3E1804_08338%3C/arxiv_GOX%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true