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_910
Which customer uses the most policies? Give me the customer name.
return customers ;return policies #1 uses ;return number of #2 for each #1 ;return #1 where #3 is highest ;return customer name of #4
['select', 'project', 'group', 'superlative', 'project']
train
["SELECT['customers']", "PROJECT['policies #REF uses', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['customer name of #REF', '#4']"]
SPIDER_train_911
What are all the policy types of the customer named "Dayana Robel"?
return customers ;return policy types of #1 ;return #2 where #1 is named Dayana Robel
['select', 'project', 'comparative']
train
["SELECT['customers']", "PROJECT['policy types of #REF', '#1']", "COMPARATIVE['#2', '#1', 'is named Dayana Robel']"]
SPIDER_train_912
Tell me the types of the policy used by the customer named "Dayana Robel".
return customers ;return policies of #1 ;return #2 where #1 is Dayana Robel ;return types of #3
['select', 'project', 'comparative', 'project']
train
["SELECT['customers']", "PROJECT['policies of #REF', '#1']", "COMPARATIVE['#2', '#1', 'is Dayana Robel']", "PROJECT['types of #REF', '#3']"]
SPIDER_train_913
What are all the policy types of the customer that has the most policies listed?
return customers ;return policies listed of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return policy types of #4
['select', 'project', 'group', 'superlative', 'project']
train
["SELECT['customers']", "PROJECT['policies listed of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['policy types of #REF', '#4']"]
SPIDER_train_914
List all the policy types used by the customer enrolled in the most policies.
return customers ;return policies of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return policies of #4 ;return policy types of #5
['select', 'project', 'group', 'superlative', 'project', 'project']
train
["SELECT['customers']", "PROJECT['policies of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['policies of #REF', '#4']", "PROJECT['policy types of #REF', '#5']"]
SPIDER_train_915
List all the services in the alphabetical order.
return services ;return #1 sorted by alphabetical order
['select', 'sort']
train
["SELECT['services']", "SORT['#1', 'alphabetical order']"]
SPIDER_train_916
Give me a list of all the service names sorted alphabetically.
return service ;return names of #1 ;return #2 sorted alphabetically
['select', 'project', 'filter']
train
["SELECT['service']", "PROJECT['names of #REF', '#1']", "FILTER['#2', 'sorted alphabetically']"]
SPIDER_train_917
How many services are there?
return services ;return number of #1
['select', 'aggregate']
train
["SELECT['services']", "AGGREGATE['count', '#1']"]
SPIDER_train_918
Count the total number of available services.
return services ;return #1 which are available ;return the number of #2
['select', 'filter', 'aggregate']
train
["SELECT['services']", "FILTER['#1', 'which are available']", "AGGREGATE['count', '#2']"]
SPIDER_train_919
Find the names of users who do not have a first notification of loss record.
return users ;return records of #1 ;return #1 where #2 is first notification of loss ;return #1 besides #3 ;return names of #4
['select', 'project', 'comparative', 'discard', 'project']
train
["SELECT['users']", "PROJECT['records of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is first notification of loss']", "DISCARD['#1', '#3']", "PROJECT['names of #REF', '#4']"]
SPIDER_train_92
What are the different cities where people live?
return cities ;return #1 where people live ;return different #2
['select', 'filter', 'project']
train
["SELECT['cities']", "FILTER['#1', 'where people live']", "PROJECT['different #REF', '#2']"]
SPIDER_train_920
Which customers do not have a first notification of loss record? Give me the customer names.
return customers ;return #1 that have a first notification of loss record ;return #1 besides #2 ;return names of #3
['select', 'filter', 'discard', 'project']
train
["SELECT['customers']", "FILTER['#1', 'that have a first notification of loss record']", "DISCARD['#1', '#2']", "PROJECT['names of #REF', '#3']"]
SPIDER_train_921
Find the names of customers who have used either the service "Close a policy" or the service "Upgrade a policy".
return customers ;return services used of #1 ;return #1 where #2 is Close a policy ;return #1 where #2 is Upgrade a policy ;return #3 or #4 ;return names of #5
['select', 'project', 'comparative', 'comparative', 'union', 'project']
train
["SELECT['customers']", "PROJECT['services used of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Close a policy']", "COMPARATIVE['#1', '#2', 'is Upgrade a policy']", "UNION['#3', '#4']", "PROJECT['names of #REF', '#5']"]
SPIDER_train_922
Which customers have used the service named "Close a policy" or "Upgrade a policy"? Give me the customer names.
return customers ;return services #1 used ;return #1 where #2 is Close a policy ;return #1 where #2 is Upgrade a policy ;return #3 or #4 ;return customer names of #5
['select', 'project', 'comparative', 'comparative', 'union', 'project']
train
["SELECT['customers']", "PROJECT['services #REF used', '#1']", "COMPARATIVE['#1', '#2', 'is Close a policy']", "COMPARATIVE['#1', '#2', 'is Upgrade a policy']", "UNION['#3', '#4']", "PROJECT['customer names of #REF', '#5']"]
SPIDER_train_923
Find the names of customers who have used both the service "Close a policy" and the service "New policy application".
return customers ;return #1 who have used the service Close a policy ;return #1 who have used the service New policy application ;return names of both #2 and #3
['select', 'filter', 'filter', 'intersection']
train
["SELECT['customers']", "FILTER['#1', 'who have used the service Close a policy']", "FILTER['#1', 'who have used the service New policy application']", "INTERSECTION['names', '#2', '#3']"]
SPIDER_train_924
Which customers have used both the service named "Close a policy" and the service named "Upgrade a policy"? Give me the customer names.
return services ;return #1 that are named Close a policy ;return #1 that are named Upgrade a policy ;return customers of both #2 and #3 ;return names of #4
['select', 'filter', 'filter', 'intersection', 'project']
train
["SELECT['services']", "FILTER['#1', 'that are named Close a policy']", "FILTER['#1', 'that are named Upgrade a policy']", "INTERSECTION['customers', '#2', '#3']", "PROJECT['names of #REF', '#4']"]
SPIDER_train_925
Find the IDs of customers whose name contains "Diana".
return customers ;return name of #1 ;return #1 where #2 contains Diana ;return IDs of #3
['select', 'project', 'comparative', 'project']
train
["SELECT['customers']", "PROJECT['name of #REF', '#1']", "COMPARATIVE['#1', '#2', 'contains Diana']", "PROJECT['IDs of #REF', '#3']"]
SPIDER_train_926
What are the IDs of customers who have "Diana" in part of their names?
return customers ;return #1 who have Diana in part of their names ;return the IDs of #2
['select', 'filter', 'project']
train
["SELECT['customers']", "FILTER['#1', 'who have Diana in part of their names']", "PROJECT['the IDs of #REF', '#2']"]
SPIDER_train_927
What are the maximum and minimum settlement amount on record?
return settlements ;return amounts of #1 ;return maximum of #2 ;return minimum of #2 ;return #3 , #4
['select', 'project', 'aggregate', 'aggregate', 'union']
train
["SELECT['settlements']", "PROJECT['amounts of #REF', '#1']", "AGGREGATE['max', '#2']", "AGGREGATE['min', '#2']", "UNION['#3', '#4']"]
SPIDER_train_928
Find the maximum and minimum settlement amount.
return settlements ;return amount of #1 ;return maximum of #2 ;return minimum of #2 ;return #3 , #4
['select', 'project', 'aggregate', 'aggregate', 'union']
train
["SELECT['settlements']", "PROJECT['amount of #REF', '#1']", "AGGREGATE['max', '#2']", "AGGREGATE['min', '#2']", "UNION['#3', '#4']"]
SPIDER_train_929
List all the customers in increasing order of IDs.
return customers ;return IDs of #1 ;return #1 sorted by increasing order of #2
['select', 'project', 'sort']
train
["SELECT['customers']", "PROJECT['IDs of #REF', '#1']", "SORT['#1', 'increasing order of #2']"]
SPIDER_train_93
Find distinct cities of address of students?
return students ;return addresses of #1 ;return distinct cities of #2
['select', 'project', 'project']
train
["SELECT['students']", "PROJECT['addresses of #REF', '#1']", "PROJECT['distinct cities of #REF', '#2']"]
SPIDER_train_930
What is the ordered list of customer ids?
return customers ;return ids of #1
['select', 'project']
train
["SELECT['customers']", "PROJECT['ids of #REF', '#1']"]
SPIDER_train_931
Retrieve the open and close dates of all the policies associated with the customer whose name contains "Diana"
return customers ;return names of #1 ;return #1 where #2 contains Diana ;return policies of #3 ;return open dates of #4 ;return close dates of #4 ;return #5 , #6
['select', 'project', 'comparative', 'project', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['names of #REF', '#1']", "COMPARATIVE['#1', '#2', 'contains Diana']", "PROJECT['policies of #REF', '#3']", "PROJECT['open dates of #REF', '#4']", "PROJECT['close dates of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_932
What are the open and close dates of all the policies used by the customer who have "Diana" in part of their names?
return customers ;return names of #1 ;return #1 where #2 has Diana ;return policies used by #3 ;return open dates of #4 ;return close dates of #4 ;return #5 , #6
['select', 'project', 'comparative', 'project', 'project', 'project', 'union']
train
["SELECT['customers']", "PROJECT['names of #REF', '#1']", "COMPARATIVE['#1', '#2', 'has Diana']", "PROJECT['policies used by #REF', '#3']", "PROJECT['open dates of #REF', '#4']", "PROJECT['close dates of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_933
How many kinds of enzymes are there?
return enzymes ;return kinds of #1 ;return number of #2
['select', 'project', 'aggregate']
train
["SELECT['enzymes']", "PROJECT['kinds of #REF', '#1']", "AGGREGATE['count', '#2']"]
SPIDER_train_934
What is the total count of enzymes?
return enzymes ;return number of #1
['select', 'aggregate']
train
["SELECT['enzymes']", "AGGREGATE['count', '#1']"]
SPIDER_train_935
List the name of enzymes in descending lexicographical order.
return enzymes ;return names of #1 ;return #2 sorted by descending lexicographical order
['select', 'project', 'sort']
train
["SELECT['enzymes']", "PROJECT['names of #REF', '#1']", "SORT['#2', 'descending lexicographical order']"]
SPIDER_train_936
What are the names of enzymes in descending order?
return enzymes ;return names of #1 ;return #2 sorted by descending order
['select', 'project', 'sort']
train
["SELECT['enzymes']", "PROJECT['names of #REF', '#1']", "SORT['#2', 'descending order']"]
SPIDER_train_937
List the names and the locations that the enzymes can make an effect.
return enzymes ;return names of #1 ;return locations #1 can make an effect ;return #2 , #3
['select', 'project', 'project', 'union']
train
["SELECT['enzymes']", "PROJECT['names of #REF', '#1']", "PROJECT['locations #REF can make an effect', '#1']", "UNION['#2', '#3']"]
SPIDER_train_938
What are the names and locations of all enzymes listed?
return enzymes ;return names of #1 ;return locations of #1 ;return #2 , #3
['select', 'project', 'project', 'union']
train
["SELECT['enzymes']", "PROJECT['names of #REF', '#1']", "PROJECT['locations of #REF', '#1']", "UNION['#2', '#3']"]
SPIDER_train_939
What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?
return the enzymes ;return the Online Mendelian Inheritance in Man ( OMIM ) values of #1 ;return the maximum of #2
['select', 'project', 'aggregate']
train
["SELECT['the enzymes']", "PROJECT['the Online Mendelian Inheritance in Man ( OMIM ) values of #REF', '#1']", "AGGREGATE['max', '#2']"]
SPIDER_train_94
What are the different cities where students live?
return students ;return different cities where #1 live
['select', 'project']
train
["SELECT['students']", "PROJECT['different cities where #REF live', '#1']"]
SPIDER_train_940
What is the maximum OMIM value in the database?
return OMIM ;return values of #1 ;return maximum of #2
['select', 'project', 'aggregate']
train
["SELECT['OMIM']", "PROJECT['values of #REF', '#1']", "AGGREGATE['max', '#2']"]
SPIDER_train_941
What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?
return enzymes ;return locations #1 take effect at ;return #1 where #2 is 'Cytosol ;return products of #3 ;return chromosomes of #3 ;return porphyrias of #3 ;return #4 , #5 , #6
['select', 'project', 'comparative', 'project', 'project', 'project', 'union']
train
["SELECT['enzymes']", "PROJECT['locations #REF take effect at', '#1']", 'COMPARATIVE[\'#1\', \'#2\', "is \'Cytosol"]', "PROJECT['products of #REF', '#3']", "PROJECT['chromosomes of #REF', '#3']", "PROJECT['porphyrias of #REF', '#3']", "UNION['#4', '#5', '#6']"]
SPIDER_train_942
What is the product, chromosome, and porphyria of the enzymes located at 'Cytosol'?
return enzymes ;return #1 located at 'Cytosol ;return products of #2 ;return chromosomes of #2 ;return porphyrias of #2 ;return #3 , #4 , #5
['select', 'filter', 'project', 'project', 'project', 'union']
train
["SELECT['enzymes']", 'FILTER[\'#1\', "located at \'Cytosol"]', "PROJECT['products of #REF', '#2']", "PROJECT['chromosomes of #REF', '#2']", "PROJECT['porphyrias of #REF', '#2']", "UNION['#3', '#4', '#5']"]
SPIDER_train_943
What are the names of enzymes who does not produce 'Heme'?
return enzymes ;return #1 that do not produce 'Heme ;return names of #2
['select', 'filter', 'project']
train
["SELECT['enzymes']", 'FILTER[\'#1\', "that do not produce \'Heme"]', "PROJECT['names of #REF', '#2']"]
SPIDER_train_944
What are the names of enzymes whose product is not 'Heme'?
return enzymes ;return products of #1 ;return #1 where #2 is not 'Heme ;return names of #3
['select', 'project', 'comparative', 'project']
train
["SELECT['enzymes']", "PROJECT['products of #REF', '#1']", 'COMPARATIVE[\'#1\', \'#2\', "is not \'Heme"]', "PROJECT['names of #REF', '#3']"]
SPIDER_train_945
What are the names and trade names of the medicines which has 'Yes' value in the FDA record?
return medicines ;return values of #1 in FDA record ;return #1 where #2 is 'Yes ;return names of #3 ;return trade names of #3 ;return #4 , #5
['select', 'project', 'comparative', 'project', 'project', 'union']
train
["SELECT['medicines']", "PROJECT['values of #REF in FDA record', '#1']", 'COMPARATIVE[\'#1\', \'#2\', "is \'Yes"]', "PROJECT['names of #REF', '#3']", "PROJECT['trade names of #REF', '#3']", "UNION['#4', '#5']"]
SPIDER_train_946
What are the names and trade names of the medcines that are FDA approved?
return medcines ;return #1 that are FDA approved ;return names of #2 ;return trade names of #2 ;return #3 , #4
['select', 'filter', 'project', 'project', 'union']
train
["SELECT['medcines']", "FILTER['#1', 'that are FDA approved']", "PROJECT['names of #REF', '#2']", "PROJECT['trade names of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_947
What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?
return the medicine named 'Amisulpride ' ;return the enzymes in #1 ;return #2 that can serve as an 'inhibitor ' ;return the names of #3
['select', 'project', 'filter', 'project']
train
['SELECT["the medicine named \'Amisulpride \'"]', "PROJECT['the enzymes in #REF', '#1']", 'FILTER[\'#2\', "that can serve as an \'inhibitor \'"]', "PROJECT['the names of #REF', '#3']"]
SPIDER_train_948
What are the names of the enzymes used in the medicine Amisulpride that acts as inhibitors?
return medicine Amisulpride ;return enzymes in #1 ;return #2 that act as inhibitors ;return names of #3
['select', 'project', 'filter', 'project']
train
["SELECT['medicine Amisulpride']", "PROJECT['enzymes in #REF', '#1']", "FILTER['#2', 'that act as inhibitors']", "PROJECT['names of #REF', '#3']"]
SPIDER_train_949
What are the ids and names of the medicine that can interact with two or more enzymes?
return medicines ;return enzymes #1 can interact with ;return number of #2 for each #1 ;return #1 where #3 is at least two ;return ids of #4 ;return names of #4 ;return #5 , #6
['select', 'project', 'group', 'comparative', 'project', 'project', 'union']
train
["SELECT['medicines']", "PROJECT['enzymes #REF can interact with', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least two']", "PROJECT['ids of #REF', '#4']", "PROJECT['names of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_95
List the names of courses in alphabetical order?
return courses ;return #1 sorted by alphabetical order
['select', 'sort']
train
["SELECT['courses']", "SORT['#1', 'alphabetical order']"]
SPIDER_train_950
For every medicine id, what are the names of the medicines that can interact with more than one enzyme?
return medicine ids ;return enzymes #1 can interact with ;return number of #2 for each #1 ;return #1 where #3 is higher than one ;return medicine of #4 ;return name of #5
['select', 'project', 'group', 'comparative', 'project', 'project']
train
["SELECT['medicine ids']", "PROJECT['enzymes #REF can interact with', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is higher than one']", "PROJECT['medicine of #REF', '#4']", "PROJECT['name of #REF', '#5']"]
SPIDER_train_951
What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.
return medicines ;return ids of #1 ;return names of #1 ;return FDA approval statuses of #1 ;return enzymes #1 can interact with ;return number of #5 for each #1 ;return #2 , #3 , #4 ;return #7 sorted by #6 in descending order
['select', 'project', 'project', 'project', 'project', 'group', 'union', 'sort']
train
["SELECT['medicines']", "PROJECT['ids of #REF', '#1']", "PROJECT['names of #REF', '#1']", "PROJECT['FDA approval statuses of #REF', '#1']", "PROJECT['enzymes #REF can interact with', '#1']", "GROUP['count', '#5', '#1']", "UNION['#2', '#3', '#4']", "SORT['#7', '#6 in descending order']"]
SPIDER_train_952
What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions?
return medicines ;return ids of #1 ;return names of #1 ;return FDA approval statuses of #1 ;return possible enzyme interactions of #1 ;return number of #5 for each #1 ;return #2 , #3 , #4 ;return #7 sorted by #6 descending
['select', 'project', 'project', 'project', 'project', 'group', 'union', 'sort']
train
["SELECT['medicines']", "PROJECT['ids of #REF', '#1']", "PROJECT['names of #REF', '#1']", "PROJECT['FDA approval statuses of #REF', '#1']", "PROJECT['possible enzyme interactions of #REF', '#1']", "GROUP['count', '#5', '#1']", "UNION['#2', '#3', '#4']", "SORT['#7', '#6 descending']"]
SPIDER_train_953
What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?
return enzymes ;return #1 with medicines that can interact as 'activator ;return #1 where #2 is highest ;return id of #3 ;return name of #3 ;return #4 , #5
['select', 'filter', 'superlative', 'project', 'project', 'union']
train
["SELECT['enzymes']", 'FILTER[\'#1\', "with medicines that can interact as \'activator"]', "SUPERLATIVE['max', '#1', '#2']", "PROJECT['id of #REF', '#3']", "PROJECT['name of #REF', '#3']", "UNION['#4', '#5']"]
SPIDER_train_954
What is the id and name of the enzyme that can interact with the most medicines as an activator?
return enzymes ;return medicines #1 can interact with ;return #2 as an activator ;return number of #3 for each #1 ;return #1 where #4 is highest ;return id of #5 ;return name of #5 ;return #6 , #7
['select', 'project', 'filter', 'group', 'superlative', 'project', 'project', 'union']
train
["SELECT['enzymes']", "PROJECT['medicines #REF can interact with', '#1']", "FILTER['#2', 'as an activator']", "GROUP['count', '#3', '#1']", "SUPERLATIVE['max', '#1', '#4']", "PROJECT['id of #REF', '#5']", "PROJECT['name of #REF', '#5']", "UNION['#6', '#7']"]
SPIDER_train_955
What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?
return enzymes ;return #1 named 'ALA synthase ;return medicines ;return #3 named 'Aripiprazole ;return interaction type of both #2 and #3
['select', 'filter', 'select', 'filter', 'intersection']
train
["SELECT['enzymes']", 'FILTER[\'#1\', "named \'ALA synthase"]', "SELECT['medicines']", 'FILTER[\'#3\', "named \'Aripiprazole"]', "INTERSECTION['interaction type', '#2', '#3']"]
SPIDER_train_956
What is the type of interaction for the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?
return medicines ;return #1 that are named 'Aripiprazole ;return types of interactions of #2 ;return enzyme of #3 ;return #3 where #4 is 'ALA synthase
['select', 'filter', 'project', 'project', 'comparative']
train
["SELECT['medicines']", 'FILTER[\'#1\', "that are named \'Aripiprazole"]', "PROJECT['types of interactions of #REF', '#2']", "PROJECT['enzyme of #REF', '#3']", 'COMPARATIVE[\'#3\', \'#4\', "is \'ALA synthase"]']
SPIDER_train_957
What is the most common interaction type between enzymes and medicine? And how many are there?
return interactions ;return #1 between enzymes and medicines ;return types of #2 ;return number of #2 for each #3 ;return #3 where #4 is the highest ;return number of #3 ;return #5 , #6
['select', 'filter', 'project', 'group', 'comparative', 'aggregate', 'union']
train
["SELECT['interactions']", "FILTER['#1', 'between enzymes and medicines']", "PROJECT['types of #REF', '#2']", "GROUP['count', '#2', '#3']", "COMPARATIVE['#3', '#4', 'is the highest']", "AGGREGATE['count', '#3']", "UNION['#5', '#6']"]
SPIDER_train_958
What are the most common types of interactions between enzymes and medicine, and how many types are there?
return interactions ;return #1 between enzymes and medicine ;return types of #2 ;return number of #3 ;return the most common #3 ;return #5 , #4
['select', 'filter', 'project', 'aggregate', 'project', 'union']
train
["SELECT['interactions']", "FILTER['#1', 'between enzymes and medicine']", "PROJECT['types of #REF', '#2']", "AGGREGATE['count', '#3']", "PROJECT['the most common #REF', '#3']", "UNION['#5', '#4']"]
SPIDER_train_959
How many medicines have the FDA approval status 'No' ?
return medicines ;return FDA approval statuses of #1 ;return #1 where #2 is 'No ;return number of #3
['select', 'project', 'comparative', 'aggregate']
train
["SELECT['medicines']", "PROJECT['FDA approval statuses of #REF', '#1']", 'COMPARATIVE[\'#1\', \'#2\', "is \'No"]', "AGGREGATE['count', '#3']"]
SPIDER_train_96
What are the names of the courses in alphabetical order?
return courses ;return names of #1 ;return #2 sorted by alphabetical order
['select', 'project', 'sort']
train
["SELECT['courses']", "PROJECT['names of #REF', '#1']", "SORT['#2', 'alphabetical order']"]
SPIDER_train_960
How many medicines were not approved by the FDA?
return medicines ;return #1 that were not approved by the FDA ;return number of #2
['select', 'filter', 'aggregate']
train
["SELECT['medicines']", "FILTER['#1', 'that were not approved by the FDA']", "AGGREGATE['count', '#2']"]
SPIDER_train_961
How many enzymes do not have any interactions?
return enzymes ;return #1 that have interactions ;return #1 besides #2 ;return number of #3
['select', 'filter', 'discard', 'aggregate']
train
["SELECT['enzymes']", "FILTER['#1', 'that have interactions']", "DISCARD['#1', '#2']", "AGGREGATE['count', '#3']"]
SPIDER_train_962
What is the count of enzymes without any interactions?
return enzymes ;return #1 without interactions ;return number of #2
['select', 'filter', 'aggregate']
train
["SELECT['enzymes']", "FILTER['#1', 'without interactions']", "AGGREGATE['count', '#2']"]
SPIDER_train_963
What is the id and trade name of the medicines can interact with at least 3 enzymes?
return medicines ;return enzymes #1 can interact with ;return number of #2 for each #1 ;return #1 where #3 is at least 3 ;return id of #4 ;return trade name of #4 ;return #5 , #6
['select', 'project', 'group', 'comparative', 'project', 'project', 'union']
train
["SELECT['medicines']", "PROJECT['enzymes #REF can interact with', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least 3']", "PROJECT['id of #REF', '#4']", "PROJECT['trade name of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_964
What are the ids and trade names of the medicine that can interact with at least 3 enzymes?
return medicines ;return enzymes #1 can interact with ;return number of #2 for each #1 ;return #1 where #3 is at least 3 ;return ids of #4 ;return trade names of #4 ;return #5 , #6
['select', 'project', 'group', 'comparative', 'project', 'project', 'union']
train
["SELECT['medicines']", "PROJECT['enzymes #REF can interact with', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least 3']", "PROJECT['ids of #REF', '#4']", "PROJECT['trade names of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_965
What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?
return enzymes ;return 'inhibitor interactions of #1 ;return the number of #2 for each #1 ;return #1 where #3 is at least one ;return the distinct names of #4 ;return the distinct locations of #4 ;return the distinct products of #4 ;return #5 , #6 , #7
['select', 'project', 'group', 'comparative', 'project', 'project', 'project', 'union']
train
["SELECT['enzymes']", 'PROJECT["\'inhibitor interactions of #REF", \'#1\']', "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least one']", "PROJECT['the distinct names of #REF', '#4']", "PROJECT['the distinct locations of #REF', '#4']", "PROJECT['the distinct products of #REF', '#4']", "UNION['#5', '#6', '#7']"]
SPIDER_train_966
What are the different names, locations, and products of the enzymes that are capable inhibitor interactions?
return enzymes ;return #1 that are capable of inhibitor interactions ;return names of #2 ;return locations of #2 ;return products of #2 ;return #3 , #4 , #5
['select', 'filter', 'project', 'project', 'project', 'union']
train
["SELECT['enzymes']", "FILTER['#1', 'that are capable of inhibitor interactions']", "PROJECT['names of #REF', '#2']", "PROJECT['locations of #REF', '#2']", "PROJECT['products of #REF', '#2']", "UNION['#3', '#4', '#5']"]
SPIDER_train_967
List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.
return medicines ;return #1 that can interact with enzymes as a 'inhibitor ;return #1 that can interact with enzymes as a 'activitor ;return #1 in both #2 and #3 ;return medicine names of #4 ;return trade names of #4 ;return #5 , #6
['select', 'filter', 'filter', 'intersection', 'project', 'project', 'union']
train
["SELECT['medicines']", 'FILTER[\'#1\', "that can interact with enzymes as a \'inhibitor"]', 'FILTER[\'#1\', "that can interact with enzymes as a \'activitor"]', "INTERSECTION['#1', '#2', '#3']", "PROJECT['medicine names of #REF', '#4']", "PROJECT['trade names of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_968
What are the medicine and trade names that can interact as an inhibitor and activitor with enzymes?
return medicines ;return #1 that can interact as an inhibitor with enzymes ;return #1 that can interact as an activitor with enzymes ;return #1 in both #2 and #3 ;return the medicine names of #4 ;return the trades names of #4 ;return #5 , #6
['select', 'filter', 'filter', 'intersection', 'project', 'project', 'union']
train
["SELECT['medicines']", "FILTER['#1', 'that can interact as an inhibitor with enzymes']", "FILTER['#1', 'that can interact as an activitor with enzymes']", "INTERSECTION['#1', '#2', '#3']", "PROJECT['the medicine names of #REF', '#4']", "PROJECT['the trades names of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_969
Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.
return medicines ;return enzymes interact with of #1 ;return products of #2 ;return #2 where #3 is 'Heme ;return number of #4 for each #1 ;return #1 where #5 is zero ;return medicine names of #6 ;return trade names of #6 ;return #7 , #8
['select', 'project', 'project', 'comparative', 'group', 'comparative', 'project', 'project', 'union']
train
["SELECT['medicines']", "PROJECT['enzymes interact with of #REF', '#1']", "PROJECT['products of #REF', '#2']", 'COMPARATIVE[\'#2\', \'#3\', "is \'Heme"]', "GROUP['count', '#4', '#1']", "COMPARATIVE['#1', '#5', 'is zero']", "PROJECT['medicine names of #REF', '#6']", "PROJECT['trade names of #REF', '#6']", "UNION['#7', '#8']"]
SPIDER_train_97
List the first names of people in alphabetical order?
return people ;return first names of #1 ;return #2 sorted by alphabetical order
['select', 'project', 'sort']
train
["SELECT['people']", "PROJECT['first names of #REF', '#1']", "SORT['#2', 'alphabetical order']"]
SPIDER_train_970
What are the medicine and trade names that cannot interact with the enzyme with the product 'Heme'?
return enzymes ;return products that #1 can not interact with ;return #1 where #2 is 'Heme ;return medicine name of #3 ;return trade name of #3 ;return #4 , #5
['select', 'project', 'comparative', 'project', 'project', 'union']
train
["SELECT['enzymes']", "PROJECT['products that #REF can not interact with', '#1']", 'COMPARATIVE[\'#1\', \'#2\', "is \'Heme"]', "PROJECT['medicine name of #REF', '#3']", "PROJECT['trade name of #REF', '#3']", "UNION['#4', '#5']"]
SPIDER_train_971
How many distinct FDA approval statuses are there for the medicines?
return medicines ;return FDA approval statuses of #1 ;return distinct #2 ;return number of #3
['select', 'project', 'project', 'aggregate']
train
["SELECT['medicines']", "PROJECT['FDA approval statuses of #REF', '#1']", "PROJECT['distinct #REF', '#2']", "AGGREGATE['count', '#3']"]
SPIDER_train_972
How many different FDA approval statuses exist for medicines?
return medicines ;return FDA approval statuses of #1 ;return different #2 ;return number of #3
['select', 'project', 'project', 'aggregate']
train
["SELECT['medicines']", "PROJECT['FDA approval statuses of #REF', '#1']", "PROJECT['different #REF', '#2']", "AGGREGATE['count', '#3']"]
SPIDER_train_973
Which enzyme names have the substring "ALA"?
return enzyme ;return names of #1 ;return substring of #2 ;return #2 where #3 is ALA
['select', 'project', 'project', 'comparative']
train
["SELECT['enzyme']", "PROJECT['names of #REF', '#1']", "PROJECT['substring of #REF', '#2']", "COMPARATIVE['#2', '#3', 'is ALA']"]
SPIDER_train_974
What are the names of enzymes that include the string 'ALA'?
return enzymes ;return names of #1 ;return #2 that include the string 'ALA
['select', 'project', 'filter']
train
["SELECT['enzymes']", "PROJECT['names of #REF', '#1']", 'FILTER[\'#2\', "that include the string \'ALA"]']
SPIDER_train_975
find the number of medicines offered by each trade.
return trades ;return medicines offered by #1 ;return number of #2 for each #1
['select', 'project', 'group']
train
["SELECT['trades']", "PROJECT['medicines offered by #REF', '#1']", "GROUP['count', '#2', '#1']"]
SPIDER_train_976
How many medicines are offered by each trade name?
return trade names ;return medicines offered by #1 ;return number of #2 for each #1
['select', 'project', 'group']
train
["SELECT['trade names']", "PROJECT['medicines offered by #REF', '#1']", "GROUP['count', '#2', '#1']"]
SPIDER_train_977
List all schools and their nicknames in the order of founded year.
return schools ;return nicknames of #1 ;return founded years of #1 ;return #1 , #2 ;return #4 sorted by #3
['select', 'project', 'project', 'union', 'sort']
train
["SELECT['schools']", "PROJECT['nicknames of #REF', '#1']", "PROJECT['founded years of #REF', '#1']", "UNION['#1', '#2']", "SORT['#4', '#3']"]
SPIDER_train_978
What are the different schools and their nicknames, ordered by their founding years?
return different schools ;return nicknames of #1 ;return founding years of #1 ;return #2 , #3 ;return #4 sorted by #3
['select', 'project', 'project', 'union', 'sort']
train
["SELECT['different schools']", "PROJECT['nicknames of #REF', '#1']", "PROJECT['founding years of #REF', '#1']", "UNION['#2', '#3']", "SORT['#4', '#3']"]
SPIDER_train_979
List all public schools and their locations.
return public schools ;return locations of #1 ;return #1 , #2
['select', 'project', 'union']
train
["SELECT['public schools']", "PROJECT['locations of #REF', '#1']", "UNION['#1', '#2']"]
SPIDER_train_98
What are the first names of the people in alphabetical order?
return people ;return the first names of #1 ;return #2 in alphabetical order
['select', 'project', 'filter']
train
["SELECT['people']", "PROJECT['the first names of #REF', '#1']", "FILTER['#2', 'in alphabetical order']"]
SPIDER_train_980
What are the public schools and what are their locations?
return schools ;return #1 that are public ;return locations of #2 ;return #2 , #3
['select', 'filter', 'project', 'union']
train
["SELECT['schools']", "FILTER['#1', 'that are public']", "PROJECT['locations of #REF', '#2']", "UNION['#2', '#3']"]
SPIDER_train_981
When was the school with the largest enrollment founded?
return schools ;return enrollments of #1 ;return #1 where #2 is largest ;return when was #3 founded
['select', 'project', 'superlative', 'project']
train
["SELECT['schools']", "PROJECT['enrollments of #REF', '#1']", "SUPERLATIVE['max', '#1', '#2']", "PROJECT['when was #REF founded', '#3']"]
SPIDER_train_982
Return the founded year for the school with the largest enrollment.
return schools ;return enrollments of #1 ;return #1 where #2 is highest ;return founded year of #3
['select', 'project', 'superlative', 'project']
train
["SELECT['schools']", "PROJECT['enrollments of #REF', '#1']", "SUPERLATIVE['max', '#1', '#2']", "PROJECT['founded year of #REF', '#3']"]
SPIDER_train_983
Find the founded year of the newest non public school.
return non public schools ;return founded years of #1 ;return #2 where founded year is newest
['select', 'project', 'filter']
train
["SELECT['non public schools']", "PROJECT['founded years of #REF', '#1']", "FILTER['#2', 'where founded year is newest']"]
SPIDER_train_984
What is the founded year of the non public school that was founded most recently?
return schools ;return #1 that are non public ;return founded years of #2 ;return #2 where #3 is highest
['select', 'filter', 'project', 'superlative']
train
["SELECT['schools']", "FILTER['#1', 'that are non public']", "PROJECT['founded years of #REF', '#2']", "SUPERLATIVE['max', '#2', '#3']"]
SPIDER_train_985
How many schools are in the basketball match?
return the basketball match ;return the schools in #1 ;return the number of #2
['select', 'project', 'aggregate']
train
["SELECT['the basketball match']", "PROJECT['the schools in #REF', '#1']", "AGGREGATE['count', '#2']"]
SPIDER_train_986
Count the number of schools that have had basketball matches.
return schools ;return #1 that have had basketball matches ;return number of #2
['select', 'filter', 'aggregate']
train
["SELECT['schools']", "FILTER['#1', 'that have had basketball matches']", "AGGREGATE['count', '#2']"]
SPIDER_train_987
What is the highest acc percent score in the competition?
return competition ;return acc percent scores in #1 ;return #1 where #2 is highest
['select', 'project', 'superlative']
train
["SELECT['competition']", "PROJECT['acc percent scores in #REF', '#1']", "SUPERLATIVE['max', '#1', '#2']"]
SPIDER_train_988
Return the highest acc percent across all basketball matches.
return basketball matches ;return acc percent of #1 ;return #2 that is highest
['select', 'project', 'filter']
train
["SELECT['basketball matches']", "PROJECT['acc percent of #REF', '#1']", "FILTER['#2', 'that is highest']"]
SPIDER_train_989
What is the primary conference of the school that has the lowest acc percent score in the competition?
return schools ;return #1 in the competition ;return the acc percent scores of #2 ;return #2 where #3 is the lowest ;return the primary conference of #4
['select', 'filter', 'project', 'comparative', 'project']
train
["SELECT['schools']", "FILTER['#1', 'in the competition']", "PROJECT['the acc percent scores of #REF', '#2']", "COMPARATIVE['#2', '#3', 'is the lowest']", "PROJECT['the primary conference of #REF', '#4']"]
SPIDER_train_99
What are the id of students who registered courses or attended courses?
return students ;return registered courses of #1 ;return number of #2 for each #1 ;return #1 where #3 is higher than zero ;return attended courses of #1 ;return number of #5 for each #1 ;return #1 where #6 is higher than zero ;return #4 or #7 ;return ids of #8
['select', 'project', 'group', 'comparative', 'project', 'group', 'comparative', 'union', 'project']
train
["SELECT['students']", "PROJECT['registered courses of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is higher than zero']", "PROJECT['attended courses of #REF', '#1']", "GROUP['count', '#5', '#1']", "COMPARATIVE['#1', '#6', 'is higher than zero']", "UNION['#4', '#7']", "PROJECT['ids of #REF', '#8']"]
SPIDER_train_990
Return the primary conference of the school with the lowest acc percentage score.
return acc percentage score ;return lowest #1 ;return school that has #2 ;return primary conference of #3
['select', 'aggregate', 'project', 'project']
train
["SELECT['acc percentage score']", "AGGREGATE['min', '#1']", "PROJECT['school that has #REF', '#2']", "PROJECT['primary conference of #REF', '#3']"]
SPIDER_train_991
What is the team name and acc regular season score of the school that was founded for the longest time?
return schools ;return time founded of #1 ;return #1 where #2 is highest ;return team name of #3 ;return acc regular season score of #3 ;return #4 , #5
['select', 'project', 'superlative', 'project', 'project', 'union']
train
["SELECT['schools']", "PROJECT['time founded of #REF', '#1']", "SUPERLATIVE['max', '#1', '#2']", "PROJECT['team name of #REF', '#3']", "PROJECT['acc regular season score of #REF', '#3']", "UNION['#4', '#5']"]
SPIDER_train_992
Return the name of the team and the acc during the regular season for the school that was founded the earliest.
return schools ;return #1 that was founded earliest ;return team of #2 ;return name of #3 ;return acc of #3 ;return #5 during the regular season ;return #4 , #6
['select', 'filter', 'project', 'project', 'project', 'filter', 'union']
train
["SELECT['schools']", "FILTER['#1', 'that was founded earliest']", "PROJECT['team of #REF', '#2']", "PROJECT['name of #REF', '#3']", "PROJECT['acc of #REF', '#3']", "FILTER['#5', 'during the regular season']", "UNION['#4', '#6']"]
SPIDER_train_993
Find the location and all games score of the school that has Clemson as its team name.
return schools ;return team names of #1 ;return #1 where #2 is Clemson ;return games of #3 ;return locations of #4 ;return scores of #4 ;return #5 , #6
['select', 'project', 'comparative', 'project', 'project', 'project', 'union']
train
["SELECT['schools']", "PROJECT['team names of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Clemson']", "PROJECT['games of #REF', '#3']", "PROJECT['locations of #REF', '#4']", "PROJECT['scores of #REF', '#4']", "UNION['#5', '#6']"]
SPIDER_train_994
What are the all games score and location of the school called Clemson?
return schools ;return #1 called Clemson ;return games of #2 ;return score of #3 ;return locations of #3 ;return #4 , #5
['select', 'filter', 'project', 'project', 'project', 'union']
train
["SELECT['schools']", "FILTER['#1', 'called Clemson']", "PROJECT['games of #REF', '#2']", "PROJECT['score of #REF', '#3']", "PROJECT['locations of #REF', '#3']", "UNION['#4', '#5']"]
SPIDER_train_995
What are the average enrollment size of the universities that are founded before 1850?
return universities ;return #1 founded before 1850 ;return enrollment size of #2 ;return average of #3
['select', 'filter', 'project', 'aggregate']
train
["SELECT['universities']", "FILTER['#1', 'founded before 1850']", "PROJECT['enrollment size of #REF', '#2']", "AGGREGATE['avg', '#3']"]
SPIDER_train_996
Return the average enrollment of universities founded before 1850.
return universities ;return #1 founded before 1850 ;return enrollments of #2 ;return average of #3
['select', 'filter', 'project', 'aggregate']
train
["SELECT['universities']", "FILTER['#1', 'founded before 1850']", "PROJECT['enrollments of #REF', '#2']", "AGGREGATE['avg', '#3']"]
SPIDER_train_997
Show the enrollment and primary_conference of the oldest college.
return colleges ;return the oldest #1 ;return enrollment of #2 ;return primary_conference of #2 ;return #3 , #4
['select', 'project', 'project', 'project', 'union']
train
["SELECT['colleges']", "PROJECT['the oldest #REF', '#1']", "PROJECT['enrollment of #REF', '#2']", "PROJECT['primary_conference of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_998
What are the enrollment and primary conference for the university which was founded the earliest?
return universities ;return #1 founded earliest ;return enrollment of #2 ;return primary conference of #2 ;return #3 , #4
['select', 'filter', 'project', 'project', 'union']
train
["SELECT['universities']", "FILTER['#1', 'founded earliest']", "PROJECT['enrollment of #REF', '#2']", "PROJECT['primary conference of #REF', '#2']", "UNION['#3', '#4']"]
SPIDER_train_999
What is the total and minimum enrollment of all schools?
return schools ;return enrollments of #1 ;return sum of #2 ;return minimum of #2 ;return #3 , #4
['select', 'project', 'aggregate', 'aggregate', 'union']
train
["SELECT['schools']", "PROJECT['enrollments of #REF', '#1']", "AGGREGATE['sum', '#2']", "AGGREGATE['min', '#2']", "UNION['#3', '#4']"]