{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/editing-based-sql-query-generation-for-cross","title":"Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questions","arxiv_id":"1909.00786","date":"2019-09-02","proceeding":"IJCNLP 2019 11","authors":["Rui Zhang","Tao Yu","He Yang Er","Sungrok Shim","Eric Xue","Xi Victoria Lin","Tianze Shi","Caiming Xiong","Richard Socher","Dragomir Radev"],"abstract":"We focus on the cross-domain context-dependent text-to-SQL generation task. Based on the observation that adjacent natural language questions are often linguistically dependent and their corresponding SQL queries tend to overlap, we utilize the interaction history by editing the previous predicted query to improve the generation quality. Our editing mechanism views SQL as sequences and reuses generation results at the token level in a simple manner. It is flexible to change individual tokens and robust to error propagation. Furthermore, to deal with complex table structures in different domains, we employ an utterance-table encoder and a table-aware decoder to incorporate the context of the user utterance and the table schema. We evaluate our approach on the SParC dataset and demonstrate the benefit of editing compared with the state-of-the-art baselines which generate SQL from scratch. Our code is available at https://github.com/ryanzhumich/sparc_atis_pytorch.","url_abs":"https://arxiv.org/abs/1909.00786v2","url_pdf":"https://arxiv.org/pdf/1909.00786v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"editing-based-sql-query-generation-for-cross","repo_url":"https://github.com/ryanzhumich/editsql","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"editing-based-sql-query-generation-for-cross","repo_url":"https://github.com/amolk/editsql","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"editing-based-sql-query-generation-for-cross","repo_url":"https://github.com/hyan5/learning_to_simulate_nl_feedback","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"dialogue-state-tracking","task_name":"Dialogue State Tracking"},{"task_slug":"text-to-sql","task_name":"Text to SQL"},{"task_slug":"text-to-sql","task_name":"Text-To-SQL"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/dialogue-state-tracking-on-cosql","task":"Dialogue State Tracking","dataset":"CoSQL","model":"Edit-SQL+BERT","rank_in_archive_order":6,"of":9,"metrics":{"interaction match accuracy":"13.7","question match accuracy":"40.8"},"uses_additional_data":false},{"leaderboard":"/sota/text-to-sql-on-sparc","task":"Text-To-SQL","dataset":"SParC","model":"EditSQL + BERT","rank_in_archive_order":5,"of":7,"metrics":{"interaction match accuracy":"25.3","question match accuracy":"47.9"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1909.00786","mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}