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_6027 | Show all male student ids who don't play football. | return students ;return #1 who are male ;return #2 that do not play football ;return ids of #3 | ['select', 'filter', 'filter', 'project'] | train | ["SELECT['students']", "FILTER['#1', 'who are male']", "FILTER['#2', 'that do not play football']", "PROJECT['ids of #REF', '#3']"] |
SPIDER_train_6028 | What are the ids of all male students who do not play football? | return students ;return #1 that are male ;return #2 who do not play football ;return ids of #3 | ['select', 'filter', 'filter', 'project'] | train | ["SELECT['students']", "FILTER['#1', 'that are male']", "FILTER['#2', 'who do not play football']", "PROJECT['ids of #REF', '#3']"] |
SPIDER_train_6029 | Show total hours per week and number of games played for student David Shieber. | return student ;return #1 who is David Shieber ;return games played for #2 ;return number of #3 ;return hours per week for #3 ;return total of #5 ;return #6 , #4 | ['select', 'filter', 'project', 'aggregate', 'project', 'aggregate', 'union'] | train | ["SELECT['student']", "FILTER['#1', 'who is David Shieber']", "PROJECT['games played for #REF', '#2']", "AGGREGATE['count', '#3']", "PROJECT['hours per week for #REF', '#3']", "AGGREGATE['sum', '#5']", "UNION['#6', '#4']"] |
SPIDER_train_603 | Find the number of employees whose title is IT Staff from each city? | return employees ;return cities ;return #1 with title IT Staff ;return number of #3 for each #2 | ['select', 'select', 'filter', 'group'] | train | ["SELECT['employees']", "SELECT['cities']", "FILTER['#1', 'with title IT Staff']", "GROUP['count', '#3', '#2']"] |
SPIDER_train_6030 | What is the total number of hours per work and number of games played by David Shieber? | return David Shieber ;return hours per work of #1 ;return sum of #2 ;return games played by #1 ;return number of #4 ;return #3 , #5 | ['select', 'project', 'aggregate', 'project', 'aggregate', 'union'] | train | ["SELECT['David Shieber']", "PROJECT['hours per work of #REF', '#1']", "AGGREGATE['sum', '#2']", "PROJECT['games played by #REF', '#1']", "AGGREGATE['count', '#4']", "UNION['#3', '#5']"] |
SPIDER_train_6031 | Show total hours per week and number of games played for students under 20. | return students ;return #1 who are under 20 ;return hours per week of #2 ;return sum of #3 ;return games played of #2 ;return #4 , #5 | ['select', 'filter', 'project', 'aggregate', 'project', 'union'] | train | ["SELECT['students']", "FILTER['#1', 'who are under 20']", "PROJECT['hours per week of #REF', '#2']", "AGGREGATE['sum', '#3']", "PROJECT['games played of #REF', '#2']", "UNION['#4', '#5']"] |
SPIDER_train_6032 | What is the total number of hours per week and number of games played by students under 20? | return students ;return #1 that are under 20 ;return hours per week of #2 ;return sum of #3 ;return games played of #2 ;return sum of #5 ;return #4 , #6 | ['select', 'filter', 'project', 'aggregate', 'project', 'aggregate', 'union'] | train | ["SELECT['students']", "FILTER['#1', 'that are under 20']", "PROJECT['hours per week of #REF', '#2']", "AGGREGATE['sum', '#3']", "PROJECT['games played of #REF', '#2']", "AGGREGATE['sum', '#5']", "UNION['#4', '#6']"] |
SPIDER_train_6033 | How many students play video games? | return students ;return #1 who play video games ;return number of #2 | ['select', 'filter', 'aggregate'] | train | ["SELECT['students']", "FILTER['#1', 'who play video games']", "AGGREGATE['count', '#2']"] |
SPIDER_train_6034 | How many different students play games? | return students ;return #1 who play games ;return different #2 ;return number of #3 | ['select', 'filter', 'project', 'aggregate'] | train | ["SELECT['students']", "FILTER['#1', 'who play games']", "PROJECT['different #REF', '#2']", "AGGREGATE['count', '#3']"] |
SPIDER_train_6035 | Show ids of students who don't play video game. | return students ;return #1 that do not play video games ;return ids of #2 | ['select', 'filter', 'project'] | train | ["SELECT['students']", "FILTER['#1', 'that do not play video games']", "PROJECT['ids of #REF', '#2']"] |
SPIDER_train_6036 | What are the ids of all students who are not video game players? | return students ;return #1 who are not video game players ;return ids of #2 | ['select', 'filter', 'project'] | train | ["SELECT['students']", "FILTER['#1', 'who are not video game players']", "PROJECT['ids of #REF', '#2']"] |
SPIDER_train_6037 | Show ids of students who play video game and play sports. | return students ;return #1 who play video games ;return #1 who play sports ;return ids of both #2 and #3 | ['select', 'filter', 'filter', 'intersection'] | train | ["SELECT['students']", "FILTER['#1', 'who play video games']", "FILTER['#1', 'who play sports']", "INTERSECTION['ids', '#2', '#3']"] |
SPIDER_train_6038 | What are the ids of all students who played video games and sports? | return students ;return #1 who played video games ;return #1 who played sports ;return #1 of both #2 and #3 ;return ids of #4 | ['select', 'filter', 'filter', 'intersection', 'project'] | train | ["SELECT['students']", "FILTER['#1', 'who played video games']", "FILTER['#1', 'who played sports']", "INTERSECTION['#1', '#2', '#3']", "PROJECT['ids of #REF', '#4']"] |
SPIDER_train_6039 | Show all game ids and the number of hours played. | return games ;return game ids of #1 ;return number of hours played of #1 ;return #2 , #3 | ['select', 'project', 'project', 'union'] | train | ["SELECT['games']", "PROJECT['game ids of #REF', '#1']", "PROJECT['number of hours played of #REF', '#1']", "UNION['#2', '#3']"] |
SPIDER_train_604 | How many employees who are IT staff are from each city? | return cities ;return employees from #1 ;return #2 who are IT staff ;return number of #3 for each #1 | ['select', 'project', 'filter', 'group'] | train | ["SELECT['cities']", "PROJECT['employees from #REF', '#1']", "FILTER['#2', 'who are IT staff']", "GROUP['count', '#3', '#1']"] |
SPIDER_train_6040 | What are ids and total number of hours played for each game? | return games ;return ids of #1 ;return hours played of #1 ;return sum of #3 for each #1 ;return #2 , #4 | ['select', 'project', 'project', 'group', 'union'] | train | ["SELECT['games']", "PROJECT['ids of #REF', '#1']", "PROJECT['hours played of #REF', '#1']", "GROUP['sum', '#3', '#1']", "UNION['#2', '#4']"] |
SPIDER_train_6041 | Show all student ids and the number of hours played. | return students ;return ids of #1 ;return hours played of #1 ;return number of #3 for each #1 ;return #2 , #4 | ['select', 'project', 'project', 'group', 'union'] | train | ["SELECT['students']", "PROJECT['ids of #REF', '#1']", "PROJECT['hours played of #REF', '#1']", "GROUP['count', '#3', '#1']", "UNION['#2', '#4']"] |
SPIDER_train_6042 | What are the ids of all students and number of hours played? | return students ;return ids of #1 ;return hours played of #1 ;return sum of #3 for each #1 ;return #2 , #4 | ['select', 'project', 'project', 'group', 'union'] | train | ["SELECT['students']", "PROJECT['ids of #REF', '#1']", "PROJECT['hours played of #REF', '#1']", "GROUP['sum', '#3', '#1']", "UNION['#2', '#4']"] |
SPIDER_train_6043 | Show the game name that has most number of hours played. | return games ;return hours played of #1 ;return sum of #2 for each #1 ;return #1 where #3 is highest ;return name of #4 | ['select', 'project', 'group', 'superlative', 'project'] | train | ["SELECT['games']", "PROJECT['hours played of #REF', '#1']", "GROUP['sum', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['name of #REF', '#4']"] |
SPIDER_train_6044 | What is the name of the game that has been played the most? | return games ;return played of #1 ;return #1 where #2 is highest ;return name of #3 | ['select', 'project', 'superlative', 'project'] | train | ["SELECT['games']", "PROJECT['played of #REF', '#1']", "SUPERLATIVE['max', '#1', '#2']", "PROJECT['name of #REF', '#3']"] |
SPIDER_train_6045 | Show all game names played by at least 1000 hours. | return games ;return hours played of #1 ;return #1 where #2 is at least 1000 ;return names of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['games']", "PROJECT['hours played of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is at least 1000']", "PROJECT['names of #REF', '#3']"] |
SPIDER_train_6046 | What are the names of all the games that have been played for at least 1000 hours? | return games ;return hours played of #1 ;return #1 where #2 is at least 1000 ;return names of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['games']", "PROJECT['hours played of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is at least 1000']", "PROJECT['names of #REF', '#3']"] |
SPIDER_train_6047 | Show all game names played by Linda Smith | return games ;return #1 played by Linda Smith ;return the names of #2 | ['select', 'filter', 'project'] | train | ["SELECT['games']", "FILTER['#1', 'played by Linda Smith']", "PROJECT['the names of #REF', '#2']"] |
SPIDER_train_6048 | What are the names of all games played by Linda Smith? | return games ;return #1 played by Linda Smith ;return names of #2 | ['select', 'filter', 'project'] | train | ["SELECT['games']", "FILTER['#1', 'played by Linda Smith']", "PROJECT['names of #REF', '#2']"] |
SPIDER_train_6049 | Find the last and first name of students who are playing Football or Lacrosse. | return students ;return #1 playing Football ;return #1 playing Lacrosse ;return #2 or #3 ;return last names of #4 ;return first names of #4 ;return #5 , #6 | ['select', 'filter', 'filter', 'union', 'project', 'project', 'union'] | train | ["SELECT['students']", "FILTER['#1', 'playing Football']", "FILTER['#1', 'playing Lacrosse']", "UNION['#2', '#3']", "PROJECT['last names of #REF', '#4']", "PROJECT['first names of #REF', '#4']", "UNION['#5', '#6']"] |
SPIDER_train_605 | Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee. | return employees ;return the number of people #1 manages ;return #1 where #2 is highest ;return the first name of #3 ;return the last name of #3 ;return the number of people that report to #3 ;return #4 , #5 , #6 | ['select', 'project', 'superlative', 'project', 'project', 'project', 'union'] | train | ["SELECT['employees']", "PROJECT['the number of people #REF manages', '#1']", "SUPERLATIVE['max', '#1', '#2']", "PROJECT['the first name of #REF', '#3']", "PROJECT['the last name of #REF', '#3']", "PROJECT['the number of people that report to #REF', '#3']", "UNION['#4', '#5', '#6']"] |
SPIDER_train_6050 | What is the first and last name of all students who play Football or Lacrosse? | return students ;return #1 who play Football ;return #1 who play Lacrosse ;return #2 , #3 ;return the first names of #4 ;return the last names of #4 ;return #5 , #6 | ['select', 'filter', 'filter', 'union', 'project', 'project', 'union'] | train | ["SELECT['students']", "FILTER['#1', 'who play Football']", "FILTER['#1', 'who play Lacrosse']", "UNION['#2', '#3']", "PROJECT['the first names of #REF', '#4']", "PROJECT['the last names of #REF', '#4']", "UNION['#5', '#6']"] |
SPIDER_train_6051 | Find the first name and age of the students who are playing both Football and Lacrosse. | return students ;return #1 playing Football ;return #1 playing Lacrosse ;return #1 of both #2 and #3 ;return first names of #4 ;return ages of #4 ;return #5 , #6 | ['select', 'filter', 'filter', 'intersection', 'project', 'project', 'union'] | train | ["SELECT['students']", "FILTER['#1', 'playing Football']", "FILTER['#1', 'playing Lacrosse']", "INTERSECTION['#1', '#2', '#3']", "PROJECT['first names of #REF', '#4']", "PROJECT['ages of #REF', '#4']", "UNION['#5', '#6']"] |
SPIDER_train_6052 | What are the first names and ages of all students who are playing both Football and Lacrosse? | return students ;return #1 playing Football ;return #1 playing Lacrosse ;return #1 of both #2 and #3 ;return first names of #4 ;return ages of #4 ;return #5 , #6 | ['select', 'filter', 'filter', 'intersection', 'project', 'project', 'union'] | train | ["SELECT['students']", "FILTER['#1', 'playing Football']", "FILTER['#1', 'playing Lacrosse']", "INTERSECTION['#1', '#2', '#3']", "PROJECT['first names of #REF', '#4']", "PROJECT['ages of #REF', '#4']", "UNION['#5', '#6']"] |
SPIDER_train_6053 | Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games. | return students ;return games of #1 ;return #1 where #2 is Call of Destiny ;return #1 where #2 is Works of Widenius ;return #1 in both #3 and #4 ;return last names of #5 ;return genders of #5 ;return #6 , #7 | ['select', 'project', 'comparative', 'comparative', 'intersection', 'project', 'project', 'union'] | train | ["SELECT['students']", "PROJECT['games of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Call of Destiny']", "COMPARATIVE['#1', '#2', 'is Works of Widenius']", "INTERSECTION['#1', '#3', '#4']", "PROJECT['last names of #REF', '#5']", "PROJECT['genders of #REF', '#5']", "UNION['#6', '#7']"] |
SPIDER_train_6054 | what is the last name and gender of all students who played both Call of Destiny and Works of Widenius? | return students ;return #1 who played Call of Destiny ;return #1 who played Works of Widenius ;return the last name of both #2 and #3 ;return the gender of both #2 and #3 ;return #4 , #5 | ['select', 'filter', 'filter', 'intersection', 'intersection', 'union'] | train | ["SELECT['students']", "FILTER['#1', 'who played Call of Destiny']", "FILTER['#1', 'who played Works of Widenius']", "INTERSECTION['the last name', '#2', '#3']", "INTERSECTION['the gender', '#2', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_6055 | Find the name of all customers. | return customers ;return names of #1 | ['select', 'project'] | train | ["SELECT['customers']", "PROJECT['names of #REF', '#1']"] |
SPIDER_train_6056 | What are the names of all the customers? | return customers ;return names of #1 | ['select', 'project'] | train | ["SELECT['customers']", "PROJECT['names of #REF', '#1']"] |
SPIDER_train_6058 | Return the total number of distinct customers. | return customers ;return distinct #1 ;return number of #2 | ['select', 'project', 'aggregate'] | train | ["SELECT['customers']", "PROJECT['distinct #REF', '#1']", "AGGREGATE['count', '#2']"] |
SPIDER_train_6059 | What is the average amount of items ordered in each order? | return orders ;return items ordered in #1 ;return number of #2 for each #1 ;return average of #3 | ['select', 'project', 'group', 'aggregate'] | train | ["SELECT['orders']", "PROJECT['items ordered in #REF', '#1']", "GROUP['count', '#2', '#1']", "AGGREGATE['avg', '#3']"] |
SPIDER_train_606 | What are the first and last names of all the employees and how many people report to them? | return employees ;return first names of #1 ;return last names of #1 ;return people who report to #1 ;return number of #4 for each #1 ;return #2 , #3 , #5 | ['select', 'project', 'project', 'project', 'group', 'union'] | train | ["SELECT['employees']", "PROJECT['first names of #REF', '#1']", "PROJECT['last names of #REF', '#1']", "PROJECT['people who report to #REF', '#1']", "GROUP['count', '#4', '#1']", "UNION['#2', '#3', '#5']"] |
SPIDER_train_6060 | Find the average order quantity per order. | return orders ;return order quantities of #1 ;return average of #2 for each #1 | ['select', 'project', 'group'] | train | ["SELECT['orders']", "PROJECT['order quantities of #REF', '#1']", "GROUP['avg', '#2', '#1']"] |
SPIDER_train_6061 | What are the names of customers who use payment method "Cash"? | return customers ;return payment methods of #1 ;return #1 where #2 is Cash ;return names of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['customers']", "PROJECT['payment methods of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Cash']", "PROJECT['names of #REF', '#3']"] |
SPIDER_train_6062 | Which customers use "Cash" for payment method? Return the customer names. | return customers ;return payment methods of #1 ;return #1 where #2 is Cash ;return names of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['customers']", "PROJECT['payment methods of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Cash']", "PROJECT['names of #REF', '#3']"] |
SPIDER_train_6063 | Find the "date became customers" of the customers whose ID is between 10 and 20. | return customers ;return #1 where ID is more than 10 ;return #1 where ID is less than 20 ;return date became customers of both #2 and #3 | ['select', 'filter', 'filter', 'intersection'] | train | ["SELECT['customers']", "FILTER['#1', 'where ID is more than 10']", "FILTER['#1', 'where ID is less than 20']", "INTERSECTION['date became customers', '#2', '#3']"] |
SPIDER_train_6064 | What are the dates when customers with ids between 10 and 20 became customers? | return ids ;return #1 that are smaller than 20 ;return #2 larger than 10 ;return customers with #3 ;return dates when #4 became customers | ['select', 'filter', 'filter', 'project', 'project'] | train | ["SELECT['ids']", "FILTER['#1', 'that are smaller than 20']", "FILTER['#2', 'larger than 10']", "PROJECT['customers with #REF', '#3']", "PROJECT['dates when #REF became customers', '#4']"] |
SPIDER_train_6065 | Which payment method is used by most customers? | return payment methods ;return customers that used #1 ;return number of #2 for each #1 ;return #1 where #3 is highest | ['select', 'project', 'group', 'superlative'] | train | ["SELECT['payment methods']", "PROJECT['customers that used #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']"] |
SPIDER_train_6067 | What are the names of customers using the most popular payment method? | return customers ;return payment methods of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return names of #4 | ['select', 'project', 'group', 'superlative', 'project'] | train | ["SELECT['customers']", "PROJECT['payment methods of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['names of #REF', '#4']"] |
SPIDER_train_6068 | Find the name of the customers who use the most frequently used payment method. | return payment methods ;return customers who use #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return customers who use #4 ;return names of #5 | ['select', 'project', 'group', 'superlative', 'project', 'project'] | train | ["SELECT['payment methods']", "PROJECT['customers who use #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['customers who use #REF', '#4']", "PROJECT['names of #REF', '#5']"] |
SPIDER_train_6069 | What are all the payment methods? | return payment methods | ['select'] | train | ["SELECT['payment methods']"] |
SPIDER_train_607 | How many orders does Lucas Mancini has? | return Lucas Mancini ;return orders of #1 ;return number of #2 | ['select', 'project', 'aggregate'] | train | ["SELECT['Lucas Mancini']", "PROJECT['orders of #REF', '#1']", "AGGREGATE['count', '#2']"] |
SPIDER_train_6070 | Return all the distinct payment methods used by customers. | return customers ;return payment methods used by #1 ;return distinct #2 ;return number of #3 | ['select', 'project', 'project', 'aggregate'] | train | ["SELECT['customers']", "PROJECT['payment methods used by #REF', '#1']", "PROJECT['distinct #REF', '#2']", "AGGREGATE['count', '#3']"] |
SPIDER_train_6071 | What are the details of all products? | return products ;return details of #1 | ['select', 'project'] | train | ["SELECT['products']", "PROJECT['details of #REF', '#1']"] |
SPIDER_train_6072 | Return the the details of all products. | return products ;return details of #1 | ['select', 'project'] | train | ["SELECT['products']", "PROJECT['details of #REF', '#1']"] |
SPIDER_train_6073 | Find the name of all customers whose name contains "Alex". | return customers ;return names of #1 ;return #2 that contain Alex | ['select', 'project', 'filter'] | train | ["SELECT['customers']", "PROJECT['names of #REF', '#1']", "FILTER['#2', 'that contain Alex']"] |
SPIDER_train_6074 | Which customer's name contains "Alex"? Find the full name. | return customer ;return names of #1 ;return #1 where #2 contains Alex ;return full name of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['customer']", "PROJECT['names of #REF', '#1']", "COMPARATIVE['#1', '#2', 'contains Alex']", "PROJECT['full name of #REF', '#3']"] |
SPIDER_train_6075 | Find the detail of products whose detail contains the word "Latte" or the word "Americano" | return products ;return details of #1 ;return #2 contains the word Latte ;return #2 contains the word Americano ;return #3 , #4 | ['select', 'project', 'filter', 'filter', 'union'] | train | ["SELECT['products']", "PROJECT['details of #REF', '#1']", "FILTER['#2', 'contains the word Latte']", "FILTER['#2', 'contains the word Americano']", "UNION['#3', '#4']"] |
SPIDER_train_6076 | Which product's detail contains the word "Latte" or "Americano"? Return the full detail. | return products ;return details of #1 ;return #1 where #2 contains Latte ;return #1 where #2 contains Americano ;return #3 or #4 ;return full details of #5 | ['select', 'project', 'comparative', 'comparative', 'union', 'project'] | train | ["SELECT['products']", "PROJECT['details of #REF', '#1']", "COMPARATIVE['#1', '#2', 'contains Latte']", "COMPARATIVE['#1', '#2', 'contains Americano']", "UNION['#3', '#4']", "PROJECT['full details of #REF', '#5']"] |
SPIDER_train_6077 | What is the address content of the customer named "Maudie Kertzmann"? | return customers ;return #1 named Maudie Kertzmann ;return address content of #2 | ['select', 'filter', 'project'] | train | ["SELECT['customers']", "FILTER['#1', 'named Maudie Kertzmann']", "PROJECT['address content of #REF', '#2']"] |
SPIDER_train_6078 | Return the address content for the customer whose name is "Maudie Kertzmann". | return customers ;return names of #1 ;return #1 where #2 is Maudie Kertzmann ;return address content of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['customers']", "PROJECT['names of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Maudie Kertzmann']", "PROJECT['address content of #REF', '#3']"] |
SPIDER_train_6079 | How many customers are living in city "Lake Geovannyton"? | return customers ;return cities of #1 ;return #1 where #2 is Lake Geovannyton ;return number of #3 | ['select', 'project', 'comparative', 'aggregate'] | train | ["SELECT['customers']", "PROJECT['cities of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Lake Geovannyton']", "AGGREGATE['count', '#3']"] |
SPIDER_train_608 | How many orders does Luca Mancini have in his invoices? | return Luca Mancini ;return invoices of #1 ;return orders in #2 ;return number of #3 | ['select', 'project', 'project', 'aggregate'] | train | ["SELECT['Luca Mancini']", "PROJECT['invoices of #REF', '#1']", "PROJECT['orders in #REF', '#2']", "AGGREGATE['count', '#3']"] |
SPIDER_train_6080 | Find the number of customers who live in the city called Lake Geovannyton. | return customers ;return cities of #1 ;return #1 where #2 is Lake Geovannyton ;return number of #3 | ['select', 'project', 'comparative', 'aggregate'] | train | ["SELECT['customers']", "PROJECT['cities of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Lake Geovannyton']", "AGGREGATE['count', '#3']"] |
SPIDER_train_6081 | Find the name of customers who are living in Colorado? | return customers ;return #1 living in Colorado ;return names of #2 | ['select', 'filter', 'project'] | train | ["SELECT['customers']", "FILTER['#1', 'living in Colorado']", "PROJECT['names of #REF', '#2']"] |
SPIDER_train_6082 | What are the names of customers who live in Colorado state? | return customers ;return states where #1 live ;return #1 where #2 is Colorado ;return names of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['customers']", "PROJECT['states where #REF live', '#1']", "COMPARATIVE['#1', '#2', 'is Colorado']", "PROJECT['names of #REF', '#3']"] |
SPIDER_train_6083 | Find the list of cities that no customer is living in. | return cities ;return #1 that no customers is living in | ['select', 'filter'] | train | ["SELECT['cities']", "FILTER['#1', 'that no customers is living in']"] |
SPIDER_train_6084 | What are the cities no customers live in? | return cities ;return #1 where no customers live | ['select', 'filter'] | train | ["SELECT['cities']", "FILTER['#1', 'where no customers live']"] |
SPIDER_train_6085 | Which city has the most customers living in? | return cities ;return customers living in #1 ;return number of #2 for each #1 ;return #1 where #3 is highest | ['select', 'project', 'group', 'superlative'] | train | ["SELECT['cities']", "PROJECT['customers living in #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']"] |
SPIDER_train_6086 | Find the city where the most customers live. | return cities ;return customers that live in #1 ;return number of #2 for each #1 ;return #1 where #3 is highest | ['select', 'project', 'group', 'superlative'] | train | ["SELECT['cities']", "PROJECT['customers that live in #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']"] |
SPIDER_train_6087 | Retrieve the list of all cities. | return cities | ['select'] | train | ["SELECT['cities']"] |
SPIDER_train_6088 | List all the distinct cities | return cities ;return distinct #1 | ['select', 'project'] | train | ["SELECT['cities']", "PROJECT['distinct #REF', '#1']"] |
SPIDER_train_6089 | Find the city with post code 255. | return cities ;return post codes of #1 ;return #1 where #2 is 255 | ['select', 'project', 'comparative'] | train | ["SELECT['cities']", "PROJECT['post codes of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 255']"] |
SPIDER_train_609 | What is the total amount of money spent by Lucas Mancini? | return Lucas Mancini ;return money spent by #1 ;return sum of #2 | ['select', 'project', 'aggregate'] | train | ["SELECT['Lucas Mancini']", "PROJECT['money spent by #REF', '#1']", "AGGREGATE['sum', '#2']"] |
SPIDER_train_6090 | Which city is post code 255 located in? | return city ;return post codes of #1 ;return #1 where #2 is 255 | ['select', 'project', 'comparative'] | train | ["SELECT['city']", "PROJECT['post codes of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 255']"] |
SPIDER_train_6091 | Find the state and country of all cities with post code starting with 4. | return cities ;return post codes of #1 ;return #1 where #2 start with 4 ;return states of #3 ;return countries of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['cities']", "PROJECT['post codes of #REF', '#1']", "COMPARATIVE['#1', '#2', 'start with 4']", "PROJECT['states of #REF', '#3']", "PROJECT['countries of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_6092 | What are the state and country of all the cities that have post codes starting with 4.\ | return cities ;return post codes of #1 ;return #1 where #2 start with 4 ;return state of #3 ;return country of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['cities']", "PROJECT['post codes of #REF', '#1']", "COMPARATIVE['#1', '#2', 'start with 4']", "PROJECT['state of #REF', '#3']", "PROJECT['country of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_6093 | List the countries having more than 4 addresses listed. | return countries ;return addresses in #1 ;return number of #2 for each #1 ;return #1 where #3 is higher than 4 | ['select', 'project', 'group', 'comparative'] | train | ["SELECT['countries']", "PROJECT['addresses in #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is higher than 4']"] |
SPIDER_train_6094 | For which countries are there more than four distinct addresses listed? | return countries ;return distinct addresses of #1 ;return number of #2 for each #1 ;return #1 where #3 is higher than four | ['select', 'project', 'group', 'comparative'] | train | ["SELECT['countries']", "PROJECT['distinct addresses of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is higher than four']"] |
SPIDER_train_6095 | List all the contact channel codes that were used less than 5 times. | return contact channels ;return codes of #1 ;return times #2 were used ;return #2 where #3 is lower than 5 | ['select', 'project', 'project', 'comparative'] | train | ["SELECT['contact channels']", "PROJECT['codes of #REF', '#1']", "PROJECT['times #REF were used', '#2']", "COMPARATIVE['#2', '#3', 'is lower than 5']"] |
SPIDER_train_6096 | Which contact channel codes were used less than 5 times? | return contact channels ;return codes of #1 ;return times used of #2 ;return number of #3 for each #2 ;return #2 where #4 is lower than 5 | ['select', 'project', 'project', 'group', 'comparative'] | train | ["SELECT['contact channels']", "PROJECT['codes of #REF', '#1']", "PROJECT['times used of #REF', '#2']", "GROUP['count', '#3', '#2']", "COMPARATIVE['#2', '#4', 'is lower than 5']"] |
SPIDER_train_6097 | Which contact channel has been used by the customer with name "Tillman Ernser"? | return customers ;return names of #1 ;return #1 where #2 is Tillman Ernser ;return contact channel of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['customers']", "PROJECT['names of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Tillman Ernser']", "PROJECT['contact channel of #REF', '#3']"] |
SPIDER_train_6098 | Find the contact channel code that was used by the customer named "Tillman Ernser". | return customers ;return #1 named Tillman Ernser ;return contact channel code used by #2 | ['select', 'filter', 'project'] | train | ["SELECT['customers']", "FILTER['#1', 'named Tillman Ernser']", "PROJECT['contact channel code used by #REF', '#2']"] |
SPIDER_train_6099 | What is the "active to date" of the latest contact channel used by "Tillman Ernser"? | return contact channels ;return #1 used by Tillman Ernser ;return latest #2 ;return active to date of #3 | ['select', 'filter', 'project', 'project'] | train | ["SELECT['contact channels']", "FILTER['#1', 'used by Tillman Ernser']", "PROJECT['latest #REF', '#2']", "PROJECT['active to date of #REF', '#3']"] |
SPIDER_train_61 | What are the first and last names of all the candidates? | return candidates ;return first names of #1 ;return last names of #1 ;return #2 , #3 | ['select', 'project', 'project', 'union'] | train | ["SELECT['candidates']", "PROJECT['first names of #REF', '#1']", "PROJECT['last names of #REF', '#1']", "UNION['#2', '#3']"] |
SPIDER_train_610 | How much money did Lucas Mancini spend? | return Lucas Mancini ;return monies that #1 spends ;return the sum of #2 | ['select', 'project', 'aggregate'] | train | ["SELECT['Lucas Mancini']", "PROJECT['monies that #REF spends', '#1']", "AGGREGATE['sum', '#2']"] |
SPIDER_train_6100 | Return the the "active to date" of the latest contact channel used by the customer named "Tillman Ernser". | return customers ;return #1 named Tillman Ernser ;return contact channels of #2 ;return latest #3 ;return active to date of #4 | ['select', 'filter', 'project', 'project', 'project'] | train | ["SELECT['customers']", "FILTER['#1', 'named Tillman Ernser']", "PROJECT['contact channels of #REF', '#2']", "PROJECT['latest #REF', '#3']", "PROJECT['active to date of #REF', '#4']"] |
SPIDER_train_6101 | What is the average time span of contact channels in the database? | return database ;return contact channels of #1 ;return time span of #2 ;return average of #3 | ['select', 'project', 'project', 'aggregate'] | train | ["SELECT['database']", "PROJECT['contact channels of #REF', '#1']", "PROJECT['time span of #REF', '#2']", "AGGREGATE['avg', '#3']"] |
SPIDER_train_6102 | Compute the average active time span of contact channels. | return contact channels ;return active time spans of #1 ;return average of #2 | ['select', 'project', 'aggregate'] | train | ["SELECT['contact channels']", "PROJECT['active time spans of #REF', '#1']", "AGGREGATE['avg', '#2']"] |
SPIDER_train_6103 | What is the channel code and contact number of the customer contact channel that was active for the longest time? | return customer contact channels ;return time active of #1 ;return #1 where #2 is the highest ;return channel code of #3 ;return contact number of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'aggregate', 'union'] | train | ["SELECT['customer contact channels']", "PROJECT['time active of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is the highest']", "PROJECT['channel code of #REF', '#3']", "AGGREGATE['count', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_6104 | Return the channel code and contact number of the customer contact channel whose active duration was the longest. | return customer contact channels ;return active durations of #1 ;return #1 where #2 is longest ;return channel codes of #3 ;return contact number of #3 ;return #4 , #5 | ['select', 'project', 'superlative', 'project', 'aggregate', 'union'] | train | ["SELECT['customer contact channels']", "PROJECT['active durations of #REF', '#1']", "SUPERLATIVE['max', '#1', '#2']", "PROJECT['channel codes of #REF', '#3']", "AGGREGATE['count', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_6105 | Find the name and active date of the customer that use email as the contact channel. | return customers ;return contact channels of #1 ;return #1 where #2 is email ;return name of #3 ;return active date of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['customers']", "PROJECT['contact channels of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is email']", "PROJECT['name of #REF', '#3']", "PROJECT['active date of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_6106 | What are the name and active date of the customers whose contact channel code is email? | return customers ;return contact channel codes of #1 ;return #1 where #2 is email ;return names of #3 ;return active dates of #3 ;return #4 , #5 | ['select', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['customers']", "PROJECT['contact channel codes of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is email']", "PROJECT['names of #REF', '#3']", "PROJECT['active dates of #REF', '#3']", "UNION['#4', '#5']"] |
SPIDER_train_6107 | What is the name of the customer that made the order with the largest quantity? | return customers ;return orders of #1 ;return quantities of #2 ;return #1 where #3 is highest ;return name of #4 | ['select', 'project', 'project', 'superlative', 'project'] | train | ["SELECT['customers']", "PROJECT['orders of #REF', '#1']", "PROJECT['quantities of #REF', '#2']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['name of #REF', '#4']"] |
SPIDER_train_6108 | Find the name of the customer who made the order of the largest amount of goods. | return customers ;return orders of #1 ;return goods in #2 ;return number of #3 for each #2 ;return #1 where #4 is highest ;return name of #5 | ['select', 'project', 'project', 'group', 'superlative', 'project'] | train | ["SELECT['customers']", "PROJECT['orders of #REF', '#1']", "PROJECT['goods in #REF', '#2']", "GROUP['count', '#3', '#2']", "SUPERLATIVE['max', '#1', '#4']", "PROJECT['name of #REF', '#5']"] |
SPIDER_train_6109 | What is the name of the customer that has purchased the most items? | return customers ;return items #1 purchased ;return number of #2 for each #1 ;return #1 where #3 is highest ;return name of #4 | ['select', 'project', 'group', 'superlative', 'project'] | train | ["SELECT['customers']", "PROJECT['items #REF purchased', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['name of #REF', '#4']"] |
SPIDER_train_611 | List all media types. | return media types | ['select'] | train | ["SELECT['media types']"] |
SPIDER_train_6110 | Give me the name of the customer who ordered the most items in total. | return customers ;return items ordered 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 | ["SELECT['customers']", "PROJECT['items ordered of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['name of #REF', '#4']"] |
SPIDER_train_6111 | What is the payment method of the customer that has purchased the least quantity of items? | return customers ;return items #1 purchased ;return number of #2 for each #1 ;return #1 where #3 is lowest ;return payment method of #4 | ['select', 'project', 'group', 'superlative', 'project'] | train | ["SELECT['customers']", "PROJECT['items #REF purchased', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['min', '#1', '#3']", "PROJECT['payment method of #REF', '#4']"] |
SPIDER_train_6112 | Tell me the payment method used by the customer who ordered the least amount of goods in total. | return customers ;return goods ordered of #1 ;return number of #2 for each #1 ;return #1 where #3 is lowest ;return payment method of #4 | ['select', 'project', 'group', 'superlative', 'project'] | train | ["SELECT['customers']", "PROJECT['goods ordered of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['min', '#1', '#3']", "PROJECT['payment method of #REF', '#4']"] |
SPIDER_train_6113 | How many types of products have Rodrick Heaney bought in total? | return products ;return #1 Rodrick Heaney bought ;return types of #2 ;return number of #3 | ['select', 'filter', 'project', 'aggregate'] | train | ["SELECT['products']", "FILTER['#1', 'Rodrick Heaney bought']", "PROJECT['types of #REF', '#2']", "AGGREGATE['count', '#3']"] |
SPIDER_train_6114 | Find the number of distinct products Rodrick Heaney has bought so far. | return products ;return #1 Rodrick Heaney bought ;return distinct #2 ;return number of #3 | ['select', 'filter', 'project', 'aggregate'] | train | ["SELECT['products']", "FILTER['#1', 'Rodrick Heaney bought']", "PROJECT['distinct #REF', '#2']", "AGGREGATE['count', '#3']"] |
SPIDER_train_6115 | What is the total quantity of products purchased by "Rodrick Heaney"? | return products ;return #1 purchased by Rodrick Heaney ;return number of #2 | ['select', 'filter', 'aggregate'] | train | ["SELECT['products']", "FILTER['#1', 'purchased by Rodrick Heaney']", "AGGREGATE['count', '#2']"] |
SPIDER_train_6116 | Tell me the total quantity of products bought by the customer called "Rodrick Heaney". | return customers ;return products bought by #1 ;return #2 where #1 is Rodrick Heaney ;return number of #3 | ['select', 'project', 'comparative', 'aggregate'] | train | ["SELECT['customers']", "PROJECT['products bought by #REF', '#1']", "COMPARATIVE['#2', '#1', 'is Rodrick Heaney']", "AGGREGATE['count', '#3']"] |
SPIDER_train_6117 | How many customers have at least one order with status "Cancelled"? | return customers ;return orders of #1 ;return statuses of #2 ;return #1 where #3 is Cancelled ;return number of #4 | ['select', 'project', 'project', 'comparative', 'aggregate'] | train | ["SELECT['customers']", "PROJECT['orders of #REF', '#1']", "PROJECT['statuses of #REF', '#2']", "COMPARATIVE['#1', '#3', 'is Cancelled']", "AGGREGATE['count', '#4']"] |
SPIDER_train_6118 | Return the number of customers who have at least one order with "Cancelled" status. | return customers ;return #1 who have at least one order with Cancelled status ;return number of #2 | ['select', 'filter', 'aggregate'] | train | ["SELECT['customers']", "FILTER['#1', 'who have at least one order with Cancelled status']", "AGGREGATE['count', '#2']"] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.