Lune

PLDI2021Top-tier venue

Example-guided synthesis of relational queries

Aalok Thakkar, Aaditya Naik, Nathaniel Sands, Rajeev Alur, Mayur Naik, Mukund Raghothaman

Abstract

Program synthesis tasks are commonly specified via input-output examples. Existing enumerative techniques for such tasks are primarily guided by program syntax and only make indirect use of the examples. We identify a class of synthesis algorithms for programming-by-examples, which we call Example-Guided Synthesis (EGS), that exploits latent structure in the provided examples while generating candidate programs. We present an instance of EGS for the synthesis of relational queries and evaluate it on 86 tasks from three application domains: knowledge discovery, program analysis, and database querying. Our evaluation shows that EGS outperforms state-of-the-art synthesizers based on enumerative search, constraint solving, and hybrid techniques in terms of synthesis time, quality of synthesized programs, and ability to prove unrealizability.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Synthesizing analytical SQL queries from computation demonstration cites Provenance-guided synthesis of Datalog programs
  • Provenance-guided synthesis of Datalog programs cites APISan: Sanitizing API Usages through Semantic Cross-Checking
  • Sporq: An Interactive Environment for Exploring Code using Query-by-Example cites Provenance-guided synthesis of Datalog programs
  • Sporq: An Interactive Environment for Exploring Code using Query-by-Example cites APISan: Sanitizing API Usages through Semantic Cross-Checking
  • Sporq: An Interactive Environment for Exploring Code using Query-by-Example cites Data-Driven Synthesis of Provably Sound Side Channel Analyses
  • From SMT to ASP: Solver-Based Approaches to Solving Datalog Synthesis-as-Rule-Selection Problems cites Provenance-guided synthesis of Datalog programs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Semantic DebuggingMartin Eberlein, Marius Smytzek, Dominic Steinhöfel, Lars Grunske et al.FSE 2023 · 13 citations
  2. Synthesizing analytical SQL queries from computation demonstrationXiangyu Zhou, Rastislav Bodík, Alvin Cheung, Chenglong WangPLDI 2022 · 11 citations
  3. Sporq: An Interactive Environment for Exploring Code using Query-by-ExampleAaditya Naik, Jonathan Mendelson, Nathaniel Sands, Yuepeng Wang et al.UIST 2021 · 11 citations
  4. From SMT to ASP: Solver-Based Approaches to Solving Datalog Synthesis-as-Rule-Selection ProblemsAaron Bembenek, Michael Greenberg, Stephen ChongPOPL 2023 · 6 citations
  5. Learning formulas in finite variable logicsPaul Krogmeier, P. MadhusudanPOPL 2022 · 5 citations

Builds on3

  1. APISan: Sanitizing API Usages through Semantic Cross-CheckingInsu Yun, Changwoo Min, Xujie Si, Yeongjin Jang et al.USENIX Security 2016 · 107 citations
  2. Provenance-guided synthesis of Datalog programsMukund Raghothaman, Jonathan Mendelson, David Zhao, Mayur Naik et al.POPL 2020 · 49 citations
  3. Data-Driven Synthesis of Provably Sound Side Channel AnalysesJingbo Wang, Chungha Sung, Mukund Raghothaman, Chao WangICSE 2021 · 14 citations

Related papers

  1. Fast and Reliable Program Synthesis via User InteractionYanju Chen, Chenglong Wang, Xinyu Wang, Osbert Bastani et al.ASE 2023 · 5 citations
  2. Synthesizing Document Database Queries Using Collection AbstractionsQikang Liu, Yang He, Yanwen Cai, Byeongguk Kwak et al.ICSE 2025
  3. PATSQL: Efficient Synthesis of SQL Queries from Example Tables with Quick Inference of Projected ColumnsKeita Takenouchi, Takashi Ishio, Joji Okada, Yuji SakataVLDB 2021 · 19 citations
  4. Gauss: program synthesis by reasoning over graphsRohan Bavishi, Caroline Lemieux, Koushik Sen, Ion StoicaOOPSLA 2021 · 4 citations
  5. Just-in-time learning for bottom-up enumerative synthesisShraddha Barke, Hila Peleg, Nadia PolikarpovaOOPSLA 2020 · 33 citations
Dusk over the sea between two cliffs drawn in fine vertical lines