{"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/squares-a-sql-synthesizer-using-query-reverse","title":"SQUARES: A SQL Synthesizer Using Query Reverse Engineering","arxiv_id":null,"date":"2020-08-31","proceeding":null,"authors":["Pedro Orvalho","Miguel Terra-Neves; Miguel Ventura","Ruben Martins","Vasco Manquinho"],"abstract":"Nowadays, many data analysts are domain experts, but they lack programming skills. As a result, many of them can provide examples of data transformations but are unable to produce the desired query. Hence, there is an increasing need for systems capable of solving the problem of Query Reverse Engineering (QRE). Given a database and output table, these systems have to find the query that generated this table. We present SQUARES, a program synthesis tool based on input-output examples that can help data analysts to extract and transform data by synthesizing SQL queries, and table manipulation programs using the R language.","url_abs":"https://dl.acm.org/doi/10.14778/3415478.3415492","url_pdf":"http://www.vldb.org/pvldb/vol13/p2853-orvalho.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":"squares-a-sql-synthesizer-using-query-reverse","repo_url":"https://github.com/squares-sql/squares","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":null}],"tasks":[{"task_slug":"enumerative-search","task_name":"Enumerative Search"},{"task_slug":"program-synthesis","task_name":"Program Synthesis"},{"task_slug":"sql-synthesis","task_name":"SQL Synthesis"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":null,"mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}