db_id stringlengths 4 31 | query stringlengths 18 577 | question stringlengths 16 224 | query_toks listlengths 4 90 ⌀ | query_toks_no_value listlengths 4 125 ⌀ | question_toks listlengths 4 44 ⌀ |
|---|---|---|---|---|---|
company_employees | SELECT AVG(age) FROM employees WHERE department = 'finance' | What is the average age of employees in the finance department? | null | null | null |
company_employees | SELECT COUNT(*) FROM employees WHERE salary > 50000 | How many employees have a salary higher than $50,000? | null | null | null |
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. | null | null | null |
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? | null | null | null |
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? | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.