UPDF AI

Interactive Query Synthesis from Input-Output Examples

Chenglong Wang,Alvin Cheung,Rastislav Bodík

2017 · DOI: 10.1145/3035918.3058738
45 Citations

TLDR

This demo showcases Scythe, a novel query-by-example system that can synthesize expressive SQL queries from input-output examples and switches to the perspective of an algorithm designer to show how Scythe can scale up to handle complex SQL features, like outer joins and subqueries.

Abstract

This demo showcases Scythe, a novel query-by-example system that can synthesize expressive SQL queries from input-output examples. Scythe is designed to help end-users program SQL and explore data simply using input-output examples. From a web-browser, users can obtain SQL queries with Scythe in an automated, interactive fashion: from a provided example, Scythe synthesizes SQL queries and resolves ambiguities via conversations with the users. In this demo, we first show Scythe how end users can formulate queries using Scythe; we then switch to the perspective of an algorithm designer to show how Scythe can scale up to handle complex SQL features, like outer joins and subqueries.