{"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/robust-text-to-sql-generation-with-execution","title":"Robust Text-to-SQL Generation with Execution-Guided Decoding","arxiv_id":"1807.03100","date":"2018-07-09","proceeding":null,"authors":["Chenglong Wang","Kedar Tatwawadi","Marc Brockschmidt","Po-Sen Huang","Yi Mao","Oleksandr Polozov","Rishabh Singh"],"abstract":"We consider the problem of neural semantic parsing, which translates natural\nlanguage questions into executable SQL queries. We introduce a new mechanism,\nexecution guidance, to leverage the semantics of SQL. It detects and excludes\nfaulty programs during the decoding procedure by conditioning on the execution\nof partially generated program. The mechanism can be used with any\nautoregressive generative model, which we demonstrate on four state-of-the-art\nrecurrent or template-based semantic parsing models. We demonstrate that\nexecution guidance universally improves model performance on various\ntext-to-SQL datasets with different scales and query complexity: WikiSQL, ATIS,\nand GeoQuery. As a result, we achieve new state-of-the-art execution accuracy\nof 83.8% on WikiSQL.","url_abs":"http://arxiv.org/abs/1807.03100v3","url_pdf":"http://arxiv.org/pdf/1807.03100v3.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":"robust-text-to-sql-generation-with-execution","repo_url":"https://github.com/Microsoft/PointerSQL","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"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":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1807.03100","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1807.03100"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Microsoft/PointerSQL","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":20},"by_repo_kind":{"listed":{"samples":20,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"0b81ea6dfac2fd9c","entry":"assemble_by_type","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/pointer_net_helper.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/pointer_net_helper.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0b81ea6dfac2fd9c"}},{"code_sha256_prefix":"b1599f4b6b51e8a2","entry":"bidirectional_dynamic_rnn","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/rnn.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/rnn.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b1599f4b6b51e8a2"}},{"code_sha256_prefix":"cfad29b0a7e82227","entry":"build_graph","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/pointer_net_graph.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/pointer_net_graph.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cfad29b0a7e82227"}},{"code_sha256_prefix":"6a7354677696eb19","entry":"build_graph","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/pointer_net_graph_meta.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/pointer_net_graph_meta.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6a7354677696eb19"}},{"code_sha256_prefix":"78fdc65284881fbb","entry":"construct_weights","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/pointer_net_graph_meta.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/pointer_net_graph_meta.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"78fdc65284881fbb"}},{"code_sha256_prefix":"73be07d069c18e4e","entry":"dynamic_rnn","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/rnn.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/rnn.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"73be07d069c18e4e"}},{"code_sha256_prefix":"5dee7f2a76ba2fc8","entry":"forward","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/pointer_net_graph_meta.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/pointer_net_graph_meta.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5dee7f2a76ba2fc8"}},{"code_sha256_prefix":"206674fc5ea33e29","entry":"load_annotated_tables","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"execute.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/execute.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"206674fc5ea33e29"}},{"code_sha256_prefix":"270c014771199c5e","entry":"load_model","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/learn.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/learn.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"270c014771199c5e"}},{"code_sha256_prefix":"039141b13cd8e378","entry":"load_queries","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"execute.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/execute.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"039141b13cd8e378"}},{"code_sha256_prefix":"d3bb03195eaecef4","entry":"ngrams","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/util.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d3bb03195eaecef4"}},{"code_sha256_prefix":"e620af6f2188f7cd","entry":"pointer_network_decoder","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/pointer_net.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/pointer_net.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e620af6f2188f7cd"}},{"code_sha256_prefix":"f933c2946f112686","entry":"pointer_to_label","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/pointer_net_helper.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/pointer_net_helper.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f933c2946f112686"}},{"code_sha256_prefix":"74009b6529893c93","entry":"simple_parser","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"execute.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/execute.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"74009b6529893c93"}},{"code_sha256_prefix":"8b10d12f88841ce4","entry":"split_by_type","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/pointer_net_helper.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/pointer_net_helper.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8b10d12f88841ce4"}},{"code_sha256_prefix":"07f567d9ce2eef9e","entry":"static_rnn","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/rnn.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/rnn.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"07f567d9ce2eef9e"}},{"code_sha256_prefix":"6ce7b508f74964a9","entry":"test_model","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/learn.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/learn.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6ce7b508f74964a9"}},{"code_sha256_prefix":"2d2a3a813048a37f","entry":"test_model","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/learn_meta.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/learn_meta.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2d2a3a813048a37f"}},{"code_sha256_prefix":"8b02f98bb290fa3d","entry":"train_model","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/learn.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/learn.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8b02f98bb290fa3d"}},{"code_sha256_prefix":"2117f25305d44365","entry":"train_model","repo":"Microsoft/PointerSQL","repo_kind":"listed","path":"model/learn_meta.py","file_url":"https://github.com/Microsoft/PointerSQL/blob/HEAD/model/learn_meta.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2117f25305d44365"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}