Translating Natural Language Questions into SQL Queries

Slides:



Advertisements
Similar presentations
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Advertisements

Basic SQL Introduction Presented by: Madhuri Bhogadi.
SQL Basics Based on the relational algebra we just learned. Nonprocedural language – what to be done not how Simple, powerful language Used for both data.
3-1 Chapter 3 Data and Knowledge Management
Summary. Chapter 9 – Triggers Integrity constraints Enforcing IC with different techniques –Keys –Foreign keys –Attribute-based constraints –Schema-based.
Murali Mani SQL DDL and Oracle utilities. Murali Mani Datatypes in SQL INT (or) INTEGER FLOAT (or) REAL DECIMAL (n, m) CHAR (n) VARCHAR (n) DATE, TIME.
SQLite 1 CS440. What is SQLite?  Open Source Database embedded in Android  SQL syntax  Requires small memory at runtime (250 Kbytes)  Lightweight.
Resources – MS Access Free Online Training Resources  Using an Access database to store and information (2 min)
CS410 Course Project Presentation My Project Title My Team 1.
ORACLE ONLINE TRAINING Contact our Support Team : SOFTNSOL India: Skype id : softnsoltrainings id:
MySQL Dr. Hsiang-Fu Yu National Taipei University of Education
2003 April 151 Data Centres: Connecting to the Real World Clive Page.
Chapter 3 Files/Folders needed: \Chapter3\Samples \Chapter3\Labs.
CHAPTER 7 Database: SQL, MySQL. Topics  Introduction  Relational Database Model  Relational Database Overview: Books.mdb Database  SQL (Structured.
© 2008 by Justin Miranda; made available under the EPL v1.0 | 18 March 2008 Using Eclipse BIRT in … seriously! Justin Miranda
Database Organization and Design
Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience.
XML & Mediators Thitima Sirikangwalkul Wai Sum Mong April 10, 2003.
Copyright © 2004 Pearson Education, Inc.. Chapter 15 Algorithms for Query Processing and Optimization.
I'm thinking of a number. 12 is a factor of my number. What other factors MUST my number have?
Programming in R SQL in R. Running SQL in R In this session I will show you how to: Run basic SQL commands within R.
EXAM 1 NEXT TUESDAY…. EXAMPLE QUESTIONS 1.Why is the notion of a “state” important in relational database technology? What does it refer to? 2.What do.
Information Building and Retrieval Using MySQL Track 3 : Basic Course in Database.
CIS 375—Web App Dev II SQL. 2 Introduction SQL (Structured _______ Language) is an ANSI standard language for accessing databases.ANSI SQL can execute.
CCGrid, 2012 Supporting User Defined Subsetting and Aggregation over Parallel NetCDF Datasets Yu Su and Gagan Agrawal Department of Computer Science and.
CIS 375—Web App Dev II SQL. 2 Introduction SQL (Structured _______ Language) is an ANSI standard language for accessing databases.ANSI SQL can execute.
Kansas State University Department of Computing and Information Sciences CIS 560: Database System Concepts Thursday, September 13, 2000 “Structured Query.
1 Notes on: Clusters Index and Cluster Creation in SQL Elisa Bertino CS Department and CERIAS Purdue University.
Database Architecture Course Orientation & Context.
(C) 2000, The University of Michigan 1 Database Application Design Handout #5 February 4, 2000.
DB MidWare CSIS 4490 N-Tier Client/Server Dr. Hoganson Database Middleware Early client/server database systems –Two tier –Server does business logic (data.
CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton.
Advanced Adhoc Reporting 2010 Visions Conference July 28, 2010.
Proficiency Are you confused ?. Who says what it means?  OPI has a definition (and an 8 page rubric)  NCTM has a definition (and numerous books)  ACT.
Databases and ADO.NET Programming Right from the Start with Visual Basic.NET 1/e 11.
Mining real world data RDBMS and SQL. Index RDBMS introduction SQL (Structured Query language)
ORDER BY clause in SELECT command: Normally, the result of the query will not be in ordered format. If we want to get the result of the query in specific.
Quality Information IS Components 5-Component Framework
Simple Queries DBS301 – Week 1. Objectives Basic SELECT statement Computed columns Aliases Concatenation operator Use of DISTINCT to eliminate duplicates.
Components of SRF 12/09/12. Learning Objectives To learn the components of SRF and their definitions. (Pass Grade) To consider how these components are.
$200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200.
I love to read, and I read a lot, but my favorite book is "The hunger games". It's incredible book! I like a lot of songs, now I like the song of Selena.
DBM 384 Week 2 DQ 1 Check this A+ tutorial guideline at 384/DBM-384-Week-2-DQ-1 Explain how Structured Query Language.
ORDER BY Clause The result of a query can be sorted in ascending or descending order using the optional ORDER BY clause. The simplest form of.
Unary Query Processing Operators
JDBC Database Management Database connectivity
SPSS Examples from Our Homework
Pentaho Reporting – Citrus edition
DATABASE SQL= Structure Query Language مبادئ قواعد بيانات
نتعارف لنتألف في التعارف تألف (( الأرواح جنود مجندة , ماتعارف منها أئتلف , وماتنافر منها اختلف )) نماذج من العبارات الايجابية.
Face Components detection
Geo-Databases: lecture 2 The Relational Data Model
An Experimental Study of the Potential of Using Small
Director of Statistical Analysis and Assessment Coordinator
AST Based Sequence to Sequence Natural Language Question to SQL Method
Note Taking Format TERM NOTES MY TRANSLATION Title of Notes
Dialogue State Tracking & Dialogue Corpus Survey
Unsupervised Pretraining for Semantic Parsing
CS122B: Projects in Databases and Web Applications Winter 2019
Android Developer Fundamentals V2
Natural Language to SQL(nl2sql)
Independent Project Natural Language to SQL
Topic 12 Lesson 2 – Retrieving Data with Queries
High Frequency Words Set #1.
Storing and Processing Sensor Networks Data in Public Clouds
子恒印象 Templates 子恒印象.
Extend Excel with Smartlist Designer
‘ORDER BY’ Order by clause allows sorting of query results by one or more columns. Sorting can be done in ascending or descending. Default order is ascending.
កម្មវិធីបង្រៀន SQL Programming ជាភាសាខ្មែរ Online SQL Training Course
Presentation transcript:

Translating Natural Language Questions into SQL Queries Shanelle Roman CS 490 Tao Yu’s NL2SQL project Explaining the problem definition, going over the dataset, and delving into my part of the project.

The Problem & Previous Research Translation of natural language queries into SQL queries Zhong 2017: Seq2SQL with Reinforcement Learning Reinforcement learning on WHERE prediction Xu and Song 2018: SQLNet WikiSQL DataSet What are the names of all female students? => SELECT name where gender = ‘F’ Limited utility: “for each…”, “give me names and student ids”, etc

Goal Create a more real-world dataset Implement the seq2SQL model baseline for this new dataset Goal

WikiSQL vs New Dataset AGG SELECT WHERE AGG SELECT WHERE GROUPBY LIMIT SORTBY HAVING ASC / DESC JOIN …. How many students are female? Vs. How many sports does each female student play?

Seq2SQL: Then vs Now

Architecture: Encoder - Decoder

Results & Future Issues Embeddings of multiple columns with the same name Improve selection of SQL template format Reinforcement learning for all of the column components Finish all of the components Best Dev Agg Accuracy = .48892405 Best Dev Sel Accuracy = .1205316 Best Dev Cond Accuracy = .371835