ComputingComputer ScienceInformation SystemsDatabasesNatural Language ProcessingProgramming LanguagesDatabase ManagementQuery ProcessingQuestion AnsweringStructured Query LanguageAutomated Query GenerationDatabase Query InterfacesQuery Execution
Many computer end-users, such as research scientists and business analysts, need to frequently query a database, yet lack enough programming knowledge to write a correct SQL query. To alleviate this problem, we present a programming by example technique (and its tool implementation, called SQLSynthesizer) to help end-users automate such query tasks. SQLSynthesizer takes from users an example input and output of how the database should be queried, and then synthesizes a SQL query that reproduces the example output from the example input. If the synthesized SQL query is applied to another, potentially larger, database with a similar schema, the synthesized SQL query produces a corresponding result that is similar to the example output. We evaluated SQLSynthesizer on 23 exercises from a classic database textbook and 5 forum questions about writing SQL queries. SQLSynthesizer synthesized correct answers for 15 textbook exercises and all 5 forum questions, and it did so from relatively small examples.
29
Mark Hall, Eibe Frank, Geoffrey Holmes et al. · ACM SIGKDD Explorations Newsletter · 2009 · 17.8K citations
J. R. Quinlan · Machine Learning · 1986 · 14.8K citations · Full text
J. R. Quinlan · Machine Learning · 1986 · 12.4K citations · Full text