{"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/content-enhanced-bert-based-text-to-sql","title":"Content Enhanced BERT-based Text-to-SQL Generation","arxiv_id":"1910.07179","date":"2019-10-16","proceeding":null,"authors":["Tong Guo","Huilin Gao"],"abstract":"We present a simple methods to leverage the table content for the BERT-based model to solve the text-to-SQL problem. Based on the observation that some of the table content match some words in question string and some of the table header also match some words in question string, we encode two addition feature vector for the deep model. Our methods also benefit the model inference in testing time as the tables are almost the same in training and testing time. We test our model on the WikiSQL dataset and outperform the BERT-based baseline by 3.7% in logic form and 3.7% in execution accuracy and achieve state-of-the-art.","url_abs":"https://arxiv.org/abs/1910.07179v5","url_pdf":"https://arxiv.org/pdf/1910.07179v5.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":"content-enhanced-bert-based-text-to-sql","repo_url":"https://github.com/guotong1988/NL2SQL-RULE","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"content-enhanced-bert-based-text-to-sql","repo_url":"https://github.com/guotong1988/NL2SQL-BERT","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"content-enhanced-bert-based-text-to-sql","repo_url":"https://github.com/realsonalkumar/Mish-Mash-Hackathon","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"content-enhanced-bert-based-text-to-sql","repo_url":"https://github.com/shivam017arora/Conversational-BI","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"content-enhanced-bert-based-text-to-sql","repo_url":"https://github.com/yangyucheng000/University/tree/main/model-2/bert_generation","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null}],"tasks":[{"task_slug":"code-generation","task_name":"Code Generation"},{"task_slug":"semantic-parsing","task_name":"Semantic Parsing"},{"task_slug":"text-to-sql","task_name":"Text to SQL"},{"task_slug":"text-to-sql","task_name":"Text-To-SQL"}],"methods":[{"method_slug":"test","method_name":"Test"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/code-generation-on-wikisql","task":"Code Generation","dataset":"WikiSQL","model":"NL2SQL-RULE","rank_in_archive_order":1,"of":10,"metrics":{"Exact Match Accuracy":"83.7","Execution Accuracy":"89.2"},"uses_additional_data":false},{"leaderboard":"/sota/semantic-parsing-on-wikisql-1","task":"Semantic Parsing","dataset":"WikiSQL","model":"NL2SQL-BERT","rank_in_archive_order":1,"of":5,"metrics":{"Accuracy":"89"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1910.07179","mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}