question_id
stringlengths
11
60
question_text
stringlengths
7
294
decomposition
stringlengths
13
606
operators
stringlengths
10
260
split
stringclasses
1 value
SPIDER_train_80
For every student who is registered for some course, how many courses are they registered for?
return students ;return #1 who are registered for some courses ;return courses of #2 ;return number of #3 for each #2
['select', 'filter', 'project', 'group']
train
SPIDER_train_800
What are the average score and average staff number of all shops?
return shops ;return the staff number of all #1 ;return the score of all #1 ;return the average of #2 ;return the average of #3 ;return #4 , #5
['select', 'project', 'project', 'aggregate', 'aggregate', 'union']
train
SPIDER_train_801
Find the id and address of the shops whose score is below the average score.
return shops ;return scores of #1 ;return average of #2 ;return #1 where #2 is below #3 ;return ids of #4 ;return addresses of #4 ;return #5 , #6
['select', 'project', 'aggregate', 'comparative', 'project', 'project', 'union']
train
SPIDER_train_802
Find the address and staff number of the shops that do not have any happy hour.
return shops ;return #1 that do not have any happy hour ;return address of #2 ;return staff number of #2 ;return #3 , #4
['select', 'filter', 'project', 'aggregate', 'union']
train
SPIDER_train_803
What are the id and address of the shops which have a happy hour in May?
return shops ;return #1 which have a happy hour in May ;return id of #2 ;return address of #2 ;return #3 , #4
['select', 'filter', 'project', 'project', 'union']
train
SPIDER_train_804
which shop has happy hour most frequently? List its id and number of happy hours.
return shops ;return happy hours of #1 ;return number of #2 for each #1 ;return the highest of #3 ;return #1 where #3 is equal to #4 ;return id of #5 ;return #6 , #4
['select', 'project', 'group', 'aggregate', 'comparative', 'project', 'union']
train
SPIDER_train_805
Which month has the most happy hours?
return months ;return number of happy hours for each #1 ;return #1 where #2 is highest
['select', 'group', 'superlative']
train
SPIDER_train_806
Which months have more than 2 happy hours?
return months ;return happy hours of #1 ;return the number of #2 for each #1 ;return #1 where #3 is more than 2
['select', 'project', 'group', 'comparative']
train
SPIDER_train_807
How many albums are there?
return albums ;return number of #1
['select', 'aggregate']
train
SPIDER_train_808
Find the number of albums.
return albums ;return number of #1
['select', 'aggregate']
train
SPIDER_train_809
List the names of all music genres.
return music genres ;return names of #1
['select', 'project']
train
SPIDER_train_81
How many registed students do each course have? List course name and the number of their registered students?
return courses ;return registered students in #1 ;return number of #2 for each #1 ;return course name of #1 ;return #4 , #3
['select', 'project', 'group', 'project', 'union']
train
SPIDER_train_810
What are the names of different music genres?
return music genres ;return the names of #1
['select', 'project']
train
SPIDER_train_811
Find all the customer information in state NY.
return customers ;return #1 in NY state ;return information of #2
['select', 'filter', 'project']
train
SPIDER_train_812
What is all the customer information for customers in NY state?
return customers ;return state of #1 ;return #1 where #2 is NY ;return all customer information of #3
['select', 'project', 'comparative', 'project']
train
SPIDER_train_813
What are the first names and last names of the employees who live in Calgary city.
return employees ;return the #1 who live in Calgary city ;return the first names of #2 ;return the last names of #2 ;return #3, #4
['select', 'project', 'project', 'project', 'union']
train
SPIDER_train_814
Find the full names of employees living in the city of Calgary.
return employees ;return #1 living in Calgary ;return full names of #2
['select', 'filter', 'project']
train
SPIDER_train_815
What are the distinct billing countries of the invoices?
return invoices ;return distinct billing countries of #1
['select', 'project']
train
SPIDER_train_816
Find the different billing countries for all invoices.
return invoices ;return different billing countries for #1
['select', 'project']
train
SPIDER_train_817
Find the names of all artists that have "a" in their names.
return artists ;return names of #1 ;return #1 where #2 have a ;return names of #3
['select', 'project', 'comparative', 'project']
train
SPIDER_train_818
What are the names of artist who have the letter 'a' in their names?
return artists ;return names of #1 ;return #1 where #2 has the letter 'a ;return names of #3
['select', 'project', 'comparative', 'project']
train
SPIDER_train_819
Find the title of all the albums of the artist "AC/DC".
return artists ;return #1 that are AC/DC ;return albums of #2 ;return titles of #3
['select', 'filter', 'project', 'project']
train
SPIDER_train_82
For each course id, how many students are registered and what are the course names?
return course ids ;return students registered of #1 ;return number of #2 for each #1 ;return course names of #1 ;return #3 , #4
['select', 'project', 'group', 'project', 'union']
train
SPIDER_train_820
What are the titles of albums by the artist "AC/DC"?
return albums ;return #1 by AC/DC ;return titles of #2
['select', 'filter', 'project']
train
SPIDER_train_821
Hom many albums does the artist "Metallica" have?
return artists ;return albums of #1 ;return #2 where #1 is Metallica ;return number of #3
['select', 'project', 'comparative', 'aggregate']
train
SPIDER_train_822
Find the number of albums by the artist "Metallica".
return Metallica ;return albums by #1 ;return number of #2
['select', 'project', 'aggregate']
train
SPIDER_train_823
Which artist does the album "Balls to the Wall" belong to?
return artists ;return albums that belong to #1 ;return #1 where #2 is Balls to the Wall
['select', 'project', 'comparative']
train
SPIDER_train_824
Find the name of the artist who made the album "Balls to the Wall".
return artists ;return albums of #1 ;return #1 where #2 is Balls to the Wall ;return name of #3
['select', 'project', 'comparative', 'project']
train
SPIDER_train_825
Which artist has the most albums?
return artists ;return albums of #1 ;return the number of #2 for each #1 ;return #1 where #3 is the highest
['select', 'project', 'group', 'comparative']
train
SPIDER_train_826
What is the name of the artist with the greatest number of albums?
return artists ;return albums of #1 ;return number of #2 for each #1 ;return #1 where #3 is the greatest ;return the name of #4
['select', 'project', 'group', 'comparative', 'project']
train
SPIDER_train_827
Find the names of all the tracks that contain the word "you".
return tracks ;return #1 that contain the word you ;return names of #2
['select', 'filter', 'project']
train
SPIDER_train_828
What are the names of tracks that contain the the word you in them?
return tracks ;return names of #1 ;return #1 where #2 contain the word you
['select', 'project', 'comparative']
train
SPIDER_train_829
What is the average unit price of all the tracks?
return tracks ;return unit prices of #1 ;return average of #2
['select', 'project', 'aggregate']
train
SPIDER_train_83
Find id of candidates whose assessment code is "Pass"?
return candidates ;return #1 whose assessment code is Pass ;return id of #2
['select', 'filter', 'project']
train
SPIDER_train_830
Find the average unit price for a track.
return tracks ;return unit prices of #1 ;return average of #2
['select', 'project', 'aggregate']
train
SPIDER_train_831
What are the durations of the longest and the shortest tracks in milliseconds?
return tracks ;return durations of #1 in milliseconds ;return #1 where #2 is longest ;return duration of #3 ;return #1 where #2 is shortest ;return duration of #5 ;return #4 , #6
['select', 'project', 'superlative', 'project', 'superlative', 'project', 'union']
train
SPIDER_train_832
Find the maximum and minimum durations of tracks in milliseconds.
return tracks ;return duration of #1 in milliseconds ;return maximum of #2 ;return minimum of #2 ;return #3 , #4
['select', 'project', 'aggregate', 'aggregate', 'union']
train
SPIDER_train_833
Show the album names, ids and the number of tracks for each album.
return albums ;return album names of #1 ;return ids of #1 ;return tracks of #1 ;return number of #4 for each #1 ;return #2 , #3 , #5
['select', 'project', 'project', 'project', 'group', 'union']
train
SPIDER_train_834
What are the names and ids of the different albums, and how many tracks are on each?
return albums ;return names of #1 ;return ids of #1 ;return tracks on #1 ;return number of #4 for each #1 ;return #2 , #3 , #5
['select', 'project', 'project', 'project', 'group', 'union']
train
SPIDER_train_835
What is the name of the most common genre in all tracks?
return genres ;return tracks of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return name of #4
['select', 'project', 'group', 'superlative', 'project']
train
SPIDER_train_836
Find the name of the genre that is most frequent across all tracks.
return genres ;return tracks with #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return name of #4
['select', 'project', 'group', 'superlative', 'project']
train
SPIDER_train_837
What is the least common media type in all tracks?
return tracks ;return media types of #1 ;return the least common #2
['select', 'project', 'project']
train
SPIDER_train_838
What is the name of the media type that is least common across all tracks?
return tracks ;return media types of #1 ;return number of #1 for each #2 ;return #2 where #3 is the lowest ;return the name of #4
['select', 'project', 'group', 'comparative', 'project']
train
SPIDER_train_839
Show the album names and ids for albums that contain tracks with unit price bigger than 1.
return albums ;return tracks of #1 ;return unit prices of #2 ;return #1 where #3 is higher than 1 ;return album names of #4 ;return ids of #4 ;return #5 , #6
['select', 'project', 'project', 'comparative', 'project', 'project', 'union']
train
SPIDER_train_84
What are the ids of the candidates that have an outcome code of Pass?
return candidates ;return outcomes of #1 ;return codes of #2 ;return #1 where #3 is Pass ;return ids of #4
['select', 'project', 'project', 'comparative', 'project']
train
SPIDER_train_840
What are the titles and ids for albums containing tracks with unit price greater than 1?
return albums ;return tracks of #1 ;return unit prices of #2 ;return #1 where #3 is higher than 1 ;return titles of #1 ;return ids of #1 ;return #5 , #6
['select', 'project', 'project', 'comparative', 'project', 'project', 'union']
train
SPIDER_train_841
How many tracks belong to rock genre?
return rock genre ;return tracks of #1 ;return number of #2
['select', 'project', 'aggregate']
train
SPIDER_train_842
Count the number of tracks that are part of the rock genre.
return tracks ;return genres of #1 ;return #1 where #2 is rock ;return number of #3
['select', 'project', 'comparative', 'aggregate']
train
SPIDER_train_843
What is the average unit price of tracks that belong to Jazz genre?
return tracks ;return #1 that belong to Jazz genre ;return unit price of #2 ;return average of #3
['select', 'filter', 'project', 'aggregate']
train
SPIDER_train_844
Find the average unit price of jazz tracks.
return jazz tracks ;return prices of #1 ;return average of #2
['select', 'project', 'aggregate']
train
SPIDER_train_845
What is the first name and last name of the customer that has email "[email protected]"?
return customers ;return #1 that has email luisg @ embraer.com.br ;return first name of #2 ;return last name of #2 ;return #3 , #4
['select', 'filter', 'project', 'project', 'union']
train
SPIDER_train_846
Find the full name of the customer with the email "[email protected]".
return customers ;return emails of #1 ;return #1 where #2 is luisg @ embraer.com.br ;return full name of #3
['select', 'project', 'comparative', 'project']
train
SPIDER_train_847
How many customers have email that contains "gmail.com"?
return customers ;return email of #1 ;return #1 where #2 contains gmail.com ;return number of #3
['select', 'project', 'comparative', 'aggregate']
train
SPIDER_train_848
Count the number of customers that have an email containing "gmail.com".
return customers ;return #1 that have an email ;return #2 containing gmail.com ;return number of #3
['select', 'filter', 'filter', 'aggregate']
train
SPIDER_train_849
What is the first name and last name employee helps the customer with first name Leonie?
return employees ;return customers #1 helps ;return first names of #2 ;return #1 where #3 is Leonie ;return first name of #4 ;return last name of #4 ;return #5 , #6
['select', 'project', 'project', 'comparative', 'project', 'project', 'union']
train
SPIDER_train_85
Find the cell mobile number of the candidates whose assessment code is "Fail"?
return candidates ;return #1 whose assessment code is Fail ;return cell mobile number of #2
['select', 'filter', 'aggregate']
train
SPIDER_train_850
Find the full names of employees who help customers with the first name Leonie.
return employees ;return customers #1 help ;return first names of #2 ;return #1 where #3 is Leonie ;return full names of #4
['select', 'project', 'project', 'comparative', 'project']
train
SPIDER_train_851
What city does the employee who helps the customer with postal code 70174 live in?
return customer ;return employee ;return postal code of #1 ;return the #1 where #3 is 70174 ;return the #2 that helps #4 ;return the city of #5
['select', 'select', 'project', 'comparative', 'None', 'project']
train
SPIDER_train_852
Find the cities corresponding to employees who help customers with the postal code 70174.
return customers ;return postal codes of #1 ;return #1 where #2 is 70174 ;return employees of #3 ;return cities of #4
['select', 'project', 'comparative', 'project', 'project']
train
SPIDER_train_853
How many distinct cities does the employees live in?
return employees ;return cities #1 live in ;return distinct #2 ;return number of #3
['select', 'project', 'project', 'aggregate']
train
SPIDER_train_854
Find the number of different cities that employees live in.
return cities ;return #1 where employees live ;return number of #2
['select', 'filter', 'aggregate']
train
SPIDER_train_855
Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.
return customers ;return first names of #1 ;return #1 where #2 is Astrid ;return last names of #1 ;return #1 where #2 is Gruber ;return #1 of both #3 and #5 ;return invoice dates corresponding to #6
['select', 'project', 'comparative', 'project', 'comparative', 'intersection', 'project']
train
SPIDER_train_856
What are the invoice dates for customers with the first name Astrid and the last name Gruber?
return customers ;return first names of #1 ;return #1 where #2 is Astrid ;return last names of customers ;return #1 where #4 is Gruber ;return #1 of both #3 and #5 ;return invoices of #6 ;return dates of #7
['select', 'project', 'comparative', 'select', 'comparative', 'intersection', 'project', 'project']
train
SPIDER_train_857
Find all the customer last names that do not have invoice totals larger than 20.
return invoices ;return totals of #1 ;return #2 less than 20 ;return customers of #3 ;return last names of #4
['select', 'project', 'filter', 'project', 'project']
train
SPIDER_train_858
What are the last names of customers without invoice totals exceeding 20?
return customers ;return invoices of #1 ;return totals of #2 ;return #1 where #3 is at most 20 ;return last names of #4
['select', 'project', 'project', 'comparative', 'project']
train
SPIDER_train_859
Find the first names of all customers that live in Brazil and have an invoice.
return customers ;return #1 that live in Brazil ;return #2 that have an invoice ;return first names of #3
['select', 'filter', 'filter', 'project']
train
SPIDER_train_86
What are the cell phone numbers of the candidates that received an assessment code of "Fail"?
return candidates ;return #1 that received an assessment code of Fail ;return cell phone number of #2
['select', 'filter', 'aggregate']
train
SPIDER_train_860
What are the different first names for customers from Brazil who have also had an invoice?
return customers ;return #1 from Brazil ;return #2 who had an invoice ;return different first names of #3
['select', 'filter', 'filter', 'project']
train
SPIDER_train_861
Find the address of all customers that live in Germany and have invoice.
return customers ;return #1 that live in Germany ;return #1 that have invoices ;return #1 of both #2 and #3 ;return addresses of #4
['select', 'filter', 'filter', 'intersection', 'project']
train
SPIDER_train_862
What are the addresses of customers living in Germany who have had an invoice?
return customers ;return #1 that are living in Germany ;return #1 who have had an invoice ;return #1 of both #2 and #3 ;return addresses of #4
['select', 'filter', 'filter', 'intersection', 'project']
train
SPIDER_train_863
List the phone numbers of all employees.
return employees ;return phone numbers of #1
['select', 'project']
train
SPIDER_train_864
What are the phone numbers for each employee?
return employees ;return phone numbers of #1
['select', 'project']
train
SPIDER_train_865
How many tracks are in the AAC audio file media type?
return tracks ;return audio file media types of #1 ;return #1 where #2 is AAC ;return number of #3
['select', 'project', 'comparative', 'aggregate']
train
SPIDER_train_866
Count the number of tracks that are of the media type "AAC audio file".
return tracks ;return media types of #1 ;return #1 where #2 is AAC audio files ;return number of #3
['select', 'project', 'comparative', 'aggregate']
train
SPIDER_train_867
What is the average duration in milliseconds of tracks that belong to Latin or Pop genre?
return tracks ;return genre of #1 ;return #1 where #2 is Latin ;return #1 where #2 is Pop ;return #3 , #4 ;return duration of #5 in milliseconds ;return average of #6
['select', 'project', 'comparative', 'comparative', 'union', 'project', 'aggregate']
train
SPIDER_train_868
Find the average millisecond length of Latin and Pop tracks.
return Latin tracks ;return #1 and Pop tracks ;return millisecond length of #2 ;return average of #3
['select', 'filter', 'project', 'aggregate']
train
SPIDER_train_869
Please show the employee first names and ids of employees who serve at least 10 customers.
return employees ;return customers #1 serve ;return number of #2 for each #1 ;return #1 where #3 is at least 10 ;return first names of #4 ;return ids of #4 ;return #5 , #6
['select', 'project', 'group', 'comparative', 'project', 'project', 'union']
train
SPIDER_train_87
What are the id of students who registered course 301?
return students ;return courses #1 registered ;return #1 where #2 is 301 ;return ids of #3
['select', 'project', 'comparative', 'project']
train
SPIDER_train_870
What are the first names and support rep ids for employees serving 10 or more customers?
return employees ;return customers #1 are serving ;return number of #2 for each #1 ;return #1 where #3 is at least 10 ;return first names of #4 ;return support rep ids of #4 ;return #5 , #6
['select', 'project', 'group', 'comparative', 'project', 'project', 'union']
train
SPIDER_train_871
Please show the employee last names that serves no more than 20 customers.
return employees ;return customers #1 serve ;return number of #2 for each #1 ;return #1 where #3 is at most 20 ;return last names of #4
['select', 'project', 'group', 'comparative', 'project']
train
SPIDER_train_872
What are the last names of employees who serve at most 20 customers?
return employees ;return customers that #1 serve ;return the number of #2 for each #1 ;return #1 where #3 is at most 20 ;return the last names of #4
['select', 'project', 'group', 'comparative', 'project']
train
SPIDER_train_873
Please list all album titles in alphabetical order.
return album titles ;return #1 sorted by alphabetical order
['select', 'sort']
train
SPIDER_train_874
What are all the album titles, in alphabetical order?
return albums ;return titles of #1 ;return #2 sorted by alphabetical order
['select', 'project', 'sort']
train
SPIDER_train_875
Please list the name and id of all artists that have at least 3 albums in alphabetical order.
return artists ;return albums of #1 ;return number of #2 for each #1 ;return #1 where #3 is at least 3 ;return names of #4 ;return ids of #4 ;return #5 , #6 ;return #7 sorted by alphabetical order
['select', 'project', 'group', 'comparative', 'project', 'project', 'union', 'sort']
train
SPIDER_train_876
What are the names and ids of artists with 3 or more albums, listed in alphabetical order?
return artists ;return albums of #1 ;return number of #2 for each #1 ;return #1 where #3 is at least 3 ;return names of #4 ;return ids of #4 ;return #5 , #6 ;return #7 sorted by alphabetical order
['select', 'project', 'group', 'comparative', 'project', 'project', 'union', 'sort']
train
SPIDER_train_877
Find the names of artists that do not have any albums.
return artists ;return #1 that have albums ;return #1 besides #2 ;return names of #3
['select', 'filter', 'discard', 'project']
train
SPIDER_train_878
What are the names of artists who have not released any albums?
return artists ;return #1 who have not released albums ;return names of #2
['select', 'filter', 'project']
train
SPIDER_train_879
What is the average unit price of rock tracks?
return rock tracks ;return unit prices of #1 ;return average of #2
['select', 'project', 'aggregate']
train
SPIDER_train_88
What are the ids of the students who registered for course 301?
return students ;return courses #1 are registered for ;return #1 where #2 is 301 ;return ids of #3
['select', 'project', 'comparative', 'project']
train
SPIDER_train_880
Find the average unit price of tracks from the Rock genre.
return tracks ;return #1 from the Rock genre ;return unit prices of #2 ;return the average of #3
['select', 'filter', 'project', 'aggregate']
train
SPIDER_train_881
What are the duration of the longest and shortest pop tracks in milliseconds?
return pop tracks ;return durations of #1 ;return milliseconds of #2 ;return longest of #3 ;return shortest of #3 ;return #4 , #5
['select', 'project', 'project', 'aggregate', 'aggregate', 'union']
train
SPIDER_train_882
Find the maximum and minimum millisecond lengths of pop tracks.
return pop tracks ;return millisecond lengths of #1 ;return maximum #2 ;return minimum #2 ;return #3 and #4
['select', 'project', 'aggregate', 'aggregate', 'union']
train
SPIDER_train_883
What are the birth dates of employees living in Edmonton?
return employees ;return #1 living in Edmonton ;return birth dates of #2
['select', 'filter', 'project']
train
SPIDER_train_884
Find the birth dates corresponding to employees who live in the city of Edmonton.
return employees ;return #1 who live in the city of Edmonton ;return birth dates of #2
['select', 'filter', 'project']
train
SPIDER_train_885
What are the distinct unit prices of all tracks?
return tracks ;return distinct unit prices of #1
['select', 'project']
train
SPIDER_train_886
Find the distinct unit prices for tracks.
return tracks ;return distinct unit prices of #1
['select', 'project']
train
SPIDER_train_887
How many artists do not have any album?
return artists ;return #1 who have albums ;return #1 besides #2 ;return number of #3
['select', 'filter', 'discard', 'aggregate']
train
SPIDER_train_888
Cound the number of artists who have not released an album.
return artists ;return #1 that have not released an album ;return number of #2
['select', 'filter', 'aggregate']
train
SPIDER_train_889
What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?
return albums ;return tracks of #1 ;return genres of #2 ;return #1 where #3 is 'Rock ;return #1 where #3 is 'Reggae ;return #1 in both #4 and #5 ;return album titles of #6
['select', 'project', 'project', 'comparative', 'comparative', 'intersection', 'project']
train
SPIDER_train_89
What is the id of the student who most recently registered course 301?
return students ;return how recently #1 registered course 301 ;return #1 where #2 is the most recently ;return the id of #3
['select', 'project', 'comparative', 'project']
train