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_5938
What are the average prices of hotels grouped by their pet policy.
return hotels ;return prices of #1 ;return pet policies of #1 ;return average of #2 for each #3
['select', 'project', 'project', 'group']
train
["SELECT['hotels']", "PROJECT['prices of #REF', '#1']", "PROJECT['pet policies of #REF', '#1']", "GROUP['avg', '#2', '#3']"]
SPIDER_train_5939
Show the id and star rating of each hotel, ordered by its price from low to high.
return hotels ;return ids of #1 ;return star ratings of #1 ;return prices of #1 ;return #2 , #3 , ;return #5 sorted by #4 from low to high
['select', 'project', 'project', 'project', 'union', 'sort']
train
["SELECT['hotels']", "PROJECT['ids of #REF', '#1']", "PROJECT['star ratings of #REF', '#1']", "PROJECT['prices of #REF', '#1']", "UNION['#2', '#3']", "SORT['#5', '#4 from low to high']"]
SPIDER_train_594
What is the full name of the employee who has the most customers?
return employees ;return customers of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return full name of #4
['select', 'project', 'group', 'superlative', 'project']
train
["SELECT['employees']", "PROJECT['customers of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['full name of #REF', '#4']"]
SPIDER_train_5940
Find the id and star rating of each hotel and sort them in increasing order of price.
return hotels ;return ids of #1 ;return star ratings of #1 ;return prices of #1 ;return #2 and #3 ;return #5 sorted by #4
['select', 'project', 'project', 'project', 'union', 'sort']
train
["SELECT['hotels']", "PROJECT['ids of #REF', '#1']", "PROJECT['star ratings of #REF', '#1']", "PROJECT['prices of #REF', '#1']", "UNION['#2', '#3']", "SORT['#5', '#4']"]
SPIDER_train_5941
Show the details of the top 3 most expensive hotels.
return hotels ;return #1 sorted by most expensive ;return three most expensive #1 ;return details of #3
['select', 'sort', 'project', 'project']
train
["SELECT['hotels']", "SORT['#1', 'most expensive']", "PROJECT['three most expensive #REF', '#1']", "PROJECT['details of #REF', '#3']"]
SPIDER_train_5942
What are the details of the three most expensive hotels?
return hotels ;return how expensive #1 are ;return #1 where #2 is in the three most expensive ;return the details of #3
['select', 'project', 'comparative', 'project']
train
["SELECT['hotels']", "PROJECT['how expensive #REF are', '#1']", "COMPARATIVE['#1', '#2', 'is in the three most expensive']", "PROJECT['the details of #REF', '#3']"]
SPIDER_train_5943
Show the details and star ratings of the 3 least expensive hotels.
return hotels ;return price of #1 ;return the 3 lowest #2 ;return #1 where #2 is in #3 ;return details of #4 ;return star ratings of #4 ;return #5 , #6
['select', 'project', 'aggregate', 'comparative', 'project', 'project', 'union']
train
["SELECT['hotels']", "PROJECT['price of #REF', '#1']", "AGGREGATE['min', '#2']", "COMPARATIVE['#1', '#2', 'is in #3']", "PROJECT['details of #REF', '#4']", "PROJECT['star ratings of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_5944
What are the details and star ratings of the three hotels with the lowest price ranges?
return hotels ;return price ranges of #1 ;return the three lowest of #2 ;return #1 where #2 is equal to any of #3 ;return details of #4 ;return star ratings of #4 ;return #5 , #6
['select', 'project', 'aggregate', 'comparative', 'project', 'project', 'union']
train
["SELECT['hotels']", "PROJECT['price ranges of #REF', '#1']", "AGGREGATE['min', '#2']", "COMPARATIVE['#1', '#2', 'is equal to any of #3']", "PROJECT['details of #REF', '#4']", "PROJECT['star ratings of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_5945
Show the transportation method most people choose to get to tourist attractions.
return tourist attractions ;return transportation method to #1 ;return people that choose #2 ;return number of #3 for each #2 ;return #2 where #4 is the highest
['select', 'project', 'project', 'group', 'comparative']
train
["SELECT['tourist attractions']", "PROJECT['transportation method to #REF', '#1']", "PROJECT['people that choose #REF', '#2']", "GROUP['count', '#3', '#2']", "COMPARATIVE['#2', '#4', 'is the highest']"]
SPIDER_train_5946
Which transportation method is used the most often to get to tourist attractions?
return transportations ;return #1 to get to tourist attractions ;return methods of #2 ;return most used #3
['select', 'filter', 'project', 'project']
train
["SELECT['transportations']", "FILTER['#1', 'to get to tourist attractions']", "PROJECT['methods of #REF', '#2']", "PROJECT['most used #REF', '#3']"]
SPIDER_train_5947
Show the description and code of the attraction type most tourist attractions belong to.
return attraction types ;return attractions with #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return description of #4 ;return code of #4 ;return #5 , #6
['select', 'project', 'group', 'superlative', 'project', 'project', 'union']
train
["SELECT['attraction types']", "PROJECT['attractions with #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['description of #REF', '#4']", "PROJECT['code of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_5948
Which attraction type does the most tourist attractions belong to? Tell me its attraction type description and code.
return attractions ;return types of #1 ;return tourist attractions with #2 ;return number of #3 for each #2 ;return #2 where #4 is highest ;return attraction type descriptions of #5 ;return attraction type code of #5 ;return #6 , #7
['select', 'project', 'project', 'group', 'superlative', 'project', 'project', 'union']
train
["SELECT['attractions']", "PROJECT['types of #REF', '#1']", "PROJECT['tourist attractions with #REF', '#2']", "GROUP['count', '#3', '#2']", "SUPERLATIVE['max', '#2', '#4']", "PROJECT['attraction type descriptions of #REF', '#5']", "PROJECT['attraction type code of #REF', '#5']", "UNION['#6', '#7']"]
SPIDER_train_5949
Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way.
return attractions ;return ways to get to #1 ;return number of #1 accessed for each #2 ;return #2 , #3
['select', 'project', 'group', 'union']
train
["SELECT['attractions']", "PROJECT['ways to get to #REF', '#1']", "GROUP['count', '#1', '#2']", "UNION['#2', '#3']"]
SPIDER_train_595
How many employees are living in Canada?
return employees ;return #1 living in Canada ;return number of #2
['select', 'filter', 'aggregate']
train
["SELECT['employees']", "FILTER['#1', 'living in Canada']", "AGGREGATE['count', '#2']"]
SPIDER_train_5950
List all the possible ways to get to attractions, together with the number of attractions accessible by these methods.
return attractions ;return ways to get to #1 ;return number of #1 accessible for each #2 ;return #2 , #3
['select', 'project', 'group', 'union']
train
["SELECT['attractions']", "PROJECT['ways to get to #REF', '#1']", "GROUP['count', '#1', '#2']", "UNION['#2', '#3']"]
SPIDER_train_5951
Show different tourist attractions' names, ids, and the corresponding number of visits.
return different tourist attractions ;return names of #1 ;return ids of #1 ;return visits to #1 ;return number of #4 for each #1 ;return #2 , #3 , #5
['select', 'project', 'project', 'project', 'group', 'union']
train
["SELECT['different tourist attractions']", "PROJECT['names of #REF', '#1']", "PROJECT['ids of #REF', '#1']", "PROJECT['visits to #REF', '#1']", "GROUP['count', '#4', '#1']", "UNION['#2', '#3', '#5']"]
SPIDER_train_5952
What are the name, id and the corresponding number of visits for each tourist attraction?
return tourist attractions ;return names of #1 ;return ids of #1 ;return visits to #1 ;return number of #4 for each #1 ;return #2 , #3 , #5
['select', 'project', 'project', 'project', 'group', 'union']
train
["SELECT['tourist attractions']", "PROJECT['names of #REF', '#1']", "PROJECT['ids of #REF', '#1']", "PROJECT['visits to #REF', '#1']", "GROUP['count', '#4', '#1']", "UNION['#2', '#3', '#5']"]
SPIDER_train_5953
Show the names and ids of tourist attractions that are visited at least two times.
return tourist attractions ;return times visited of #1 ;return #1 where #2 is at least two ;return names of #3 ;return ids of #3 ;return #4 , #5
['select', 'project', 'comparative', 'project', 'project', 'union']
train
["SELECT['tourist attractions']", "PROJECT['times visited of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is at least two']", "PROJECT['names of #REF', '#3']", "PROJECT['ids of #REF', '#3']", "UNION['#4', '#5']"]
SPIDER_train_5954
Which tourist attractions are visited at least twice? Give me their names and ids.
return tourist attractions ;return #1 visited at least twice ;return names of #2 ;return ids of #2 ;return #3 , #4
['select', 'filter', 'project', 'project', 'union']
train
["SELECT['tourist attractions']", "FILTER['#1', 'visited at least twice']", "PROJECT['names of #REF', '#2']", "PROJECT['ids of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_5955
Show the names and ids of tourist attractions that are visited at most once.
return tourist attractions ;return #1 that are visited at most once ;return the names of #2 ;return the ids of #2 ;return #3 , #4
['select', 'filter', 'project', 'project', 'union']
train
["SELECT['tourist attractions']", "FILTER['#1', 'that are visited at most once']", "PROJECT['the names of #REF', '#2']", "PROJECT['the ids of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_5956
What are the names and ids of the tourist attractions that are visited at most once?
return tourist attractions ;return #1 visited at most once ;return names of #2 ;return ids of #2 ;return #3 , #4
['select', 'filter', 'project', 'project', 'union']
train
["SELECT['tourist attractions']", "FILTER['#1', 'visited at most once']", "PROJECT['names of #REF', '#2']", "PROJECT['ids of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_5957
What are the names of tourist attractions that can be reached by walk or is at address 660 Shea Crescent?
return tourist attractions ;return #1 that can be reached by walk ;return address of #1 ;return #1 where #3 is 660 Shea Crescent ;return #2 , #4 ;return names of #5
['select', 'filter', 'project', 'comparative', 'union', 'project']
train
["SELECT['tourist attractions']", "FILTER['#1', 'that can be reached by walk']", "PROJECT['address of #REF', '#1']", "COMPARATIVE['#1', '#3', 'is 660 Shea Crescent']", "UNION['#2', '#4']", "PROJECT['names of #REF', '#5']"]
SPIDER_train_5958
Find the names of the tourist attractions that is either accessible by walk or at address 660 Shea Crescent.
return tourist attractions ;return #1 accessible by walk ;return #1 at address 660 Shea Crescent ;return names of #2 ;return names of #3 ;return #4 or #5
['select', 'filter', 'filter', 'project', 'project', 'union']
train
["SELECT['tourist attractions']", "FILTER['#1', 'accessible by walk']", "FILTER['#1', 'at address 660 Shea Crescent']", "PROJECT['names of #REF', '#2']", "PROJECT['names of #REF', '#3']", "UNION['#4', '#5']"]
SPIDER_train_5959
What are the names of the tourist attractions that have parking or shopping as their feature details?
return tourist attractions ;return feature details of #1 ;return #1 where #2 is parking ;return #1 where #2 is shopping ;return #3 , #4 ;return the names of #5
['select', 'project', 'comparative', 'comparative', 'union', 'project']
train
["SELECT['tourist attractions']", "PROJECT['feature details of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is parking']", "COMPARATIVE['#1', '#2', 'is shopping']", "UNION['#3', '#4']", "PROJECT['the names of #REF', '#5']"]
SPIDER_train_596
How many employees live in Canada?
return employees ;return #1 that live in Canada ;return number of #2
['select', 'filter', 'aggregate']
train
["SELECT['employees']", "FILTER['#1', 'that live in Canada']", "AGGREGATE['count', '#2']"]
SPIDER_train_5960
Find the tourist attractions that have parking or shopping as their feature details. What are the names of the attractions?
return tourist attractions ;return feature details of #1 ;return #1 where #2 is parking ;return #1 where #2 is shopping ;return #3 or #4 ;return names of #5
['select', 'project', 'comparative', 'comparative', 'union', 'project']
train
["SELECT['tourist attractions']", "PROJECT['feature details of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is parking']", "COMPARATIVE['#1', '#2', 'is shopping']", "UNION['#3', '#4']", "PROJECT['names of #REF', '#5']"]
SPIDER_train_5961
What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?
return tourist attractions ;return #1 that can be reached by bus ;return address of #1 ;return #1 where #3 is 254 Ottilie Junction ;return #2 , #4 ;return names of #5
['select', 'filter', 'project', 'comparative', 'union', 'project']
train
["SELECT['tourist attractions']", "FILTER['#1', 'that can be reached by bus']", "PROJECT['address of #REF', '#1']", "COMPARATIVE['#1', '#3', 'is 254 Ottilie Junction']", "UNION['#2', '#4']", "PROJECT['names of #REF', '#5']"]
SPIDER_train_5962
Find the names of the tourist attractions that is either accessible by bus or at address 254 Ottilie Junction.
return tourist attractions ;return address of #1 ;return #1 where #2 is 254 Ottilie Junction ;return #1 that are accessible by bus ;return #4 , #3 ;return names of #5
['select', 'project', 'comparative', 'filter', 'union', 'project']
train
["SELECT['tourist attractions']", "PROJECT['address of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 254 Ottilie Junction']", "FILTER['#1', 'that are accessible by bus']", "UNION['#4', '#3']", "PROJECT['names of #REF', '#5']"]
SPIDER_train_5963
What are the names of the tourist attractions Vincent and Marcelle visit?
return tourist attractions ;return #1 that Vincent visits ;return #1 that Marcelle visits ;return #1 of both #2 and #3 ;return names of #4
['select', 'filter', 'filter', 'intersection', 'project']
train
["SELECT['tourist attractions']", "FILTER['#1', 'that Vincent visits']", "FILTER['#1', 'that Marcelle visits']", "INTERSECTION['#1', '#2', '#3']", "PROJECT['names of #REF', '#4']"]
SPIDER_train_5964
Which tourist attractions do the tourists Vincent and Marcelle visit? Tell me the names of the attractions.
return tourist attractions ;return #1 Vincent visits ;return #1 Marcelle visits ;return #1 of both #2 and #3 ;return names of #4
['select', 'filter', 'filter', 'intersection', 'project']
train
["SELECT['tourist attractions']", "FILTER['#1', 'Vincent visits']", "FILTER['#1', 'Marcelle visits']", "INTERSECTION['#1', '#2', '#3']", "PROJECT['names of #REF', '#4']"]
SPIDER_train_5965
What are the names of tourist attraction that Alison visited but Rosalind did not visit?
return tourist attractions ;return #1 that Alison visited ;return #1 that Rosalind visited ;return #2 besides #3 ;return names of #4
['select', 'filter', 'filter', 'discard', 'project']
train
["SELECT['tourist attractions']", "FILTER['#1', 'that Alison visited']", "FILTER['#1', 'that Rosalind visited']", "DISCARD['#2', '#3']", "PROJECT['names of #REF', '#4']"]
SPIDER_train_5966
Find the the names of the tourist attractions that the tourist named Alison visited but Rosalind did not visit.
return tourist attractions ;return tourists that visited #1 ;return #1 where #2 is Alison ;return #1 where #2 is Rosalind ;return #3 besides #4 ;return names of #5
['select', 'project', 'comparative', 'comparative', 'discard', 'project']
train
["SELECT['tourist attractions']", "PROJECT['tourists that visited #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Alison']", "COMPARATIVE['#1', '#2', 'is Rosalind']", "DISCARD['#3', '#4']", "PROJECT['names of #REF', '#5']"]
SPIDER_train_5967
How many tourists did not make any visit?
return tourists ;return visits of #1 ;return #1 where #2 is higher than zero ;return #1 besides #3
['select', 'project', 'comparative', 'discard']
train
["SELECT['tourists']", "PROJECT['visits of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is higher than zero']", "DISCARD['#1', '#3']"]
SPIDER_train_5968
Count the number of tourists who did not visit any place.
return places ;return tourists of #1 ;return tourists besides #2 ;return number of #3
['select', 'project', 'discard', 'aggregate']
train
["SELECT['places']", "PROJECT['tourists of #REF', '#1']", "DISCARD['tourists', '#2']", "AGGREGATE['count', '#3']"]
SPIDER_train_5969
How many video games exist?
return video games ;return number of #1
['select', 'aggregate']
train
["SELECT['video games']", "AGGREGATE['count', '#1']"]
SPIDER_train_597
What is employee Nancy Edwards's phone number?
return employee Nancy Edwards ;return phone number of #1
['select', 'aggregate']
train
["SELECT['employee Nancy Edwards']", "AGGREGATE['count', '#1']"]
SPIDER_train_5970
How many video games do you have?
return video games ;return number of #1
['select', 'aggregate']
train
["SELECT['video games']", "AGGREGATE['count', '#1']"]
SPIDER_train_5971
How many video game types exist?
return video games ;return number of #1
['select', 'aggregate']
train
["SELECT['video games']", "AGGREGATE['count', '#1']"]
SPIDER_train_5972
What is the count of different game types?
return games ;return different types of #1 ;return count of #2
['select', 'project', 'project']
train
["SELECT['games']", "PROJECT['different types of #REF', '#1']", "PROJECT['count of #REF', '#2']"]
SPIDER_train_5973
Show all video game types.
return video games ;return types of #1
['select', 'project']
train
["SELECT['video games']", "PROJECT['types of #REF', '#1']"]
SPIDER_train_5974
What are the different types of video games?
return video games ;return types of #1 ;return different #2
['select', 'project', 'project']
train
["SELECT['video games']", "PROJECT['types of #REF', '#1']", "PROJECT['different #REF', '#2']"]
SPIDER_train_5975
Show all video games and their types in the order of their names.
return video games ;return types of #1 ;return names of #1 ;return #1 , #2 ;return #4 sorted by #3
['select', 'project', 'project', 'union', 'sort']
train
["SELECT['video games']", "PROJECT['types of #REF', '#1']", "PROJECT['names of #REF', '#1']", "UNION['#1', '#2']", "SORT['#4', '#3']"]
SPIDER_train_5976
What are the names of all the video games and their types in alphabetical order?
return video games ;return names of #1 ;return types of #1 ;return #2 , #3 ;return #4 sorted by #3 in alphabetical order
['select', 'project', 'project', 'union', 'sort']
train
["SELECT['video games']", "PROJECT['names of #REF', '#1']", "PROJECT['types of #REF', '#1']", "UNION['#2', '#3']", "SORT['#4', '#3 in alphabetical order']"]
SPIDER_train_5977
Show all video games with type Collectible card game.
return video games ;return types of #1 ;return #1 where #2 is Collectible card game
['select', 'project', 'comparative']
train
["SELECT['video games']", "PROJECT['types of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Collectible card game']"]
SPIDER_train_5978
What are the names of all video games that are collectible cards?
return video games ;return names of #1 ;return #2 where #1 are collectible cards
['select', 'project', 'comparative']
train
["SELECT['video games']", "PROJECT['names of #REF', '#1']", "COMPARATIVE['#2', '#1', 'are collectible cards']"]
SPIDER_train_5979
What is the type of video game Call of Destiny.
return video games ;return #1 which are Call of Destiny ;return type of #2
['select', 'filter', 'project']
train
["SELECT['video games']", "FILTER['#1', 'which are Call of Destiny']", "PROJECT['type of #REF', '#2']"]
SPIDER_train_598
What is the the phone number of Nancy Edwards?
return Nancy Edwards ;return phone number of #1
['select', 'aggregate']
train
["SELECT['Nancy Edwards']", "AGGREGATE['count', '#1']"]
SPIDER_train_5980
What type of game is Call of Destiny?
return game ;return type of #1 ;return #2 that is Call of Destiny
['select', 'project', 'filter']
train
["SELECT['game']", "PROJECT['type of #REF', '#1']", "FILTER['#2', 'that is Call of Destiny']"]
SPIDER_train_5981
How many video games have type Massively multiplayer online game?
return video games ;return type of #1 ;return #1 where #2 is Massively multiplayer online ;return number of #3
['select', 'project', 'comparative', 'aggregate']
train
["SELECT['video games']", "PROJECT['type of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Massively multiplayer online']", "AGGREGATE['count', '#3']"]
SPIDER_train_5982
Count the number of video games with Massively multiplayer online game type .
return video games ;return game types of #1 ;return #1 where #2 is Massively multiplayer online ;return number of #3
['select', 'project', 'comparative', 'aggregate']
train
["SELECT['video games']", "PROJECT['game types of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Massively multiplayer online']", "AGGREGATE['count', '#3']"]
SPIDER_train_5983
Show all video game types and the number of video games in each type.
return video game types ;return video games in #1 ;return number of #2 for each #1 ;return #1 , #3
['select', 'project', 'group', 'union']
train
["SELECT['video game types']", "PROJECT['video games in #REF', '#1']", "GROUP['count', '#2', '#1']", "UNION['#1', '#3']"]
SPIDER_train_5984
What are the types of video games and how many are in each type?
return video games ;return types of #1 ;return number of #1 for each #2 ;return #2 , #3
['select', 'project', 'group', 'union']
train
["SELECT['video games']", "PROJECT['types of #REF', '#1']", "GROUP['count', '#1', '#2']", "UNION['#2', '#3']"]
SPIDER_train_5985
Which game type has most number of games?
return game types ;return games of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest
['select', 'project', 'group', 'superlative']
train
["SELECT['game types']", "PROJECT['games of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']"]
SPIDER_train_5986
What type has the most games?
return types ;return games of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest
['select', 'project', 'group', 'superlative']
train
["SELECT['types']", "PROJECT['games of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']"]
SPIDER_train_5987
Which game type has least number of games?
return game types ;return games of #1 ;return number of #2 for each #1 ;return #1 where #3 is lowest
['select', 'project', 'group', 'superlative']
train
["SELECT['game types']", "PROJECT['games of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['min', '#1', '#3']"]
SPIDER_train_5988
What is the type with the fewest games?
return type ;return games of #1 ;return number of #2 for each #1 ;return #1 where #3 is lowest
['select', 'project', 'group', 'superlative']
train
["SELECT['type']", "PROJECT['games of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['min', '#1', '#3']"]
SPIDER_train_5989
Show ids for all students who live in CHI.
return students ;return #1 who live in CHI ;return ids of #2
['select', 'filter', 'project']
train
["SELECT['students']", "FILTER['#1', 'who live in CHI']", "PROJECT['ids of #REF', '#2']"]
SPIDER_train_599
Who is the youngest employee in the company? List employee's first and last name.
return employees ;return #1 that is youngest ;return first name of #2 ;return last name of #2 ;return #3 , #4
['select', 'filter', 'project', 'project', 'union']
train
["SELECT['employees']", "FILTER['#1', 'that is youngest']", "PROJECT['first name of #REF', '#2']", "PROJECT['last name of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_5990
What are the ids of all students who live in CHI?
return students ;return #1 who live in CHI ;return ids of #2
['select', 'filter', 'project']
train
["SELECT['students']", "FILTER['#1', 'who live in CHI']", "PROJECT['ids of #REF', '#2']"]
SPIDER_train_5991
Show ids for all students who have advisor 1121.
return students ;return #1 who have advisor 1121 ;return ids of #2
['select', 'filter', 'project']
train
["SELECT['students']", "FILTER['#1', 'who have advisor 1121']", "PROJECT['ids of #REF', '#2']"]
SPIDER_train_5992
What are the ids of all students who have advisor number 1121?
return students ;return advisor of #1 ;return numbers of #2 ;return #1 where #3 is 1121 ;return ids of #4
['select', 'project', 'project', 'comparative', 'project']
train
["SELECT['students']", "PROJECT['advisor of #REF', '#1']", "PROJECT['numbers of #REF', '#2']", "COMPARATIVE['#1', '#3', 'is 1121']", "PROJECT['ids of #REF', '#4']"]
SPIDER_train_5993
Show first name for all students with major 600.
return students ;return major of #1 ;return #1 where #2 is 600 ;return first name of #3
['select', 'project', 'comparative', 'project']
train
["SELECT['students']", "PROJECT['major of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 600']", "PROJECT['first name of #REF', '#3']"]
SPIDER_train_5994
What are the first names for all students who are from the major numbered 600?
return students ;return major of #1 ;return #1 where #2 is numbered 600 ;return first names of #3
['select', 'project', 'comparative', 'project']
train
["SELECT['students']", "PROJECT['major of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is numbered 600']", "PROJECT['first names of #REF', '#3']"]
SPIDER_train_5995
Show the average, minimum, and maximum age for different majors.
return majors ;return average age for each #1 ;return minimum age for each #1 ;return maximum age for each #1 ;return #2 , #3 , #4
['select', 'group', 'group', 'group', 'union']
train
["SELECT['majors']", "GROUP['avg', 'age', '#1']", "GROUP['min', 'age', '#1']", "GROUP['max', 'age', '#1']", "UNION['#2', '#3', '#4']"]
SPIDER_train_5996
What are the average, minimum, and max ages for each of the different majors?
return different majors ;return ages of #1 ;return average of #2 for each #1 ;return minimum of #2 for each #1 ;return max of #2 for each #1 ;return #3 , #4 , #5
['select', 'project', 'group', 'group', 'group', 'union']
train
["SELECT['different majors']", "PROJECT['ages of #REF', '#1']", "GROUP['avg', '#2', '#1']", "GROUP['min', '#2', '#1']", "GROUP['max', '#2', '#1']", "UNION['#3', '#4', '#5']"]
SPIDER_train_5997
Show all advisors who have at least two students.
return advisors ;return students of #1 ;return number of #2 for each #1 ;return #1 where #3 is at least two
['select', 'project', 'group', 'comparative']
train
["SELECT['advisors']", "PROJECT['students of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least two']"]
SPIDER_train_5998
What are the advisors
return advisors ;return What are #1
['select', 'project']
train
["SELECT['advisors']", "PROJECT['What are #REF', '#1']"]
SPIDER_train_5999
How many sports do we have?
return sports ;return the number of #1
['select', 'aggregate']
train
["SELECT['sports']", "AGGREGATE['count', '#1']"]
SPIDER_train_6
What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?
return secretaries ;return #1 born in state 'Alabama ;return departments managed by #2 ;return distinct creation years of #3
['select', 'filter', 'project', 'project']
train
["SELECT['secretaries']", 'FILTER[\'#1\', "born in state \'Alabama"]', "PROJECT['departments managed by #REF', '#2']", "PROJECT['distinct creation years of #REF', '#3']"]
SPIDER_train_60
what are the first name and last name of all candidates?
return candidates ;return first names of #1 ;return last names of #1 ;return #2 , #3
['select', 'project', 'project', 'union']
train
["SELECT['candidates']", "PROJECT['first names of #REF', '#1']", "PROJECT['last names of #REF', '#1']", "UNION['#2', '#3']"]
SPIDER_train_600
What si the youngest employee's first and last name?
return employees ;return the youngest #1 ;return the first name of #2 ;return the last name of #2 ;return #3 , #4
['select', 'project', 'project', 'project', 'union']
train
["SELECT['employees']", "PROJECT['the youngest #REF', '#1']", "PROJECT['the first name of #REF', '#2']", "PROJECT['the last name of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_6000
How many different types of sports do we offer?
return sports ;return types of #1 ;return different #2 ;return number of #3
['select', 'project', 'project', 'aggregate']
train
["SELECT['sports']", "PROJECT['types of #REF', '#1']", "PROJECT['different #REF', '#2']", "AGGREGATE['count', '#3']"]
SPIDER_train_6001
How many students play sports?
return students ;return #1 who play sports ;return number of #2
['select', 'filter', 'aggregate']
train
["SELECT['students']", "FILTER['#1', 'who play sports']", "AGGREGATE['count', '#2']"]
SPIDER_train_6002
How many different students are involved in sports?
return sports ;return students involved in #1 ;return different #2 ;return number of #3
['select', 'project', 'project', 'aggregate']
train
["SELECT['sports']", "PROJECT['students involved in #REF', '#1']", "PROJECT['different #REF', '#2']", "AGGREGATE['count', '#3']"]
SPIDER_train_6003
List ids for all student who are on scholarship.
return students ;return #1 on scholarships ;return ids of #2
['select', 'filter', 'project']
train
["SELECT['students']", "FILTER['#1', 'on scholarships']", "PROJECT['ids of #REF', '#2']"]
SPIDER_train_6004
What are the ids for all sporty students who are on scholarship?
return students ;return sporty #1 ;return #2 who are on scholarship ;return ids of #3
['select', 'project', 'filter', 'project']
train
["SELECT['students']", "PROJECT['sporty #REF', '#1']", "FILTER['#2', 'who are on scholarship']", "PROJECT['ids of #REF', '#3']"]
SPIDER_train_6005
Show last names for all student who are on scholarship.
return students ;return #1 on scholarship ;return last name of #2
['select', 'filter', 'project']
train
["SELECT['students']", "FILTER['#1', 'on scholarship']", "PROJECT['last name of #REF', '#2']"]
SPIDER_train_6006
What are the last names for all scholarship students?
return students ;return #1 on scholarships ;return last names of #2
['select', 'filter', 'project']
train
["SELECT['students']", "FILTER['#1', 'on scholarships']", "PROJECT['last names of #REF', '#2']"]
SPIDER_train_6007
How many games are played for all students?
return students ;return games played of #1 ;return number of #2
['select', 'project', 'aggregate']
train
["SELECT['students']", "PROJECT['games played of #REF', '#1']", "AGGREGATE['count', '#2']"]
SPIDER_train_6008
What is the total number of games played?
return games played ;return number of #1
['select', 'aggregate']
train
["SELECT['games played']", "AGGREGATE['count', '#1']"]
SPIDER_train_6009
How many games are played for all football games by students on scholarship?
return students ;return the #1 on scholarship ;return football games that #2 played ;return the number of #3 for each #2 ;return the sum of #4
['select', 'project', 'project', 'group', 'aggregate']
train
["SELECT['students']", "PROJECT['the #REF on scholarship', '#1']", "PROJECT['football games that #REF played', '#2']", "GROUP['count', '#3', '#2']", "AGGREGATE['sum', '#4']"]
SPIDER_train_601
List top 10 employee work longest in the company. List employee's first and last name.
return employees ;return how long #1 have work ;return the 10 longest #2 ;return #1 where #2 is in #3 ;return first names of #4 ;return last names of #4 ;return #5 , #6
['select', 'project', 'aggregate', 'comparative', 'project', 'project', 'union']
train
["SELECT['employees']", "PROJECT['how long #REF have work', '#1']", "AGGREGATE['max', '#2']", "COMPARATIVE['#1', '#2', 'is in #3']", "PROJECT['first names of #REF', '#4']", "PROJECT['last names of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_6010
What is the total number of all football games played by scholarship students?
return students ;return #1 who have scholarships ;return football games played by #2 ;return number of #3
['select', 'filter', 'project', 'aggregate']
train
["SELECT['students']", "FILTER['#1', 'who have scholarships']", "PROJECT['football games played by #REF', '#2']", "AGGREGATE['count', '#3']"]
SPIDER_train_6011
Show all sport name and the number of students.
return sports ;return names of #1 ;return students of #1 ;return number of #3 for each #1 ;return #2 , #4
['select', 'project', 'project', 'group', 'union']
train
["SELECT['sports']", "PROJECT['names of #REF', '#1']", "PROJECT['students of #REF', '#1']", "GROUP['count', '#3', '#1']", "UNION['#2', '#4']"]
SPIDER_train_6012
How many students play each sport?
return sports ;return students who play #1 ;return number of #2 for each #1
['select', 'project', 'group']
train
["SELECT['sports']", "PROJECT['students who play #REF', '#1']", "GROUP['count', '#2', '#1']"]
SPIDER_train_6013
Show all student IDs with the number of sports and total number of games played
return students ;return IDs of #1 ;return sports ;return number of #3 for each #2 ;return games played of #3 ;return number of #5 for each #3 ;return sum of #6 for each #2 ;return #2 , #4 , #7
['select', 'project', 'select', 'group', 'project', 'group', 'group', 'union']
train
["SELECT['students']", "PROJECT['IDs of #REF', '#1']", "SELECT['sports']", "GROUP['count', '#3', '#2']", "PROJECT['games played of #REF', '#3']", "GROUP['count', '#5', '#3']", "GROUP['sum', '#6', '#2']", "UNION['#2', '#4', '#7']"]
SPIDER_train_6014
What are the ids of all students along with how many sports and games did they play?
return students ;return ids of #1 ;return sports #1 play ;return number of #3 for each #1 ;return games #1 play ;return number of #5 for each #1 ;return #2 , #4 , #6
['select', 'project', 'project', 'group', 'project', 'group', 'union']
train
["SELECT['students']", "PROJECT['ids of #REF', '#1']", "PROJECT['sports #REF play', '#1']", "GROUP['count', '#3', '#1']", "PROJECT['games #REF play', '#1']", "GROUP['count', '#5', '#1']", "UNION['#2', '#4', '#6']"]
SPIDER_train_6015
Show all student IDs with more than total 10 hours per week on all sports played.
return students ;return sports played of #1 ;return hours per week of #2 ;return sum of #3 for each #1 ;return #1 where #4 is higher than 10 ;return IDs of #5
['select', 'project', 'project', 'group', 'comparative', 'project']
train
["SELECT['students']", "PROJECT['sports played of #REF', '#1']", "PROJECT['hours per week of #REF', '#2']", "GROUP['sum', '#3', '#1']", "COMPARATIVE['#1', '#4', 'is higher than 10']", "PROJECT['IDs of #REF', '#5']"]
SPIDER_train_6016
What are the student IDs for everybody who worked for more than 10 hours per week on all sports?
return students ;return sports that #1 worked on ;return hours of #2 per week ;return number of #3 for each #2 ;return sum of #4 for each #1 ;return #1 where #5 is more than 10 ;return student IDs of #6
['select', 'project', 'project', 'group', 'group', 'comparative', 'project']
train
["SELECT['students']", "PROJECT['sports that #REF worked on', '#1']", "PROJECT['hours of #REF per week', '#2']", "GROUP['count', '#3', '#2']", "GROUP['sum', '#4', '#1']", "COMPARATIVE['#1', '#5', 'is more than 10']", "PROJECT['student IDs of #REF', '#6']"]
SPIDER_train_6017
What is the first name and last name of the student who have most number of sports?
return students ;return sports of #1 ;return number of #2 for each #1 ;return #1 where #3 is the highest ;return first name of #4 ;return last name of #4 ;return #5 , #6
['select', 'project', 'group', 'comparative', 'project', 'project', 'union']
train
["SELECT['students']", "PROJECT['sports of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is the highest']", "PROJECT['first name of #REF', '#4']", "PROJECT['last name of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_6018
What is the first and last name of the student who played the most sports?
return students ;return sports that #1 played ;return the number of #2 for each #1 ;return #1 where #3 is the highest ;return the first name of #4 ;return the last name of #4 ;return #5 , #6
['select', 'project', 'group', 'comparative', 'project', 'project', 'union']
train
["SELECT['students']", "PROJECT['sports that #REF played', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is the highest']", "PROJECT['the first name of #REF', '#4']", "PROJECT['the last name of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_6019
Which sport has most number of students on scholarship?
return sports ;return students in #1 ;return #2 on scholarship ;return number of #3 for each #1 ;return #1 where #4 is highest
['select', 'project', 'filter', 'group', 'superlative']
train
["SELECT['sports']", "PROJECT['students in #REF', '#1']", "FILTER['#2', 'on scholarship']", "GROUP['count', '#3', '#1']", "SUPERLATIVE['max', '#1', '#4']"]
SPIDER_train_602
What are the first and last names of the top 10 longest-serving employees?
return employees ;return top 10 longest-serving #1 ;return first names of #2 ;return last names of #2 ;return #3 , #4
['select', 'project', 'project', 'project', 'union']
train
["SELECT['employees']", "PROJECT['top 10 longest-serving #REF', '#1']", "PROJECT['first names of #REF', '#2']", "PROJECT['last names of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_6020
What is the sport with the most scholarship students?
return sports ;return scholarship students of #1 ;return number of #2 for each #1 ;return #1 where #3 is the highest
['select', 'project', 'group', 'comparative']
train
["SELECT['sports']", "PROJECT['scholarship students of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is the highest']"]
SPIDER_train_6021
Show student ids who don't have any sports.
return students ;return #1 who have sports ;return #1 besides #2 ;return ids of #3
['select', 'filter', 'discard', 'project']
train
["SELECT['students']", "FILTER['#1', 'who have sports']", "DISCARD['#1', '#2']", "PROJECT['ids of #REF', '#3']"]
SPIDER_train_6022
What are the ids of all students who don't play sports?
return students ;return #1 who play sports ;return #1 besides #2 ;return ids of #3
['select', 'filter', 'discard', 'project']
train
["SELECT['students']", "FILTER['#1', 'who play sports']", "DISCARD['#1', '#2']", "PROJECT['ids of #REF', '#3']"]
SPIDER_train_6023
Show student ids who are on scholarship and have major 600.
return students ;return #1 on scholarships ;return #2 with major 600 ;return student ids of #3
['select', 'filter', 'filter', 'project']
train
["SELECT['students']", "FILTER['#1', 'on scholarships']", "FILTER['#2', 'with major 600']", "PROJECT['student ids of #REF', '#3']"]
SPIDER_train_6024
What are the student ids for those on scholarship in major number 600?
return students ;return #1 on scholarship ;return major numbers of #2 ;return #2 where #3 is 600 ;return the student ids of #4
['select', 'filter', 'project', 'comparative', 'project']
train
["SELECT['students']", "FILTER['#1', 'on scholarship']", "PROJECT['major numbers of #REF', '#2']", "COMPARATIVE['#2', '#3', 'is 600']", "PROJECT['the student ids of #REF', '#4']"]
SPIDER_train_6025
Show student ids who are female and play football.
return students ;return #1 who are female ;return #2 who play football ;return ids of #3
['select', 'filter', 'filter', 'project']
train
["SELECT['students']", "FILTER['#1', 'who are female']", "FILTER['#2', 'who play football']", "PROJECT['ids of #REF', '#3']"]
SPIDER_train_6026
What are the ids of all female students who play football?
return female students ;return #1 who play football ;return ids of #2
['select', 'filter', 'project']
train
["SELECT['female students']", "FILTER['#1', 'who play football']", "PROJECT['ids of #REF', '#2']"]