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_694
What are the ids, full names, and phones of each customer?
return customers ;return ids of #1 ;return full names of #1 ;return phones of #1 ;return #2 , #3 , #4
['select', 'project', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['ids of #REF', '#1']", "PROJECT['full names of #REF', '#1']", "PROJECT['phones of #REF', '#1']", "UNION['#2', '#3', '#4']"]
SPIDER_train_6940
What are the names of the customers who have made two or less orders?
return customers ;return orders of #1 ;return number of #2 for each #1 ;return #1 where #3 lower than two ;return names of #4
['select', 'project', 'group', 'comparative', 'project']
train
["SELECT['customers']", "PROJECT['orders of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'lower than two']", "PROJECT['names of #REF', '#4']"]
SPIDER_train_6941
List the names of the customers who have once bought product "food".
return customers ;return products #1 bought ;return #1 where #2 is food ;return names of #3
['select', 'project', 'comparative', 'project']
train
["SELECT['customers']", "PROJECT['products #REF bought', '#1']", "COMPARATIVE['#1', '#2', 'is food']", "PROJECT['names of #REF', '#3']"]
SPIDER_train_6942
What are the names of the customers who bought product "food" at least once?
return customers ;return #1 who bought product food at least once ;return names of #2
['select', 'filter', 'project']
train
["SELECT['customers']", "FILTER['#1', 'who bought product food at least once']", "PROJECT['names of #REF', '#2']"]
SPIDER_train_6943
List the names of customers who have once canceled the purchase of the product "food" (the item status is "Cancel").
return customers ;return products #1 purchase ;return #1 where #2 is food ;return item status of #3 ;return #3 where #4 is Cancel ;return names of #5
['select', 'project', 'comparative', 'project', 'comparative', 'project']
train
["SELECT['customers']", "PROJECT['products #REF purchase', '#1']", "COMPARATIVE['#1', '#2', 'is food']", "PROJECT['item status of #REF', '#3']", "COMPARATIVE['#3', '#4', 'is Cancel']", "PROJECT['names of #REF', '#5']"]
SPIDER_train_6944
Which customers have ever canceled the purchase of the product "food" (the item status is "Cancel")?
return customers ;return #1 who have ever canceled the purchase of the product food ;return #2 where the item status is Cancel
['select', 'filter', 'filter']
train
["SELECT['customers']", "FILTER['#1', 'who have ever canceled the purchase of the product food']", "FILTER['#2', 'where the item status is Cancel']"]
SPIDER_train_6945
How many architects are female?
return architects ;return #1 that are female ;return number of #2
['select', 'filter', 'aggregate']
train
["SELECT['architects']", "FILTER['#1', 'that are female']", "AGGREGATE['count', '#2']"]
SPIDER_train_6946
List the name, nationality and id of all male architects ordered by their names lexicographically.
return architects ;return #1 that are male ;return names of #2 ;return nationalities of #2 ;return ids of #2 ;return #3 , #4 , #5 ;return #6 sorted by #3 lexicographically
['select', 'filter', 'project', 'project', 'project', 'union', 'sort']
train
["SELECT['architects']", "FILTER['#1', 'that are male']", "PROJECT['names of #REF', '#2']", "PROJECT['nationalities of #REF', '#2']", "PROJECT['ids of #REF', '#2']", "UNION['#3', '#4', '#5']", "SORT['#6', '#3 lexicographically']"]
SPIDER_train_6947
What is the maximum length in meters for the bridges and what are the architects' names?
return bridges ;return lengths in meters of #1 ;return the highest of #2 ;return #1 where #2 is equal to #3 ;return architects of #4 ;return names of #5 ;return #6 , #3
['select', 'project', 'aggregate', 'comparative', 'project', 'project', 'union']
train
["SELECT['bridges']", "PROJECT['lengths in meters of #REF', '#1']", "AGGREGATE['max', '#2']", "COMPARATIVE['#1', '#2', 'is equal to #3']", "PROJECT['architects of #REF', '#4']", "PROJECT['names of #REF', '#5']", "UNION['#6', '#3']"]
SPIDER_train_6948
What is the average length in feet of the bridges?
return bridges ;return lengths of #1 in feet ;return average of #2
['select', 'project', 'aggregate']
train
["SELECT['bridges']", "PROJECT['lengths of #REF in feet', '#1']", "AGGREGATE['avg', '#2']"]
SPIDER_train_6949
What are the names and year of construction for the mills of 'Grondzeiler' type?
return mills ;return types of #1 ;return #1 where #2 is 'Grondzeiler ;return names of #3 ;return years of construction of #3 ;return #4 , #5
['select', 'project', 'comparative', 'project', 'project', 'union']
train
["SELECT['mills']", "PROJECT['types of #REF', '#1']", 'COMPARATIVE[\'#1\', \'#2\', "is \'Grondzeiler"]', "PROJECT['names of #REF', '#3']", "PROJECT['years of construction of #REF', '#3']", "UNION['#4', '#5']"]
SPIDER_train_695
What is the phone and email for customer with first name Aniyah and last name Feest?
return customers ;return #1 with first name Aniyah ;return #2 with last name Feest ;return the phone of #3 ;return the email of #3 ;return #4 , #5
['select', 'filter', 'filter', 'project', 'project', 'union']
train
["SELECT['customers']", "FILTER['#1', 'with first name Aniyah']", "FILTER['#2', 'with last name Feest']", "PROJECT['the phone of #REF', '#3']", "PROJECT['the email of #REF', '#3']", "UNION['#4', '#5']"]
SPIDER_train_6950
What are the distinct names and nationalities of the architects who have ever built a mill?
return architects ;return #1 who built a mill ;return distinct names of #2 ;return nationalities of #2 ;return #3 , #4
['select', 'filter', 'project', 'project', 'union']
train
["SELECT['architects']", "FILTER['#1', 'who built a mill']", "PROJECT['distinct names of #REF', '#2']", "PROJECT['nationalities of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_6951
What are the names of the mills which are not located in 'Donceel'?
return mills ;return #1 not located in 'Donceel ;return names of #2
['select', 'filter', 'project']
train
["SELECT['mills']", 'FILTER[\'#1\', "not located in \'Donceel"]', "PROJECT['names of #REF', '#2']"]
SPIDER_train_6952
What are the distinct types of mills that are built by American or Canadian architects?
return architects ;return #1 that are American ;return #1 that are Canadian ;return mills built by #2 ;return mills built by #3 ;return #4 , #5 ;return the distinct types of #6
['select', 'filter', 'filter', 'project', 'project', 'union', 'project']
train
["SELECT['architects']", "FILTER['#1', 'that are American']", "FILTER['#1', 'that are Canadian']", "PROJECT['mills built by #REF', '#2']", "PROJECT['mills built by #REF', '#3']", "UNION['#4', '#5']", "PROJECT['the distinct types of #REF', '#6']"]
SPIDER_train_6953
What are the ids and names of the architects who built at least 3 bridges ?
return architects ;return bridges #1 built ;return number of #2 for each #1 ;return #1 where #3 is at least 3 ;return ids of #4 ;return names of #4 ;return #5 , #6
['select', 'project', 'group', 'comparative', 'project', 'project', 'union']
train
["SELECT['architects']", "PROJECT['bridges #REF built', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least 3']", "PROJECT['ids of #REF', '#4']", "PROJECT['names of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_6954
What is the id, name and nationality of the architect who built most mills?
return architects ;return #1 who built the most mills ;return the id of #2 ;return the name of #2 ;return the nationality of #2 ;return #3 , #4 , #5
['select', 'filter', 'project', 'project', 'project', 'union']
train
["SELECT['architects']", "FILTER['#1', 'who built the most mills']", "PROJECT['the id of #REF', '#2']", "PROJECT['the name of #REF', '#2']", "PROJECT['the nationality of #REF', '#2']", "UNION['#3', '#4', '#5']"]
SPIDER_train_6955
What are the ids, names and genders of the architects who built two bridges or one mill?
return architects ;return bridges #1 built ;return number of #2 for each #1 ;return #1 where #3 is two ;return mills #1 built ;return number of #5 for each #1 ;return #1 where #6 is one ;return #4 or #7 ;return ids of #8 ;return names of #8 ;return genders of #8 ;return #9 , #10 , #11
['select', 'project', 'group', 'comparative', 'project', 'group', 'comparative', 'union', 'project', 'project', 'project', 'union']
train
["SELECT['architects']", "PROJECT['bridges #REF built', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is two']", "PROJECT['mills #REF built', '#1']", "GROUP['count', '#5', '#1']", "COMPARATIVE['#1', '#6', 'is one']", "UNION['#4', '#7']", "PROJECT['ids of #REF', '#8']", "PROJECT['names of #REF', '#8']", "PROJECT['genders of #REF', '#8']", "UNION['#9', '#10', '#11']"]
SPIDER_train_6956
What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?
return bridges ;return #1 named 'Kolob Arch ;return #1 named 'Rainbow bridge ;return #2 or #3 ;return location of #4
['select', 'filter', 'filter', 'union', 'project']
train
["SELECT['bridges']", 'FILTER[\'#1\', "named \'Kolob Arch"]', 'FILTER[\'#1\', "named \'Rainbow bridge"]', "UNION['#2', '#3']", "PROJECT['location of #REF', '#4']"]
SPIDER_train_6957
Which of the mill names contains the french word 'Moulin'?
return mill names ;return #1 that contains the french word 'Moulin
['select', 'filter']
train
["SELECT['mill names']", 'FILTER[\'#1\', "that contains the french word \'Moulin"]']
SPIDER_train_6958
What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?
return architects ;return #1 who have built a bridge longer than 80 meters ;return mills built by #2 ;return distinct names of #3
['select', 'filter', 'project', 'project']
train
["SELECT['architects']", "FILTER['#1', 'who have built a bridge longer than 80 meters']", "PROJECT['mills built by #REF', '#2']", "PROJECT['distinct names of #REF', '#3']"]
SPIDER_train_6959
What is the most common mill type, and how many are there?
return mill ;return type of #1 ;return number of #1 for each #2 ;return #2 where #3 is highest ;return number of #4 ;return #4 , #5
['select', 'project', 'group', 'superlative', 'aggregate', 'union']
train
["SELECT['mill']", "PROJECT['type of #REF', '#1']", "GROUP['count', '#1', '#2']", "SUPERLATIVE['max', '#2', '#3']", "AGGREGATE['count', '#4']", "UNION['#4', '#5']"]
SPIDER_train_696
Return the phone and email of the customer with the first name Aniyah and last name Feest.
return customers ;return first names of #1 ;return #1 where #2 is Aniyah ;return #1 where #2 is Feest ;return #1 of both #3 and #4 ;return phone of #5 ;return email of #5 ;return #6 , #7
['select', 'project', 'comparative', 'comparative', 'intersection', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['first names of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Aniyah']", "COMPARATIVE['#1', '#2', 'is Feest']", "INTERSECTION['#1', '#3', '#4']", "PROJECT['phone of #REF', '#5']", "PROJECT['email of #REF', '#5']", "UNION['#6', '#7']"]
SPIDER_train_6960
How many architects haven't built a mill before year 1850?
return architects ;return #1 who have not built mills before 1850 ;return number of #2
['select', 'filter', 'aggregate']
train
["SELECT['architects']", "FILTER['#1', 'who have not built mills before 1850']", "AGGREGATE['count', '#2']"]
SPIDER_train_6961
show the name of all bridges that was designed by american archtect, and sort the result by the bridge feet length.
return bridges ;return archtects that designed #1 ;return #1 where #2 is american ;return names of #3 ;return length of #3 in feet ;return #4 sorted by #5
['select', 'project', 'comparative', 'project', 'project', 'sort']
train
["SELECT['bridges']", "PROJECT['archtects that designed #REF', '#1']", "COMPARATIVE['#1', '#2', 'is american']", "PROJECT['names of #REF', '#3']", "PROJECT['length of #REF in feet', '#3']", "SORT['#4', '#5']"]
SPIDER_train_6962
How many book clubs are there?
return book clubs ;return number of #1
['select', 'aggregate']
train
["SELECT['book clubs']", "AGGREGATE['count', '#1']"]
SPIDER_train_6963
Count the number of book clubs.
return book clubs ;return the number of #1
['select', 'aggregate']
train
["SELECT['book clubs']", "AGGREGATE['count', '#1']"]
SPIDER_train_6964
show the titles, and authors or editors for all books made after the year 1989.
return books ;return #1 made after 1989 ;return titles of #2 ;return authors of #2 ;return editors of #2 ;return #3 , #4 , #5
['select', 'filter', 'project', 'project', 'project', 'union']
train
["SELECT['books']", "FILTER['#1', 'made after 1989']", "PROJECT['titles of #REF', '#2']", "PROJECT['authors of #REF', '#2']", "PROJECT['editors of #REF', '#2']", "UNION['#3', '#4', '#5']"]
SPIDER_train_6965
What are the titles and authors or editors that correspond to books made after 1989?
return books ;return #1 made after 1989 ;return titles that correspond to #2 ;return authors that correspond to #2 ;return editors that correspond to #2 ;return #3 , #4 or #5
['select', 'filter', 'project', 'project', 'project', 'union']
train
["SELECT['books']", "FILTER['#1', 'made after 1989']", "PROJECT['titles that correspond to #REF', '#2']", "PROJECT['authors that correspond to #REF', '#2']", "PROJECT['editors that correspond to #REF', '#2']", "UNION['#3', '#4', '#5']"]
SPIDER_train_6966
Show all distinct publishers for books.
return books ;return publishers for #1 ;return distinct #2
['select', 'project', 'project']
train
["SELECT['books']", "PROJECT['publishers for #REF', '#1']", "PROJECT['distinct #REF', '#2']"]
SPIDER_train_6967
What are all the different book publishers?
return book publishers ;return different #1
['select', 'project']
train
["SELECT['book publishers']", "PROJECT['different #REF', '#1']"]
SPIDER_train_6968
Show the years, book titles, and publishers for all books, in descending order by year.
return books ;return years of #1 ;return book titles of #1 ;return publishers of #1 ;return #2 , #3 , #4 ;return #5 sorted by #2 in descending order
['select', 'project', 'project', 'project', 'union', 'sort']
train
["SELECT['books']", "PROJECT['years of #REF', '#1']", "PROJECT['book titles of #REF', '#1']", "PROJECT['publishers of #REF', '#1']", "UNION['#2', '#3', '#4']", "SORT['#5', '#2 in descending order']"]
SPIDER_train_6969
What are the years, titles, and publishers for all books, ordered by year descending?
return books ;return years of #1 ;return titles of #1 ;return publishers of #1 ;return #2 , #3 , #4 ;return #5 sorted by #2 descending
['select', 'project', 'project', 'project', 'union', 'sort']
train
["SELECT['books']", "PROJECT['years of #REF', '#1']", "PROJECT['titles of #REF', '#1']", "PROJECT['publishers of #REF', '#1']", "UNION['#2', '#3', '#4']", "SORT['#5', '#2 descending']"]
SPIDER_train_697
Show the number of customer cards.
return customer cards ;return number of #1
['select', 'aggregate']
train
["SELECT['customer cards']", "AGGREGATE['count', '#1']"]
SPIDER_train_6970
Show all publishers and the number of books for each publisher.
return publishers ;return books of #1 ;return number of #2 for each #1
['select', 'project', 'group']
train
["SELECT['publishers']", "PROJECT['books of #REF', '#1']", "GROUP['count', '#2', '#1']"]
SPIDER_train_6971
How many books are there for each publisher?
return publishers ;return books of #1 ;return number of #2 for each #1
['select', 'project', 'group']
train
["SELECT['publishers']", "PROJECT['books of #REF', '#1']", "GROUP['count', '#2', '#1']"]
SPIDER_train_6972
What is the publisher with most number of books?
return publishers ;return books of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest
['select', 'project', 'group', 'superlative']
train
["SELECT['publishers']", "PROJECT['books of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']"]
SPIDER_train_6973
Return the publisher that has published the most books.
return publishers ;return books of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest
['select', 'project', 'group', 'superlative']
train
["SELECT['publishers']", "PROJECT['books of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']"]
SPIDER_train_6974
Show all book categories and the number of books in each category.
return books ;return categories of #1 ;return number of #1 for each #2
['select', 'project', 'group']
train
["SELECT['books']", "PROJECT['categories of #REF', '#1']", "GROUP['count', '#1', '#2']"]
SPIDER_train_6975
How many books fall into each category?
return categories ;return books in #1 ;return number of #2 for each #1
['select', 'project', 'group']
train
["SELECT['categories']", "PROJECT['books in #REF', '#1']", "GROUP['count', '#2', '#1']"]
SPIDER_train_6976
List categories that have at least two books after year 1989.
return books ;return #1 after year 1989 ;return categories of #2 ;return number of #2 for each #3 ;return #3 where #4 is at least two
['select', 'filter', 'project', 'group', 'comparative']
train
["SELECT['books']", "FILTER['#1', 'after year 1989']", "PROJECT['categories of #REF', '#2']", "GROUP['count', '#2', '#3']", "COMPARATIVE['#3', '#4', 'is at least two']"]
SPIDER_train_6977
What categories have two or more corresponding books that were made after 1989?
return categories ;return books of #1 ;return #2 made after 1989 ;return number of #3 for each #1 ;return #1 where #4 is at least two
['select', 'project', 'filter', 'group', 'comparative']
train
["SELECT['categories']", "PROJECT['books of #REF', '#1']", "FILTER['#2', 'made after 1989']", "GROUP['count', '#3', '#1']", "COMPARATIVE['#1', '#4', 'is at least two']"]
SPIDER_train_6978
Show publishers with a book published in 1989 and a book in 1990.
return publishers ;return #1 with a book published in 1989 ;return #1 with a book published in 1990 ;return #1 in both #2 and #3
['select', 'filter', 'filter', 'intersection']
train
["SELECT['publishers']", "FILTER['#1', 'with a book published in 1989']", "FILTER['#1', 'with a book published in 1990']", "INTERSECTION['#1', '#2', '#3']"]
SPIDER_train_6979
What are the publishers who have published a book in both 1989 and 1990?
return publishers ;return #1 who have published a book ;return #2 in 1989 ;return #2 in 1990 ;return #1 in both #3 and #4
['select', 'filter', 'filter', 'filter', 'intersection']
train
["SELECT['publishers']", "FILTER['#1', 'who have published a book']", "FILTER['#2', 'in 1989']", "FILTER['#2', 'in 1990']", "INTERSECTION['#1', '#3', '#4']"]
SPIDER_train_698
How many customer cards are there?
return customer cards ;return number of #1
['select', 'aggregate']
train
["SELECT['customer cards']", "AGGREGATE['count', '#1']"]
SPIDER_train_6980
Show all publishers which do not have a book in 1989.
return publishers ;return books of #1 ;return #1 where #2 is not in 1989
['select', 'project', 'comparative']
train
["SELECT['publishers']", "PROJECT['books of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is not in 1989']"]
SPIDER_train_6981
Which publishers did not publish a book in 1989?
return publishers ;return #1 that did publish a book in 1989 ;return #1 besides #2
['select', 'filter', 'discard']
train
["SELECT['publishers']", "FILTER['#1', 'that did publish a book in 1989']", "DISCARD['#1', '#2']"]
SPIDER_train_6982
Show all movie titles, years, and directors, ordered by budget.
return movies ;return titles of #1 ;return years of #1 ;return directors of #1 ;return budgets of #1 ;return #2 , #3 , #4 ;return #6 sorted by #5
['select', 'project', 'project', 'project', 'project', 'union', 'sort']
train
["SELECT['movies']", "PROJECT['titles of #REF', '#1']", "PROJECT['years of #REF', '#1']", "PROJECT['directors of #REF', '#1']", "PROJECT['budgets of #REF', '#1']", "UNION['#2', '#3', '#4']", "SORT['#6', '#5']"]
SPIDER_train_6983
What are the titles, years, and directors of all movies, ordered by budget in millions?
return movies ;return titles of #1 ;return years of #1 ;return directors of #1 ;return budgets of #1 ;return #2 , #3 , #4 ;return #6 sorted by #5 in millions
['select', 'project', 'project', 'project', 'project', 'union', 'sort']
train
["SELECT['movies']", "PROJECT['titles of #REF', '#1']", "PROJECT['years of #REF', '#1']", "PROJECT['directors of #REF', '#1']", "PROJECT['budgets of #REF', '#1']", "UNION['#2', '#3', '#4']", "SORT['#6', '#5 in millions']"]
SPIDER_train_6984
How many movie directors are there?
return movie directors ;return number of #1
['select', 'aggregate']
train
["SELECT['movie directors']", "AGGREGATE['count', '#1']"]
SPIDER_train_6985
Count the number of different directors.
return directors ;return different #1 ;return Count of #2
['select', 'project', 'project']
train
["SELECT['directors']", "PROJECT['different #REF', '#1']", "PROJECT['Count of #REF', '#2']"]
SPIDER_train_6986
What is the title and director for the movie with highest worldwide gross in the year 2000 or before?
return movies ;return worldwide gross of #1 ;return #2 in the year 2000 or before ;return #1 where #3 is the highest ;return the title of #4 ;return the director of #4 ;return #5 , #6
['select', 'project', 'filter', 'comparative', 'project', 'project', 'union']
train
["SELECT['movies']", "PROJECT['worldwide gross of #REF', '#1']", "FILTER['#2', 'in the year 2000 or before']", "COMPARATIVE['#1', '#3', 'is the highest']", "PROJECT['the title of #REF', '#4']", "PROJECT['the director of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_6987
Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.
return movies ;return years released of #1 ;return #1 where #2 is 2000 or earlier ;return worldwide gross of #1 ;return #1 where #4 is highest ;return #3 or #5 ;return title of #6 ;return director of #6 ;return #7 , #8
['select', 'project', 'comparative', 'project', 'superlative', 'union', 'project', 'project', 'union']
train
["SELECT['movies']", "PROJECT['years released of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 2000 or earlier']", "PROJECT['worldwide gross of #REF', '#1']", "SUPERLATIVE['max', '#1', '#4']", "UNION['#3', '#5']", "PROJECT['title of #REF', '#6']", "PROJECT['director of #REF', '#6']", "UNION['#7', '#8']"]
SPIDER_train_6988
Show all director names who have a movie in both year 1999 and 2000.
return directors ;return movies of #1 ;return years of #2 ;return #2 where #3 is 1999 ;return #2 where #3 is 2000 ;return the number of #4 for each #1 ;return the number of #5 for each #1 ;return #1 where #6 is at least one ;return #1 where #7 is at least one ;return #1 in both #8 and #9 ;return the names of #10
['select', 'project', 'project', 'comparative', 'comparative', 'group', 'group', 'comparative', 'comparative', 'intersection', 'project']
train
["SELECT['directors']", "PROJECT['movies of #REF', '#1']", "PROJECT['years of #REF', '#2']", "COMPARATIVE['#2', '#3', 'is 1999']", "COMPARATIVE['#2', '#3', 'is 2000']", "GROUP['count', '#4', '#1']", "GROUP['count', '#5', '#1']", "COMPARATIVE['#1', '#6', 'is at least one']", "COMPARATIVE['#1', '#7', 'is at least one']", "INTERSECTION['#1', '#8', '#9']", "PROJECT['the names of #REF', '#10']"]
SPIDER_train_6989
Which directors had a movie both in the year 1999 and 2000?
return directors ;return movies of #1 ;return #2 in 1999 ;return #2 in 2000 ;return directors of both #3 and #4
['select', 'project', 'filter', 'filter', 'intersection']
train
["SELECT['directors']", "PROJECT['movies of #REF', '#1']", "FILTER['#2', 'in 1999']", "FILTER['#2', 'in 2000']", "INTERSECTION['directors', '#3', '#4']"]
SPIDER_train_699
Show ids, customer ids, card type codes, card numbers for all cards.
return cards ;return ids of #1 ;return customers with #1 ;return ids of #3 ;return card type codes of #1 ;return card numbers of #1 ;return #2 , #4 , #5 , #6
['select', 'project', 'project', 'project', 'project', 'project', 'union']
train
["SELECT['cards']", "PROJECT['ids of #REF', '#1']", "PROJECT['customers with #REF', '#1']", "PROJECT['ids of #REF', '#3']", "PROJECT['card type codes of #REF', '#1']", "PROJECT['card numbers of #REF', '#1']", "UNION['#2', '#4', '#5', '#6']"]
SPIDER_train_6990
Show all director names who have a movie in the year 1999 or 2000.
return directors ;return movies of #1 ;return years of #2 ;return #1 where #3 is 1999 ;return #1 where #3 is 2000 ;return #4 or #5 ;return names of #6
['select', 'project', 'project', 'comparative', 'comparative', 'union', 'project']
train
["SELECT['directors']", "PROJECT['movies of #REF', '#1']", "PROJECT['years of #REF', '#2']", "COMPARATIVE['#1', '#3', 'is 1999']", "COMPARATIVE['#1', '#3', 'is 2000']", "UNION['#4', '#5']", "PROJECT['names of #REF', '#6']"]
SPIDER_train_6991
Which directors had a movie in either 1999 or 2000?
return directors ;return movies of #1 ;return #2 in 1999 ;return #2 in 2000 ;return #1 of #3 or #4
['select', 'project', 'filter', 'filter', 'filter']
train
["SELECT['directors']", "PROJECT['movies of #REF', '#1']", "FILTER['#2', 'in 1999']", "FILTER['#2', 'in 2000']", "FILTER['#1', 'of #3 or #4']"]
SPIDER_train_6992
What is the average, maximum, and minimum budget for all movies before 2000.
return movies ;return #1 before 2000 ;return budgets of #2 ;return average of #3 ;return maximum of #3 ;return minimum of #3 ;return #4 , #5 , #6
['select', 'filter', 'project', 'aggregate', 'aggregate', 'aggregate', 'union']
train
["SELECT['movies']", "FILTER['#1', 'before 2000']", "PROJECT['budgets of #REF', '#2']", "AGGREGATE['avg', '#3']", "AGGREGATE['max', '#3']", "AGGREGATE['min', '#3']", "UNION['#4', '#5', '#6']"]
SPIDER_train_6993
Return the average, maximum, and minimum budgets in millions for movies made before the year 2000.
return movies ;return years made of #1 ;return #1 where #2 is before 2000 ;return budgets in millions of #3 ;return average of #4 ;return maximum of #4 ;return minimum of #4 ;return #5 , #6 , #7
['select', 'project', 'comparative', 'project', 'aggregate', 'aggregate', 'aggregate', 'union']
train
["SELECT['movies']", "PROJECT['years made of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is before 2000']", "PROJECT['budgets in millions of #REF', '#3']", "AGGREGATE['avg', '#4']", "AGGREGATE['max', '#4']", "AGGREGATE['min', '#4']", "UNION['#5', '#6', '#7']"]
SPIDER_train_6994
List all company names with a book published by Alyson.
return Alyson ;return books published by #1 ;return companies of #2 ;return names of #3
['select', 'project', 'project', 'project']
train
["SELECT['Alyson']", "PROJECT['books published by #REF', '#1']", "PROJECT['companies of #REF', '#2']", "PROJECT['names of #REF', '#3']"]
SPIDER_train_6995
What are all the company names that have a book published by Alyson?
return Alyson ;return books published by #1 ;return company names that have #2
['select', 'project', 'project']
train
["SELECT['Alyson']", "PROJECT['books published by #REF', '#1']", "PROJECT['company names that have #REF', '#2']"]
SPIDER_train_6996
Show the movie titles and book titles for all companies in China.
return companies ;return #1 in China ;return movies of #2 ;return titles of #3 ;return books of #2 ;return titles of #5 ;return #4 , #6
['select', 'filter', 'project', 'project', 'project', 'project', 'union']
train
["SELECT['companies']", "FILTER['#1', 'in China']", "PROJECT['movies of #REF', '#2']", "PROJECT['titles of #REF', '#3']", "PROJECT['books of #REF', '#2']", "PROJECT['titles of #REF', '#5']", "UNION['#4', '#6']"]
SPIDER_train_6997
What are the titles of movies and books corresponding to companies incorporated in China?
return companies ;return #1 incorporated in China ;return movies of #2 ;return titles of #3 ;return books of #2 ;return titles of #5 ;return #4 , #6
['select', 'filter', 'project', 'project', 'project', 'project', 'union']
train
["SELECT['companies']", "FILTER['#1', 'incorporated in China']", "PROJECT['movies of #REF', '#2']", "PROJECT['titles of #REF', '#3']", "PROJECT['books of #REF', '#2']", "PROJECT['titles of #REF', '#5']", "UNION['#4', '#6']"]
SPIDER_train_6998
Show all company names with a movie directed in year 1999.
return movies ;return #1 in 1999 ;return companies that directed #2 ;return names of #3
['select', 'filter', 'project', 'project']
train
["SELECT['movies']", "FILTER['#1', 'in 1999']", "PROJECT['companies that directed #REF', '#2']", "PROJECT['names of #REF', '#3']"]
SPIDER_train_6999
What are all company names that have a corresponding movie directed in the year 1999?
return companies ;return movies of #1 ;return years directed of #2 ;return #1 where #3 is 1999 ;return names of #4
['select', 'project', 'project', 'comparative', 'project']
train
["SELECT['companies']", "PROJECT['movies of #REF', '#1']", "PROJECT['years directed of #REF', '#2']", "COMPARATIVE['#1', '#3', 'is 1999']", "PROJECT['names of #REF', '#4']"]
SPIDER_train_7
What are the names of the states where at least 3 heads were born?
return states ;return heads born in #1 ;return number of #2 for each #1 ;return #1 where #3 is at least 3 ;return names of #4
['select', 'project', 'group', 'comparative', 'project']
train
["SELECT['states']", "PROJECT['heads born in #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least 3']", "PROJECT['names of #REF', '#4']"]
SPIDER_train_70
How many students are attending English courses?
return students ;return courses of #1 ;return #1 where #2 are English ;return number of #3
['select', 'project', 'comparative', 'aggregate']
train
["SELECT['students']", "PROJECT['courses of #REF', '#1']", "COMPARATIVE['#1', '#2', 'are English']", "AGGREGATE['count', '#3']"]
SPIDER_train_700
What are card ids, customer ids, card types, and card numbers for each customer card?
return customer cards ;return card ids of #1 ;return customer ids of #1 ;return card types of #1 ;return card numbers of #1 ;return #2 , #3 , #4 , #5
['select', 'project', 'project', 'project', 'project', 'union']
train
["SELECT['customer cards']", "PROJECT['card ids of #REF', '#1']", "PROJECT['customer ids of #REF', '#1']", "PROJECT['card types of #REF', '#1']", "PROJECT['card numbers of #REF', '#1']", "UNION['#2', '#3', '#4', '#5']"]
SPIDER_train_701
Show the date valid from and the date valid to for the card with card number '4560596484842'.
return card numbers ;return #1 that are '4560596484842 ;return date valid to of #2 ;return date valid from of #2 ;return #3 or #4
['select', 'filter', 'project', 'project', 'union']
train
["SELECT['card numbers']", 'FILTER[\'#1\', "that are \'4560596484842"]', "PROJECT['date valid to of #REF', '#2']", "PROJECT['date valid from of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_702
What are the valid from and valid to dates for the card with the number 4560596484842?
return cards ;return numbers of #1 ;return #1 where #2 is 4560596484842 ;return valid from date of #3 ;return valid to date of #3 ;return #4 , #5
['select', 'project', 'comparative', 'project', 'project', 'union']
train
["SELECT['cards']", "PROJECT['numbers of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 4560596484842']", "PROJECT['valid from date of #REF', '#3']", "PROJECT['valid to date of #REF', '#3']", "UNION['#4', '#5']"]
SPIDER_train_703
What is the first name, last name, and phone of the customer with card 4560596484842.
return customers ;return cards of #1 ;return #1 where #2 is 4560596484842 ;return first name of #3 ;return last name of #3 ;return phone of #3 ;return #4 , #5 , #6
['select', 'project', 'comparative', 'project', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['cards of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 4560596484842']", "PROJECT['first name of #REF', '#3']", "PROJECT['last name of #REF', '#3']", "PROJECT['phone of #REF', '#3']", "UNION['#4', '#5', '#6']"]
SPIDER_train_704
Return the full name and phone of the customer who has card number 4560596484842.
return customers ;return card numbers of #1 ;return #1 where #2 is 4560596484842 ;return full name of #3 ;return phone of #3 ;return #4 , #5
['select', 'project', 'comparative', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['card numbers of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 4560596484842']", "PROJECT['full name of #REF', '#3']", "PROJECT['phone of #REF', '#3']", "UNION['#4', '#5']"]
SPIDER_train_705
How many cards does customer Art Turcotte have?
return customers ;return cards of #1 ;return #2 where #1 is Art Turcotte ;return number of #3
['select', 'project', 'comparative', 'aggregate']
train
["SELECT['customers']", "PROJECT['cards of #REF', '#1']", "COMPARATIVE['#2', '#1', 'is Art Turcotte']", "AGGREGATE['count', '#3']"]
SPIDER_train_706
Count the number of cards the customer with the first name Art and last name Turcotte has.
return customers ;return first names of #1 ;return #1 where #2 is Art ;return last names of #1 ;return #1 where #4 is Turcotte ;return #1 of both #3 and #5 ;return cards of #6 ;return number of #7
['select', 'project', 'comparative', 'project', 'comparative', 'intersection', 'project', 'aggregate']
train
["SELECT['customers']", "PROJECT['first names of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Art']", "PROJECT['last names of #REF', '#1']", "COMPARATIVE['#1', '#4', 'is Turcotte']", "INTERSECTION['#1', '#3', '#5']", "PROJECT['cards of #REF', '#6']", "AGGREGATE['count', '#7']"]
SPIDER_train_707
How many debit cards do we have?
return debit cards ;return number of #1
['select', 'aggregate']
train
["SELECT['debit cards']", "AGGREGATE['count', '#1']"]
SPIDER_train_708
Count the number of customer cards of the type Debit.
return customers ;return cards of #1 ;return types of #2 ;return #2 where #3 is Debit ;return number of #4
['select', 'project', 'project', 'comparative', 'aggregate']
train
["SELECT['customers']", "PROJECT['cards of #REF', '#1']", "PROJECT['types of #REF', '#2']", "COMPARATIVE['#2', '#3', 'is Debit']", "AGGREGATE['count', '#4']"]
SPIDER_train_709
How many credit cards does customer Blanche Huels have?
return customers ;return credit cards of #1 ;return #2 where #1 is Blanche Huels ;return number of #3
['select', 'project', 'comparative', 'aggregate']
train
["SELECT['customers']", "PROJECT['credit cards of #REF', '#1']", "COMPARATIVE['#2', '#1', 'is Blanche Huels']", "AGGREGATE['count', '#3']"]
SPIDER_train_71
How many courses do the student whose id is 171 attend?
return students ;return ids of #1 ;return #1 where #2 is 171 ;return courses of #3 ;return number of #4
['select', 'project', 'comparative', 'project', 'aggregate']
train
["SELECT['students']", "PROJECT['ids of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 171']", "PROJECT['courses of #REF', '#3']", "AGGREGATE['count', '#4']"]
SPIDER_train_710
Count the number of credit cards that the customer with first name Blanche and last name Huels has.
return customers ;return #1 with first name Blanche and last name Huels ;return credit cards of #2 ;return number of #3
['select', 'filter', 'project', 'aggregate']
train
["SELECT['customers']", "FILTER['#1', 'with first name Blanche and last name Huels']", "PROJECT['credit cards of #REF', '#2']", "AGGREGATE['count', '#3']"]
SPIDER_train_711
Show all customer ids and the number of cards owned by each customer.
return customers ;return number of cards owned by each #1 ;return ids of #1 ;return #2 or #3
['select', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['number of cards owned by each #REF', '#1']", "PROJECT['ids of #REF', '#1']", "UNION['#2', '#3']"]
SPIDER_train_712
What are the different customer ids, and how many cards does each one hold?
return customers ;return cards of #1 ;return number of #2 for each #1 ;return ids of #1 ;return #4 , #3
['select', 'project', 'group', 'project', 'union']
train
["SELECT['customers']", "PROJECT['cards of #REF', '#1']", "GROUP['count', '#2', '#1']", "PROJECT['ids of #REF', '#1']", "UNION['#4', '#3']"]
SPIDER_train_713
What is the customer id with most number of cards, and how many does he have?
return customers ;return cards of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return customer id of #4 ;return cards of #4 ;return number of #6 ;return #5 , #7
['select', 'project', 'group', 'superlative', 'project', 'project', 'aggregate', 'union']
train
["SELECT['customers']", "PROJECT['cards of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['customer id of #REF', '#4']", "PROJECT['cards of #REF', '#4']", "AGGREGATE['count', '#6']", "UNION['#5', '#7']"]
SPIDER_train_714
Return the id of the customer who has the most cards, as well as the number of cards.
return customers ;return cards of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return id of #4 ;return number of cards of #4 ;return #5 , #6
['select', 'project', 'group', 'superlative', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['cards of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['id of #REF', '#4']", "PROJECT['number of cards of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_715
Show id, first and last names for all customers with at least two cards.
return customers ;return cards of #1 ;return number of #2 for each #1 ;return #1 where #3 is at least two ;return ids of #4 ;return first names of #4 ;return last names of #4 ;return #5 , #6 , #7
['select', 'project', 'group', 'comparative', 'project', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['cards of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least two']", "PROJECT['ids of #REF', '#4']", "PROJECT['first names of #REF', '#4']", "PROJECT['last names of #REF', '#4']", "UNION['#5', '#6', '#7']"]
SPIDER_train_716
What are the ids and full names of customers who hold two or more cards?
return customers ;return cards #1 hold ;return number of #2 for each #1 ;return #1 where #3 is two or more ;return ids of #4 ;return full names of #4 ;return #5 , #6
['select', 'project', 'group', 'comparative', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['cards #REF hold', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is two or more']", "PROJECT['ids of #REF', '#4']", "PROJECT['full names of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_717
What is the customer id, first and last name with least number of accounts.
return customers ;return accounts of #1 ;return number of #2 for each #1 ;return #1 where #3 is lowest ;return customer id of #4 ;return first name of #4 ;return last name of #4 ;return #5 , #6 , #7
['select', 'project', 'group', 'superlative', 'project', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['accounts of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['min', '#1', '#3']", "PROJECT['customer id of #REF', '#4']", "PROJECT['first name of #REF', '#4']", "PROJECT['last name of #REF', '#4']", "UNION['#5', '#6', '#7']"]
SPIDER_train_718
Return the id and full name of the customer who has the fewest accounts.
return customers ;return accounts of #1 ;return number of #2 for each #1 ;return #1 where #3 is lowest ;return id of #4 ;return full name of #4 ;return #5 , #6
['select', 'project', 'group', 'superlative', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['accounts of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['min', '#1', '#3']", "PROJECT['id of #REF', '#4']", "PROJECT['full name of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_719
Show all card type codes and the number of cards in each type.
return card type ;return number of cards for each #1 ;return codes of #1 ;return #3, #2
['select', 'group', 'project', 'union']
train
["SELECT['card type']", "GROUP['count', 'cards', '#1']", "PROJECT['codes of #REF', '#1']", "UNION['#3', '#2']"]
SPIDER_train_72
How many courses does the student with id 171 actually attend?
return students ;return courses of #1 ;return #2 where id is 171 ;return number of #3
['select', 'project', 'filter', 'aggregate']
train
["SELECT['students']", "PROJECT['courses of #REF', '#1']", "FILTER['#2', 'where id is 171']", "AGGREGATE['count', '#3']"]
SPIDER_train_720
What are the different card types, and how many cards are there of each?
return cards ;return types of #1 ;return different #2 ;return number of #1 for each #2 ;return #3 , #4
['select', 'project', 'project', 'group', 'union']
train
["SELECT['cards']", "PROJECT['types of #REF', '#1']", "PROJECT['different #REF', '#2']", "GROUP['count', '#1', '#2']", "UNION['#3', '#4']"]
SPIDER_train_721
What is the card type code with most number of cards?
return card type codes ;return #1 with most number of cards
['select', 'filter']
train
["SELECT['card type codes']", "FILTER['#1', 'with most number of cards']"]
SPIDER_train_722
Return the code of the card type that is most common.
return codes ;return card types of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest
['select', 'project', 'group', 'superlative']
train
["SELECT['codes']", "PROJECT['card types of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']"]
SPIDER_train_723
Show card type codes with at least 5 cards.
return card types ;return cards with #1 ;return number of #2 for each #1 ;return #1 where #3 is at least 5 ;return codes of #4
['select', 'project', 'group', 'comparative', 'project']
train
["SELECT['card types']", "PROJECT['cards with #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least 5']", "PROJECT['codes of #REF', '#4']"]
SPIDER_train_724
What are the codes of card types that have 5 or more cards?
return card types ;return cards of #1 ;return number of #2 for each #1 ;return #1 where #3 is at least 5 ;return codes of #4
['select', 'project', 'group', 'comparative', 'project']
train
["SELECT['card types']", "PROJECT['cards of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least 5']", "PROJECT['codes of #REF', '#4']"]
SPIDER_train_725
Show all card type codes and the number of customers holding cards in each type.
return card type codes ;return cards of #1 ;return customers with #2 ;return number of #3 for each #1 ;return #1 , #4
['select', 'project', 'project', 'group', 'union']
train
["SELECT['card type codes']", "PROJECT['cards of #REF', '#1']", "PROJECT['customers with #REF', '#2']", "GROUP['count', '#3', '#1']", "UNION['#1', '#4']"]
SPIDER_train_726
What are the different card type codes, and how many different customers hold each type?
return card type codes ;return customers ;return number of #2 for each #1 ;return #1 , #3
['select', 'select', 'group', 'union']
train
["SELECT['card type codes']", "SELECT['customers']", "GROUP['count', '#2', '#1']", "UNION['#1', '#3']"]
SPIDER_train_727
Show the customer ids and firstname without a credit card.
return customers ;return #1 without a credit card ;return customer ids of #2 ;return firstnames of #2 ;return #3 , #4
['select', 'filter', 'project', 'project', 'union']
train
["SELECT['customers']", "FILTER['#1', 'without a credit card']", "PROJECT['customer ids of #REF', '#2']", "PROJECT['firstnames of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_728
What are the ids and first names of customers who do not hold a credit card?
return customers ;return #1 who do not hold a credit card ;return ids of #2 ;return first names of #2 ;return #3 , #4
['select', 'filter', 'project', 'project', 'union']
train
["SELECT['customers']", "FILTER['#1', 'who do not hold a credit card']", "PROJECT['ids of #REF', '#2']", "PROJECT['first names of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_729
Show all card type codes.
return cards ;return types of #1 ;return codes of #2
['select', 'project', 'project']
train
["SELECT['cards']", "PROJECT['types of #REF', '#1']", "PROJECT['codes of #REF', '#2']"]