db_id stringclasses 140
values | 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 | question_toks_masked listlengths 4 44 | query_toks_masked listlengths 4 125 |
|---|---|---|---|---|---|---|---|
hr_1 | SELECT first_name , last_name , hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = "Clara") | What are the full names and hire dates for employees in the same department as someone with the first name Clara? | [
"SELECT",
"first_name",
",",
"last_name",
",",
"hire_date",
"FROM",
"employees",
"WHERE",
"department_id",
"=",
"(",
"SELECT",
"department_id",
"FROM",
"employees",
"WHERE",
"first_name",
"=",
"``",
"Clara",
"''",
")"
] | [
"select",
"first_name",
",",
"last_name",
",",
"hire_date",
"from",
"employees",
"where",
"department_id",
"=",
"(",
"select",
"department_id",
"from",
"employees",
"where",
"first_name",
"=",
"value",
")"
] | [
"What",
"are",
"the",
"full",
"names",
"and",
"hire",
"dates",
"for",
"employees",
"in",
"the",
"same",
"department",
"as",
"someone",
"with",
"the",
"first",
"name",
"Clara",
"?"
] | [
"What",
"are",
"the",
"full",
"<mask>",
"and",
"<mask>",
"<mask>",
"for",
"<mask>",
"in",
"the",
"same",
"<mask>",
"as",
"someone",
"with",
"the",
"<mask>",
"<mask>",
"Clara",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"(",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
hr_1 | SELECT first_name , last_name , hire_date FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = "Clara") AND first_name != "Clara" | display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara. | [
"SELECT",
"first_name",
",",
"last_name",
",",
"hire_date",
"FROM",
"employees",
"WHERE",
"department_id",
"=",
"(",
"SELECT",
"department_id",
"FROM",
"employees",
"WHERE",
"first_name",
"=",
"``",
"Clara",
"''",
")",
"AND",
"first_name",
"!",
"=",
"``",
"Cla... | [
"select",
"first_name",
",",
"last_name",
",",
"hire_date",
"from",
"employees",
"where",
"department_id",
"=",
"(",
"select",
"department_id",
"from",
"employees",
"where",
"first_name",
"=",
"value",
")",
"and",
"first_name",
"!",
"=",
"value"
] | [
"display",
"the",
"employee",
"name",
"(",
"first",
"name",
"and",
"last",
"name",
")",
"and",
"hire",
"date",
"for",
"all",
"employees",
"in",
"the",
"same",
"department",
"as",
"Clara",
"excluding",
"Clara",
"."
] | [
"display",
"the",
"<mask>",
"<mask>",
"(",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
")",
"and",
"<mask>",
"<mask>",
"for",
"all",
"<mask>",
"in",
"the",
"same",
"<mask>",
"as",
"Clara",
"excluding",
"Clara",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"(",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")",
"and",
"<mask>",
"!",
"=",
"<unk>"
] |
hr_1 | SELECT first_name , last_name , hire_date FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = "Clara") AND first_name != "Clara" | What are the full names and hire dates for employees in the same department as someone with the first name Clara, not including Clara? | [
"SELECT",
"first_name",
",",
"last_name",
",",
"hire_date",
"FROM",
"employees",
"WHERE",
"department_id",
"=",
"(",
"SELECT",
"department_id",
"FROM",
"employees",
"WHERE",
"first_name",
"=",
"``",
"Clara",
"''",
")",
"AND",
"first_name",
"!",
"=",
"``",
"Cla... | [
"select",
"first_name",
",",
"last_name",
",",
"hire_date",
"from",
"employees",
"where",
"department_id",
"=",
"(",
"select",
"department_id",
"from",
"employees",
"where",
"first_name",
"=",
"value",
")",
"and",
"first_name",
"!",
"=",
"value"
] | [
"What",
"are",
"the",
"full",
"names",
"and",
"hire",
"dates",
"for",
"employees",
"in",
"the",
"same",
"department",
"as",
"someone",
"with",
"the",
"first",
"name",
"Clara",
",",
"not",
"including",
"Clara",
"?"
] | [
"What",
"are",
"the",
"full",
"<mask>",
"and",
"<mask>",
"<mask>",
"for",
"<mask>",
"in",
"the",
"same",
"<mask>",
"as",
"someone",
"with",
"the",
"<mask>",
"<mask>",
"Clara",
",",
"not",
"including",
"Clara",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"(",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")",
"and",
"<mask>",
"!",
"=",
"<unk>"
] |
hr_1 | SELECT employee_id , first_name , last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' ) | display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a ’T’. | [
"SELECT",
"employee_id",
",",
"first_name",
",",
"last_name",
"FROM",
"employees",
"WHERE",
"department_id",
"IN",
"(",
"SELECT",
"department_id",
"FROM",
"employees",
"WHERE",
"first_name",
"LIKE",
"'",
"%",
"T",
"%",
"'",
")"
] | [
"select",
"employee_id",
",",
"first_name",
",",
"last_name",
"from",
"employees",
"where",
"department_id",
"in",
"(",
"select",
"department_id",
"from",
"employees",
"where",
"first_name",
"like",
"value",
")"
] | [
"display",
"the",
"employee",
"number",
"and",
"name",
"(",
"first",
"name",
"and",
"last",
"name",
")",
"for",
"all",
"employees",
"who",
"work",
"in",
"a",
"department",
"with",
"any",
"employee",
"whose",
"name",
"contains",
"a",
"’T’",
"."
] | [
"display",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"(",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
")",
"for",
"all",
"<mask>",
"who",
"work",
"in",
"a",
"<mask>",
"with",
"any",
"<mask>",
"whose",
"<mask>",
"contains",
"a",
"’T’",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>",
")"
] |
hr_1 | SELECT employee_id , first_name , last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' ) | What are the ids and full names for employees who work in a department that has someone with a first name that contains the letter T? | [
"SELECT",
"employee_id",
",",
"first_name",
",",
"last_name",
"FROM",
"employees",
"WHERE",
"department_id",
"IN",
"(",
"SELECT",
"department_id",
"FROM",
"employees",
"WHERE",
"first_name",
"LIKE",
"'",
"%",
"T",
"%",
"'",
")"
] | [
"select",
"employee_id",
",",
"first_name",
",",
"last_name",
"from",
"employees",
"where",
"department_id",
"in",
"(",
"select",
"department_id",
"from",
"employees",
"where",
"first_name",
"like",
"value",
")"
] | [
"What",
"are",
"the",
"ids",
"and",
"full",
"names",
"for",
"employees",
"who",
"work",
"in",
"a",
"department",
"that",
"has",
"someone",
"with",
"a",
"first",
"name",
"that",
"contains",
"the",
"letter",
"T",
"?"
] | [
"What",
"are",
"the",
"ids",
"and",
"full",
"<mask>",
"for",
"<mask>",
"who",
"work",
"in",
"a",
"<mask>",
"that",
"has",
"someone",
"with",
"a",
"<mask>",
"<mask>",
"that",
"contains",
"the",
"letter",
"T",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>",
")"
] |
hr_1 | SELECT employee_id , first_name , last_name , salary FROM employees WHERE salary > ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%') | display the employee number, name( first name and last name ), and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name. | [
"SELECT",
"employee_id",
",",
"first_name",
",",
"last_name",
",",
"salary",
"FROM",
"employees",
"WHERE",
"salary",
">",
"(",
"SELECT",
"AVG",
"(",
"salary",
")",
"FROM",
"employees",
")",
"AND",
"department_id",
"IN",
"(",
"SELECT",
"department_id",
"FROM",
... | [
"select",
"employee_id",
",",
"first_name",
",",
"last_name",
",",
"salary",
"from",
"employees",
"where",
"salary",
">",
"(",
"select",
"avg",
"(",
"salary",
")",
"from",
"employees",
")",
"and",
"department_id",
"in",
"(",
"select",
"department_id",
"from",
... | [
"display",
"the",
"employee",
"number",
",",
"name",
"(",
"first",
"name",
"and",
"last",
"name",
")",
",",
"and",
"salary",
"for",
"all",
"employees",
"who",
"earn",
"more",
"than",
"the",
"average",
"salary",
"and",
"who",
"work",
"in",
"a",
"departmen... | [
"display",
"the",
"<mask>",
"<mask>",
",",
"<mask>",
"(",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
")",
",",
"and",
"<mask>",
"for",
"all",
"<mask>",
"who",
"earn",
"more",
"than",
"the",
"average",
"<mask>",
"and",
"who",
"work",
"in",
"a",
"<mask... | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
")",
"and",
"<mask>",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>... |
hr_1 | SELECT employee_id , first_name , last_name , salary FROM employees WHERE salary > ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%') | What are the ids, full names, and salaries for employees making more than average and who work in a department with employees who have the letter J in their first name? | [
"SELECT",
"employee_id",
",",
"first_name",
",",
"last_name",
",",
"salary",
"FROM",
"employees",
"WHERE",
"salary",
">",
"(",
"SELECT",
"AVG",
"(",
"salary",
")",
"FROM",
"employees",
")",
"AND",
"department_id",
"IN",
"(",
"SELECT",
"department_id",
"FROM",
... | [
"select",
"employee_id",
",",
"first_name",
",",
"last_name",
",",
"salary",
"from",
"employees",
"where",
"salary",
">",
"(",
"select",
"avg",
"(",
"salary",
")",
"from",
"employees",
")",
"and",
"department_id",
"in",
"(",
"select",
"department_id",
"from",
... | [
"What",
"are",
"the",
"ids",
",",
"full",
"names",
",",
"and",
"salaries",
"for",
"employees",
"making",
"more",
"than",
"average",
"and",
"who",
"work",
"in",
"a",
"department",
"with",
"employees",
"who",
"have",
"the",
"letter",
"J",
"in",
"their",
"f... | [
"What",
"are",
"the",
"ids",
",",
"full",
"<mask>",
",",
"and",
"<mask>",
"for",
"<mask>",
"making",
"more",
"than",
"average",
"and",
"who",
"work",
"in",
"a",
"<mask>",
"with",
"<mask>",
"who",
"have",
"the",
"letter",
"J",
"in",
"their",
"<mask>",
"... | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
")",
"and",
"<mask>",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>... |
hr_1 | SELECT employee_id , job_id FROM employees WHERE salary < ( SELECT min(salary) FROM employees WHERE job_id = 'MK_MAN' ) | display the employee number and job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN. | [
"SELECT",
"employee_id",
",",
"job_id",
"FROM",
"employees",
"WHERE",
"salary",
"<",
"(",
"SELECT",
"min",
"(",
"salary",
")",
"FROM",
"employees",
"WHERE",
"job_id",
"=",
"'MK_MAN",
"'",
")"
] | [
"select",
"employee_id",
",",
"job_id",
"from",
"employees",
"where",
"salary",
"<",
"(",
"select",
"min",
"(",
"salary",
")",
"from",
"employees",
"where",
"job_id",
"=",
"value",
")"
] | [
"display",
"the",
"employee",
"number",
"and",
"job",
"id",
"for",
"all",
"employees",
"whose",
"salary",
"is",
"smaller",
"than",
"any",
"salary",
"of",
"those",
"employees",
"whose",
"job",
"title",
"is",
"MK_MAN",
"."
] | [
"display",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"id",
"for",
"all",
"<mask>",
"whose",
"<mask>",
"is",
"smaller",
"than",
"any",
"<mask>",
"of",
"those",
"<mask>",
"whose",
"<mask>",
"<mask>",
"is",
"MK_MAN",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"(",
"select",
"min",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
hr_1 | SELECT employee_id , job_id FROM employees WHERE salary < ( SELECT min(salary) FROM employees WHERE job_id = 'MK_MAN' ) | What are the employee ids and job ids for employees who make less than the lowest earning employee with title MK_MAN? | [
"SELECT",
"employee_id",
",",
"job_id",
"FROM",
"employees",
"WHERE",
"salary",
"<",
"(",
"SELECT",
"min",
"(",
"salary",
")",
"FROM",
"employees",
"WHERE",
"job_id",
"=",
"'MK_MAN",
"'",
")"
] | [
"select",
"employee_id",
",",
"job_id",
"from",
"employees",
"where",
"salary",
"<",
"(",
"select",
"min",
"(",
"salary",
")",
"from",
"employees",
"where",
"job_id",
"=",
"value",
")"
] | [
"What",
"are",
"the",
"employee",
"ids",
"and",
"job",
"ids",
"for",
"employees",
"who",
"make",
"less",
"than",
"the",
"lowest",
"earning",
"employee",
"with",
"title",
"MK_MAN",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"ids",
"and",
"<mask>",
"ids",
"for",
"<mask>",
"who",
"make",
"less",
"than",
"the",
"lowest",
"earning",
"<mask>",
"with",
"<mask>",
"MK_MAN",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"(",
"select",
"min",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
hr_1 | SELECT employee_id , first_name , last_name , job_id FROM employees WHERE salary > ( SELECT max(salary) FROM employees WHERE job_id = 'PU_MAN' ) | display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN. | [
"SELECT",
"employee_id",
",",
"first_name",
",",
"last_name",
",",
"job_id",
"FROM",
"employees",
"WHERE",
"salary",
">",
"(",
"SELECT",
"max",
"(",
"salary",
")",
"FROM",
"employees",
"WHERE",
"job_id",
"=",
"'PU_MAN",
"'",
")"
] | [
"select",
"employee_id",
",",
"first_name",
",",
"last_name",
",",
"job_id",
"from",
"employees",
"where",
"salary",
">",
"(",
"select",
"max",
"(",
"salary",
")",
"from",
"employees",
"where",
"job_id",
"=",
"value",
")"
] | [
"display",
"the",
"employee",
"number",
",",
"name",
"(",
"first",
"name",
"and",
"last",
"name",
")",
"and",
"job",
"title",
"for",
"all",
"employees",
"whose",
"salary",
"is",
"more",
"than",
"any",
"salary",
"of",
"those",
"employees",
"whose",
"job",
... | [
"display",
"the",
"<mask>",
"<mask>",
",",
"<mask>",
"(",
"<mask>",
"<mask>",
"and",
"<mask>",
"<mask>",
")",
"and",
"<mask>",
"<mask>",
"for",
"all",
"<mask>",
"whose",
"<mask>",
"is",
"more",
"than",
"any",
"<mask>",
"of",
"those",
"<mask>",
"whose",
"<m... | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
hr_1 | SELECT employee_id , first_name , last_name , job_id FROM employees WHERE salary > ( SELECT max(salary) FROM employees WHERE job_id = 'PU_MAN' ) | What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN? | [
"SELECT",
"employee_id",
",",
"first_name",
",",
"last_name",
",",
"job_id",
"FROM",
"employees",
"WHERE",
"salary",
">",
"(",
"SELECT",
"max",
"(",
"salary",
")",
"FROM",
"employees",
"WHERE",
"job_id",
"=",
"'PU_MAN",
"'",
")"
] | [
"select",
"employee_id",
",",
"first_name",
",",
"last_name",
",",
"job_id",
"from",
"employees",
"where",
"salary",
">",
"(",
"select",
"max",
"(",
"salary",
")",
"from",
"employees",
"where",
"job_id",
"=",
"value",
")"
] | [
"What",
"are",
"the",
"employee",
"ids",
",",
"full",
"names",
",",
"and",
"job",
"ids",
"for",
"employees",
"who",
"make",
"more",
"than",
"the",
"highest",
"earning",
"employee",
"with",
"title",
"PU_MAN",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"ids",
",",
"full",
"<mask>",
",",
"and",
"<mask>",
"ids",
"for",
"<mask>",
"who",
"make",
"more",
"than",
"the",
"highest",
"earning",
"<mask>",
"with",
"<mask>",
"PU_MAN",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
hr_1 | SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2 | display the department id and the total salary for those departments which contains at least two employees. | [
"SELECT",
"department_id",
",",
"SUM",
"(",
"salary",
")",
"FROM",
"employees",
"GROUP",
"BY",
"department_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"department_id",
",",
"sum",
"(",
"salary",
")",
"from",
"employees",
"group",
"by",
"department_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"display",
"the",
"department",
"id",
"and",
"the",
"total",
"salary",
"for",
"those",
"departments",
"which",
"contains",
"at",
"least",
"two",
"employees",
"."
] | [
"display",
"the",
"<mask>",
"id",
"and",
"the",
"total",
"<mask>",
"for",
"those",
"<mask>",
"which",
"contains",
"at",
"least",
"two",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<unk>"
] |
hr_1 | SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2 | What are total salaries and department id for each department that has more than 2 employees? | [
"SELECT",
"department_id",
",",
"SUM",
"(",
"salary",
")",
"FROM",
"employees",
"GROUP",
"BY",
"department_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"department_id",
",",
"sum",
"(",
"salary",
")",
"from",
"employees",
"group",
"by",
"department_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"What",
"are",
"total",
"salaries",
"and",
"department",
"id",
"for",
"each",
"department",
"that",
"has",
"more",
"than",
"2",
"employees",
"?"
] | [
"What",
"are",
"total",
"<mask>",
"and",
"<mask>",
"id",
"for",
"each",
"<mask>",
"that",
"has",
"more",
"than",
"<unk>",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"=",
"<unk>"
] |
hr_1 | SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history) | display all the information of those employees who did not have any job in the past. | [
"SELECT",
"*",
"FROM",
"employees",
"WHERE",
"employee_id",
"NOT",
"IN",
"(",
"SELECT",
"employee_id",
"FROM",
"job_history",
")"
] | [
"select",
"*",
"from",
"employees",
"where",
"employee_id",
"not",
"in",
"(",
"select",
"employee_id",
"from",
"job_history",
")"
] | [
"display",
"all",
"the",
"information",
"of",
"those",
"employees",
"who",
"did",
"not",
"have",
"any",
"job",
"in",
"the",
"past",
"."
] | [
"display",
"all",
"the",
"information",
"of",
"those",
"<mask>",
"who",
"did",
"not",
"have",
"any",
"<mask>",
"in",
"the",
"past",
"."
] | [
"select",
"*",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
hr_1 | SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history) | What is all the information about employees who have never had a job in the past? | [
"SELECT",
"*",
"FROM",
"employees",
"WHERE",
"employee_id",
"NOT",
"IN",
"(",
"SELECT",
"employee_id",
"FROM",
"job_history",
")"
] | [
"select",
"*",
"from",
"employees",
"where",
"employee_id",
"not",
"in",
"(",
"select",
"employee_id",
"from",
"job_history",
")"
] | [
"What",
"is",
"all",
"the",
"information",
"about",
"employees",
"who",
"have",
"never",
"had",
"a",
"job",
"in",
"the",
"past",
"?"
] | [
"What",
"is",
"all",
"the",
"information",
"about",
"<mask>",
"who",
"have",
"never",
"had",
"a",
"<mask>",
"in",
"the",
"past",
"?"
] | [
"select",
"*",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
hr_1 | SELECT first_name , last_name , salary , department_id , MAX(salary) FROM employees GROUP BY department_id | display the department ID, full name (first and last name), salary for those employees who is highest salary in every department. | [
"SELECT",
"first_name",
",",
"last_name",
",",
"salary",
",",
"department_id",
",",
"MAX",
"(",
"salary",
")",
"FROM",
"employees",
"GROUP",
"BY",
"department_id"
] | [
"select",
"first_name",
",",
"last_name",
",",
"salary",
",",
"department_id",
",",
"max",
"(",
"salary",
")",
"from",
"employees",
"group",
"by",
"department_id"
] | [
"display",
"the",
"department",
"ID",
",",
"full",
"name",
"(",
"first",
"and",
"last",
"name",
")",
",",
"salary",
"for",
"those",
"employees",
"who",
"is",
"highest",
"salary",
"in",
"every",
"department",
"."
] | [
"display",
"the",
"<mask>",
"ID",
",",
"full",
"<mask>",
"(",
"<mask>",
"and",
"<mask>",
"<mask>",
")",
",",
"<mask>",
"for",
"those",
"<mask>",
"who",
"is",
"highest",
"<mask>",
"in",
"every",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
",",
"<mask>",
",",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
hr_1 | SELECT first_name , last_name , salary , department_id , MAX(salary) FROM employees GROUP BY department_id | What are the department ids, full names, and salaries for employees who make the most in their departments? | [
"SELECT",
"first_name",
",",
"last_name",
",",
"salary",
",",
"department_id",
",",
"MAX",
"(",
"salary",
")",
"FROM",
"employees",
"GROUP",
"BY",
"department_id"
] | [
"select",
"first_name",
",",
"last_name",
",",
"salary",
",",
"department_id",
",",
"max",
"(",
"salary",
")",
"from",
"employees",
"group",
"by",
"department_id"
] | [
"What",
"are",
"the",
"department",
"ids",
",",
"full",
"names",
",",
"and",
"salaries",
"for",
"employees",
"who",
"make",
"the",
"most",
"in",
"their",
"departments",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"ids",
",",
"full",
"<mask>",
",",
"and",
"<mask>",
"for",
"<mask>",
"who",
"make",
"the",
"most",
"in",
"their",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
",",
"<mask>",
",",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
hr_1 | SELECT T1.first_name , T1.last_name , T2.department_name , T3.city , T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id | display the first and last name, department, city, and state province for each employee. | [
"SELECT",
"T1.first_name",
",",
"T1.last_name",
",",
"T2.department_name",
",",
"T3.city",
",",
"T3.state_province",
"FROM",
"employees",
"AS",
"T1",
"JOIN",
"departments",
"AS",
"T2",
"ON",
"T1.department_id",
"=",
"T2.department_id",
"JOIN",
"locations",
"AS",
"T3... | [
"select",
"t1",
".",
"first_name",
",",
"t1",
".",
"last_name",
",",
"t2",
".",
"department_name",
",",
"t3",
".",
"city",
",",
"t3",
".",
"state_province",
"from",
"employees",
"as",
"t1",
"join",
"departments",
"as",
"t2",
"on",
"t1",
".",
"department_... | [
"display",
"the",
"first",
"and",
"last",
"name",
",",
"department",
",",
"city",
",",
"and",
"state",
"province",
"for",
"each",
"employee",
"."
] | [
"display",
"the",
"<mask>",
"and",
"<mask>",
"<mask>",
",",
"<mask>",
",",
"<mask>",
",",
"and",
"<mask>",
"<mask>",
"for",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
... |
hr_1 | SELECT T1.first_name , T1.last_name , T2.department_name , T3.city , T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id | What are the full names, departments, cities, and state provinces for each employee? | [
"SELECT",
"T1.first_name",
",",
"T1.last_name",
",",
"T2.department_name",
",",
"T3.city",
",",
"T3.state_province",
"FROM",
"employees",
"AS",
"T1",
"JOIN",
"departments",
"AS",
"T2",
"ON",
"T1.department_id",
"=",
"T2.department_id",
"JOIN",
"locations",
"AS",
"T3... | [
"select",
"t1",
".",
"first_name",
",",
"t1",
".",
"last_name",
",",
"t2",
".",
"department_name",
",",
"t3",
".",
"city",
",",
"t3",
".",
"state_province",
"from",
"employees",
"as",
"t1",
"join",
"departments",
"as",
"t2",
"on",
"t1",
".",
"department_... | [
"What",
"are",
"the",
"full",
"names",
",",
"departments",
",",
"cities",
",",
"and",
"state",
"provinces",
"for",
"each",
"employee",
"?"
] | [
"What",
"are",
"the",
"full",
"<mask>",
",",
"<mask>",
",",
"<mask>",
",",
"and",
"<mask>",
"<mask>",
"for",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
... |
hr_1 | SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%' | display those employees who contain a letter z to their first name and also display their last name, city. | [
"SELECT",
"T1.first_name",
",",
"T1.last_name",
",",
"T3.city",
"FROM",
"employees",
"AS",
"T1",
"JOIN",
"departments",
"AS",
"T2",
"ON",
"T1.department_id",
"=",
"T2.department_id",
"JOIN",
"locations",
"AS",
"T3",
"ON",
"T2.location_id",
"=",
"T3.location_id",
"... | [
"select",
"t1",
".",
"first_name",
",",
"t1",
".",
"last_name",
",",
"t3",
".",
"city",
"from",
"employees",
"as",
"t1",
"join",
"departments",
"as",
"t2",
"on",
"t1",
".",
"department_id",
"=",
"t2",
".",
"department_id",
"join",
"locations",
"as",
"t3"... | [
"display",
"those",
"employees",
"who",
"contain",
"a",
"letter",
"z",
"to",
"their",
"first",
"name",
"and",
"also",
"display",
"their",
"last",
"name",
",",
"city",
"."
] | [
"display",
"those",
"<mask>",
"who",
"contain",
"a",
"letter",
"z",
"to",
"their",
"<mask>",
"<mask>",
"and",
"also",
"display",
"their",
"<mask>",
"<mask>",
",",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask... |
hr_1 | SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%' | What are the full names and cities of employees who have the letter Z in their first names? | [
"SELECT",
"T1.first_name",
",",
"T1.last_name",
",",
"T3.city",
"FROM",
"employees",
"AS",
"T1",
"JOIN",
"departments",
"AS",
"T2",
"ON",
"T1.department_id",
"=",
"T2.department_id",
"JOIN",
"locations",
"AS",
"T3",
"ON",
"T2.location_id",
"=",
"T3.location_id",
"... | [
"select",
"t1",
".",
"first_name",
",",
"t1",
".",
"last_name",
",",
"t3",
".",
"city",
"from",
"employees",
"as",
"t1",
"join",
"departments",
"as",
"t2",
"on",
"t1",
".",
"department_id",
"=",
"t2",
".",
"department_id",
"join",
"locations",
"as",
"t3"... | [
"What",
"are",
"the",
"full",
"names",
"and",
"cities",
"of",
"employees",
"who",
"have",
"the",
"letter",
"Z",
"in",
"their",
"first",
"names",
"?"
] | [
"What",
"are",
"the",
"full",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"who",
"have",
"the",
"letter",
"Z",
"in",
"their",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask... |
hr_1 | SELECT T1.department_name , T2.city , T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id | display the department name, city, and state province for each department. | [
"SELECT",
"T1.department_name",
",",
"T2.city",
",",
"T2.state_province",
"FROM",
"departments",
"AS",
"T1",
"JOIN",
"locations",
"AS",
"T2",
"ON",
"T2.location_id",
"=",
"T1.location_id"
] | [
"select",
"t1",
".",
"department_name",
",",
"t2",
".",
"city",
",",
"t2",
".",
"state_province",
"from",
"departments",
"as",
"t1",
"join",
"locations",
"as",
"t2",
"on",
"t2",
".",
"location_id",
"=",
"t1",
".",
"location_id"
] | [
"display",
"the",
"department",
"name",
",",
"city",
",",
"and",
"state",
"province",
"for",
"each",
"department",
"."
] | [
"display",
"the",
"<mask>",
"<mask>",
",",
"<mask>",
",",
"and",
"<mask>",
"<mask>",
"for",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
hr_1 | SELECT T1.department_name , T2.city , T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id | What are the department names, cities, and state provinces for each department? | [
"SELECT",
"T1.department_name",
",",
"T2.city",
",",
"T2.state_province",
"FROM",
"departments",
"AS",
"T1",
"JOIN",
"locations",
"AS",
"T2",
"ON",
"T2.location_id",
"=",
"T1.location_id"
] | [
"select",
"t1",
".",
"department_name",
",",
"t2",
".",
"city",
",",
"t2",
".",
"state_province",
"from",
"departments",
"as",
"t1",
"join",
"locations",
"as",
"t2",
"on",
"t2",
".",
"location_id",
"=",
"t1",
".",
"location_id"
] | [
"What",
"are",
"the",
"department",
"names",
",",
"cities",
",",
"and",
"state",
"provinces",
"for",
"each",
"department",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
",",
"<mask>",
",",
"and",
"<mask>",
"<mask>",
"for",
"each",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
hr_1 | SELECT T1.first_name , T1.last_name , T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id | display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working. | [
"SELECT",
"T1.first_name",
",",
"T1.last_name",
",",
"T1.employee_id",
",",
"T4.country_name",
"FROM",
"employees",
"AS",
"T1",
"JOIN",
"departments",
"AS",
"T2",
"ON",
"T1.department_id",
"=",
"T2.department_id",
"JOIN",
"locations",
"AS",
"T3",
"ON",
"T2.location_... | [
"select",
"t1",
".",
"first_name",
",",
"t1",
".",
"last_name",
",",
"t1",
".",
"employee_id",
",",
"t4",
".",
"country_name",
"from",
"employees",
"as",
"t1",
"join",
"departments",
"as",
"t2",
"on",
"t1",
".",
"department_id",
"=",
"t2",
".",
"departme... | [
"display",
"the",
"full",
"name",
"(",
"first",
"and",
"last",
"name",
")",
"of",
"employee",
"with",
"ID",
"and",
"name",
"of",
"the",
"country",
"presently",
"where",
"(",
"s",
")",
"he",
"is",
"working",
"."
] | [
"display",
"the",
"full",
"<mask>",
"(",
"<mask>",
"and",
"<mask>",
"<mask>",
")",
"of",
"<mask>",
"with",
"ID",
"and",
"<mask>",
"of",
"the",
"<mask>",
"presently",
"where",
"(",
"s",
")",
"he",
"is",
"working",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
... |
hr_1 | SELECT T1.first_name , T1.last_name , T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id | What the full names, ids of each employee and the name of the country they are in? | [
"SELECT",
"T1.first_name",
",",
"T1.last_name",
",",
"T1.employee_id",
",",
"T4.country_name",
"FROM",
"employees",
"AS",
"T1",
"JOIN",
"departments",
"AS",
"T2",
"ON",
"T1.department_id",
"=",
"T2.department_id",
"JOIN",
"locations",
"AS",
"T3",
"ON",
"T2.location_... | [
"select",
"t1",
".",
"first_name",
",",
"t1",
".",
"last_name",
",",
"t1",
".",
"employee_id",
",",
"t4",
".",
"country_name",
"from",
"employees",
"as",
"t1",
"join",
"departments",
"as",
"t2",
"on",
"t1",
".",
"department_id",
"=",
"t2",
".",
"departme... | [
"What",
"the",
"full",
"names",
",",
"ids",
"of",
"each",
"employee",
"and",
"the",
"name",
"of",
"the",
"country",
"they",
"are",
"in",
"?"
] | [
"What",
"the",
"full",
"<mask>",
",",
"ids",
"of",
"each",
"<mask>",
"and",
"the",
"<mask>",
"of",
"the",
"<mask>",
"they",
"are",
"in",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
... |
hr_1 | SELECT department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name | display the department name and number of employees in each of the department. | [
"SELECT",
"department_name",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"employees",
"AS",
"T1",
"JOIN",
"departments",
"AS",
"T2",
"ON",
"T1.department_id",
"=",
"T2.department_id",
"GROUP",
"BY",
"department_name"
] | [
"select",
"department_name",
",",
"count",
"(",
"*",
")",
"from",
"employees",
"as",
"t1",
"join",
"departments",
"as",
"t2",
"on",
"t1",
".",
"department_id",
"=",
"t2",
".",
"department_id",
"group",
"by",
"department_name"
] | [
"display",
"the",
"department",
"name",
"and",
"number",
"of",
"employees",
"in",
"each",
"of",
"the",
"department",
"."
] | [
"display",
"the",
"<mask>",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"in",
"each",
"of",
"the",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>"
] |
hr_1 | SELECT department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name | What are the department names and how many employees work in each of them? | [
"SELECT",
"department_name",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"employees",
"AS",
"T1",
"JOIN",
"departments",
"AS",
"T2",
"ON",
"T1.department_id",
"=",
"T2.department_id",
"GROUP",
"BY",
"department_name"
] | [
"select",
"department_name",
",",
"count",
"(",
"*",
")",
"from",
"employees",
"as",
"t1",
"join",
"departments",
"as",
"t2",
"on",
"t1",
".",
"department_id",
"=",
"t2",
".",
"department_id",
"group",
"by",
"department_name"
] | [
"What",
"are",
"the",
"department",
"names",
"and",
"how",
"many",
"employees",
"work",
"in",
"each",
"of",
"them",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"and",
"how",
"many",
"<mask>",
"work",
"in",
"each",
"of",
"them",
"?"
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>"
] |
hr_1 | SELECT first_name , last_name , salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London' | display the full name (first and last name), and salary of those employees who working in any department located in London. | [
"SELECT",
"first_name",
",",
"last_name",
",",
"salary",
"FROM",
"employees",
"AS",
"T1",
"JOIN",
"departments",
"AS",
"T2",
"ON",
"T1.department_id",
"=",
"T2.department_id",
"JOIN",
"locations",
"AS",
"T3",
"ON",
"T2.location_id",
"=",
"T3.location_id",
"WHERE",... | [
"select",
"first_name",
",",
"last_name",
",",
"salary",
"from",
"employees",
"as",
"t1",
"join",
"departments",
"as",
"t2",
"on",
"t1",
".",
"department_id",
"=",
"t2",
".",
"department_id",
"join",
"locations",
"as",
"t3",
"on",
"t2",
".",
"location_id",
... | [
"display",
"the",
"full",
"name",
"(",
"first",
"and",
"last",
"name",
")",
",",
"and",
"salary",
"of",
"those",
"employees",
"who",
"working",
"in",
"any",
"department",
"located",
"in",
"London",
"."
] | [
"display",
"the",
"full",
"<mask>",
"(",
"<mask>",
"and",
"<mask>",
"<mask>",
")",
",",
"and",
"<mask>",
"of",
"those",
"<mask>",
"who",
"working",
"in",
"any",
"<mask>",
"located",
"in",
"London",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mas... |
hr_1 | SELECT first_name , last_name , salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London' | What are full names and salaries of employees working in the city of London? | [
"SELECT",
"first_name",
",",
"last_name",
",",
"salary",
"FROM",
"employees",
"AS",
"T1",
"JOIN",
"departments",
"AS",
"T2",
"ON",
"T1.department_id",
"=",
"T2.department_id",
"JOIN",
"locations",
"AS",
"T3",
"ON",
"T2.location_id",
"=",
"T3.location_id",
"WHERE",... | [
"select",
"first_name",
",",
"last_name",
",",
"salary",
"from",
"employees",
"as",
"t1",
"join",
"departments",
"as",
"t2",
"on",
"t1",
".",
"department_id",
"=",
"t2",
".",
"department_id",
"join",
"locations",
"as",
"t3",
"on",
"t2",
".",
"location_id",
... | [
"What",
"are",
"full",
"names",
"and",
"salaries",
"of",
"employees",
"working",
"in",
"the",
"city",
"of",
"London",
"?"
] | [
"What",
"are",
"full",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"working",
"in",
"the",
"<mask>",
"of",
"London",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mas... |
music_1 | SELECT song_name , releasedate FROM song ORDER BY releasedate DESC LIMIT 1 | What is the name of the song that was released in the most recent year? | [
"SELECT",
"song_name",
",",
"releasedate",
"FROM",
"song",
"ORDER",
"BY",
"releasedate",
"DESC",
"LIMIT",
"1"
] | [
"select",
"song_name",
",",
"releasedate",
"from",
"song",
"order",
"by",
"releasedate",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"name",
"of",
"the",
"song",
"that",
"was",
"released",
"in",
"the",
"most",
"recent",
"year",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"was",
"released",
"in",
"the",
"<mask>",
"recent",
"year",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
music_1 | SELECT song_name , releasedate FROM song ORDER BY releasedate DESC LIMIT 1 | What is the name of the song that was released most recently? | [
"SELECT",
"song_name",
",",
"releasedate",
"FROM",
"song",
"ORDER",
"BY",
"releasedate",
"DESC",
"LIMIT",
"1"
] | [
"select",
"song_name",
",",
"releasedate",
"from",
"song",
"order",
"by",
"releasedate",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"name",
"of",
"the",
"song",
"that",
"was",
"released",
"most",
"recently",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"was",
"released",
"<mask>",
"recently",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
music_1 | SELECT f_id FROM files ORDER BY duration DESC LIMIT 1 | What is the id of the longest song? | [
"SELECT",
"f_id",
"FROM",
"files",
"ORDER",
"BY",
"duration",
"DESC",
"LIMIT",
"1"
] | [
"select",
"f_id",
"from",
"files",
"order",
"by",
"duration",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"longest",
"song",
"?"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"longest",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
music_1 | SELECT f_id FROM files ORDER BY duration DESC LIMIT 1 | Find the id of the song that lasts the longest. | [
"SELECT",
"f_id",
"FROM",
"files",
"ORDER",
"BY",
"duration",
"DESC",
"LIMIT",
"1"
] | [
"select",
"f_id",
"from",
"files",
"order",
"by",
"duration",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"id",
"of",
"the",
"song",
"that",
"lasts",
"the",
"longest",
"."
] | [
"Find",
"the",
"id",
"of",
"the",
"<mask>",
"that",
"lasts",
"the",
"longest",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
music_1 | SELECT song_name FROM song WHERE languages = "english" | Find the names of all English songs. | [
"SELECT",
"song_name",
"FROM",
"song",
"WHERE",
"languages",
"=",
"``",
"english",
"''"
] | [
"select",
"song_name",
"from",
"song",
"where",
"languages",
"=",
"value"
] | [
"Find",
"the",
"names",
"of",
"all",
"English",
"songs",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"all",
"English",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT song_name FROM song WHERE languages = "english" | What are the names of all songs in English? | [
"SELECT",
"song_name",
"FROM",
"song",
"WHERE",
"languages",
"=",
"``",
"english",
"''"
] | [
"select",
"song_name",
"from",
"song",
"where",
"languages",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"songs",
"in",
"English",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"in",
"English",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT f_id FROM files WHERE formats = "mp3" | What are the id of songs whose format is mp3. | [
"SELECT",
"f_id",
"FROM",
"files",
"WHERE",
"formats",
"=",
"``",
"mp3",
"''"
] | [
"select",
"f_id",
"from",
"files",
"where",
"formats",
"=",
"value"
] | [
"What",
"are",
"the",
"id",
"of",
"songs",
"whose",
"format",
"is",
"mp3",
"."
] | [
"What",
"are",
"the",
"id",
"of",
"<mask>",
"whose",
"format",
"is",
"mp3",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT f_id FROM files WHERE formats = "mp3" | What are the id of all the files in mp3 format? | [
"SELECT",
"f_id",
"FROM",
"files",
"WHERE",
"formats",
"=",
"``",
"mp3",
"''"
] | [
"select",
"f_id",
"from",
"files",
"where",
"formats",
"=",
"value"
] | [
"What",
"are",
"the",
"id",
"of",
"all",
"the",
"files",
"in",
"mp3",
"format",
"?"
] | [
"What",
"are",
"the",
"id",
"of",
"all",
"the",
"<mask>",
"in",
"mp3",
"format",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT DISTINCT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9 | List the name and country of origin for all singers who have produced songs with rating above 9. | [
"SELECT",
"DISTINCT",
"T1.artist_name",
",",
"T1.country",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T2.rating",
">",
"9"
] | [
"select",
"distinct",
"t1",
".",
"artist_name",
",",
"t1",
".",
"country",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
"t2",
".",
"rating",
">",
"value"
] | [
"List",
"the",
"name",
"and",
"country",
"of",
"origin",
"for",
"all",
"singers",
"who",
"have",
"produced",
"songs",
"with",
"rating",
"above",
"9",
"."
] | [
"List",
"the",
"<mask>",
"and",
"<mask>",
"of",
"origin",
"for",
"all",
"singers",
"who",
"have",
"produced",
"<mask>",
"with",
"<mask>",
"above",
"<unk>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
music_1 | SELECT DISTINCT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9 | What are the different names and countries of origins for all artists whose song ratings are above 9? | [
"SELECT",
"DISTINCT",
"T1.artist_name",
",",
"T1.country",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T2.rating",
">",
"9"
] | [
"select",
"distinct",
"t1",
".",
"artist_name",
",",
"t1",
".",
"country",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
"t2",
".",
"rating",
">",
"value"
] | [
"What",
"are",
"the",
"different",
"names",
"and",
"countries",
"of",
"origins",
"for",
"all",
"artists",
"whose",
"song",
"ratings",
"are",
"above",
"9",
"?"
] | [
"What",
"are",
"the",
"different",
"<mask>",
"and",
"<mask>",
"of",
"origins",
"for",
"all",
"<mask>",
"whose",
"<mask>",
"<mask>",
"are",
"above",
"<unk>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
music_1 | SELECT DISTINCT T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800 | List the file size and format for all songs that have resolution lower than 800. | [
"SELECT",
"DISTINCT",
"T1.file_size",
",",
"T1.formats",
"FROM",
"files",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.f_id",
"=",
"T2.f_id",
"WHERE",
"T2.resolution",
"<",
"800"
] | [
"select",
"distinct",
"t1",
".",
"file_size",
",",
"t1",
".",
"formats",
"from",
"files",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"f_id",
"=",
"t2",
".",
"f_id",
"where",
"t2",
".",
"resolution",
"<",
"value"
] | [
"List",
"the",
"file",
"size",
"and",
"format",
"for",
"all",
"songs",
"that",
"have",
"resolution",
"lower",
"than",
"800",
"."
] | [
"List",
"the",
"<mask>",
"<mask>",
"and",
"format",
"for",
"all",
"<mask>",
"that",
"have",
"<mask>",
"lower",
"than",
"<unk>",
"."
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<unk>"
] |
music_1 | SELECT DISTINCT T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800 | What are the file sizes and formats for all songs with a resolution lower than 800? | [
"SELECT",
"DISTINCT",
"T1.file_size",
",",
"T1.formats",
"FROM",
"files",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.f_id",
"=",
"T2.f_id",
"WHERE",
"T2.resolution",
"<",
"800"
] | [
"select",
"distinct",
"t1",
".",
"file_size",
",",
"t1",
".",
"formats",
"from",
"files",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"f_id",
"=",
"t2",
".",
"f_id",
"where",
"t2",
".",
"resolution",
"<",
"value"
] | [
"What",
"are",
"the",
"file",
"sizes",
"and",
"formats",
"for",
"all",
"songs",
"with",
"a",
"resolution",
"lower",
"than",
"800",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"and",
"formats",
"for",
"all",
"<mask>",
"with",
"a",
"<mask>",
"lower",
"than",
"<unk>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"<unk>"
] |
music_1 | SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1 | What is the name of the artist who produced the shortest song? | [
"SELECT",
"T1.artist_name",
"FROM",
"song",
"AS",
"T1",
"JOIN",
"files",
"AS",
"T2",
"ON",
"T1.f_id",
"=",
"T2.f_id",
"ORDER",
"BY",
"T2.duration",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"artist_name",
"from",
"song",
"as",
"t1",
"join",
"files",
"as",
"t2",
"on",
"t1",
".",
"f_id",
"=",
"t2",
".",
"f_id",
"order",
"by",
"t2",
".",
"duration",
"limit",
"value"
] | [
"What",
"is",
"the",
"name",
"of",
"the",
"artist",
"who",
"produced",
"the",
"shortest",
"song",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"produced",
"the",
"shortest",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"limit",
"<unk>"
] |
music_1 | SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1 | What are the names of the artists who sang the shortest song? | [
"SELECT",
"T1.artist_name",
"FROM",
"song",
"AS",
"T1",
"JOIN",
"files",
"AS",
"T2",
"ON",
"T1.f_id",
"=",
"T2.f_id",
"ORDER",
"BY",
"T2.duration",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"artist_name",
"from",
"song",
"as",
"t1",
"join",
"files",
"as",
"t2",
"on",
"t1",
".",
"f_id",
"=",
"t2",
".",
"f_id",
"order",
"by",
"t2",
".",
"duration",
"limit",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"artists",
"who",
"sang",
"the",
"shortest",
"song",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"sang",
"the",
"shortest",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"limit",
"<unk>"
] |
music_1 | SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3 | What are the names and countries of origin for the artists who produced the top three highly rated songs. | [
"SELECT",
"T1.artist_name",
",",
"T1.country",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"ORDER",
"BY",
"T2.rating",
"DESC",
"LIMIT",
"3"
] | [
"select",
"t1",
".",
"artist_name",
",",
"t1",
".",
"country",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"order",
"by",
"t2",
".",
"rating",
"desc",
"limit",
"value"
] | [
"What",
"are",
"the",
"names",
"and",
"countries",
"of",
"origin",
"for",
"the",
"artists",
"who",
"produced",
"the",
"top",
"three",
"highly",
"rated",
"songs",
"."
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"origin",
"for",
"the",
"<mask>",
"who",
"produced",
"the",
"top",
"three",
"highly",
"rated",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc",
"limit",
"<u... |
music_1 | SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3 | What are the names of the singers who sang the top 3 most highly rated songs and what countries do they hail from? | [
"SELECT",
"T1.artist_name",
",",
"T1.country",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"ORDER",
"BY",
"T2.rating",
"DESC",
"LIMIT",
"3"
] | [
"select",
"t1",
".",
"artist_name",
",",
"t1",
".",
"country",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"order",
"by",
"t2",
".",
"rating",
"desc",
"limit",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"singers",
"who",
"sang",
"the",
"top",
"3",
"most",
"highly",
"rated",
"songs",
"and",
"what",
"countries",
"do",
"they",
"hail",
"from",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"singers",
"who",
"sang",
"the",
"top",
"<unk>",
"<mask>",
"highly",
"rated",
"<mask>",
"and",
"what",
"<mask>",
"do",
"they",
"hail",
"from",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc",
"limit",
"<u... |
music_1 | SELECT count(*) FROM files WHERE duration LIKE "4:%" | How many songs have 4 minute duration? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"files",
"WHERE",
"duration",
"LIKE",
"``",
"4",
":",
"%",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"files",
"where",
"duration",
"like",
"value"
] | [
"How",
"many",
"songs",
"have",
"4",
"minute",
"duration",
"?"
] | [
"How",
"many",
"<mask>",
"have",
"<unk>",
"minute",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
music_1 | SELECT count(*) FROM files WHERE duration LIKE "4:%" | What is the count of the songs that last approximately 4 minutes? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"files",
"WHERE",
"duration",
"LIKE",
"``",
"4",
":",
"%",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"files",
"where",
"duration",
"like",
"value"
] | [
"What",
"is",
"the",
"count",
"of",
"the",
"songs",
"that",
"last",
"approximately",
"4",
"minutes",
"?"
] | [
"What",
"is",
"the",
"count",
"of",
"the",
"<mask>",
"that",
"last",
"approximately",
"<unk>",
"minutes",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
music_1 | SELECT count(*) FROM artist WHERE country = "Bangladesh" | How many artists are from Bangladesh? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"artist",
"WHERE",
"country",
"=",
"``",
"Bangladesh",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"artist",
"where",
"country",
"=",
"value"
] | [
"How",
"many",
"artists",
"are",
"from",
"Bangladesh",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"from",
"Bangladesh",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT count(*) FROM artist WHERE country = "Bangladesh" | How many Bangladeshi artists are listed? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"artist",
"WHERE",
"country",
"=",
"``",
"Bangladesh",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"artist",
"where",
"country",
"=",
"value"
] | [
"How",
"many",
"Bangladeshi",
"artists",
"are",
"listed",
"?"
] | [
"How",
"many",
"Bangladeshi",
"<mask>",
"are",
"listed",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" | What is the average rating of songs produced by female artists? | [
"SELECT",
"avg",
"(",
"T2.rating",
")",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T1.gender",
"=",
"``",
"Female",
"''"
] | [
"select",
"avg",
"(",
"t2",
".",
"rating",
")",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
"t1",
".",
"gender",
"=",
"value"
] | [
"What",
"is",
"the",
"average",
"rating",
"of",
"songs",
"produced",
"by",
"female",
"artists",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"of",
"<mask>",
"produced",
"by",
"female",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" | How many songs, on average, are sung by a female artist? | [
"SELECT",
"avg",
"(",
"T2.rating",
")",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T1.gender",
"=",
"``",
"Female",
"''"
] | [
"select",
"avg",
"(",
"t2",
".",
"rating",
")",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
"t1",
".",
"gender",
"=",
"value"
] | [
"How",
"many",
"songs",
",",
"on",
"average",
",",
"are",
"sung",
"by",
"a",
"female",
"artist",
"?"
] | [
"How",
"many",
"<mask>",
",",
"on",
"average",
",",
"are",
"sung",
"by",
"a",
"female",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1 | What is the most popular file format? | [
"SELECT",
"formats",
"FROM",
"files",
"GROUP",
"BY",
"formats",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"formats",
"from",
"files",
"group",
"by",
"formats",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"most",
"popular",
"file",
"format",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"<mask>",
"<mask>",
"format",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
music_1 | SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1 | Find the file format that is used by the most files. | [
"SELECT",
"formats",
"FROM",
"files",
"GROUP",
"BY",
"formats",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"formats",
"from",
"files",
"group",
"by",
"formats",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"file",
"format",
"that",
"is",
"used",
"by",
"the",
"most",
"files",
"."
] | [
"Find",
"the",
"<mask>",
"format",
"that",
"is",
"used",
"by",
"the",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
music_1 | SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT artist_name FROM song WHERE languages = "english" | Find the names of the artists who are from UK and have produced English songs. | [
"SELECT",
"artist_name",
"FROM",
"artist",
"WHERE",
"country",
"=",
"``",
"UK",
"''",
"INTERSECT",
"SELECT",
"artist_name",
"FROM",
"song",
"WHERE",
"languages",
"=",
"``",
"english",
"''"
] | [
"select",
"artist_name",
"from",
"artist",
"where",
"country",
"=",
"value",
"intersect",
"select",
"artist_name",
"from",
"song",
"where",
"languages",
"=",
"value"
] | [
"Find",
"the",
"names",
"of",
"the",
"artists",
"who",
"are",
"from",
"UK",
"and",
"have",
"produced",
"English",
"songs",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"are",
"from",
"UK",
"and",
"have",
"produced",
"English",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT artist_name FROM song WHERE languages = "english" | What are the names of the artists that are from the UK and sang songs in English? | [
"SELECT",
"artist_name",
"FROM",
"artist",
"WHERE",
"country",
"=",
"``",
"UK",
"''",
"INTERSECT",
"SELECT",
"artist_name",
"FROM",
"song",
"WHERE",
"languages",
"=",
"``",
"english",
"''"
] | [
"select",
"artist_name",
"from",
"artist",
"where",
"country",
"=",
"value",
"intersect",
"select",
"artist_name",
"from",
"song",
"where",
"languages",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"artists",
"that",
"are",
"from",
"the",
"UK",
"and",
"sang",
"songs",
"in",
"English",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"are",
"from",
"the",
"UK",
"and",
"sang",
"<mask>",
"in",
"English",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT f_id FROM files WHERE formats = "mp4" INTERSECT SELECT f_id FROM song WHERE resolution < 1000 | Find the id of songs that are available in mp4 format and have resolution lower than 1000. | [
"SELECT",
"f_id",
"FROM",
"files",
"WHERE",
"formats",
"=",
"``",
"mp4",
"''",
"INTERSECT",
"SELECT",
"f_id",
"FROM",
"song",
"WHERE",
"resolution",
"<",
"1000"
] | [
"select",
"f_id",
"from",
"files",
"where",
"formats",
"=",
"value",
"intersect",
"select",
"f_id",
"from",
"song",
"where",
"resolution",
"<",
"value"
] | [
"Find",
"the",
"id",
"of",
"songs",
"that",
"are",
"available",
"in",
"mp4",
"format",
"and",
"have",
"resolution",
"lower",
"than",
"1000",
"."
] | [
"Find",
"the",
"id",
"of",
"<mask>",
"that",
"are",
"available",
"in",
"mp4",
"format",
"and",
"have",
"<mask>",
"lower",
"than",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>"
] |
music_1 | SELECT f_id FROM files WHERE formats = "mp4" INTERSECT SELECT f_id FROM song WHERE resolution < 1000 | What is the id of the files that are available in the format of mp4 and a resolution smaller than 1000? | [
"SELECT",
"f_id",
"FROM",
"files",
"WHERE",
"formats",
"=",
"``",
"mp4",
"''",
"INTERSECT",
"SELECT",
"f_id",
"FROM",
"song",
"WHERE",
"resolution",
"<",
"1000"
] | [
"select",
"f_id",
"from",
"files",
"where",
"formats",
"=",
"value",
"intersect",
"select",
"f_id",
"from",
"song",
"where",
"resolution",
"<",
"value"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"files",
"that",
"are",
"available",
"in",
"the",
"format",
"of",
"mp4",
"and",
"a",
"resolution",
"smaller",
"than",
"1000",
"?"
] | [
"What",
"is",
"the",
"id",
"of",
"the",
"<mask>",
"that",
"are",
"available",
"in",
"the",
"format",
"of",
"mp4",
"and",
"a",
"<mask>",
"smaller",
"than",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>"
] |
music_1 | SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" AND T2.languages = "bangla" | What is the country of origin of the artist who is female and produced a song in Bangla? | [
"SELECT",
"T1.country",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T1.gender",
"=",
"``",
"Female",
"''",
"AND",
"T2.languages",
"=",
"``",
"bangla",
"''"
] | [
"select",
"t1",
".",
"country",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
"t1",
".",
"gender",
"=",
"value",
"and",
"t2",
".",
"languages",
"=",
"value"
] | [
"What",
"is",
"the",
"country",
"of",
"origin",
"of",
"the",
"artist",
"who",
"is",
"female",
"and",
"produced",
"a",
"song",
"in",
"Bangla",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"origin",
"of",
"the",
"<mask>",
"who",
"is",
"female",
"and",
"produced",
"a",
"<mask>",
"in",
"Bangla",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<unk... |
music_1 | SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" AND T2.languages = "bangla" | What countries are the female artists who sung in the language Bangla from? | [
"SELECT",
"T1.country",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T1.gender",
"=",
"``",
"Female",
"''",
"AND",
"T2.languages",
"=",
"``",
"bangla",
"''"
] | [
"select",
"t1",
".",
"country",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
"t1",
".",
"gender",
"=",
"value",
"and",
"t2",
".",
"languages",
"=",
"value"
] | [
"What",
"countries",
"are",
"the",
"female",
"artists",
"who",
"sung",
"in",
"the",
"language",
"Bangla",
"from",
"?"
] | [
"What",
"<mask>",
"are",
"the",
"female",
"<mask>",
"who",
"sung",
"in",
"the",
"language",
"Bangla",
"from",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"<mask>",
"=",
"<unk... |
music_1 | SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800 | What is the average duration of songs that have mp3 format and resolution below 800? | [
"SELECT",
"avg",
"(",
"T1.duration",
")",
"FROM",
"files",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.f_id",
"=",
"T2.f_id",
"WHERE",
"T1.formats",
"=",
"``",
"mp3",
"''",
"AND",
"T2.resolution",
"<",
"800"
] | [
"select",
"avg",
"(",
"t1",
".",
"duration",
")",
"from",
"files",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"f_id",
"=",
"t2",
".",
"f_id",
"where",
"t1",
".",
"formats",
"=",
"value",
"and",
"t2",
".",
"resolution",
"<",
"value"
] | [
"What",
"is",
"the",
"average",
"duration",
"of",
"songs",
"that",
"have",
"mp3",
"format",
"and",
"resolution",
"below",
"800",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"of",
"<mask>",
"that",
"have",
"mp3",
"format",
"and",
"<mask>",
"below",
"<unk>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"... |
music_1 | SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800 | What is the average song duration for the songs that are in mp3 format and whose resolution below 800? | [
"SELECT",
"avg",
"(",
"T1.duration",
")",
"FROM",
"files",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.f_id",
"=",
"T2.f_id",
"WHERE",
"T1.formats",
"=",
"``",
"mp3",
"''",
"AND",
"T2.resolution",
"<",
"800"
] | [
"select",
"avg",
"(",
"t1",
".",
"duration",
")",
"from",
"files",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"f_id",
"=",
"t2",
".",
"f_id",
"where",
"t1",
".",
"formats",
"=",
"value",
"and",
"t2",
".",
"resolution",
"<",
"value"
] | [
"What",
"is",
"the",
"average",
"song",
"duration",
"for",
"the",
"songs",
"that",
"are",
"in",
"mp3",
"format",
"and",
"whose",
"resolution",
"below",
"800",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"<mask>",
"for",
"the",
"<mask>",
"that",
"are",
"in",
"mp3",
"format",
"and",
"whose",
"<mask>",
"below",
"<unk>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
".",
"... |
music_1 | SELECT count(*) , gender FROM artist GROUP BY gender | What is the number of artists for each gender? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"gender",
"FROM",
"artist",
"GROUP",
"BY",
"gender"
] | [
"select",
"count",
"(",
"*",
")",
",",
"gender",
"from",
"artist",
"group",
"by",
"gender"
] | [
"What",
"is",
"the",
"number",
"of",
"artists",
"for",
"each",
"gender",
"?"
] | [
"What",
"is",
"the",
"number",
"of",
"<mask>",
"for",
"each",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
music_1 | SELECT count(*) , gender FROM artist GROUP BY gender | How many artists are male and how many are female? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"gender",
"FROM",
"artist",
"GROUP",
"BY",
"gender"
] | [
"select",
"count",
"(",
"*",
")",
",",
"gender",
"from",
"artist",
"group",
"by",
"gender"
] | [
"How",
"many",
"artists",
"are",
"male",
"and",
"how",
"many",
"are",
"female",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"male",
"and",
"how",
"many",
"are",
"female",
"?"
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
music_1 | SELECT avg(rating) , languages FROM song GROUP BY languages | What is the average rating of songs for each language? | [
"SELECT",
"avg",
"(",
"rating",
")",
",",
"languages",
"FROM",
"song",
"GROUP",
"BY",
"languages"
] | [
"select",
"avg",
"(",
"rating",
")",
",",
"languages",
"from",
"song",
"group",
"by",
"languages"
] | [
"What",
"is",
"the",
"average",
"rating",
"of",
"songs",
"for",
"each",
"language",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"of",
"<mask>",
"for",
"each",
"language",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
music_1 | SELECT avg(rating) , languages FROM song GROUP BY languages | What is the average song rating for each language? | [
"SELECT",
"avg",
"(",
"rating",
")",
",",
"languages",
"FROM",
"song",
"GROUP",
"BY",
"languages"
] | [
"select",
"avg",
"(",
"rating",
")",
",",
"languages",
"from",
"song",
"group",
"by",
"languages"
] | [
"What",
"is",
"the",
"average",
"song",
"rating",
"for",
"each",
"language",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"<mask>",
"for",
"each",
"language",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
music_1 | SELECT T1.gender , T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1 | Return the gender and name of artist who produced the song with the lowest resolution. | [
"SELECT",
"T1.gender",
",",
"T1.artist_name",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"ORDER",
"BY",
"T2.resolution",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"gender",
",",
"t1",
".",
"artist_name",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"order",
"by",
"t2",
".",
"resolution",
"limit",
"value"
] | [
"Return",
"the",
"gender",
"and",
"name",
"of",
"artist",
"who",
"produced",
"the",
"song",
"with",
"the",
"lowest",
"resolution",
"."
] | [
"Return",
"the",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"who",
"produced",
"the",
"<mask>",
"with",
"the",
"lowest",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"limit",
"<unk>"
] |
music_1 | SELECT T1.gender , T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1 | What is the gender and name of the artist who sang the song with the smallest resolution? | [
"SELECT",
"T1.gender",
",",
"T1.artist_name",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"ORDER",
"BY",
"T2.resolution",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"gender",
",",
"t1",
".",
"artist_name",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"order",
"by",
"t2",
".",
"resolution",
"limit",
"value"
] | [
"What",
"is",
"the",
"gender",
"and",
"name",
"of",
"the",
"artist",
"who",
"sang",
"the",
"song",
"with",
"the",
"smallest",
"resolution",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"who",
"sang",
"the",
"<mask>",
"with",
"the",
"smallest",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"limit",
"<unk>"
] |
music_1 | SELECT count(*) , formats FROM files GROUP BY formats | For each file format, return the number of artists who released songs in that format. | [
"SELECT",
"count",
"(",
"*",
")",
",",
"formats",
"FROM",
"files",
"GROUP",
"BY",
"formats"
] | [
"select",
"count",
"(",
"*",
")",
",",
"formats",
"from",
"files",
"group",
"by",
"formats"
] | [
"For",
"each",
"file",
"format",
",",
"return",
"the",
"number",
"of",
"artists",
"who",
"released",
"songs",
"in",
"that",
"format",
"."
] | [
"For",
"each",
"<mask>",
"format",
",",
"return",
"the",
"number",
"of",
"<mask>",
"who",
"released",
"<mask>",
"in",
"that",
"format",
"."
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
music_1 | SELECT count(*) , formats FROM files GROUP BY formats | How many songs were released for each format? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"formats",
"FROM",
"files",
"GROUP",
"BY",
"formats"
] | [
"select",
"count",
"(",
"*",
")",
",",
"formats",
"from",
"files",
"group",
"by",
"formats"
] | [
"How",
"many",
"songs",
"were",
"released",
"for",
"each",
"format",
"?"
] | [
"How",
"many",
"<mask>",
"were",
"released",
"for",
"each",
"format",
"?"
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
music_1 | SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT min(resolution) FROM song WHERE languages = "english") | Find the distinct names of all songs that have a higher resolution than some songs in English. | [
"SELECT",
"DISTINCT",
"song_name",
"FROM",
"song",
"WHERE",
"resolution",
">",
"(",
"SELECT",
"min",
"(",
"resolution",
")",
"FROM",
"song",
"WHERE",
"languages",
"=",
"``",
"english",
"''",
")"
] | [
"select",
"distinct",
"song_name",
"from",
"song",
"where",
"resolution",
">",
"(",
"select",
"min",
"(",
"resolution",
")",
"from",
"song",
"where",
"languages",
"=",
"value",
")"
] | [
"Find",
"the",
"distinct",
"names",
"of",
"all",
"songs",
"that",
"have",
"a",
"higher",
"resolution",
"than",
"some",
"songs",
"in",
"English",
"."
] | [
"Find",
"the",
"distinct",
"<mask>",
"of",
"all",
"<mask>",
"that",
"have",
"a",
"higher",
"<mask>",
"than",
"some",
"<mask>",
"in",
"English",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"min",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
music_1 | SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT min(resolution) FROM song WHERE languages = "english") | What are the different names for all songs that have a higher resolution than English songs? | [
"SELECT",
"DISTINCT",
"song_name",
"FROM",
"song",
"WHERE",
"resolution",
">",
"(",
"SELECT",
"min",
"(",
"resolution",
")",
"FROM",
"song",
"WHERE",
"languages",
"=",
"``",
"english",
"''",
")"
] | [
"select",
"distinct",
"song_name",
"from",
"song",
"where",
"resolution",
">",
"(",
"select",
"min",
"(",
"resolution",
")",
"from",
"song",
"where",
"languages",
"=",
"value",
")"
] | [
"What",
"are",
"the",
"different",
"names",
"for",
"all",
"songs",
"that",
"have",
"a",
"higher",
"resolution",
"than",
"English",
"songs",
"?"
] | [
"What",
"are",
"the",
"different",
"<mask>",
"for",
"all",
"<mask>",
"that",
"have",
"a",
"higher",
"<mask>",
"than",
"English",
"<mask>",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"min",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
music_1 | SELECT song_name FROM song WHERE rating < (SELECT max(rating) FROM song WHERE genre_is = "blues") | What are the names of all songs that have a lower rating than some song of blues genre? | [
"SELECT",
"song_name",
"FROM",
"song",
"WHERE",
"rating",
"<",
"(",
"SELECT",
"max",
"(",
"rating",
")",
"FROM",
"song",
"WHERE",
"genre_is",
"=",
"``",
"blues",
"''",
")"
] | [
"select",
"song_name",
"from",
"song",
"where",
"rating",
"<",
"(",
"select",
"max",
"(",
"rating",
")",
"from",
"song",
"where",
"genre_is",
"=",
"value",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"songs",
"that",
"have",
"a",
"lower",
"rating",
"than",
"some",
"song",
"of",
"blues",
"genre",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"have",
"a",
"lower",
"<mask>",
"than",
"some",
"<mask>",
"of",
"blues",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"(",
"select",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
music_1 | SELECT song_name FROM song WHERE rating < (SELECT max(rating) FROM song WHERE genre_is = "blues") | What are the names of the songs that have a lower rating than at least one blues song? | [
"SELECT",
"song_name",
"FROM",
"song",
"WHERE",
"rating",
"<",
"(",
"SELECT",
"max",
"(",
"rating",
")",
"FROM",
"song",
"WHERE",
"genre_is",
"=",
"``",
"blues",
"''",
")"
] | [
"select",
"song_name",
"from",
"song",
"where",
"rating",
"<",
"(",
"select",
"max",
"(",
"rating",
")",
"from",
"song",
"where",
"genre_is",
"=",
"value",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"songs",
"that",
"have",
"a",
"lower",
"rating",
"than",
"at",
"least",
"one",
"blues",
"song",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"have",
"a",
"lower",
"<mask>",
"than",
"at",
"least",
"one",
"blues",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"(",
"select",
"max",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
")"
] |
music_1 | SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE "%love%" | What is the name and country of origin of the artist who released a song that has "love" in its title? | [
"SELECT",
"T1.artist_name",
",",
"T1.country",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T2.song_name",
"LIKE",
"``",
"%",
"love",
"%",
"''"
] | [
"select",
"t1",
".",
"artist_name",
",",
"t1",
".",
"country",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
"t2",
".",
"song_name",
"like",
"value"
] | [
"What",
"is",
"the",
"name",
"and",
"country",
"of",
"origin",
"of",
"the",
"artist",
"who",
"released",
"a",
"song",
"that",
"has",
"``",
"love",
"''",
"in",
"its",
"title",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"and",
"<mask>",
"of",
"origin",
"of",
"the",
"<mask>",
"who",
"released",
"a",
"<mask>",
"that",
"has",
"``",
"love",
"''",
"in",
"its",
"title",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"like",
"<unk>"
] |
music_1 | SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE "%love%" | What are the names of the artists who released a song that has the word love in its title, and where are the artists from? | [
"SELECT",
"T1.artist_name",
",",
"T1.country",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T2.song_name",
"LIKE",
"``",
"%",
"love",
"%",
"''"
] | [
"select",
"t1",
".",
"artist_name",
",",
"t1",
".",
"country",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
"t2",
".",
"song_name",
"like",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"artists",
"who",
"released",
"a",
"song",
"that",
"has",
"the",
"word",
"love",
"in",
"its",
"title",
",",
"and",
"where",
"are",
"the",
"artists",
"from",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"released",
"a",
"<mask>",
"that",
"has",
"the",
"word",
"love",
"in",
"its",
"title",
",",
"and",
"where",
"are",
"the",
"<mask>",
"from",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"like",
"<unk>"
] |
music_1 | SELECT T1.artist_name , T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE "%Mar%" | List the name and gender for all artists who released songs in March. | [
"SELECT",
"T1.artist_name",
",",
"T1.gender",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T2.releasedate",
"LIKE",
"``",
"%",
"Mar",
"%",
"''"
] | [
"select",
"t1",
".",
"artist_name",
",",
"t1",
".",
"gender",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
"t2",
".",
"releasedate",
"like",
"value"
] | [
"List",
"the",
"name",
"and",
"gender",
"for",
"all",
"artists",
"who",
"released",
"songs",
"in",
"March",
"."
] | [
"List",
"the",
"<mask>",
"and",
"<mask>",
"for",
"all",
"<mask>",
"who",
"released",
"<mask>",
"in",
"March",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"like",
"<unk>"
] |
music_1 | SELECT T1.artist_name , T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE "%Mar%" | What are the names and genders of all artists who released songs in the month of March? | [
"SELECT",
"T1.artist_name",
",",
"T1.gender",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T2.releasedate",
"LIKE",
"``",
"%",
"Mar",
"%",
"''"
] | [
"select",
"t1",
".",
"artist_name",
",",
"t1",
".",
"gender",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
"t2",
".",
"releasedate",
"like",
"value"
] | [
"What",
"are",
"the",
"names",
"and",
"genders",
"of",
"all",
"artists",
"who",
"released",
"songs",
"in",
"the",
"month",
"of",
"March",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"all",
"<mask>",
"who",
"released",
"<mask>",
"in",
"the",
"month",
"of",
"March",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"like",
"<unk>"
] |
music_1 | SELECT g_name , rating FROM genre ORDER BY g_name | List the names of all genres in alphabetical oder, together with its ratings. | [
"SELECT",
"g_name",
",",
"rating",
"FROM",
"genre",
"ORDER",
"BY",
"g_name"
] | [
"select",
"g_name",
",",
"rating",
"from",
"genre",
"order",
"by",
"g_name"
] | [
"List",
"the",
"names",
"of",
"all",
"genres",
"in",
"alphabetical",
"oder",
",",
"together",
"with",
"its",
"ratings",
"."
] | [
"List",
"the",
"<mask>",
"of",
"all",
"<mask>",
"in",
"alphabetical",
"oder",
",",
"together",
"with",
"its",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
music_1 | SELECT g_name , rating FROM genre ORDER BY g_name | What are the names of all genres in alphabetical order, combined with its ratings? | [
"SELECT",
"g_name",
",",
"rating",
"FROM",
"genre",
"ORDER",
"BY",
"g_name"
] | [
"select",
"g_name",
",",
"rating",
"from",
"genre",
"order",
"by",
"g_name"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"genres",
"in",
"alphabetical",
"order",
",",
"combined",
"with",
"its",
"ratings",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"in",
"alphabetical",
"order",
",",
"combined",
"with",
"its",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
music_1 | SELECT song_name FROM song ORDER BY resolution | Give me a list of the names of all songs ordered by their resolution. | [
"SELECT",
"song_name",
"FROM",
"song",
"ORDER",
"BY",
"resolution"
] | [
"select",
"song_name",
"from",
"song",
"order",
"by",
"resolution"
] | [
"Give",
"me",
"a",
"list",
"of",
"the",
"names",
"of",
"all",
"songs",
"ordered",
"by",
"their",
"resolution",
"."
] | [
"Give",
"me",
"a",
"list",
"of",
"the",
"<mask>",
"of",
"all",
"<mask>",
"ordered",
"by",
"their",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
music_1 | SELECT song_name FROM song ORDER BY resolution | What are the names of all songs that are ordered by their resolution numbers? | [
"SELECT",
"song_name",
"FROM",
"song",
"ORDER",
"BY",
"resolution"
] | [
"select",
"song_name",
"from",
"song",
"order",
"by",
"resolution"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"songs",
"that",
"are",
"ordered",
"by",
"their",
"resolution",
"numbers",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"are",
"ordered",
"by",
"their",
"<mask>",
"numbers",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
music_1 | SELECT f_id FROM files WHERE formats = "mp4" UNION SELECT f_id FROM song WHERE resolution > 720 | What are the ids of songs that are available in either mp4 format or have resolution above 720? | [
"SELECT",
"f_id",
"FROM",
"files",
"WHERE",
"formats",
"=",
"``",
"mp4",
"''",
"UNION",
"SELECT",
"f_id",
"FROM",
"song",
"WHERE",
"resolution",
">",
"720"
] | [
"select",
"f_id",
"from",
"files",
"where",
"formats",
"=",
"value",
"union",
"select",
"f_id",
"from",
"song",
"where",
"resolution",
">",
"value"
] | [
"What",
"are",
"the",
"ids",
"of",
"songs",
"that",
"are",
"available",
"in",
"either",
"mp4",
"format",
"or",
"have",
"resolution",
"above",
"720",
"?"
] | [
"What",
"are",
"the",
"ids",
"of",
"<mask>",
"that",
"are",
"available",
"in",
"either",
"mp4",
"format",
"or",
"have",
"<mask>",
"above",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"union",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
music_1 | SELECT f_id FROM files WHERE formats = "mp4" UNION SELECT f_id FROM song WHERE resolution > 720 | What are the ids of all songs that are available on mp4 or have a higher resolution than 720? | [
"SELECT",
"f_id",
"FROM",
"files",
"WHERE",
"formats",
"=",
"``",
"mp4",
"''",
"UNION",
"SELECT",
"f_id",
"FROM",
"song",
"WHERE",
"resolution",
">",
"720"
] | [
"select",
"f_id",
"from",
"files",
"where",
"formats",
"=",
"value",
"union",
"select",
"f_id",
"from",
"song",
"where",
"resolution",
">",
"value"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"songs",
"that",
"are",
"available",
"on",
"mp4",
"or",
"have",
"a",
"higher",
"resolution",
"than",
"720",
"?"
] | [
"What",
"are",
"the",
"ids",
"of",
"all",
"<mask>",
"that",
"are",
"available",
"on",
"mp4",
"or",
"have",
"a",
"higher",
"<mask>",
"than",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"union",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>"
] |
music_1 | SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages = "english" | List the names of all songs that have 4 minute duration or are in English. | [
"SELECT",
"T2.song_name",
"FROM",
"files",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.f_id",
"=",
"T2.f_id",
"WHERE",
"T1.duration",
"LIKE",
"``",
"4",
":",
"%",
"''",
"UNION",
"SELECT",
"song_name",
"FROM",
"song",
"WHERE",
"languages",
"=",
"``",
... | [
"select",
"t2",
".",
"song_name",
"from",
"files",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"f_id",
"=",
"t2",
".",
"f_id",
"where",
"t1",
".",
"duration",
"like",
"value",
"union",
"select",
"song_name",
"from",
"song",
"where",
"langu... | [
"List",
"the",
"names",
"of",
"all",
"songs",
"that",
"have",
"4",
"minute",
"duration",
"or",
"are",
"in",
"English",
"."
] | [
"List",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"have",
"<unk>",
"minute",
"<mask>",
"or",
"are",
"in",
"English",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"like",
"<unk>",
"union",
"select",
"<mask>",
"from",
"<ma... |
music_1 | SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages = "english" | What are the names of all songs that are approximately 4 minutes long or are in English? | [
"SELECT",
"T2.song_name",
"FROM",
"files",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.f_id",
"=",
"T2.f_id",
"WHERE",
"T1.duration",
"LIKE",
"``",
"4",
":",
"%",
"''",
"UNION",
"SELECT",
"song_name",
"FROM",
"song",
"WHERE",
"languages",
"=",
"``",
... | [
"select",
"t2",
".",
"song_name",
"from",
"files",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"f_id",
"=",
"t2",
".",
"f_id",
"where",
"t1",
".",
"duration",
"like",
"value",
"union",
"select",
"song_name",
"from",
"song",
"where",
"langu... | [
"What",
"are",
"the",
"names",
"of",
"all",
"songs",
"that",
"are",
"approximately",
"4",
"minutes",
"long",
"or",
"are",
"in",
"English",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"are",
"approximately",
"<unk>",
"minutes",
"long",
"or",
"are",
"in",
"English",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"like",
"<unk>",
"union",
"select",
"<mask>",
"from",
"<ma... |
music_1 | SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1 | What is the language used most often in the songs? | [
"SELECT",
"languages",
"FROM",
"song",
"GROUP",
"BY",
"languages",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"languages",
"from",
"song",
"group",
"by",
"languages",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"language",
"used",
"most",
"often",
"in",
"the",
"songs",
"?"
] | [
"What",
"is",
"the",
"language",
"used",
"<mask>",
"often",
"in",
"the",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
music_1 | SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1 | What are the languages that are used most often in songs? | [
"SELECT",
"languages",
"FROM",
"song",
"GROUP",
"BY",
"languages",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"languages",
"from",
"song",
"group",
"by",
"languages",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"are",
"the",
"languages",
"that",
"are",
"used",
"most",
"often",
"in",
"songs",
"?"
] | [
"What",
"are",
"the",
"languages",
"that",
"are",
"used",
"<mask>",
"often",
"in",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
music_1 | SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1 | What is the language that was used most often in songs with resolution above 500? | [
"SELECT",
"artist_name",
"FROM",
"song",
"WHERE",
"resolution",
">",
"500",
"GROUP",
"BY",
"languages",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"artist_name",
"from",
"song",
"where",
"resolution",
">",
"value",
"group",
"by",
"languages",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"language",
"that",
"was",
"used",
"most",
"often",
"in",
"songs",
"with",
"resolution",
"above",
"500",
"?"
] | [
"What",
"is",
"the",
"language",
"that",
"was",
"used",
"<mask>",
"often",
"in",
"<mask>",
"with",
"<mask>",
"above",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
music_1 | SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1 | What is the name of the artist, for each language, that has the most songs with a higher resolution than 500? | [
"SELECT",
"artist_name",
"FROM",
"song",
"WHERE",
"resolution",
">",
"500",
"GROUP",
"BY",
"languages",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"artist_name",
"from",
"song",
"where",
"resolution",
">",
"value",
"group",
"by",
"languages",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"name",
"of",
"the",
"artist",
",",
"for",
"each",
"language",
",",
"that",
"has",
"the",
"most",
"songs",
"with",
"a",
"higher",
"resolution",
"than",
"500",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
",",
"for",
"each",
"language",
",",
"that",
"has",
"the",
"<mask>",
"<mask>",
"with",
"a",
"higher",
"<mask>",
"than",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"<unk>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
music_1 | SELECT artist_name FROM artist WHERE country = "UK" AND gender = "Male" | What are the names of artists who are Male and are from UK? | [
"SELECT",
"artist_name",
"FROM",
"artist",
"WHERE",
"country",
"=",
"``",
"UK",
"''",
"AND",
"gender",
"=",
"``",
"Male",
"''"
] | [
"select",
"artist_name",
"from",
"artist",
"where",
"country",
"=",
"value",
"and",
"gender",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"artists",
"who",
"are",
"Male",
"and",
"are",
"from",
"UK",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"are",
"Male",
"and",
"are",
"from",
"UK",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT artist_name FROM artist WHERE country = "UK" AND gender = "Male" | What are the names of all male British artists? | [
"SELECT",
"artist_name",
"FROM",
"artist",
"WHERE",
"country",
"=",
"``",
"UK",
"''",
"AND",
"gender",
"=",
"``",
"Male",
"''"
] | [
"select",
"artist_name",
"from",
"artist",
"where",
"country",
"=",
"value",
"and",
"gender",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"male",
"British",
"artists",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"male",
"British",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"and",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT song_name FROM song WHERE genre_is = "modern" OR languages = "english" | Find the names of songs whose genre is modern or language is English. | [
"SELECT",
"song_name",
"FROM",
"song",
"WHERE",
"genre_is",
"=",
"``",
"modern",
"''",
"OR",
"languages",
"=",
"``",
"english",
"''"
] | [
"select",
"song_name",
"from",
"song",
"where",
"genre_is",
"=",
"value",
"or",
"languages",
"=",
"value"
] | [
"Find",
"the",
"names",
"of",
"songs",
"whose",
"genre",
"is",
"modern",
"or",
"language",
"is",
"English",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"<mask>",
"whose",
"<mask>",
"is",
"modern",
"or",
"language",
"is",
"English",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT song_name FROM song WHERE genre_is = "modern" OR languages = "english" | What are the names of the songs that are modern or sung in English? | [
"SELECT",
"song_name",
"FROM",
"song",
"WHERE",
"genre_is",
"=",
"``",
"modern",
"''",
"OR",
"languages",
"=",
"``",
"english",
"''"
] | [
"select",
"song_name",
"from",
"song",
"where",
"genre_is",
"=",
"value",
"or",
"languages",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"songs",
"that",
"are",
"modern",
"or",
"sung",
"in",
"English",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"are",
"modern",
"or",
"sung",
"in",
"English",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" INTERSECT SELECT song_name FROM song WHERE resolution < 1000 | Return the names of songs for which format is mp3 and resolution is below 1000. | [
"SELECT",
"T2.song_name",
"FROM",
"files",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.f_id",
"=",
"T2.f_id",
"WHERE",
"T1.formats",
"=",
"``",
"mp3",
"''",
"INTERSECT",
"SELECT",
"song_name",
"FROM",
"song",
"WHERE",
"resolution",
"<",
"1000"
] | [
"select",
"t2",
".",
"song_name",
"from",
"files",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"f_id",
"=",
"t2",
".",
"f_id",
"where",
"t1",
".",
"formats",
"=",
"value",
"intersect",
"select",
"song_name",
"from",
"song",
"where",
"resol... | [
"Return",
"the",
"names",
"of",
"songs",
"for",
"which",
"format",
"is",
"mp3",
"and",
"resolution",
"is",
"below",
"1000",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"<mask>",
"for",
"which",
"format",
"is",
"mp3",
"and",
"<mask>",
"is",
"below",
"<unk>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<m... |
music_1 | SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" INTERSECT SELECT song_name FROM song WHERE resolution < 1000 | What are the names of all songs that are in mp3 format and have a resolution lower than 1000? | [
"SELECT",
"T2.song_name",
"FROM",
"files",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.f_id",
"=",
"T2.f_id",
"WHERE",
"T1.formats",
"=",
"``",
"mp3",
"''",
"INTERSECT",
"SELECT",
"song_name",
"FROM",
"song",
"WHERE",
"resolution",
"<",
"1000"
] | [
"select",
"t2",
".",
"song_name",
"from",
"files",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"f_id",
"=",
"t2",
".",
"f_id",
"where",
"t1",
".",
"formats",
"=",
"value",
"intersect",
"select",
"song_name",
"from",
"song",
"where",
"resol... | [
"What",
"are",
"the",
"names",
"of",
"all",
"songs",
"that",
"are",
"in",
"mp3",
"format",
"and",
"have",
"a",
"resolution",
"lower",
"than",
"1000",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"<mask>",
"that",
"are",
"in",
"mp3",
"format",
"and",
"have",
"a",
"<mask>",
"lower",
"than",
"<unk>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<m... |
music_1 | SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" | Return the names of singers who are from UK and released an English song. | [
"SELECT",
"artist_name",
"FROM",
"artist",
"WHERE",
"country",
"=",
"``",
"UK",
"''",
"INTERSECT",
"SELECT",
"T1.artist_name",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T2.languages",
"=",
... | [
"select",
"artist_name",
"from",
"artist",
"where",
"country",
"=",
"value",
"intersect",
"select",
"t1",
".",
"artist_name",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
... | [
"Return",
"the",
"names",
"of",
"singers",
"who",
"are",
"from",
"UK",
"and",
"released",
"an",
"English",
"song",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"singers",
"who",
"are",
"from",
"UK",
"and",
"released",
"an",
"English",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
... |
music_1 | SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" | What are the names of all singers that are from the UK and released a song in English? | [
"SELECT",
"artist_name",
"FROM",
"artist",
"WHERE",
"country",
"=",
"``",
"UK",
"''",
"INTERSECT",
"SELECT",
"T1.artist_name",
"FROM",
"artist",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.artist_name",
"=",
"T2.artist_name",
"WHERE",
"T2.languages",
"=",
... | [
"select",
"artist_name",
"from",
"artist",
"where",
"country",
"=",
"value",
"intersect",
"select",
"t1",
".",
"artist_name",
"from",
"artist",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"artist_name",
"=",
"t2",
".",
"artist_name",
"where",
... | [
"What",
"are",
"the",
"names",
"of",
"all",
"singers",
"that",
"are",
"from",
"the",
"UK",
"and",
"released",
"a",
"song",
"in",
"English",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"all",
"singers",
"that",
"are",
"from",
"the",
"UK",
"and",
"released",
"a",
"<mask>",
"in",
"English",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
... |
music_1 | SELECT avg(rating) , avg(resolution) FROM song WHERE languages = "bangla" | What are the average rating and resolution of songs that are in Bangla? | [
"SELECT",
"avg",
"(",
"rating",
")",
",",
"avg",
"(",
"resolution",
")",
"FROM",
"song",
"WHERE",
"languages",
"=",
"``",
"bangla",
"''"
] | [
"select",
"avg",
"(",
"rating",
")",
",",
"avg",
"(",
"resolution",
")",
"from",
"song",
"where",
"languages",
"=",
"value"
] | [
"What",
"are",
"the",
"average",
"rating",
"and",
"resolution",
"of",
"songs",
"that",
"are",
"in",
"Bangla",
"?"
] | [
"What",
"are",
"the",
"average",
"<mask>",
"and",
"<mask>",
"of",
"<mask>",
"that",
"are",
"in",
"Bangla",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT avg(rating) , avg(resolution) FROM song WHERE languages = "bangla" | What is the average rating and resolution of all bangla songs? | [
"SELECT",
"avg",
"(",
"rating",
")",
",",
"avg",
"(",
"resolution",
")",
"FROM",
"song",
"WHERE",
"languages",
"=",
"``",
"bangla",
"''"
] | [
"select",
"avg",
"(",
"rating",
")",
",",
"avg",
"(",
"resolution",
")",
"from",
"song",
"where",
"languages",
"=",
"value"
] | [
"What",
"is",
"the",
"average",
"rating",
"and",
"resolution",
"of",
"all",
"bangla",
"songs",
"?"
] | [
"What",
"is",
"the",
"average",
"<mask>",
"and",
"<mask>",
"of",
"all",
"bangla",
"<mask>",
"?"
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
music_1 | SELECT max(T2.resolution) , min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "3:%" | What are the maximum and minimum resolution of songs whose duration is 3 minutes? | [
"SELECT",
"max",
"(",
"T2.resolution",
")",
",",
"min",
"(",
"T2.resolution",
")",
"FROM",
"files",
"AS",
"T1",
"JOIN",
"song",
"AS",
"T2",
"ON",
"T1.f_id",
"=",
"T2.f_id",
"WHERE",
"T1.duration",
"LIKE",
"``",
"3",
":",
"%",
"''"
] | [
"select",
"max",
"(",
"t2",
".",
"resolution",
")",
",",
"min",
"(",
"t2",
".",
"resolution",
")",
"from",
"files",
"as",
"t1",
"join",
"song",
"as",
"t2",
"on",
"t1",
".",
"f_id",
"=",
"t2",
".",
"f_id",
"where",
"t1",
".",
"duration",
"like",
"... | [
"What",
"are",
"the",
"maximum",
"and",
"minimum",
"resolution",
"of",
"songs",
"whose",
"duration",
"is",
"3",
"minutes",
"?"
] | [
"What",
"are",
"the",
"maximum",
"and",
"minimum",
"<mask>",
"of",
"<mask>",
"whose",
"<mask>",
"is",
"<unk>",
"minutes",
"?"
] | [
"select",
"max",
"(",
"<mask>",
".",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.