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_4570 | Whah are the name of each industry and the number of companies in that industry? | return industries ;return names of #1 ;return companies in #1 ;return number of #3 for each #1 ;return #2 , #4 | ['select', 'project', 'project', 'group', 'union'] | train | ["SELECT['industries']", "PROJECT['names of #REF', '#1']", "PROJECT['companies in #REF', '#1']", "GROUP['count', '#3', '#1']", "UNION['#2', '#4']"] |
SPIDER_train_4571 | Please show the industries of companies in descending order of the number of companies. | return industries ;return companies of #1 ;return number of #2 for each #1 ;return #1 sorted by #3 in descending order | ['select', 'project', 'group', 'sort'] | train | ["SELECT['industries']", "PROJECT['companies of #REF', '#1']", "GROUP['count', '#2', '#1']", "SORT['#1', '#3 in descending order']"] |
SPIDER_train_4572 | Sort all the industries in descending order of the count of companies in each industry | return industries ;return companies in #1 ;return number of #2 for each #1 ;return #1 sorted by #3 in descending order | ['select', 'project', 'group', 'sort'] | train | ["SELECT['industries']", "PROJECT['companies in #REF', '#1']", "GROUP['count', '#2', '#1']", "SORT['#1', '#3 in descending order']"] |
SPIDER_train_4573 | List the industry shared by the most companies. | return industries ;return companies in #1 ;return number of #2 for each #1 ;return #1 where #3 is highest | ['select', 'project', 'group', 'superlative'] | train | ["SELECT['industries']", "PROJECT['companies in #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']"] |
SPIDER_train_4574 | Which industry has the most companies? | return industries ;return companies of #1 ;return the number of #2 for each #1 ;return #1 where #3 is the highest | ['select', 'project', 'group', 'comparative'] | train | ["SELECT['industries']", "PROJECT['companies of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is the highest']"] |
SPIDER_train_4575 | List the names of buildings that have no company office. | return buildings ;return #1 with no company office ;return names of #2 | ['select', 'filter', 'project'] | train | ["SELECT['buildings']", "FILTER['#1', 'with no company office']", "PROJECT['names of #REF', '#2']"] |
SPIDER_train_4576 | Which buildings do not have any company office? Give me the building names. | return buildings ;return #1 not have company office ;return names of #2 | ['select', 'filter', 'project'] | train | ["SELECT['buildings']", "FILTER['#1', 'not have company office']", "PROJECT['names of #REF', '#2']"] |
SPIDER_train_4577 | Show the industries shared by companies whose headquarters are "USA" and companies whose headquarters are "China". | return companies ;return #1 whose headquarters are USA ;return #1 whose headquarters are China ;return industries of both #2 and #3 | ['select', 'filter', 'filter', 'intersection'] | train | ["SELECT['companies']", "FILTER['#1', 'whose headquarters are USA']", "FILTER['#1', 'whose headquarters are China']", "INTERSECTION['industries', '#2', '#3']"] |
SPIDER_train_4578 | Which industries have both companies with headquarter in "USA" and companies with headquarter in "China"? | return industries ;return companies of #1 ;return headquarters of #2 ;return #1 where #3 is in USA ;return #1 where #3 is in China ;return #1 in both #4 and #5 | ['select', 'project', 'project', 'comparative', 'comparative', 'intersection'] | train | ["SELECT['industries']", "PROJECT['companies of #REF', '#1']", "PROJECT['headquarters of #REF', '#2']", "COMPARATIVE['#1', '#3', 'is in USA']", "COMPARATIVE['#1', '#3', 'is in China']", "INTERSECTION['#1', '#4', '#5']"] |
SPIDER_train_4579 | Find the number of companies whose industry is "Banking" or "Conglomerate", | return companies ;return industry of #1 ;return #1 where #2 is Banking or Conglomerate ;return number of #3 | ['select', 'project', 'comparative', 'aggregate'] | train | ["SELECT['companies']", "PROJECT['industry of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Banking or Conglomerate']", "AGGREGATE['count', '#3']"] |
SPIDER_train_458 | Which allergy type is the least common? | return allergy types ;return the least common #1 | ['select', 'project'] | train | ["SELECT['allergy types']", "PROJECT['the least common #REF', '#1']"] |
SPIDER_train_4580 | How many companies are in either "Banking" industry or "Conglomerate" industry? | return companies ;return industries of #1 ;return #1 where #2 is Banking ;return #1 where #2 is Conglomerate ;return #3 or #4 ;return number of #5 | ['select', 'project', 'comparative', 'comparative', 'union', 'aggregate'] | train | ["SELECT['companies']", "PROJECT['industries of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Banking']", "COMPARATIVE['#1', '#2', 'is Conglomerate']", "UNION['#3', '#4']", "AGGREGATE['count', '#5']"] |
SPIDER_train_4581 | Show the headquarters shared by more than two companies. | return headquarters ;return companies in #1 ;return number of #2 for each #1 ;return #1 where #3 is higher than two | ['select', 'project', 'group', 'comparative'] | train | ["SELECT['headquarters']", "PROJECT['companies in #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is higher than two']"] |
SPIDER_train_4582 | Which headquarter locations are used by more than 2 companies? | return headquarters ;return companies that #1 are used by ;return the number of #2 for each #1 ;return #1 where #3 is more than 2 ;return the locations of #4 | ['select', 'project', 'group', 'comparative', 'project'] | train | ["SELECT['headquarters']", "PROJECT['companies that #REF are used by', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is more than 2']", "PROJECT['the locations of #REF', '#4']"] |
SPIDER_train_4584 | List the name of products in ascending order of price. | return products ;return names of #1 ;return prices of #1 ;return #2 sorted by #3 in ascending order | ['select', 'project', 'project', 'sort'] | train | ["SELECT['products']", "PROJECT['names of #REF', '#1']", "PROJECT['prices of #REF', '#1']", "SORT['#2', '#3 in ascending order']"] |
SPIDER_train_4585 | What are the names and type codes of products? | return products ;return names of #1 ;return type codes of #1 ;return #2 , #3 | ['select', 'project', 'project', 'union'] | train | ["SELECT['products']", "PROJECT['names of #REF', '#1']", "PROJECT['type codes of #REF', '#1']", "UNION['#2', '#3']"] |
SPIDER_train_4586 | Show the prices of the products named "Dining" or "Trading Policy". | return products ;return #1 named Dining ;return #1 named Trading Policy ;return #2 or #3 ;return the prices of #4 | ['select', 'filter', 'filter', 'union', 'project'] | train | ["SELECT['products']", "FILTER['#1', 'named Dining']", "FILTER['#1', 'named Trading Policy']", "UNION['#2', '#3']", "PROJECT['the prices of #REF', '#4']"] |
SPIDER_train_4587 | What is the average price for products? | return products ;return prices of #1 ;return average of #2 | ['select', 'project', 'aggregate'] | train | ["SELECT['products']", "PROJECT['prices of #REF', '#1']", "AGGREGATE['avg', '#2']"] |
SPIDER_train_4588 | What is the name of the product with the highest price? | return products ;return prices of #1 ;return #1 where #2 is the highest ;return the name of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['products']", "PROJECT['prices of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is the highest']", "PROJECT['the name of #REF', '#3']"] |
SPIDER_train_4589 | Show different type codes of products and the number of products with each type code. | return type codes ;return different #1 ;return products with #2 ;return number of #3 for each #1 ;return #2 , #4 | ['select', 'project', 'project', 'group', 'union'] | train | ["SELECT['type codes']", "PROJECT['different #REF', '#1']", "PROJECT['products with #REF', '#2']", "GROUP['count', '#3', '#1']", "UNION['#2', '#4']"] |
SPIDER_train_459 | How many students are there? | return students ;return number of #1 | ['select', 'aggregate'] | train | ["SELECT['students']", "AGGREGATE['count', '#1']"] |
SPIDER_train_4590 | Show the most common type code across products. | return type codes ;return products of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest | ['select', 'project', 'group', 'superlative'] | train | ["SELECT['type codes']", "PROJECT['products of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']"] |
SPIDER_train_4591 | Show the product type codes that have at least two products. | return product type codes ;return products with #1 ;return number of #2 for each #1 ;return #1 where #3 is at least two | ['select', 'project', 'group', 'comparative'] | train | ["SELECT['product type codes']", "PROJECT['products with #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least two']"] |
SPIDER_train_4592 | Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000. | return products ;return #1 with price higher than 4500 ;return #1 with price lower than 3000 ;return the product type codes of both #2 and #3 | ['select', 'filter', 'filter', 'intersection'] | train | ["SELECT['products']", "FILTER['#1', 'with price higher than 4500']", "FILTER['#1', 'with price lower than 3000']", "INTERSECTION['the product type codes', '#2', '#3']"] |
SPIDER_train_4593 | Show the names of products and the number of events they are in. | return products ;return names of #1 ;return events #1 are in ;return number of #3 for each #1 ;return #2 , #4 | ['select', 'project', 'project', 'group', 'union'] | train | ["SELECT['products']", "PROJECT['names of #REF', '#1']", "PROJECT['events #REF are in', '#1']", "GROUP['count', '#3', '#1']", "UNION['#2', '#4']"] |
SPIDER_train_4594 | Show the names of products and the number of events they are in, sorted by the number of events in descending order. | return products ;return names of #1 ;return the number of events #1 are in ;return #2 , #3 ;return #4 sorted by descending order | ['select', 'project', 'project', 'union', 'sort'] | train | ["SELECT['products']", "PROJECT['names of #REF', '#1']", "PROJECT['the number of events #REF are in', '#1']", "UNION['#2', '#3']", "SORT['#4', 'descending order']"] |
SPIDER_train_4595 | Show the names of products that are in at least two events. | return products ;return events ;return number of #2 for each #1 ;return #1 where #3 is at least two ;return names of #4 | ['select', 'select', 'group', 'comparative', 'project'] | train | ["SELECT['products']", "SELECT['events']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least two']", "PROJECT['names of #REF', '#4']"] |
SPIDER_train_4596 | Show the names of products that are in at least two events in ascending alphabetical order of product name. | return products ;return events #1 are in ;return number of #2 for each #1 ;return #1 where #3 is at least two ;return names of #4 ;return #5 sorted by alphabetical order | ['select', 'project', 'group', 'comparative', 'project', 'sort'] | train | ["SELECT['products']", "PROJECT['events #REF are in', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least two']", "PROJECT['names of #REF', '#4']", "SORT['#5', 'alphabetical order']"] |
SPIDER_train_4597 | List the names of products that are not in any event. | return events ;return products of #1 ;return products besides #2 ;return names of #3 | ['select', 'project', 'discard', 'project'] | train | ["SELECT['events']", "PROJECT['products of #REF', '#1']", "DISCARD['products', '#2']", "PROJECT['names of #REF', '#3']"] |
SPIDER_train_4598 | How many artworks are there? | return artworks ;return number of #1 | ['select', 'aggregate'] | train | ["SELECT['artworks']", "AGGREGATE['count', '#1']"] |
SPIDER_train_4599 | List the name of artworks in ascending alphabetical order. | return artworks ;return names of #1 ;return #2 sorted by alphabetical order | ['select', 'project', 'sort'] | train | ["SELECT['artworks']", "PROJECT['names of #REF', '#1']", "SORT['#2', 'alphabetical order']"] |
SPIDER_train_46 | List the most common type of Status across cities. | return cities ;return Status of #1 ;return types of #2 ;return number of #1 for each #3 ;return #3 where #4 is the highest | ['select', 'project', 'project', 'group', 'comparative'] | train | ["SELECT['cities']", "PROJECT['Status of #REF', '#1']", "PROJECT['types of #REF', '#2']", "GROUP['count', '#1', '#3']", "COMPARATIVE['#3', '#4', 'is the highest']"] |
SPIDER_train_460 | What is the total number of students? | return students ;return number of #1 | ['select', 'aggregate'] | train | ["SELECT['students']", "AGGREGATE['count', '#1']"] |
SPIDER_train_4600 | List the name of artworks whose type is not "Program Talent Show". | return artworks ;return types of #1 ;return #1 where #2 is Program Talent Show ;return #1 besides #3 ;return names of #4 | ['select', 'project', 'comparative', 'discard', 'project'] | train | ["SELECT['artworks']", "PROJECT['types of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Program Talent Show']", "DISCARD['#1', '#3']", "PROJECT['names of #REF', '#4']"] |
SPIDER_train_4601 | What are the names and locations of festivals? | return festivals ;return names of #1 ;return locations of #1 ;return #2 , #3 | ['select', 'project', 'project', 'union'] | train | ["SELECT['festivals']", "PROJECT['names of #REF', '#1']", "PROJECT['locations of #REF', '#1']", "UNION['#2', '#3']"] |
SPIDER_train_4602 | What are the names of the chairs of festivals, sorted in ascending order of the year held? | return chairs of festivals ;return the names of #1 ;return the years held of #1 ;return #2 sorted by #3 | ['select', 'project', 'project', 'sort'] | train | ["SELECT['chairs of festivals']", "PROJECT['the names of #REF', '#1']", "PROJECT['the years held of #REF', '#1']", "SORT['#2', '#3']"] |
SPIDER_train_4603 | What is the location of the festival with the largest number of audience? | return festivals ;return audiences of #1 ;return number of #2 for each #1 ;return #1 where #3 is highest ;return location of #4 | ['select', 'project', 'group', 'superlative', 'project'] | train | ["SELECT['festivals']", "PROJECT['audiences of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['location of #REF', '#4']"] |
SPIDER_train_4604 | What are the names of festivals held in year 2007? | return festivals ;return years held of #1 ;return #1 where #2 is 2007 ;return names of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['festivals']", "PROJECT['years held of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 2007']", "PROJECT['names of #REF', '#3']"] |
SPIDER_train_4605 | What is the average number of audience for festivals? | return festivals ;return audiences of #1 ;return number of #2 for each #1 ;return average of #3 | ['select', 'project', 'group', 'aggregate'] | train | ["SELECT['festivals']", "PROJECT['audiences of #REF', '#1']", "GROUP['count', '#2', '#1']", "AGGREGATE['avg', '#3']"] |
SPIDER_train_4606 | Show the names of the three most recent festivals. | return festivals ;return the three most recent of #1 ;return the names of #2 | ['select', 'project', 'project'] | train | ["SELECT['festivals']", "PROJECT['the three most recent of #REF', '#1']", "PROJECT['the names of #REF', '#2']"] |
SPIDER_train_4607 | For each nomination, show the name of the artwork and name of the festival where it is nominated. | return nominations ;return artworks of #1 ;return names of #2 ;return festivals where #1 are nominated ;return names of #4 ;return #3 , #5 | ['select', 'project', 'project', 'project', 'project', 'union'] | train | ["SELECT['nominations']", "PROJECT['artworks of #REF', '#1']", "PROJECT['names of #REF', '#2']", "PROJECT['festivals where #REF are nominated', '#1']", "PROJECT['names of #REF', '#4']", "UNION['#3', '#5']"] |
SPIDER_train_4608 | Show distinct types of artworks that are nominated in festivals in 2007. | return artworks ;return #1 nominated in festivals ;return #2 in 2007 ;return types of #3 | ['select', 'filter', 'filter', 'project'] | train | ["SELECT['artworks']", "FILTER['#1', 'nominated in festivals']", "FILTER['#2', 'in 2007']", "PROJECT['types of #REF', '#3']"] |
SPIDER_train_4609 | Show the names of artworks in ascending order of the year they are nominated in. | return artworks ;return year they are nominated of #1 ;return #1 sorted by #2 in ascending order | ['select', 'project', 'sort'] | train | ["SELECT['artworks']", "PROJECT['year they are nominated of #REF', '#1']", "SORT['#1', '#2 in ascending order']"] |
SPIDER_train_461 | Show first name and last name for all students. | return students ;return first names of #1 ;return last names of #1 ;return #2 , #3 | ['select', 'project', 'project', 'union'] | train | ["SELECT['students']", "PROJECT['first names of #REF', '#1']", "PROJECT['last names of #REF', '#1']", "UNION['#2', '#3']"] |
SPIDER_train_4610 | Show the names of festivals that have nominated artworks of type "Program Talent Show". | return festivals ;return #1 that have nominated artworks ;return type of #2 ;return #2 where #3 is Program Talent Show ;return names of #4 | ['select', 'filter', 'project', 'comparative', 'project'] | train | ["SELECT['festivals']", "FILTER['#1', 'that have nominated artworks']", "PROJECT['type of #REF', '#2']", "COMPARATIVE['#2', '#3', 'is Program Talent Show']", "PROJECT['names of #REF', '#4']"] |
SPIDER_train_4611 | Show the ids and names of festivals that have at least two nominations for artworks. | return festivals ;return nominations of #1 ;return #2 for artworks ;return number of #3 for each #1 ;return #1 where #4 is at least two ;return ids of #5 ;return names of #5 ;return #6 , #7 | ['select', 'project', 'filter', 'group', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['festivals']", "PROJECT['nominations of #REF', '#1']", "FILTER['#2', 'for artworks']", "GROUP['count', '#3', '#1']", "COMPARATIVE['#1', '#4', 'is at least two']", "PROJECT['ids of #REF', '#5']", "PROJECT['names of #REF', '#5']", "UNION['#6', '#7']"] |
SPIDER_train_4612 | Show the id, name of each festival and the number of artworks it has nominated. | return festivals ;return ids of #1 ;return names of #1 ;return artworks nominated of #1 ;return number of #4 for each #1 ;return #2 , #3 , #5 | ['select', 'project', 'project', 'project', 'group', 'union'] | train | ["SELECT['festivals']", "PROJECT['ids of #REF', '#1']", "PROJECT['names of #REF', '#1']", "PROJECT['artworks nominated of #REF', '#1']", "GROUP['count', '#4', '#1']", "UNION['#2', '#3', '#5']"] |
SPIDER_train_4613 | Please show different types of artworks with the corresponding number of artworks of each type. | return types of artworks ;return different #1 ;return artworks of #1 ;return number of #3 for each #2 ;return #2 , #4 | ['select', 'project', 'project', 'group', 'union'] | train | ["SELECT['types of artworks']", "PROJECT['different #REF', '#1']", "PROJECT['artworks of #REF', '#1']", "GROUP['count', '#3', '#2']", "UNION['#2', '#4']"] |
SPIDER_train_4614 | List the most common type of artworks. | return artworks ;return types of #1 ;return number of #1 for each #2 ;return #2 where #3 is the highest | ['select', 'project', 'group', 'comparative'] | train | ["SELECT['artworks']", "PROJECT['types of #REF', '#1']", "GROUP['count', '#1', '#2']", "COMPARATIVE['#2', '#3', 'is the highest']"] |
SPIDER_train_4615 | List the year in which there are more than one festivals. | return years ;return festivals in #1 ;return number of #2 for each #1 ;return #1 where #3 is higher than one | ['select', 'project', 'group', 'comparative'] | train | ["SELECT['years']", "PROJECT['festivals in #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is higher than one']"] |
SPIDER_train_4616 | List the name of artworks that are not nominated. | return artworks ;return #1 that are not nominated ;return names of #2 | ['select', 'filter', 'project'] | train | ["SELECT['artworks']", "FILTER['#1', 'that are not nominated']", "PROJECT['names of #REF', '#2']"] |
SPIDER_train_4617 | Show the number of audience in year 2008 or 2010. | return audience ;return year of #1 ;return #1 where #2 is 2008 ;return #1 where #2 is 2010 ;return #3 or #4 ;return number of #5 | ['select', 'project', 'comparative', 'comparative', 'union', 'aggregate'] | train | ["SELECT['audience']", "PROJECT['year of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 2008']", "COMPARATIVE['#1', '#2', 'is 2010']", "UNION['#3', '#4']", "AGGREGATE['count', '#5']"] |
SPIDER_train_4618 | What are the total number of the audiences who visited any of the festivals? | return festivals ;return audiences of #1 ;return sum of #2 | ['select', 'project', 'aggregate'] | train | ["SELECT['festivals']", "PROJECT['audiences of #REF', '#1']", "AGGREGATE['sum', '#2']"] |
SPIDER_train_4619 | In which year are there festivals both inside the 'United States' and outside the 'United States'? | return festivals ;return #1 inside the 'United States ;return #1 outside the 'United States ;return #1 of both #2 and #3 ;return year there are #4 | ['select', 'filter', 'filter', 'intersection', 'project'] | train | ["SELECT['festivals']", 'FILTER[\'#1\', "inside the \'United States"]', 'FILTER[\'#1\', "outside the \'United States"]', "INTERSECTION['#1', '#2', '#3']", "PROJECT['year there are #REF', '#4']"] |
SPIDER_train_462 | What are the full names of all students | return students ;return full names of #1 | ['select', 'project'] | train | ["SELECT['students']", "PROJECT['full names of #REF', '#1']"] |
SPIDER_train_4620 | How many premises are there? | return premises ;return number of #1 | ['select', 'aggregate'] | train | ["SELECT['premises']", "AGGREGATE['count', '#1']"] |
SPIDER_train_4621 | What are all the distinct premise types? | return premises ;return types of #1 ;return distinct #2 | ['select', 'project', 'project'] | train | ["SELECT['premises']", "PROJECT['types of #REF', '#1']", "PROJECT['distinct #REF', '#2']"] |
SPIDER_train_4622 | Find the types and details for all premises and order by the premise type. | return premises ;return types of #1 ;return details of #1 ;return #2 , #3 ;return #4 sorted by #2 | ['select', 'project', 'project', 'union', 'sort'] | train | ["SELECT['premises']", "PROJECT['types of #REF', '#1']", "PROJECT['details of #REF', '#1']", "UNION['#2', '#3']", "SORT['#4', '#2']"] |
SPIDER_train_4623 | Show each premise type and the number of premises in that type. | return premise types ;return premises of #1 ;return number of #2 for each #1 ;return #1 , #3 | ['select', 'project', 'group', 'union'] | train | ["SELECT['premise types']", "PROJECT['premises of #REF', '#1']", "GROUP['count', '#2', '#1']", "UNION['#1', '#3']"] |
SPIDER_train_4624 | Show all distinct product categories along with the number of mailshots in each category. | return distinct product categories ;return mailshots of #1 ;return number of #2 for each #1 | ['select', 'project', 'group'] | train | ["SELECT['distinct product categories']", "PROJECT['mailshots of #REF', '#1']", "GROUP['count', '#2', '#1']"] |
SPIDER_train_4625 | Show the name and phone of the customer without any mailshot. | return customers ;return mailshots of #1 ;return number of #2 for each #1 ;return #1 where #3 is at least one ;return #1 besides #4 ;return names of #5 ;return phones of #5 ;return #6 , #7 | ['select', 'project', 'group', 'comparative', 'discard', 'project', 'project', 'union'] | train | ["SELECT['customers']", "PROJECT['mailshots of #REF', '#1']", "GROUP['count', '#2', '#1']", "COMPARATIVE['#1', '#3', 'is at least one']", "DISCARD['#1', '#4']", "PROJECT['names of #REF', '#5']", "PROJECT['phones of #REF', '#5']", "UNION['#6', '#7']"] |
SPIDER_train_4626 | Show the name and phone for customers with a mailshot with outcome code 'No Response'. | return customers ;return mailshots of #1 ;return outcome codes of #2 ;return #1 where #3 is 'No Response ;return names of #4 ;return phones of #4 ;return #5 , #6 | ['select', 'project', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['customers']", "PROJECT['mailshots of #REF', '#1']", "PROJECT['outcome codes of #REF', '#2']", 'COMPARATIVE[\'#1\', \'#3\', "is \'No Response"]', "PROJECT['names of #REF', '#4']", "PROJECT['phones of #REF', '#4']", "UNION['#5', '#6']"] |
SPIDER_train_4627 | Show the outcome code of mailshots along with the number of mailshots in each outcome code. | return mailshots ;return outcome codes of #1 ;return the number of #1 for each #2 ;return #2 , #3 | ['select', 'project', 'group', 'union'] | train | ["SELECT['mailshots']", "PROJECT['outcome codes of #REF', '#1']", "GROUP['count', '#1', '#2']", "UNION['#2', '#3']"] |
SPIDER_train_4629 | Show the names of customers who have the most mailshots. | return customers ;return mailshots 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['mailshots of #REF', '#1']", "GROUP['count', '#2', '#1']", "SUPERLATIVE['max', '#1', '#3']", "PROJECT['names of #REF', '#4']"] |
SPIDER_train_463 | How many different advisors are listed? | return advisors ;return different #1 ;return number of #2 | ['select', 'project', 'aggregate'] | train | ["SELECT['advisors']", "PROJECT['different #REF', '#1']", "AGGREGATE['count', '#2']"] |
SPIDER_train_4630 | What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome. | return customers ;return mailshots of #1 ;return outcomes of #2 ;return #1 where #3 is 'Order ;return #1 where #3 is 'No Response ;return #1 of both #4 and #5 ;return names of #6 ;return payment methods of #6 ;return #7 , #8 | ['select', 'project', 'project', 'comparative', 'comparative', 'intersection', 'project', 'project', 'union'] | train | ["SELECT['customers']", "PROJECT['mailshots of #REF', '#1']", "PROJECT['outcomes of #REF', '#2']", 'COMPARATIVE[\'#1\', \'#3\', "is \'Order"]', 'COMPARATIVE[\'#1\', \'#3\', "is \'No Response"]', "INTERSECTION['#1', '#4', '#5']", "PROJECT['names of #REF', '#6']", "PROJECT['payment methods of #REF', '#6']", "UNION['#7', '#8']"] |
SPIDER_train_4631 | Show the premise type and address type code for all customer addresses. | return customers ;return addresses of #1 ;return premise types of #2 ;return address type codes of #2 ;return #3 , #4 | ['select', 'project', 'project', 'project', 'union'] | train | ["SELECT['customers']", "PROJECT['addresses of #REF', '#1']", "PROJECT['premise types of #REF', '#2']", "PROJECT['address type codes of #REF', '#2']", "UNION['#3', '#4']"] |
SPIDER_train_4632 | What are the distinct address type codes for all customer addresses? | return customers ;return addresses of #1 ;return distinct address type codes of #2 | ['select', 'project', 'project'] | train | ["SELECT['customers']", "PROJECT['addresses of #REF', '#1']", "PROJECT['distinct address type codes of #REF', '#2']"] |
SPIDER_train_4633 | Show the shipping charge and customer id for customer orders with order status Cancelled or Paid. | return customers ;return orders of #1 ;return order statuses of #2 ;return #2 where #3 is Cancelled ;return #2 where #3 is Paid ;return #4 , #5 ;return the shipping charges of #6 ;return the customer ids of #6 ;return #7 , #8 | ['select', 'project', 'project', 'comparative', 'comparative', 'union', 'project', 'project', 'union'] | train | ["SELECT['customers']", "PROJECT['orders of #REF', '#1']", "PROJECT['order statuses of #REF', '#2']", "COMPARATIVE['#2', '#3', 'is Cancelled']", "COMPARATIVE['#2', '#3', 'is Paid']", "UNION['#4', '#5']", "PROJECT['the shipping charges of #REF', '#6']", "PROJECT['the customer ids of #REF', '#6']", "UNION['#7', '#8']"] |
SPIDER_train_4634 | Show the names of customers having an order with shipping method FedEx and order status Paid. | return customers ;return orders of #1 ;return statuses of #2 ;return shipping methods of #2 ;return #1 where #3 is Paid ;return #1 where #4 is FedEx ;return #1 in both #5 and #6 ;return the names of #7 | ['select', 'project', 'project', 'project', 'comparative', 'comparative', 'intersection', 'project'] | train | ["SELECT['customers']", "PROJECT['orders of #REF', '#1']", "PROJECT['statuses of #REF', '#2']", "PROJECT['shipping methods of #REF', '#2']", "COMPARATIVE['#1', '#3', 'is Paid']", "COMPARATIVE['#1', '#4', 'is FedEx']", "INTERSECTION['#1', '#5', '#6']", "PROJECT['the names of #REF', '#7']"] |
SPIDER_train_4636 | Count the number of courses. | return courses ;return the number of #1 | ['select', 'aggregate'] | train | ["SELECT['courses']", "AGGREGATE['count', '#1']"] |
SPIDER_train_4637 | How many courses have more than 2 credits? | return courses ;return credits of #1 ;return #1 where #2 is higher than 2 ;return number of #3 | ['select', 'project', 'comparative', 'aggregate'] | train | ["SELECT['courses']", "PROJECT['credits of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is higher than 2']", "AGGREGATE['count', '#3']"] |
SPIDER_train_4638 | Count the number of courses with more than 2 credits. | return courses ;return credits of #1 ;return #1 where #2 is higher than 2 ;return number of #3 | ['select', 'project', 'comparative', 'aggregate'] | train | ["SELECT['courses']", "PROJECT['credits of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is higher than 2']", "AGGREGATE['count', '#3']"] |
SPIDER_train_4639 | List all names of courses with 1 credit? | return courses ;return credits of #1 ;return #1 where #2 is 1 ;return names of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['courses']", "PROJECT['credits of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 1']", "PROJECT['names of #REF', '#3']"] |
SPIDER_train_464 | How many advisors are there? | return advisors ;return number of #1 | ['select', 'aggregate'] | train | ["SELECT['advisors']", "AGGREGATE['count', '#1']"] |
SPIDER_train_4640 | What are the names of courses with 1 credit? | return courses ;return credits of #1 ;return #1 where #2 is 1 ;return names of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['courses']", "PROJECT['credits of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is 1']", "PROJECT['names of #REF', '#3']"] |
SPIDER_train_4641 | Which courses are taught on days MTW? | return courses ;return days #1 taught ;return #1 where #2 is MTW | ['select', 'project', 'comparative'] | train | ["SELECT['courses']", "PROJECT['days #REF taught', '#1']", "COMPARATIVE['#1', '#2', 'is MTW']"] |
SPIDER_train_4642 | What are the course names for courses taught on MTW? | return courses ;return #1 taught on MTW ;return course names of #2 | ['select', 'filter', 'project'] | train | ["SELECT['courses']", "FILTER['#1', 'taught on MTW']", "PROJECT['course names of #REF', '#2']"] |
SPIDER_train_4643 | What is the number of departments in Division "AS"? | return Division AS ;return departments in #1 ;return number of #2 | ['select', 'project', 'aggregate'] | train | ["SELECT['Division AS']", "PROJECT['departments in #REF', '#1']", "AGGREGATE['count', '#2']"] |
SPIDER_train_4644 | How many departments are in the division AS? | return divisions ;return departments of #1 ;return #2 where #1 is AS ;return number of #3 | ['select', 'project', 'comparative', 'aggregate'] | train | ["SELECT['divisions']", "PROJECT['departments of #REF', '#1']", "COMPARATIVE['#2', '#1', 'is AS']", "AGGREGATE['count', '#3']"] |
SPIDER_train_4645 | What are the phones of departments in Room 268? | return departments ;return #1 in Room 268 ;return phones of #2 | ['select', 'filter', 'project'] | train | ["SELECT['departments']", "FILTER['#1', 'in Room 268']", "PROJECT['phones of #REF', '#2']"] |
SPIDER_train_4646 | Give the phones for departments in room 268. | return room 268 ;return departments in #1 ;return phones of #2 | ['select', 'project', 'project'] | train | ["SELECT['room 268']", "PROJECT['departments in #REF', '#1']", "PROJECT['phones of #REF', '#2']"] |
SPIDER_train_4647 | Find the number of students that have at least one grade "B". | return students ;return grades of #1 ;return #1 where #2 is B ;return number of #3 | ['select', 'project', 'comparative', 'aggregate'] | train | ["SELECT['students']", "PROJECT['grades of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is B']", "AGGREGATE['count', '#3']"] |
SPIDER_train_4648 | How many students have had at least one "B" grade? | return students ;return #1 that have had at least one B grade ;return number of #2 | ['select', 'filter', 'aggregate'] | train | ["SELECT['students']", "FILTER['#1', 'that have had at least one B grade']", "AGGREGATE['count', '#2']"] |
SPIDER_train_4649 | Find the max and min grade point for all letter grade. | return letter grades ;return max grade point of #1 ;return min grade point of #1 ;return #2 , #3 | ['select', 'project', 'project', 'union'] | train | ["SELECT['letter grades']", "PROJECT['max grade point of #REF', '#1']", "PROJECT['min grade point of #REF', '#1']", "UNION['#2', '#3']"] |
SPIDER_train_465 | Show all majors. | return all majors | ['select'] | train | ["SELECT['all majors']"] |
SPIDER_train_4650 | What are the maximum and minumum grade points? | return grades ;return points of #1 ;return maximum of #2 ;return minumum of #2 ;return #3 , #4 | ['select', 'project', 'aggregate', 'project', 'union'] | train | ["SELECT['grades']", "PROJECT['points of #REF', '#1']", "AGGREGATE['max', '#2']", "PROJECT['minumum of #REF', '#2']", "UNION['#3', '#4']"] |
SPIDER_train_4651 | Find the first names of students whose first names contain letter "a". | return students ;return first names of #1 ;return #2 that contain letter a | ['select', 'project', 'filter'] | train | ["SELECT['students']", "PROJECT['first names of #REF', '#1']", "FILTER['#2', 'that contain letter a']"] |
SPIDER_train_4652 | What are the first names for students who have an "a" in their first name? | return students ;return first names of #1 ;return #1 where #2 has an a ;return first names of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['students']", "PROJECT['first names of #REF', '#1']", "COMPARATIVE['#1', '#2', 'has an a']", "PROJECT['first names of #REF', '#3']"] |
SPIDER_train_4653 | Find the first names and last names of male (sex is M) faculties who live in building NEB. | return faculties ;return sex of #1 ;return #1 where #2 is M ;return buildings #3 live in ;return #3 where #4 is NEB ;return first names of #5 ;return last names of #5 ;return #6 , #7 | ['select', 'project', 'comparative', 'project', 'comparative', 'project', 'project', 'union'] | train | ["SELECT['faculties']", "PROJECT['sex of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is M']", "PROJECT['buildings #REF live in', '#3']", "COMPARATIVE['#3', '#4', 'is NEB']", "PROJECT['first names of #REF', '#5']", "PROJECT['last names of #REF', '#5']", "UNION['#6', '#7']"] |
SPIDER_train_4654 | What are the full names of faculties with sex M and who live in building NEB? | return faculties ;return #1 with sex M ;return #1 who live in building NEB ;return full names of both #2 and #3 | ['select', 'filter', 'filter', 'intersection'] | train | ["SELECT['faculties']", "FILTER['#1', 'with sex M']", "FILTER['#1', 'who live in building NEB']", "INTERSECTION['full names', '#2', '#3']"] |
SPIDER_train_4656 | What are the rooms for members of the faculty who are professors and who live in building NEB? | return the faculty ;return members of #1 ;return #2 who are professors ;return #2 who live in buildings NEB ;return #2 in both #3 and #4 ;return rooms of #5 | ['select', 'project', 'filter', 'filter', 'intersection', 'project'] | train | ["SELECT['the faculty']", "PROJECT['members of #REF', '#1']", "FILTER['#2', 'who are professors']", "FILTER['#2', 'who live in buildings NEB']", "INTERSECTION['#2', '#3', '#4']", "PROJECT['rooms of #REF', '#5']"] |
SPIDER_train_4657 | Find the department name that is in Building "Mergenthaler". | return departments ;return #1 in Building Mergenthaler ;return name of #2 | ['select', 'filter', 'project'] | train | ["SELECT['departments']", "FILTER['#1', 'in Building Mergenthaler']", "PROJECT['name of #REF', '#2']"] |
SPIDER_train_4658 | What is the name of the department in the Building Mergenthaler? | return departments ;return Building of #1 ;return #1 where #2 is Mergenthaler ;return name of #3 | ['select', 'project', 'comparative', 'project'] | train | ["SELECT['departments']", "PROJECT['Building of #REF', '#1']", "COMPARATIVE['#1', '#2', 'is Mergenthaler']", "PROJECT['name of #REF', '#3']"] |
SPIDER_train_4659 | List all information about courses sorted by credits in the ascending order. | return courses ;return information about #1 ;return credits of #1 ;return #2 sorted by #3 in ascending order | ['select', 'project', 'project', 'sort'] | train | ["SELECT['courses']", "PROJECT['information about #REF', '#1']", "PROJECT['credits of #REF', '#1']", "SORT['#2', '#3 in ascending order']"] |
SPIDER_train_466 | What are the different majors? | return majors ;return different #1 | ['select', 'project'] | train | ["SELECT['majors']", "PROJECT['different #REF', '#1']"] |
SPIDER_train_4660 | What is all the information about courses, ordered by credits ascending? | return courses ;return all information about #1 ;return credits of #1 ;return #2 sorted by #3 ascending | ['select', 'project', 'project', 'sort'] | train | ["SELECT['courses']", "PROJECT['all information about #REF', '#1']", "PROJECT['credits of #REF', '#1']", "SORT['#2', '#3 ascending']"] |
SPIDER_train_4661 | List the course name of courses sorted by credits. | return courses ;return course names of #1 ;return credits of #1 ;return #2 sorted by #3 | ['select', 'project', 'project', 'sort'] | train | ["SELECT['courses']", "PROJECT['course names of #REF', '#1']", "PROJECT['credits of #REF', '#1']", "SORT['#2', '#3']"] |
SPIDER_train_4662 | What are the course names, ordered by credits? | return course names ;return credits of #1 ;return #1 sorted by #2 | ['select', 'project', 'sort'] | train | ["SELECT['course names']", "PROJECT['credits of #REF', '#1']", "SORT['#1', '#2']"] |
SPIDER_train_4663 | Find the first name of students in the descending order of age. | return students ;return ages of #1 ;return first names of #1 ;return #3 sorted by #2 in descending order | ['select', 'project', 'project', 'sort'] | train | ["SELECT['students']", "PROJECT['ages of #REF', '#1']", "PROJECT['first names of #REF', '#1']", "SORT['#3', '#2 in descending order']"] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.