db_id
stringlengths
4
31
query
stringlengths
18
577
question
stringlengths
16
224
query_toks
sequencelengths
4
90
query_toks_no_value
sequencelengths
4
125
question_toks
sequencelengths
4
44
company_employees
SELECT AVG(age) FROM employees WHERE department = 'finance'
What is the average age of employees in the finance department?
[ "SELECT", "AVG(age)", "FROM", "employees", "WHERE", "department", "=", "'finance'" ]
[ "SELECT", "AVG(age)", "FROM", "employees", "WHERE", "department", "=" ]
[ "What", "is", "the", "average", "age", "of", "employees", "in", "the", "finance", "department?" ]
company_employees
SELECT COUNT(*) FROM employees WHERE salary > 50000
How many employees have a salary higher than $50,000?
[ "SELECT", "COUNT(*)", "FROM", "employees", "WHERE", "salary", ">", "50000" ]
[ "SELECT", "COUNT(*)", "FROM", "employees", "WHERE", "salary", ">" ]
[ "How", "many", "employees", "have", "a", "salary", "higher", "than", "$50,000?" ]
company_employees
SELECT name FROM employees WHERE role = 'manager' AND experience > 10
List the names of managers who have more than 10 years of experience.
[ "SELECT", "name", "FROM", "employees", "WHERE", "role", "=", "'manager'", "AND", "experience", ">", "10" ]
[ "SELECT", "name", "FROM", "employees", "WHERE", "role", "=", "AND", "experience", ">" ]
[ "List", "the", "names", "of", "managers", "who", "have", "more", "than", "10", "years", "of", "experience." ]
company_projects
SELECT department_id, COUNT(project_id) AS total_projects FROM projects GROUP BY department_id
What is the total number of projects handled by each department?
[ "SELECT", "department_id,", "COUNT(project_id)", "AS", "total_projects", "FROM", "projects", "GROUP", "BY", "department_id" ]
[ "SELECT", "department_id,", "COUNT(project_id)", "AS", "total_projects", "FROM", "projects", "GROUP", "BY", "department_id" ]
[ "What", "is", "the", "total", "number", "of", "projects", "handled", "by", "each", "department?" ]
online_store
SELECT COUNT(*) FROM orders WHERE order_date >= DATE_SUB(CURRENT_DATE, INTERVAL 1 MONTH)
How many orders were placed in the last month?
[ "SELECT", "COUNT(*)", "FROM", "orders", "WHERE", "order_date", ">=", "DATE_SUB(CURRENT_DATE,", "INTERVAL", "1", "MONTH)" ]
[ "SELECT", "COUNT(*)", "FROM", "orders", "WHERE", "order_date", ">=", "DATE_SUB(CURRENT_DATE,", "INTERVAL", "MONTH)" ]
[ "How", "many", "orders", "were", "placed", "in", "the", "last", "month?" ]