question_id
stringlengths 11
60
| question_text
stringlengths 7
294
| decomposition
stringlengths 13
606
| operators
stringlengths 10
260
| split
stringclasses 1
value |
---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
SPIDER_train_729 | Show all card type codes. | return cards ;return types of #1 ;return codes of #2 | ['select', 'project', 'project'] | train |
SPIDER_train_73 | Find id of the candidate whose email is stanley.monahan@example.org? | return candidates ;return emails of #1 ;return #1 where #2 is equal to stanley.monahan @ example.org ;return id of #3 | ['select', 'project', 'comparative', 'project'] | train |
SPIDER_train_730 | What are the different card type codes? | return cards ;return types of #1 ;return codes of #2 ;return different #3 | ['select', 'project', 'project', 'project'] | train |
SPIDER_train_731 | Show the number of card types. | return card types ;return number of #1 | ['select', 'aggregate'] | train |
SPIDER_train_732 | How many different card types are there? | return card types ;return different #1 ;return number of #2 | ['select', 'project', 'aggregate'] | train |
SPIDER_train_733 | Show all transaction types. | return transaction types | ['select'] | train |
SPIDER_train_734 | What are the different types of transactions? | return transactions ;return different types of #1 | ['select', 'project'] | train |
SPIDER_train_735 | Show the number of transaction types. | return transaction types ;return number of #1 | ['select', 'aggregate'] | train |
SPIDER_train_736 | How many different types of transactions are there? | return transactions ;return types of #1 ;return different #2 ;return number of #3 | ['select', 'project', 'project', 'aggregate'] | train |
SPIDER_train_737 | What is the average and total transaction amount? | return transactions ;return the amounts of #1 ;return the average of #2 ;return the sum of #2 ;return #3 , #4 | ['select', 'project', 'aggregate', 'aggregate', 'union'] | train |
SPIDER_train_738 | Return the average transaction amount, as well as the total amount of all transactions. | return transactions ;return amounts of #1 ;return average of #2 ;return sum of #2 ;return #3 , #4 | ['select', 'project', 'aggregate', 'aggregate', 'union'] | train |
SPIDER_train_739 | Show the card type codes and the number of transactions. | return card type codes ;return number of transactions for each #1 ;return #1 , #2 | ['select', 'group', 'union'] | train |
SPIDER_train_74 | What is the id of the candidate whose email is stanley.monahan@example.org? | return candidates ;return emails of #1 ;return #1 where #2 is stanley.monahan @ example.org ;return id of #3 | ['select', 'project', 'comparative', 'project'] | train |
SPIDER_train_740 | What are the different card types, and how many transactions have been made with each? | return cards ;return different types of #1 ;return transactions made with #2 ;return number of #3 for each #2 ;return #2 , #4 | ['select', 'project', 'project', 'group', 'union'] | train |
SPIDER_train_741 | Show the transaction type and the number of transactions. | return transaction types ;return transactions of #1 ;return number of #2 for each #1 ;return #1 , #3 | ['select', 'project', 'group', 'union'] | train |
SPIDER_train_742 | What are the different transaction types, and how many transactions of each have taken place? | return transactions ;return different types of #1 ;return transactions of #2 ;return number of #3 for each #2 ;return #2 , #4 | ['select', 'project', 'project', 'group', 'union'] | train |
SPIDER_train_743 | What is the transaction type that has processed the greatest total amount in transactions? | return transaction types ;return transactions #1 have processed ;return amounts of #2 ;return sum of #3 for each #1 ;return #1 where #4 is highest | ['select', 'project', 'project', 'group', 'superlative'] | train |
SPIDER_train_744 | Return the type of transaction with the highest total amount. | return transactions ;return amounts of #1 ;return sum of #2 for each #1 ;return #1 where #3 is highest ;return type of #4 | ['select', 'project', 'group', 'superlative', 'project'] | train |
SPIDER_train_745 | Show the account id and the number of transactions for each account | return accounts ;return id of #1 ;return transactions of #1 ;return #2 , #3 | ['select', 'project', 'project', 'union'] | train |
SPIDER_train_746 | What are the different account ids that have made financial transactions, as well as how many transactions correspond to each? | return account ids ;return #1 that have made financial transactions ;return different #2 ;return transactions of #3 ;return number of #4 for each #3 ;return #4 , #5 | ['select', 'filter', 'project', 'project', 'group', 'union'] | train |
SPIDER_train_747 | How many tracks do we have? | return tracks ;return number of #1 | ['select', 'aggregate'] | train |
SPIDER_train_748 | Count the number of tracks. | return tracks ;return Count the number of #1 | ['select', 'aggregate'] | train |
SPIDER_train_749 | Show the name and location for all tracks. | return tracks ;return names of #1 ;return locations of #1 ;return #2 , #3 | ['select', 'project', 'project', 'union'] | train |
SPIDER_train_75 | Find id of the candidate who most recently accessed the course? | return candidates ;return when #1 accessed the course ;return #1 where #2 is the most recently ;return id of #3 | ['select', 'project', 'comparative', 'project'] | train |
SPIDER_train_750 | What are the names and locations of all tracks? | return tracks ;return names of #1 ;return locations of #1 ;return #2 , #3 | ['select', 'project', 'project', 'union'] | train |
SPIDER_train_751 | Show names and seatings, ordered by seating for all tracks opened after 2000. | return tracks ;return #1 opened after 2000 ;return names of #2 ;return seatings of #2 ;return #3 , #4 ;return #5 ordered by #4 | ['select', 'filter', 'project', 'project', 'union', 'sort'] | train |
SPIDER_train_752 | What are the names and seatings for all tracks opened after 2000, ordered by seating? | return tracks ;return #1 opened after 2000 ;return names of #2 ;return seating of #2 ;return #3 , #4 ;return #5 sorted by #4 | ['select', 'filter', 'project', 'project', 'union', 'sort'] | train |
SPIDER_train_753 | What is the name, location and seating for the most recently opened track? | return track ;return the most recently opened #1 ;return the name of #2 ;return the location of #2 ;return the seating of #2 ;return #3 , #4 , #5 | ['select', 'project', 'project', 'project', 'project', 'union'] | train |
SPIDER_train_754 | Return the name, location, and seating of the track that was opened in the most recent year. | return tracks ;return years opened of #1 ;return #1 where #2 is the most recent ;return name of #3 ;return location of #3 ;return seating of #3 ;return #4 , #5 , #6 | ['select', 'project', 'comparative', 'project', 'project', 'project', 'union'] | train |
SPIDER_train_755 | What is the minimum, maximum, and average seating for all tracks. | return tracks ;return seating of #1 ;return minimum of #2 ;return maximum of #2 ;return average of #2 ;return #3 , #4 , #5 | ['select', 'project', 'aggregate', 'aggregate', 'aggregate', 'union'] | train |
SPIDER_train_756 | Return the minimum, maximum, and average seating across all tracks. | return tracks ;return seating of #1 ;return minimum of #2 ;return maximum of #2 ;return average of #2 ;return #3 , #4 , #5 | ['select', 'project', 'aggregate', 'aggregate', 'aggregate', 'union'] | train |
SPIDER_train_757 | Show the name, location, open year for all tracks with a seating higher than the average. | return tracks ;return seating of #1 ;return average of #2 ;return #1 where #2 is higher than #3 ;return name of #4 ;return location of #4 ;return open year of #4 ;return #5 , #6 , #7 | ['select', 'project', 'aggregate', 'comparative', 'project', 'project', 'project', 'union'] | train |
SPIDER_train_758 | What are the names, locations, and years of opening for tracks with seating higher than average? | return tracks ;return seating of #1 ;return average of #2 ;return #1 where #2 is higher than #3 ;return names of #4 ;return locations of #4 ;return years of opening of #4 ;return #5 , #6 , #7 | ['select', 'project', 'aggregate', 'comparative', 'project', 'project', 'project', 'union'] | train |
SPIDER_train_759 | What are distinct locations where tracks are located? | return tracks ;return locations of #1 ;return distinct #2 | ['select', 'project', 'project'] | train |
SPIDER_train_76 | What is the id of the candidate who most recently accessed the course? | return candidates ;return when was #1 accessed the course ;return #1 where #2 is highest ;return id of #3 | ['select', 'project', 'superlative', 'project'] | train |
SPIDER_train_760 | Give the different locations of tracks. | return tracks ;return locations of #1 ;return different #2 | ['select', 'project', 'project'] | train |
SPIDER_train_761 | How many races are there? | return races ;return number of #1 | ['select', 'aggregate'] | train |
SPIDER_train_762 | Count the number of races. | return races ;return number of #1 | ['select', 'aggregate'] | train |
SPIDER_train_763 | What are the distinct classes that races can have? | return races ;return distinct classes #1 can have | ['select', 'project'] | train |
SPIDER_train_764 | Return the different classes of races. | return races ;return classes of #1 ;return different #2 | ['select', 'project', 'project'] | train |
SPIDER_train_765 | Show name, class, and date for all races. | return races ;return name of #1 ;return class of #1 ;return date of #1 ;return #2 , #3 , #4 | ['select', 'project', 'project', 'project', 'union'] | train |
SPIDER_train_766 | What are the names, classes, and dates for all races? | return races ;return names of #1 ;return classes of #1 ;return dates of #1 ;return #2 , #3 , #4 | ['select', 'project', 'project', 'project', 'union'] | train |
SPIDER_train_767 | Show the race class and number of races in each class. | return race classes ;return races in #1 ;return number of #2 for each #1 ;return #1 , #3 | ['select', 'project', 'group', 'union'] | train |
SPIDER_train_768 | What are the different classes of races, and how many races correspond to each? | return races ;return different classes of #1 ;return number of #1 for each #2 ;return #2 , #3 | ['select', 'project', 'group', 'union'] | train |
SPIDER_train_769 | What is the race class with most number of races. | return races ;return classes of #1 ;return number of #1 for each #2 ;return #2 where #3 is the highest | ['select', 'project', 'group', 'comparative'] | train |
SPIDER_train_77 | What is detail of the student who registered the most number of courses? | return students ;return courses that #1 registered ;return the number of #2 for each #1 ;return #1 where #3 is the highest ;return the details of #4 | ['select', 'project', 'group', 'comparative', 'project'] | train |
SPIDER_train_770 | Give the class of races that is most common. | return classes ;return races of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest | ['select', 'project', 'group', 'superlative'] | train |
SPIDER_train_771 | List the race class with at least two races. | return race classes ;return races of #1 ;return number of #2 for each #1 ;return #1 where #3 is at least two | ['select', 'project', 'group', 'comparative'] | train |
SPIDER_train_772 | What are the classes of races that have two or more corresponding races? | return races ;return classes of #1 ;return number of #1 for each #2 ;return #2 where #3 is at least two | ['select', 'project', 'group', 'comparative'] | train |
SPIDER_train_773 | What are the names for tracks without a race in class 'GT'. | return tracks ;return races of #1 ;return classes of #2 ;return #1 where #3 is not 'GT ;return names of #4 | ['select', 'project', 'project', 'comparative', 'project'] | train |
SPIDER_train_774 | Give the names of tracks that do not have a race in the class 'GT'. | return tracks ;return races of #1 ;return classes of #2 ;return #1 where #3 is not 'GT ;return names of #4 | ['select', 'project', 'project', 'comparative', 'project'] | train |
SPIDER_train_775 | Show all track names that have had no races. | return track ;return races ;return number of #2 for each #1 ;return #1 where #3 is zero ;return name of #4 | ['select', 'select', 'group', 'comparative', 'project'] | train |
SPIDER_train_776 | Return the names of tracks that have no had any races. | return tracks ;return #1 that had races ;return #1 besides #2 ;return names of #3 | ['select', 'filter', 'discard', 'project'] | train |
SPIDER_train_777 | Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened. | return tracks ;return seating of #1 ;return #1 where #2 is at least 5000 ;return #1 where #2 is at most 4000 ;return #3 , #4 ;return year opened of #5 | ['select', 'project', 'comparative', 'comparative', 'union', 'project'] | train |
SPIDER_train_778 | What are the years of opening for tracks with seating between 4000 and 5000? | return tracks ;return seating of #1 ;return #1 where #2 is at least 4000 ;return #3 where #2 is at most 5000 ;return years of opening of #4 | ['select', 'project', 'comparative', 'comparative', 'project'] | train |
SPIDER_train_779 | Show the name of track and the number of races in each track. | return tracks ;return races in #1 ;return the number of #2 for each #1 ;return the names of #1 ;return #4 , #3 | ['select', 'project', 'group', 'project', 'union'] | train |
SPIDER_train_78 | What are the details of the student who registered for the most number of courses? | return students ;return courses #1 registered for ;return number of #2 for each #1 ;return #1 where #3 is highest ;return details of #4 | ['select', 'project', 'group', 'superlative', 'project'] | train |
SPIDER_train_780 | What are the names of different tracks, and how many races has each had? | return different tracks ;return names of #1 ;return races #1 have had ;return number of #3 for each #1 ;return #2 , #4 | ['select', 'project', 'project', 'group', 'union'] | train |
SPIDER_train_781 | Show the name of track with most number of races. | return tracks ;return races of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return name of #4 | ['select', 'project', 'group', 'superlative', 'project'] | train |
SPIDER_train_782 | What is the name of the track that has had the greatest number of races? | return tracks ;return races ;return the number of #2 for each #1 ;return #1 where #3 is the greatest ;return the name of #4 | ['select', 'select', 'group', 'comparative', 'project'] | train |
SPIDER_train_783 | Show the name and date for each race and its track name. | return races ;return names of #1 ;return dates of #1 ;return tracks of #1 ;return names of #4 ;return #2 , #3 , #5 | ['select', 'project', 'project', 'project', 'project', 'union'] | train |
SPIDER_train_784 | What are the names and dates of races, and the names of the tracks where they are held? | return races ;return names of #1 ;return dates of #1 ;return tracks of #1 ;return names of #4 ;return #2 , #3 , #5 | ['select', 'project', 'project', 'project', 'project', 'union'] | train |
SPIDER_train_785 | Show the name and location of track with 1 race. | return tracks ;return #1 with 1 race ;return name of #2 ;return location of #2 ;return #3 , #4 | ['select', 'filter', 'project', 'project', 'union'] | train |
SPIDER_train_786 | What are the names and locations of tracks that have had exactly 1 race? | return tracks ;return races of #1 ;return number of #2 for each #1 ;return #1 where #3 is 1 ;return names of #4 ;return locations of #4 ;return #5 , #6 | ['select', 'project', 'group', 'comparative', 'project', 'project', 'union'] | train |
SPIDER_train_787 | Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats. | return locations ;return tracks of #1 ;return seats of #2 ;return #1 where #3 is more than 90000 ;return #1 where #3 is less than 70000 ;return #1 of both #4 and #5 | ['select', 'project', 'project', 'comparative', 'comparative', 'intersection'] | train |
SPIDER_train_788 | What are the locations that have both tracks with more than 90000 seats, and tracks with fewer than 70000 seats? | return tracks ;return seats of #1 ;return number of #2 for each #1 ;return #1 where #3 is higher than 90000 ;return #1 where #3 is lower than 70000 ;return locations of both #4 and #5 | ['select', 'project', 'group', 'comparative', 'comparative', 'intersection'] | train |
SPIDER_train_789 | How many members have the black membership card? | return members ;return membership cards of #1 ;return #1 where #2 is black ;return number of #3 | ['select', 'project', 'comparative', 'aggregate'] | train |
SPIDER_train_79 | List the id of students who registered some courses and the number of their registered courses? | return students ;return courses that #1 registered ;return number of #2 for each #1 ;return #1 where #3 is at least one ;return courses that #4 registered ;return number of #5 for each #4 ;return ids of #4 ;return #7 , #6 | ['select', 'project', 'group', 'comparative', 'project', 'group', 'project', 'union'] | train |
SPIDER_train_790 | Find the number of members living in each address. | return addresses ;return members living in #1 ;return number of #2 for each #1 | ['select', 'project', 'group'] | train |
SPIDER_train_791 | Give me the names of members whose address is in Harford or Waterbury. | return members ;return addresses of #1 ;return #1 where #2 is Harford ;return #1 where #2 is Waterbury ;return #3 or #4 ;return names of #5 | ['select', 'project', 'comparative', 'comparative', 'union', 'project'] | train |
SPIDER_train_792 | Find the ids and names of members who are under age 30 or with black membership card. | return members ;return ages of #1 ;return #1 where #2 is under 30 ;return membership cards of #1 ;return #1 where #4 is black ;return #3 or #5 ;return ids of #6 ;return names of #6 ;return #7 , #8 | ['select', 'project', 'comparative', 'project', 'comparative', 'union', 'project', 'project', 'union'] | train |
SPIDER_train_793 | Find the purchase time, age and address of each member, and show the results in the order of purchase time. | return members ;return purchase time of #1 ;return ages of #1 ;return addresses of #1 ;return #2 , #3 , #4 ;return #5 sorted by #2 | ['select', 'project', 'project', 'project', 'union', 'sort'] | train |
SPIDER_train_794 | Which membership card has more than 5 members? | return membership cards ;return members with #1 ;return number of #2 for each #1 ;return #1 where #3 is higher than 5 | ['select', 'project', 'group', 'comparative'] | train |
SPIDER_train_795 | Which address has both members younger than 30 and members older than 40? | return addresses ;return members of #1 ;return #1 where #2 are younger than 30 ;return #1 where #2 are older than 40 ;return #1 of both #3 and #4 | ['select', 'project', 'comparative', 'comparative', 'intersection'] | train |
SPIDER_train_796 | What is the membership card held by both members living in Hartford and ones living in Waterbury address? | return members ;return addresses of #1 ;return #1 where #2 is in Hartford ;return #1 where #2 is in Waterbury ;return #1 of both #3 and #4 ;return membership card held by #5 | ['select', 'project', 'comparative', 'comparative', 'intersection', 'project'] | train |
SPIDER_train_797 | How many members are not living in Hartford? | return members ;return #1 living in Hartford ;return #1 besides #2 ;return number of #3 | ['select', 'filter', 'discard', 'aggregate'] | train |
SPIDER_train_798 | Which address do not have any member with the black membership card? | return members ;return #1 with the black membership card ;return the addresses of #2 ;return addresses besides #3 | ['select', 'filter', 'project', 'discard'] | train |
SPIDER_train_799 | Show the shop addresses ordered by their opening year. | return shops ;return addresses of #1 ;return opening years of #1 ;return #2 sorted by #3 | ['select', 'project', 'project', 'sort'] | train |
SPIDER_train_8 | In which year were most departments established? | return years ;return departments established in #1 ;return number of #2 for each #1 ;return #1 where #3 is highest | ['select', 'project', 'group', 'superlative'] | train |