question_id stringlengths 11 60 | question_text stringlengths 7 294 | decomposition stringlengths 13 606 | operators stringlengths 10 260 | split stringclasses 1
value | program stringlengths 20 771 |
|---|---|---|---|---|---|
SPIDER_train_3478 | What are the employee ids of employees who report to Payam, and what are their salaries? | return employees ;return #1 who report to Payam ;return ids of #2 ;return salaries of #2 ;return #3 , #4 | ['select', 'filter', 'project', 'project', 'union'] | train | ["SELECT['employees']", "FILTER['#1', 'who report to Payam']", "PROJECT['ids of #REF', '#2']", "PROJECT['salaries of #REF', '#2']", "UNION['#3', '#4']"] |
SPIDER_train_3479 | find the name of all departments that do actually have one or more employees assigned to them. | return departments ;return employees assigned to #1 ;return number of #2 for each #1 ;return #1 where #3 is one or more ;return names of #4 | ['select', 'project', 'group', 'comparative', 'project'] | train | ["SELECT['departments']", "PROJECT['employees assigned to #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is one or more']", "PROJECT['names of #REF', '#4']"] |
SPIDER_train_348 | What are the ids of all aircrafts that can cover a distance of more than 1000? | return aircraft ;return distance #1 can cover ;return #1 where #2 is more than 1000 ;return ids of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['aircraft']", "PROJECT['distance #REF can cover', '#1']", "COMPARATIVE['#1', '#2', 'is more than 1000']", "PROJECT['ids of #REF', '#3']"] |
SPIDER_train_3480 | What are the names of departments that have at least one employee. | return departments ;return employees of #1 ;return number of #2 for each #1 ;return #1 where #3 is at least one ;return names of #4 | ['select', 'project', 'group', 'comparative', 'project'] | train | ["SELECT['departments']", "PROJECT['employees of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least one']", "PROJECT['names of #REF', '#4']"] |
SPIDER_train_3481 | get the details of employees who manage a department. | return employees ;return #1 who manage a department ;return details of #2 | ['select', 'filter', 'project'] | train | ["SELECT['employees']", "FILTER['#1', 'who manage a department']", "PROJECT['details of #REF', '#2']"] |
SPIDER_train_3482 | What is all the information regarding employees who are managers? | return employees ;return #1 who are managers ;return all information regarding #2 | ['select', 'filter', 'project'] | train | ["SELECT['employees']", "FILTER['#1', 'who are managers']", "PROJECT['all information regarding #REF', '#2']"] |
SPIDER_train_3483 | display all the information about the department Marketing. | return department ;return #1 that is Marketing ;return all information about #2 | ['select', 'filter', 'project'] | train | ["SELECT['department']", "FILTER['#1', 'that is Marketing']", "PROJECT['all information about #REF', '#2']"] |
SPIDER_train_3484 | What is all the information about the Marketing department? | return Marketing department ;return all information about #1 | ['select', 'project'] | train | ["SELECT['Marketing department']", "PROJECT['all information about #REF', '#1']"] |
SPIDER_train_3485 | display the ID for those employees who did two or more jobs in the past. | return employees ;return past jobs of #1 ;return number of #2 for each #1 ;return #1 where #3 is at least two ;return ID of #4 | ['select', 'project', 'group', 'comparative', 'project'] | train | ["SELECT['employees']", "PROJECT['past jobs of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least two']", "PROJECT['ID of #REF', '#4']"] |
SPIDER_train_3486 | What are the employee ids for those who had two or more jobs. | return jobs ;return number of #1 for each employee ;return employees where #2 at least two ;return employee ids of #3 | ['select', 'group', 'project', 'project'] | train | ["SELECT['jobs']", "GROUP['count', '#1', 'employee']", "PROJECT['employees where #REF at least two', '#2']", "PROJECT['employee ids of #REF', '#3']"] |
SPIDER_train_3487 | What are the unique ids of those departments where any manager is managing 4 or more employees. | return departments ;return managers of #1 ;return employees #2 manage ;return number of #3 for each #2 ;return #1 where #4 is at least 4 ;return unique ids of #5 | ['select', 'project', 'project', 'group', 'comparative', 'project'] | train | ["SELECT['departments']", "PROJECT['managers of #REF', '#1']", "PROJECT['employees #REF manage', '#2']", "GROUP['count', '#3', '#2']", "COMPARATIVE['#1', '#4', 'is at least 4']", "PROJECT['unique ids of #REF', '#5']"] |
SPIDER_train_3488 | Give the distinct department ids of departments in which a manager is in charge of 4 or more employees? | return departments ;return managers of #1 ;return employees of #2 ;return number of #3 for each #2 ;return #1 where #4 is 4 or more ;return department ids of #5 ;return distinct #6 | ['select', 'project', 'project', 'group', 'comparative', 'project', 'project'] | train | ["SELECT['departments']", "PROJECT['managers of #REF', '#1']", "PROJECT['employees of #REF', '#2']", "GROUP['count', '#3', '#2']", "COMPARATIVE['#1', '#4', 'is 4 or more']", "PROJECT['department ids of #REF', '#5']", "PROJECT['distinct #REF', '#6']"] |
SPIDER_train_349 | How many aircrafts have distance between 1000 and 5000? | return aircrafts ;return distances of #1 ;return #1 where #2 is at least 1000 ;return #1 where #2 is at most 5000 ;return #1 of both #3 and #4 ;return number of #5 | ['select', 'project', 'comparative', 'comparative', 'intersection', 'aggregate'] | train | ["SELECT['aircrafts']", "PROJECT['distances of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is at least 1000']", "COMPARATIVE['#1', '#2', 'is at most 5000']", "INTERSECTION['#1', '#3', '#4']", "AGGREGATE['count', '#5']"] |
SPIDER_train_3490 | What are the job ids corresponding to jobs with average salary above 8000? | return jobs ;return salary of #1 ;return average of #2 for each #1 ;return #1 where #3 is higher than 8000 ;return job ids of #4 | ['select', 'project', 'group', 'comparative', 'project'] | train | ["SELECT['jobs']", "PROJECT['salary of #REF', '#1']", "GROUP['avg', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is higher than 8000']", "PROJECT['job ids of #REF', '#4']"] |
SPIDER_train_3491 | display the employee ID and job name for all those jobs in department 80. | return jobs ;return departments of #1 ;return #1 where #2 is department 80 ;return employee ID of #3 ;return job names of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['jobs']", "PROJECT['departments of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is department 80']", "PROJECT['employee ID of #REF', '#3']", "PROJECT['job names of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3492 | what are the employee ids and job titles for employees in department 80? | return employees ;return departments of #1 ;return #1 where #2 is 80 ;return employee ids of #3 ;return job titles of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['departments of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 80']", "PROJECT['employee ids of #REF', '#3']", "PROJECT['job titles of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3493 | What is the first name and job id for all employees in the Finance department? | return employees ;return #1 in the Finance department ;return first names of #2 ;return job id of #2 ;return #3 , #4 | ['select', 'filter', 'project', 'project', 'union'] | train | ["SELECT['employees']", "FILTER['#1', 'in the Finance department']", "PROJECT['first names of #REF', '#2']", "PROJECT['job id of #REF', '#2']", "UNION['#3', '#4']"] |
SPIDER_train_3494 | Give the first name and job id for all employees in the Finance department. | return employees ;return departments of #1 ;return #1 where #2 is Finance ;return first names of #3 ;return job id of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['departments of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Finance']", "PROJECT['first names of #REF', '#3']", "PROJECT['job id of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3495 | display all the information of the employees whose salary if within the range of smallest salary and 2500. | return employees ;return salaries of #1 ;return #1 where #2 is at most 2500 ;return information of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['employees']", "PROJECT['salaries of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is at most 2500']", "PROJECT['information of #REF', '#3']"] |
SPIDER_train_3496 | What is all the information regarding employees with salaries above the minimum and under 2500? | return employees ;return salaries of #1 ;return the lowest of #2 ;return #1 where #2 is higher than #3 ;return #1 where #2 is lower than 2500 ;return #1 in both #4 and #5 ;return information of #6 | ['select', 'project', 'aggregate', 'comparative', 'comparative', 'intersection', 'project'] | train | ["SELECT['employees']", "PROJECT['salaries of #REF', '#1']", "AGGREGATE['min', '#2']", "COMPARATIVE['#1', '#2', 'is higher than #3']", "COMPARATIVE['#1', '#2', 'is lower than 2500']", "INTERSECTION['#1', '#4', '#5']", "PROJECT['information of #REF', '#6']"] |
SPIDER_train_3497 | Find the ids of the employees who does not work in those departments where some employees works whose manager id within the range 100 and 200. | return employees ;return managers of #1 ;return ids of #2 ;return #1 where #2 is higher than 100 ;return #4 where #2 is lower than 200 ;return departments of #5 ;return departments of #1 ;return #7 besides #6 ;return #1 who work in #8 ;return ids of #9 | ['select', 'project', 'project', 'comparative', 'comparative', 'project', 'project', 'discard', 'filter', 'project'] | train | ["SELECT['employees']", "PROJECT['managers of #REF', '#1']", "PROJECT['ids of #REF', '#2']", "COMPARATIVE['#1', '#2', 'is higher than 100']", "COMPARATIVE['#4', '#2', 'is lower than 200']", "PROJECT['departments of #REF', '#5']", "PROJECT['departments of #REF', '#1']", "DISCARD['#7', '#6']", "FILTER['#1', 'who work in #8']", "PROJECT['ids of #REF', '#9']"] |
SPIDER_train_3498 | What are the ids for employees who do not work in departments with managers that have ids between 100 and 200? | return departments ;return managers of #1 ;return ids of #2 ;return #1 where #3 is higher than 100 ;return #4 where #3 is lower than 200 ;return #1 besides #5 ;return employees of #6 ;return ids of #7 | ['select', 'project', 'project', 'comparative', 'comparative', 'discard', 'project', 'project'] | train | ["SELECT['departments']", "PROJECT['managers of #REF', '#1']", "PROJECT['ids of #REF', '#2']", "COMPARATIVE['#1', '#3', 'is higher than 100']", "COMPARATIVE['#4', '#3', 'is lower than 200']", "DISCARD['#1', '#5']", "PROJECT['employees of #REF', '#6']", "PROJECT['ids of #REF', '#7']"] |
SPIDER_train_3499 | display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara. | return Clara ;return the department of #1 ;return employees if department is the same as #2 ;return the first name of #3 ;return the last name of #3 ;return the hire date of #3 ;return #4 , #5 , #6 | ['select', 'project', 'project', 'project', 'project', 'project', 'union'] | train | ["SELECT['Clara']", "PROJECT['the department of #REF', '#1']", "PROJECT['employees if department is the same as #REF', '#2']", "PROJECT['the first name of #REF', '#3']", "PROJECT['the last name of #REF', '#3']", "PROJECT['the hire date of #REF', '#3']", "UNION['#4', '#5', '#6']"] |
SPIDER_train_35 | Give the years and official names of the cities of each competition. | return competitions ;return years of #1 ;return cities of #1 ;return official names of #3 ;return #2 , #4 | ['select', 'project', 'project', 'project', 'union'] | train | ["SELECT['competitions']", "PROJECT['years of #REF', '#1']", "PROJECT['cities of #REF', '#1']", "PROJECT['official names of #REF', '#3']", "UNION['#2', '#4']"] |
SPIDER_train_350 | What is the count of aircrafts that have a distance between 1000 and 5000? | return aircrafts ;return distances of #1 ;return #1 where #2 is at least 1000 ;return #1 where #2 is at most 5000 ;return #1 of both #3 and #4 ;return number of #5 | ['select', 'project', 'comparative', 'comparative', 'intersection', 'aggregate'] | train | ["SELECT['aircrafts']", "PROJECT['distances of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is at least 1000']", "COMPARATIVE['#1', '#2', 'is at most 5000']", "INTERSECTION['#1', '#3', '#4']", "AGGREGATE['count', '#5']"] |
SPIDER_train_3500 | What are the full names and hire dates for employees in the same department as someone with the first name Clara? | return departments ;return employees of #1 ;return first names of #2 ;return #1 where #3 is Clara ;return employees of #4 ;return full names of #5 ;return hire dates of #5 ;return #6 , #7 | ['select', 'project', 'project', 'comparative', 'project', 'project', 'project', 'union'] | train | ["SELECT['departments']", "PROJECT['employees of #REF', '#1']", "PROJECT['first names of #REF', '#2']", "COMPARATIVE['#1', '#3', 'is Clara']", "PROJECT['employees of #REF', '#4']", "PROJECT['full names of #REF', '#5']", "PROJECT['hire dates of #REF', '#5']", "UNION['#6', '#7']"] |
SPIDER_train_3501 | display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara. | return employees ;return #1 that is Clara ;return department of #1 ;return department of #2 ;return #1 where #3 is the same as #4 ;return #5 besides #2 ;return first names of #6 ;return last names of #6 ;return hire dates of #6 ;return #7 , #8 , #9 | ['select', 'filter', 'project', 'project', 'comparative', 'discard', 'project', 'project', 'project', 'union'] | train | ["SELECT['employees']", "FILTER['#1', 'that is Clara']", "PROJECT['department of #REF', '#1']", "PROJECT['department of #REF', '#2']", "COMPARATIVE['#1', '#3', 'is the same as #4']", "DISCARD['#5', '#2']", "PROJECT['first names of #REF', '#6']", "PROJECT['last names of #REF', '#6']", "PROJECT['hire dates of #REF', '#6']", "UNION['#7', '#8', '#9']"] |
SPIDER_train_3502 | What are the full names and hire dates for employees in the same department as someone with the first name Clara, not including Clara? | return departments ;return employees of #1 ;return first names of #2 ;return #1 where #3 is Clara ;return employees of #4 ;return #5 besides Clara ;return full names of #6 ;return hire dates of #6 ;return #7 , #8 | ['select', 'project', 'project', 'comparative', 'project', 'discard', 'project', 'project', 'union'] | train | ["SELECT['departments']", "PROJECT['employees of #REF', '#1']", "PROJECT['first names of #REF', '#2']", "COMPARATIVE['#1', '#3', 'is Clara']", "PROJECT['employees of #REF', '#4']", "DISCARD['#5', 'Clara']", "PROJECT['full names of #REF', '#6']", "PROJECT['hire dates of #REF', '#6']", "UNION['#7', '#8']"] |
SPIDER_train_3503 | 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’. | return employees ;return #1 who work in a department ;return names of #2 ;return #2 where #3 contains a T ;return employee numbers of #4 ;return first names of #4 ;return last names of #4 ;return #5 , #6 , #7 | ['select', 'filter', 'project', 'comparative', 'project', 'project', 'project', 'union'] | train | ["SELECT['employees']", "FILTER['#1', 'who work in a department']", "PROJECT['names of #REF', '#2']", "COMPARATIVE['#2', '#3', 'contains a T']", "PROJECT['employee numbers of #REF', '#4']", "PROJECT['first names of #REF', '#4']", "PROJECT['last names of #REF', '#4']", "UNION['#5', '#6', '#7']"] |
SPIDER_train_3504 | 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? | return departments ;return employees of #1 ;return #2 with first name contains the letter T ;return ids of #3 ;return full names of #3 ;return #4 , #5 | ['select', 'project', 'filter', 'project', 'project', 'union'] | train | ["SELECT['departments']", "PROJECT['employees of #REF', '#1']", "FILTER['#2', 'with first name contains the letter T']", "PROJECT['ids of #REF', '#3']", "PROJECT['full names of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3505 | 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. | return employees ;return salaries of #1 ;return average of #2 ;return #1 where #2 is higher than #3 ;return departments of #4 ;return employees of #5 ;return first names of #6 ;return #5 where #7 has a 'J ;return #4 where #5 is equal to #8 ;return employee number of #9 ;return name of #9 ;return salary of #9 ;return #10 , #11 , #12 | ['select', 'project', 'aggregate', 'comparative', 'project', 'project', 'project', 'comparative', 'comparative', 'aggregate', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['salaries of #REF', '#1']", "AGGREGATE['avg', '#2']", "COMPARATIVE['#1', '#2', 'is higher than #3']", "PROJECT['departments of #REF', '#4']", "PROJECT['employees of #REF', '#5']", "PROJECT['first names of #REF', '#6']", 'COMPARATIVE[\'#5\', \'#7\', "has a \'J"]', "COMPARATIVE['#4', '#5', 'is equal to #8']", "AGGREGATE['count', '#9']", "PROJECT['name of #REF', '#9']", "PROJECT['salary of #REF', '#9']", "UNION['#10', '#11', '#12']"] |
SPIDER_train_3506 | 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? | return employees ;return first names of #1 ;return #1 where #2 has the letter J ;return departments of #3 ;return employees of #4 ;return salaries of #5 ;return the average of #6 for each #4 ;return #5 where #6 is higher than #7 ;return ids of #8 ;return full names of #8 ;return salaries of #8 ;return #9 , #10 , #11 | ['select', 'project', 'comparative', 'project', 'project', 'project', 'group', 'comparative', 'project', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['first names of #REF', '#1']", "COMPARATIVE['#1', '#2', 'has the letter J']", "PROJECT['departments of #REF', '#3']", "PROJECT['employees of #REF', '#4']", "PROJECT['salaries of #REF', '#5']", "GROUP['avg', '#6', '#4']", "COMPARATIVE['#5', '#6', 'is higher than #7']", "PROJECT['ids of #REF', '#8']", "PROJECT['full names of #REF', '#8']", "PROJECT['salaries of #REF', '#8']", "UNION['#9', '#10', '#11']"] |
SPIDER_train_3507 | 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. | return employees ;return job titles of #1 ;return #1 where #2 is MK_MAN ;return salaries of #3 ;return highest of #4 ;return salaries of #1 ;return #1 where #6 is lower than #5 ;return employee numbers of #7 ;return job id of #7 ;return #8 , #9 | ['select', 'project', 'comparative', 'project', 'aggregate', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['job titles of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is MK_MAN']", "PROJECT['salaries of #REF', '#3']", "AGGREGATE['max', '#4']", "PROJECT['salaries of #REF', '#1']", "COMPARATIVE['#1', '#6', 'is lower than #5']", "PROJECT['employee numbers of #REF', '#7']", "PROJECT['job id of #REF', '#7']", "UNION['#8', '#9']"] |
SPIDER_train_3508 | What are the employee ids and job ids for employees who make less than the lowest earning employee with title MK_MAN? | return employees ;return #1 with title MK_MAN ;return earning of #2 ;return the lowest of #3 ;return earning of #1 ;return #1 where #5 is lower than #4 ;return the employee ids of #6 ;return the job ids of #6 ;return #7 , #8 | ['select', 'filter', 'project', 'aggregate', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['employees']", "FILTER['#1', 'with title MK_MAN']", "PROJECT['earning of #REF', '#2']", "AGGREGATE['min', '#3']", "PROJECT['earning of #REF', '#1']", "COMPARATIVE['#1', '#5', 'is lower than #4']", "PROJECT['the employee ids of #REF', '#6']", "PROJECT['the job ids of #REF', '#6']", "UNION['#7', '#8']"] |
SPIDER_train_3509 | 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. | return employees ;return titles of #1 ;return #1 where #2 is PU_MAN ;return salary of #3 ;return lowest of #4 ;return salary of #1 ;return #1 where #6 is higher than #5 ;return employee number of #7 ;return name of #7 ;return job title of #7 ;return #8 , #9 , #10 | ['select', 'project', 'comparative', 'project', 'aggregate', 'project', 'comparative', 'aggregate', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['titles of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is PU_MAN']", "PROJECT['salary of #REF', '#3']", "AGGREGATE['min', '#4']", "PROJECT['salary of #REF', '#1']", "COMPARATIVE['#1', '#6', 'is higher than #5']", "AGGREGATE['count', '#7']", "PROJECT['name of #REF', '#7']", "PROJECT['job title of #REF', '#7']", "UNION['#8', '#9', '#10']"] |
SPIDER_train_351 | What is the name and distance for aircraft with id 12? | return aircraft ;return ids of #1 ;return #1 where #2 is 12 ;return name of #3 ;return distance of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['aircraft']", "PROJECT['ids of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 12']", "PROJECT['name of #REF', '#3']", "PROJECT['distance of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3510 | What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN? | return employees ;return #1 with title PU_MAN ;return earning of #2 ;return highest of #3 ;return earning of #1 ;return #1 where #5 higher than #4 ;return employee ids of #6 ;return full names of #6 ;return job ids of #6 ;return #7 , #8 , #9 | ['select', 'filter', 'project', 'aggregate', 'project', 'comparative', 'project', 'project', 'project', 'union'] | train | ["SELECT['employees']", "FILTER['#1', 'with title PU_MAN']", "PROJECT['earning of #REF', '#2']", "AGGREGATE['max', '#3']", "PROJECT['earning of #REF', '#1']", "COMPARATIVE['#1', '#5', 'higher than #4']", "PROJECT['employee ids of #REF', '#6']", "PROJECT['full names of #REF', '#6']", "PROJECT['job ids of #REF', '#6']", "UNION['#7', '#8', '#9']"] |
SPIDER_train_3511 | display the department id and the total salary for those departments which contains at least two employees. | return departments ;return #1 which contain at least two employees ;return department id of #2 ;return total salary of #2 ;return #3 , #4 | ['select', 'filter', 'project', 'project', 'union'] | train | ["SELECT['departments']", "FILTER['#1', 'which contain at least two employees']", "PROJECT['department id of #REF', '#2']", "PROJECT['total salary of #REF', '#2']", "UNION['#3', '#4']"] |
SPIDER_train_3512 | What are total salaries and department id for each department that has more than 2 employees? | return departments ;return employees of #1 ;return number of #2 for each #1 ;return #1 where #3 is higher than 2 ;return employees of #4 ;return salaries of #5 ;return sum of #6 for each #4 ;return department ids of #4 ;return #7 , #8 | ['select', 'project', 'group', 'comparative', 'project', 'project', 'group', 'project', 'union'] | train | ["SELECT['departments']", "PROJECT['employees of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is higher than 2']", "PROJECT['employees of #REF', '#4']", "PROJECT['salaries of #REF', '#5']", "GROUP['sum', '#6', '#4']", "PROJECT['department ids of #REF', '#4']", "UNION['#7', '#8']"] |
SPIDER_train_3513 | display all the information of those employees who did not have any job in the past. | return employees ;return #1 that did not have jobs in the past ;return information of #2 | ['select', 'filter', 'project'] | train | ["SELECT['employees']", "FILTER['#1', 'that did not have jobs in the past']", "PROJECT['information of #REF', '#2']"] |
SPIDER_train_3514 | What is all the information about employees who have never had a job in the past? | return employees ;return jobs that #1 had in the past ;return number of #2 for each #1 ;return #1 where #3 is at least one ;return #1 besides #4 ;return the information about #5 | ['select', 'project', 'group', 'comparative', 'discard', 'project'] | train | ["SELECT['employees']", "PROJECT['jobs that #REF had in the past', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least one']", "DISCARD['#1', '#4']", "PROJECT['the information about #REF', '#5']"] |
SPIDER_train_3515 | display the department ID, full name (first and last name), salary for those employees who is highest salary in every department. | return employees ;return department ;return salary of #1 ;return #1 where #3 is highest for each #2 ;return department ID of #4 ;return full name of #4 ;return salary of #4 ;return #5 , #6 , #7 | ['select', 'select', 'project', 'group', 'project', 'project', 'project', 'union'] | train | ["SELECT['employees']", "SELECT['department']", "PROJECT['salary of #REF', '#1']", "GROUP['max', '#1', '#2']", "PROJECT['department ID of #REF', '#4']", "PROJECT['full name of #REF', '#4']", "PROJECT['salary of #REF', '#4']", "UNION['#5', '#6', '#7']"] |
SPIDER_train_3516 | What are the department ids, full names, and salaries for employees who make the most in their departments? | return departments ;return employees of #1 ;return salaries of #2 ;return the highest of #3 for each #1 ;return #2 where #3 is any of #4 ;return the department ids of #5 ;return the full names of #5 ;return the salaries of #5 ;return #6 , #7 , #8 | ['select', 'project', 'project', 'group', 'comparative', 'project', 'project', 'project', 'union'] | train | ["SELECT['departments']", "PROJECT['employees of #REF', '#1']", "PROJECT['salaries of #REF', '#2']", "GROUP['max', '#3', '#1']", "COMPARATIVE['#2', '#3', 'is any of #4']", "PROJECT['the department ids of #REF', '#5']", "PROJECT['the full names of #REF', '#5']", "PROJECT['the salaries of #REF', '#5']", "UNION['#6', '#7', '#8']"] |
SPIDER_train_3517 | display the first and last name, department, city, and state province for each employee. | return employees ;return first name of #1 ;return last name of #1 ;return department of #1 ;return city of #1 ;return state province of #1 ;return #2 , #3 , #4 , #5 #6 | ['select', 'project', 'project', 'project', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['first name of #REF', '#1']", "PROJECT['last name of #REF', '#1']", "PROJECT['department of #REF', '#1']", "PROJECT['city of #REF', '#1']", "PROJECT['state province of #REF', '#1']", "UNION['#2', '#3', '#4', '#5', '#6']"] |
SPIDER_train_3518 | What are the full names, departments, cities, and state provinces for each employee? | return employees ;return full names of #1 ;return departments of #1 ;return cities of #1 ;return state provinces of #1 ;return #2 , #3 , #4 , #5 | ['select', 'project', 'project', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['full names of #REF', '#1']", "PROJECT['departments of #REF', '#1']", "PROJECT['cities of #REF', '#1']", "PROJECT['state provinces of #REF', '#1']", "UNION['#2', '#3', '#4', '#5']"] |
SPIDER_train_3519 | display those employees who contain a letter z to their first name and also display their last name, city. | return employees ;return first name of #1 ;return #1 where #2 contain a letter z ;return last name of #3 ;return city of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['first name of #REF', '#1']", "COMPARATIVE['#1', '#2', 'contain a letter z']", "PROJECT['last name of #REF', '#3']", "PROJECT['city of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_352 | What is the name and distance for the aircraft that has an id of 12? | return aircraft ;return ids of #1 ;return #1 where #2 is 12 ;return name of #3 ;return distance of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['aircraft']", "PROJECT['ids of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 12']", "PROJECT['name of #REF', '#3']", "PROJECT['distance of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3520 | What are the full names and cities of employees who have the letter Z in their first names? | return employees ;return first names of #1 ;return #1 where #2 has Z ;return full names of #3 ;return cities of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['first names of #REF', '#1']", "COMPARATIVE['#1', '#2', 'has Z']", "PROJECT['full names of #REF', '#3']", "PROJECT['cities of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3521 | display the department name, city, and state province for each department. | return departments ;return the department name of each #1 ;return the city of each #1 ;return the state province of each #1 ;return #2 , #3 , #4 | ['select', 'project', 'project', 'project', 'union'] | train | ["SELECT['departments']", "PROJECT['the department name of each #REF', '#1']", "PROJECT['the city of each #REF', '#1']", "PROJECT['the state province of each #REF', '#1']", "UNION['#2', '#3', '#4']"] |
SPIDER_train_3522 | What are the department names, cities, and state provinces for each department? | return departments ;return department names of #1 ;return cities of #1 ;return states of #1 ;return provinces of #4 ;return #2 , #3 , #5 | ['select', 'project', 'project', 'project', 'project', 'union'] | train | ["SELECT['departments']", "PROJECT['department names of #REF', '#1']", "PROJECT['cities of #REF', '#1']", "PROJECT['states of #REF', '#1']", "PROJECT['provinces of #REF', '#4']", "UNION['#2', '#3', '#5']"] |
SPIDER_train_3523 | display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working. | return employees ;return country where #1 are presently working ;return first name of #1 ;return last name of #1 ;return ID of #1 ;return #3 , #4 , #5 , #2 | ['select', 'project', 'project', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['country where #REF are presently working', '#1']", "PROJECT['first name of #REF', '#1']", "PROJECT['last name of #REF', '#1']", "PROJECT['ID of #REF', '#1']", "UNION['#3', '#4', '#5', '#2']"] |
SPIDER_train_3524 | What the full names, ids of each employee and the name of the country they are in? | return employees ;return full names of #1 ;return ids of #1 ;return countries #1 are in ;return names of #4 ;return #2 , #3 , #5 | ['select', 'project', 'project', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['full names of #REF', '#1']", "PROJECT['ids of #REF', '#1']", "PROJECT['countries #REF are in', '#1']", "PROJECT['names of #REF', '#4']", "UNION['#2', '#3', '#5']"] |
SPIDER_train_3526 | What are the department names and how many employees work in each of them? | return departments ;return names of #1 ;return employees who work in #1 ;return number of #3 for each #1 ;return #2 , #4 | ['select', 'project', 'project', 'group', 'union'] | train | ["SELECT['departments']", "PROJECT['names of #REF', '#1']", "PROJECT['employees who work in #REF', '#1']", "GROUP['count', '#3', '#1']", "UNION['#2', '#4']"] |
SPIDER_train_3527 | display the full name (first and last name), and salary of those employees who working in any department located in London. | return departments ;return #1 located in London ;return employees of #2 ;return first names of #3 ;return last names of #3 ;return salaries of #3 ;return #4 , #5 , #6 | ['select', 'filter', 'project', 'project', 'project', 'project', 'union'] | train | ["SELECT['departments']", "FILTER['#1', 'located in London']", "PROJECT['employees of #REF', '#2']", "PROJECT['first names of #REF', '#3']", "PROJECT['last names of #REF', '#3']", "PROJECT['salaries of #REF', '#3']", "UNION['#4', '#5', '#6']"] |
SPIDER_train_3528 | What are full names and salaries of employees working in the city of London? | return employees ;return cities #1 are working in ;return #1 where #2 is London ;return full names of #3 ;return salaries of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['cities #REF are working in', '#1']", "COMPARATIVE['#1', '#2', 'is London']", "PROJECT['full names of #REF', '#3']", "PROJECT['salaries of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3529 | What is the name of the song that was released in the most recent year? | return songs ;return year released of #1 ;return #1 where #2 is most recent ;return name of #3 | ['select', 'project', 'superlative', 'project'] | train | ["SELECT['songs']", "PROJECT['year released of #REF', '#1']", "SUPERLATIVE['max', '#1', '#2']", "PROJECT['name of #REF', '#3']"] |
SPIDER_train_353 | What is the minimum, average, and maximum distance of all aircrafts. | return aircrafts ;return distances of #1 ;return minimum of #2 ;return average of #2 ;return maximum of #2 ;return #3 , #4 , #5 | ['select', 'project', 'aggregate', 'aggregate', 'aggregate', 'union'] | train | ["SELECT['aircrafts']", "PROJECT['distances of #REF', '#1']", "AGGREGATE['min', '#2']", "AGGREGATE['avg', '#2']", "AGGREGATE['max', '#2']", "UNION['#3', '#4', '#5']"] |
SPIDER_train_3530 | What is the name of the song that was released most recently? | return songs ;return how recently #1 was released ;return #1 where #2 is the most recently ;return the name of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['songs']", "PROJECT['how recently #REF was released', '#1']", "COMPARATIVE['#1', '#2', 'is the most recently']", "PROJECT['the name of #REF', '#3']"] |
SPIDER_train_3531 | What is the id of the longest song? | return songs ;return ids of #1 ;return #2 where #1 is longest | ['select', 'project', 'superlative'] | train | ["SELECT['songs']", "PROJECT['ids of #REF', '#1']", "SUPERLATIVE['max', '#2', '#1']"] |
SPIDER_train_3532 | Find the id of the song that lasts the longest. | return songs ;return how long #1 last ;return #1 where #2 is highest ;return id of #3 | ['select', 'project', 'superlative', 'project'] | train | ["SELECT['songs']", "PROJECT['how long #REF last', '#1']", "SUPERLATIVE['max', '#1', '#2']", "PROJECT['id of #REF', '#3']"] |
SPIDER_train_3533 | Find the names of all English songs. | return songs ;return #1 that are English ;return names of #2 | ['select', 'filter', 'project'] | train | ["SELECT['songs']", "FILTER['#1', 'that are English']", "PROJECT['names of #REF', '#2']"] |
SPIDER_train_3534 | What are the names of all songs in English? | return songs ;return #1 that are in English ;return names of all #2 | ['select', 'filter', 'project'] | train | ["SELECT['songs']", "FILTER['#1', 'that are in English']", "PROJECT['names of all #REF', '#2']"] |
SPIDER_train_3535 | What are the id of songs whose format is mp3. | return songs ;return #1 whose format is mp3 ;return id of #2 | ['select', 'filter', 'project'] | train | ["SELECT['songs']", "FILTER['#1', 'whose format is mp3']", "PROJECT['id of #REF', '#2']"] |
SPIDER_train_3536 | What are the id of all the files in mp3 format? | return files ;return formats of #1 ;return #1 where #2 is mp3 ;return id of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['files']", "PROJECT['formats of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is mp3']", "PROJECT['id of #REF', '#3']"] |
SPIDER_train_3537 | List the name and country of origin for all singers who have produced songs with rating above 9. | return songs ;return ratings of #1 ;return #1 where #2 is higher than 9 ;return singers who produced #3 ;return names of #4 ;return countries of origin of #4 ;return #5 , #6 | ['select', 'project', 'comparative', 'project', 'project', 'project', 'union'] | train | ["SELECT['songs']", "PROJECT['ratings of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is higher than 9']", "PROJECT['singers who produced #REF', '#3']", "PROJECT['names of #REF', '#4']", "PROJECT['countries of origin of #REF', '#4']", "UNION['#5', '#6']"] |
SPIDER_train_3538 | What are the different names and countries of origins for all artists whose song ratings are above 9? | return artists ;return song ratings of #1 ;return #1 where #2 is higher than 9 ;return different names of #3 ;return countries of origin of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['artists']", "PROJECT['song ratings of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is higher than 9']", "PROJECT['different names of #REF', '#3']", "PROJECT['countries of origin of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3539 | List the file size and format for all songs that have resolution lower than 800. | return songs ;return resolutions of #1 ;return #1 where #2 is lower than 800 ;return file sizes of #3 ;return formats of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['songs']", "PROJECT['resolutions of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is lower than 800']", "PROJECT['file sizes of #REF', '#3']", "PROJECT['formats of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_354 | Return the minimum, average and maximum distances traveled across all aircrafts. | return aircrafts ;return distances that #1 traveled ;return the lowest #2 ;return the average of #2 ;return the highest #2 ;return #3 , #4 , #5 | ['select', 'project', 'aggregate', 'aggregate', 'aggregate', 'union'] | train | ["SELECT['aircrafts']", "PROJECT['distances that #REF traveled', '#1']", "AGGREGATE['min', '#2']", "AGGREGATE['avg', '#2']", "AGGREGATE['max', '#2']", "UNION['#3', '#4', '#5']"] |
SPIDER_train_3540 | What are the file sizes and formats for all songs with a resolution lower than 800? | return songs ;return #1 with a resolution lower than 800 ;return file sizes and formats of #2 | ['select', 'filter', 'project'] | train | ["SELECT['songs']", "FILTER['#1', 'with a resolution lower than 800']", "PROJECT['file sizes and formats of #REF', '#2']"] |
SPIDER_train_3541 | What is the name of the artist who produced the shortest song? | return artists ;return songs of #1 ;return #1 where #2 is shortest ;return name of #3 | ['select', 'project', 'superlative', 'project'] | train | ["SELECT['artists']", "PROJECT['songs of #REF', '#1']", "SUPERLATIVE['min', '#1', '#2']", "PROJECT['name of #REF', '#3']"] |
SPIDER_train_3542 | What are the names of the artists who sang the shortest song? | return artists ;return #1 that sang the shortest song ;return names of #2 | ['select', 'filter', 'project'] | train | ["SELECT['artists']", "FILTER['#1', 'that sang the shortest song']", "PROJECT['names of #REF', '#2']"] |
SPIDER_train_3543 | What are the names and countries of origin for the artists who produced the top three highly rated songs. | return songs ;return the top three highly rated #1 ;return the artists who produced #2 ;return the names of #3 ;return the countries of origin of #3 ;return #4 , #5 | ['select', 'project', 'project', 'project', 'project', 'union'] | train | ["SELECT['songs']", "PROJECT['the top three highly rated #REF', '#1']", "PROJECT['the artists who produced #REF', '#2']", "PROJECT['the names of #REF', '#3']", "PROJECT['the countries of origin of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3544 | What are the names of the singers who sang the top 3 most highly rated songs and what countries do they hail from? | return songs ;return 3 top rated #1 ;return singers of #2 ;return names of #3 ;return countries hail from #3 ;return #4 , #5 | ['select', 'project', 'project', 'project', 'project', 'union'] | train | ["SELECT['songs']", "PROJECT['3 top rated #REF', '#1']", "PROJECT['singers of #REF', '#2']", "PROJECT['names of #REF', '#3']", "PROJECT['countries hail from #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3545 | How many songs have 4 minute duration? | return songs ;return duration of #1 ;return #1 where #2 is 4 minutes ;return number of #3 | ['select', 'project', 'comparative', 'aggregate'] | train | ["SELECT['songs']", "PROJECT['duration of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 4 minutes']", "AGGREGATE['count', '#3']"] |
SPIDER_train_3546 | What is the count of the songs that last approximately 4 minutes? | return songs ;return #1 that last approximately 4 minutes ;return the count of #2 | ['select', 'filter', 'project'] | train | ["SELECT['songs']", "FILTER['#1', 'that last approximately 4 minutes']", "PROJECT['the count of #REF', '#2']"] |
SPIDER_train_3547 | How many artists are from Bangladesh? | return artists ;return #1 from Bangladesh ;return number of #2 | ['select', 'filter', 'aggregate'] | train | ["SELECT['artists']", "FILTER['#1', 'from Bangladesh']", "AGGREGATE['count', '#2']"] |
SPIDER_train_3548 | How many Bangladeshi artists are listed? | return artists ;return #1 that are Bangladeshi ;return number of #2 | ['select', 'filter', 'aggregate'] | train | ["SELECT['artists']", "FILTER['#1', 'that are Bangladeshi']", "AGGREGATE['count', '#2']"] |
SPIDER_train_3549 | What is the average rating of songs produced by female artists? | return songs ;return artists of #1 ;return #1 where #2 are female ;return ratings of #3 ;return average of #4 | ['select', 'project', 'comparative', 'project', 'aggregate'] | train | ["SELECT['songs']", "PROJECT['artists of #REF', '#1']", "COMPARATIVE['#1', '#2', 'are female']", "PROJECT['ratings of #REF', '#3']", "AGGREGATE['avg', '#4']"] |
SPIDER_train_355 | Show the id and name of the aircraft with the maximum distance. | return aircraft ;return distances of #1 ;return #1 where #2 is maximum ;return id of #3 ;return name of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['aircraft']", "PROJECT['distances of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is maximum']", "PROJECT['id of #REF', '#3']", "PROJECT['name of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3550 | How many songs, on average, are sung by a female artist? | return female artists ;return songs of #1 ;return number of #2 for each #1 ;return average of #3 | ['select', 'project', 'group', 'aggregate'] | train | ["SELECT['female artists']", "PROJECT['songs of #REF', '#1']", "GROUP['count', '#2', '#1']", "AGGREGATE['avg', '#3']"] |
SPIDER_train_3551 | What is the most popular file format? | return file formats ;return most popular #1 | ['select', 'project'] | train | ["SELECT['file formats']", "PROJECT['most popular #REF', '#1']"] |
SPIDER_train_3552 | Find the file format that is used by the most files. | return file formats ;return files with #1 ;return number of #2 for each #1 ;return #1 where #3 is highest | ['select', 'project', 'group', 'superlative'] | train | ["SELECT['file formats']", "PROJECT['files with #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']"] |
SPIDER_train_3553 | Find the names of the artists who are from UK and have produced English songs. | return artists ;return #1 who are from UK ;return #1 who have produced English songs ;return #1 of both #2 and #3 ;return names of #4 | ['select', 'filter', 'filter', 'intersection', 'project'] | train | ["SELECT['artists']", "FILTER['#1', 'who are from UK']", "FILTER['#1', 'who have produced English songs']", "INTERSECTION['#1', '#2', '#3']", "PROJECT['names of #REF', '#4']"] |
SPIDER_train_3554 | What are the names of the artists that are from the UK and sang songs in English? | return the UK ;return artists of #1 ;return songs of #2 ;return #3 that are sang in English ;return number of #4 for each #2 ;return #2 where #5 is at least one ;return names of #6 | ['select', 'project', 'project', 'filter', 'group', 'comparative', 'project'] | train | ["SELECT['the UK']", "PROJECT['artists of #REF', '#1']", "PROJECT['songs of #REF', '#2']", "FILTER['#3', 'that are sang in English']", "GROUP['count', '#4', '#2']", "COMPARATIVE['#2', '#5', 'is at least one']", "PROJECT['names of #REF', '#6']"] |
SPIDER_train_3555 | Find the id of songs that are available in mp4 format and have resolution lower than 1000. | return songs ;return formats of #1 ;return #1 where #2 is mp4 ;return resolutions of #1 ;return #1 where #4 is lower than 1000 ;return #1 of both #3 and #5 ;return ids of #6 | ['select', 'project', 'comparative', 'project', 'comparative', 'intersection', 'project'] | train | ["SELECT['songs']", "PROJECT['formats of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is mp4']", "PROJECT['resolutions of #REF', '#1']", "COMPARATIVE['#1', '#4', 'is lower than 1000']", "INTERSECTION['#1', '#3', '#5']", "PROJECT['ids of #REF', '#6']"] |
SPIDER_train_3556 | What is the id of the files that are available in the format of mp4 and a resolution smaller than 1000? | return files ;return formats of #1 ;return #1 where #2 is mp4 ;return resolutions of #1 ;return #1 where #4 is lower than 1000 ;return id of both #3 and #5 | ['select', 'project', 'comparative', 'project', 'comparative', 'intersection'] | train | ["SELECT['files']", "PROJECT['formats of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is mp4']", "PROJECT['resolutions of #REF', '#1']", "COMPARATIVE['#1', '#4', 'is lower than 1000']", "INTERSECTION['id', '#3', '#5']"] |
SPIDER_train_3557 | What is the country of origin of the artist who is female and produced a song in Bangla? | return artists ;return #1 who are female ;return songs of #1 ;return #3 produced in Bangla ;return number of #4 for each #1 ;return #1 where #5 is one ;return #1 in both #2 and #6 ;return the country of origin of #7 | ['select', 'filter', 'project', 'filter', 'group', 'comparative', 'intersection', 'project'] | train | ["SELECT['artists']", "FILTER['#1', 'who are female']", "PROJECT['songs of #REF', '#1']", "FILTER['#3', 'produced in Bangla']", "GROUP['count', '#4', '#1']", "COMPARATIVE['#1', '#5', 'is one']", "INTERSECTION['#1', '#2', '#6']", "PROJECT['the country of origin of #REF', '#7']"] |
SPIDER_train_3558 | What countries are the female artists who sung in the language Bangla from? | return female artists ;return #1 who sung in the language Bangla ;return the countries of #2 | ['select', 'filter', 'project'] | train | ["SELECT['female artists']", "FILTER['#1', 'who sung in the language Bangla']", "PROJECT['the countries of #REF', '#2']"] |
SPIDER_train_3559 | What is the average duration of songs that have mp3 format and resolution below 800? | return songs ;return formats of #1 ;return #1 where #2 is mp3 ;return resolutions of #1 ;return #1 where #4 is lower than 800 ;return #1 of both #3 and #5 ;return durations of #6 ;return average of #7 | ['select', 'project', 'comparative', 'project', 'comparative', 'intersection', 'project', 'aggregate'] | train | ["SELECT['songs']", "PROJECT['formats of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is mp3']", "PROJECT['resolutions of #REF', '#1']", "COMPARATIVE['#1', '#4', 'is lower than 800']", "INTERSECTION['#1', '#3', '#5']", "PROJECT['durations of #REF', '#6']", "AGGREGATE['avg', '#7']"] |
SPIDER_train_356 | What is the id and name of the aircraft that can cover the maximum distance? | return aircraft ;return distances that #1 can cover ;return #1 where #2 is the highest ;return id of #3 ;return the name of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['aircraft']", "PROJECT['distances that #REF can cover', '#1']", "COMPARATIVE['#1', '#2', 'is the highest']", "PROJECT['id of #REF', '#3']", "PROJECT['the name of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_3560 | What is the average song duration for the songs that are in mp3 format and whose resolution below 800? | return songs ;return formats of #1 ;return #1 where #2 is mp3 ;return resolutions of #1 ;return #1 where #4 is lower than 800 ;return #1 of both #3 and #5 ;return duration of #6 ;return average of #7 | ['select', 'project', 'comparative', 'project', 'comparative', 'intersection', 'project', 'aggregate'] | train | ["SELECT['songs']", "PROJECT['formats of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is mp3']", "PROJECT['resolutions of #REF', '#1']", "COMPARATIVE['#1', '#4', 'is lower than 800']", "INTERSECTION['#1', '#3', '#5']", "PROJECT['duration of #REF', '#6']", "AGGREGATE['avg', '#7']"] |
SPIDER_train_3561 | What is the number of artists for each gender? | return artists ;return gender ;return number of #1 for each #2 | ['select', 'select', 'group'] | train | ["SELECT['artists']", "SELECT['gender']", "GROUP['count', '#1', '#2']"] |
SPIDER_train_3562 | How many artists are male and how many are female? | return artists ;return #1 that are male ;return number of #2 ;return #1 that are female ;return number of #4 ;return #3 , #5 | ['select', 'filter', 'aggregate', 'filter', 'aggregate', 'union'] | train | ["SELECT['artists']", "FILTER['#1', 'that are male']", "AGGREGATE['count', '#2']", "FILTER['#1', 'that are female']", "AGGREGATE['count', '#4']", "UNION['#3', '#5']"] |
SPIDER_train_3563 | What is the average rating of songs for each language? | return languages ;return songs of #1 ;return ratings of #2 ;return average of #3 for each #1 | ['select', 'project', 'project', 'group'] | train | ["SELECT['languages']", "PROJECT['songs of #REF', '#1']", "PROJECT['ratings of #REF', '#2']", "GROUP['avg', '#3', '#1']"] |
SPIDER_train_3564 | What is the average song rating for each language? | return languages ;return songs in #1 ;return ratings of #2 ;return average of #3 for each #1 | ['select', 'project', 'project', 'group'] | train | ["SELECT['languages']", "PROJECT['songs in #REF', '#1']", "PROJECT['ratings of #REF', '#2']", "GROUP['avg', '#3', '#1']"] |
SPIDER_train_3565 | Return the gender and name of artist who produced the song with the lowest resolution. | return songs ;return resolutions of #1 ;return #1 where #2 is the lowest ;return the artist who produced #3 ;return the gender of #4 ;return the name of #4 ;return #5 , #6 | ['select', 'project', 'comparative', 'project', 'project', 'project', 'union'] | train | ["SELECT['songs']", "PROJECT['resolutions of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is the lowest']", "PROJECT['the artist who produced #REF', '#3']", "PROJECT['the gender of #REF', '#4']", "PROJECT['the name of #REF', '#4']", "UNION['#5', '#6']"] |
SPIDER_train_3566 | What is the gender and name of the artist who sang the song with the smallest resolution? | return artists ;return songs of #1 ;return resolutions of #2 ;return #1 where #3 is lowest ;return gender of #4 ;return name of #4 ;return #5 , #6 | ['select', 'project', 'project', 'superlative', 'project', 'project', 'union'] | train | ["SELECT['artists']", "PROJECT['songs of #REF', '#1']", "PROJECT['resolutions of #REF', '#2']", "SUPERLATIVE['min', '#1', '#3']", "PROJECT['gender of #REF', '#4']", "PROJECT['name of #REF', '#4']", "UNION['#5', '#6']"] |
SPIDER_train_3567 | For each file format, return the number of artists who released songs in that format. | return file formats ;return songs in #1 ;return artists of #2 ;return number of #3 for each #1 | ['select', 'project', 'project', 'group'] | train | ["SELECT['file formats']", "PROJECT['songs in #REF', '#1']", "PROJECT['artists of #REF', '#2']", "GROUP['count', '#3', '#1']"] |
SPIDER_train_3568 | How many songs were released for each format? | return formats ;return songs of #1 ;return number of #2 for each #1 | ['select', 'project', 'group'] | train | ["SELECT['formats']", "PROJECT['songs of #REF', '#1']", "GROUP['count', '#2', '#1']"] |
SPIDER_train_3569 | Find the distinct names of all songs that have a higher resolution than some songs in English. | return songs ;return #1 in English ;return resolutions of #2 ;return the lowest #3 ;return resolutions of #1 ;return #1 where #5 is higher than #4 ;return the distinct names of #6 | ['select', 'filter', 'project', 'aggregate', 'project', 'comparative', 'project'] | train | ["SELECT['songs']", "FILTER['#1', 'in English']", "PROJECT['resolutions of #REF', '#2']", "AGGREGATE['min', '#3']", "PROJECT['resolutions of #REF', '#1']", "COMPARATIVE['#1', '#5', 'is higher than #4']", "PROJECT['the distinct names of #REF', '#6']"] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.