{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,20]],"date-time":"2026-11-20T19:28:50Z","timestamp":1795202930040,"version":"4.10.3"},"reference-count":60,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2017,10,12]],"date-time":"2017-10-12T00:00:00Z","timestamp":1507766400000},"content-version":"vor","delay-in-days":0,"URL":"http:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/100000185","name":"Defense Advanced Research Projects Agency","doi-asserted-by":"publisher","award":["8750- 14-2-0270"],"award-info":[{"award-number":["8750- 14-2-0270"]}],"id":[{"id":"10.13039\/100000185","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2017,10,12]]},"abstract":"<jats:p>This paper presents a new technique for automatically synthesizing SQL queries from natural language (NL). At the core of our technique is a new NL-based program synthesis methodology that combines semantic parsing techniques from the NLP community with type-directed program synthesis and automated program repair. Starting with a program sketch obtained using standard parsing techniques, our approach involves an iterative refinement loop that alternates between probabilistic type inhabitation and automated sketch repair. We use the proposed idea to build an end-to-end system called SQLIZER that can synthesize SQL queries from natural language. Our method is fully automated, works for any database without requiring additional customization, and does not require users to know the underlying database schema. We evaluate our approach on over 450 natural language queries concerning three different databases, namely MAS, IMDB, and YELP. Our experiments show that the desired query is ranked within the top 5 candidates in close to 90% of the cases and that SQLIZER outperforms NALIR, a state-of-the-art tool that won a best paper award at VLDB'14.<\/jats:p>","DOI":"10.1145\/3133887","type":"journal-article","created":{"date-parts":[[2017,10,13]],"date-time":"2017-10-13T11:15:45Z","timestamp":1507893345000},"page":"1-26","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":188,"title":["SQLizer: query synthesis from natural language"],"prefix":"10.1145","volume":"1","author":[{"given":"Navid","family":"Yaghmazadeh","sequence":"first","affiliation":[{"name":"University of Texas at Austin, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yuepeng","family":"Wang","sequence":"additional","affiliation":[{"name":"University of Texas at Austin, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Isil","family":"Dillig","sequence":"additional","affiliation":[{"name":"University of Texas at Austin, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Thomas","family":"Dillig","sequence":"additional","affiliation":[{"name":"University of Texas at Austin, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2017,10,12]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"An Efficient and Portable Natural Language Query Interface for Relational Databases. Tech report","author":"Androutsopoulos I","unstructured":"I Androutsopoulos, G Ritchie, and P Thanisch. 1993. Masque\/sql: An Efficient and Portable Natural Language Query Interface for Relational Databases. Tech report, University of Edinburgh (1993)."},{"key":"e_1_2_1_2_1","volume-title":"Natural language interfaces to databases - An Introduction. Natural Language Engineering","author":"Androutsopoulos Ion","year":"1995","unstructured":"Ion Androutsopoulos, Graeme D. Ritchie, and Peter Thanisch. 1995. Natural language interfaces to databases - An Introduction. Natural Language Engineering (1995)."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/604131.604140"},{"key":"e_1_2_1_4_1","volume-title":"Zorn","author":"Barowy Daniel W.","year":"2015","unstructured":"Daniel W. Barowy, Sumit Gulwani, Ted Hart, and Benjamin G. Zorn. 2015. FlashRelate: extracting relational data from semi-structured spreadsheets using examples. ACM, 218\u2013228."},{"key":"e_1_2_1_5_1","doi-asserted-by":"crossref","unstructured":"Jonathan Berant Andrew Chou Roy Frostig and Percy Liang. 2013. Semantic Parsing on Freebase from Question-Answer Pairs. In EMNLP. 1533\u20131544.","DOI":"10.18653\/v1\/D13-1160"},{"key":"e_1_2_1_6_1","volume-title":"Type-logical semantics","author":"Carpenter Bob","unstructured":"Bob Carpenter. 1997. Type-logical semantics. MIT press."},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","unstructured":"Alvin Cheung Armando Solar-Lezama and Samuel Madden. 2013. Optimizing database-backed applications with query synthesis. In PLDI. 3\u201314. 10.1145\/2491956.2462180","DOI":"10.1145\/2491956.2462180"},{"key":"e_1_2_1_8_1","volume-title":"IFIP Working Conference Data Base Management. 179\u2013200","author":"Codd E. F.","year":"1974","unstructured":"E. F. Codd. 1974. Seven Steps to Rendezvous with the Casual User. In IFIP Working Conference Data Base Management. 179\u2013200."},{"key":"e_1_2_1_9_1","doi-asserted-by":"crossref","unstructured":"Aditya Desai Sumit Gulwani Vineet Hingorani Nidhi Jain Amey Karkare Mark Marron Sailesh R and Subhajit Roy. 2016. Program synthesis using natural language. In ICSE.","DOI":"10.1145\/2884781.2884786"},{"key":"e_1_2_1_10_1","volume-title":"Navathe","author":"Elmasri Ramez","year":"2011","unstructured":"Ramez Elmasri and Shamkant B. Navathe. 2011. Fundamentals of Database Systems. Addison-Wesley."},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/3062341.3062351"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009851"},{"key":"e_1_2_1_13_1","doi-asserted-by":"crossref","unstructured":"John K Feser Swarat Chaudhuri and Isil Dillig. 2015. Synthesizing data structure transformations from input-output examples. In PLDI. 229\u2013239.","DOI":"10.1145\/2737924.2737977"},{"key":"e_1_2_1_14_1","doi-asserted-by":"crossref","unstructured":"Claire Le Goues Michael Dewey-Vogt Stephanie Forrest and Westley Weimer. 2012. A systematic study of automated program repair. In ICSE. 3\u201313.","DOI":"10.1109\/ICSE.2012.6227211"},{"key":"e_1_2_1_15_1","doi-asserted-by":"crossref","unstructured":"Alex Groce and Willem Visser. 2003. What Went Wrong: Explaining Counterexamples. In SPIN.","DOI":"10.1007\/3-540-44829-2_8"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1016\/0004-3702(87)90011-7"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/1926385.1926423"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","unstructured":"Sumit Gulwani and Mark Marron. 2014. NLyze: interactive programming by natural language for spreadsheet data analysis and manipulation. In SIGMOD. 10.1145\/2588555.2612177","DOI":"10.1145\/2588555.2612177"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/2491956.2462192"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/320251.320253"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/1101908.1101949"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/581396.581397"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","unstructured":"Manu Jose and Rupak Majumdar. 2011a. Bug-Assist: assisting fault localization in ANSI-C programs. In CAV. 10.1007\/978-3-642-22110-1_40","DOI":"10.1007\/978-3-642-22110-1_40"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/1993498.1993550"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.3115\/1220175.1220290"},{"key":"e_1_2_1_26_1","volume-title":"Yuk Wah Wong, and Raymond J. Mooney","author":"Kate Rohit J.","year":"2005","unstructured":"Rohit J. Kate, Yuk Wah Wong, and Raymond J. Mooney. 2005. Learning to Transform Natural to Formal Languages. In AAAI. 1062\u20131068."},{"key":"e_1_2_1_27_1","doi-asserted-by":"crossref","unstructured":"Vu Le and Sumit Gulwani. 2014. FlashExtract: a framework for data extraction by examples. ACM 542\u2013553.","DOI":"10.1145\/2594291.2594333"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/2462456.2464443"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.14778\/2735461.2735468"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","unstructured":"Yunyao Li Huahai Yang and H. V. Jagadish. 2006. Constructing a Generic Natural Language Interface for an XML Database. In EDBT. 737\u2013754. 10.1007\/11687238_44","DOI":"10.1007\/11687238_44"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1146\/annurev-linguist-030514-125312"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","unstructured":"Fan Long and Martin Rinard. 2015. Staged program repair with condition synthesis. In ESEC\/FSE. 10.1145\/2786805.2786811","DOI":"10.1145\/2786805.2786811"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","unstructured":"Fan Long and Martin Rinard. 2016. Automatic patch generation by learning correct code. In POPL. 10.1145\/2837614.2837617","DOI":"10.1145\/2837614.2837617"},{"key":"e_1_2_1_34_1","doi-asserted-by":"crossref","unstructured":"Bill MacCartney and Christopher D Manning. 2009. An extended model of natural logic. In IWCS. 140\u2013156.","DOI":"10.3115\/1693756.1693772"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","unstructured":"Christopher D. Manning Mihai Surdeanu John Bauer Jenny Finkel Steven J. Bethard and David McClosky. 2014. The Stanford CoreNLP Natural Language Processing Toolkit. In ACL System Demonstrations. 55\u201360. 10.3115\/v1\/P14-5010","DOI":"10.3115\/v1\/P14-5010"},{"key":"e_1_2_1_36_1","unstructured":"Tomas Mikolov Ilya Sutskever Kai Chen Gregory S. Corrado and Jeffrey Dean. 2013. Distributed Representations of Words and Phrases and their Compositionality. In NIPS."},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.3115\/981863.981871"},{"key":"e_1_2_1_38_1","doi-asserted-by":"crossref","unstructured":"Hoang Duong Thien Nguyen Dawei Qi Abhik Roychoudhury and Satish Chandra. 2013. SemFix: program repair via semantic analysis. In ICSE. 772\u2013781.","DOI":"10.1109\/ICSE.2013.6606623"},{"key":"e_1_2_1_39_1","unstructured":"Peter-Michael Osera and Steve Zdancewic. 2015. Type- and example-directed program synthesis. In PLDI."},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","unstructured":"Nadia Polikarpova Ivan Kuraj and Armando Solar-Lezama. 2016. Program synthesis from polymorphic refinement types. In PLDI. 522\u2013538. 10.1145\/2908080.2908093","DOI":"10.1145\/2908080.2908093"},{"key":"e_1_2_1_41_1","doi-asserted-by":"crossref","unstructured":"Oleksandr Polozov and Sumit Gulwani. 2015. FlashMeta: A framework for inductive program synthesis. ACM 107\u2013126.","DOI":"10.1145\/2814270.2814310"},{"key":"e_1_2_1_42_1","doi-asserted-by":"crossref","unstructured":"Ana-Maria Popescu Alex Armanasu Oren Etzioni David Ko and Alexander Yates. 2004. Modern Natural Language Interfaces to Databases: Composing Statistical Parsing with Semantic Tractability. In COLING.","DOI":"10.3115\/1220355.1220376"},{"key":"e_1_2_1_43_1","volume-title":"Kautz","author":"Popescu Ana-Maria","year":"2003","unstructured":"Ana-Maria Popescu, Oren Etzioni, and Henry A. Kautz. 2003. Towards a theory of natural language interfaces to databases. In IUI. 149\u2013157."},{"key":"e_1_2_1_44_1","doi-asserted-by":"crossref","unstructured":"Chris Quirk Raymond Mooney and Michel Galley. 2015. Language to code: Learning semantic parsers for if-this-then-that recipes. In ACL. 878\u2013888.","DOI":"10.3115\/v1\/P15-1085"},{"key":"e_1_2_1_45_1","unstructured":"Mohammad Raza Sumit Gulwani and Natasa Milic-Frayling. 2015. Compositional Program Synthesis from Natural Language and Examples. In IJCAI."},{"key":"e_1_2_1_46_1","unstructured":"Armando Solar Lezama. 2008. Program Synthesis By Sketching. Ph.D. Dissertation. EECS Department University of California Berkeley."},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","unstructured":"Armando Solar-Lezama Rodric M. Rabbah Rastislav Bod\u00edk and Kemal Ebcioglu. 2005. Programming by sketching for bit-streaming programs. In PLDI. 10.1145\/1065010.1065045","DOI":"10.1145\/1065010.1065045"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/1168857.1168907"},{"key":"e_1_2_1_49_1","doi-asserted-by":"crossref","unstructured":"Lappoon R Tang and Raymond J Mooney. 2000. Automated construction of database interfaces: Integrating statistical and relational learning for semantic parsing. In EMNLP. 133\u2013141.","DOI":"10.3115\/1117794.1117811"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","unstructured":"Quoc Trung Tran Chee-Yong Chan and Srinivasan Parthasarathy. 2009. Query by output. In SIGMOD. 535\u2013548. 10.1145\/1559845.1559902","DOI":"10.1145\/1559845.1559902"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","unstructured":"Chenglong Wang Alvin Cheung and Ras Bodik. 2017. Synthesizing Highly Expressive SQL Queries from Input-Output Examples. In Programming Language Design and Implementation. 10.1145\/3062341.3062365","DOI":"10.1145\/3062341.3062365"},{"key":"e_1_2_1_52_1","first-page":"3","article-title":"An Efficient Easily Adaptable System for Interpreting Natural Language Queries","volume":"8","author":"Warren David H. D.","year":"1982","unstructured":"David H. D. Warren and Fernando C. N. Pereira. 1982. An Efficient Easily Adaptable System for Interpreting Natural Language Queries. American Journal of Computational Linguistics 8, 3-4 (1982), 110\u2013122.","journal-title":"American Journal of Computational Linguistics"},{"key":"e_1_2_1_53_1","volume-title":"Claire Le Goues, and Stephanie Forrest","author":"Weimer Westley","year":"2009","unstructured":"Westley Weimer, ThanhVu Nguyen, Claire Le Goues, and Stephanie Forrest. 2009. Automatically finding patches using genetic programming. In ICSE. 364\u2013374."},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/1449764.1449767"},{"key":"e_1_2_1_55_1","unstructured":"William A Woods Ronald M Kaplan and Bonnie Nash-Webber. 1972. The lunar sciences natural language information system. Bolt Beranek and Newman."},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/2908080.2908088"},{"key":"e_1_2_1_57_1","volume-title":"Mooney","author":"Zelle John M.","year":"1993","unstructured":"John M. Zelle and Raymond J. Mooney. 1993. Learning Semantic Grammars with Constructive Inductive Logic Programming. In AAAI. 817\u2013822."},{"key":"e_1_2_1_58_1","volume-title":"Mooney","author":"Zelle John M.","year":"1996","unstructured":"John M. Zelle and Raymond J. Mooney. 1996. Learning to Parse Database Queries Using Inductive Logic Programming. In AAAI . 1050\u20131055."},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","unstructured":"Sai Zhang and Yuyin Sun. 2013. Automatically synthesizing SQL queries from input-output examples. In ASE. 10.1109\/ASE.2013.6693082","DOI":"10.1109\/ASE.2013.6693082"},{"key":"e_1_2_1_60_1","doi-asserted-by":"publisher","unstructured":"Mosh\u00e9 M. Zloof. 1975. Query-by-Example: the Invocation and Definition of Tables and Forms. In VLDB. 10.1145\/1282480.1282482","DOI":"10.1145\/1282480.1282482"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3133887","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3133887","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3133887","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,10]],"date-time":"2026-09-10T16:07:32Z","timestamp":1789056452000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3133887"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2017,10,12]]},"references-count":60,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2017,10,12]]}},"alternative-id":["10.1145\/3133887"],"URL":"https:\/\/doi.org\/10.1145\/3133887","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2017,10,12]]},"assertion":[{"value":"2017-10-12","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}