output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "regional_page_num" FROM "tbm_regions" WHERE "state_name"='CA/NV'; |
## Task
Generate a SQL query to answer the following question:
`In Ca/Nv, what are all of the regional page #s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tbm_regions" (
"region_name" text,
"state_name" text,
"region_num" real,
"page_count" real,
"regional_page_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Ca/Nv, what are all of the regional page #s?`:
```sql
|
SELECT MAX("second_place") FROM "region_rank_by_number_of_wins" WHERE "region_represented"='Tajikistan'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of 2nd places for Tajikistan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "region_rank_by_number_of_wins" (
"region_represented" text,
"first_place" real,
"second_place" real,
"third_place" real,
"total_top_3_placements" real,
"first_place_winning_year_s_if_applicable" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of 2nd places for Tajikistan?`:
```sql
|
SELECT MAX("first_place") FROM "region_rank_by_number_of_wins" WHERE "third_place"=1; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of 1st places for the country with exactly 1 third place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "region_rank_by_number_of_wins" (
"region_represented" text,
"first_place" real,
"second_place" real,
"third_place" real,
"total_top_3_placements" real,
"first_place_winning_year_s_if_applicable" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of 1st places for the country with exactly 1 third place?`:
```sql
|
SELECT COUNT("total_top_3_placements") FROM "region_rank_by_number_of_wins" WHERE "region_represented"='Taiwan'; |
## Task
Generate a SQL query to answer the following question:
`How many values of total top 3 placements does Taiwan have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "region_rank_by_number_of_wins" (
"region_represented" text,
"first_place" real,
"second_place" real,
"third_place" real,
"total_top_3_placements" real,
"first_place_winning_year_s_if_applicable" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values of total top 3 placements does Taiwan have?`:
```sql
|
SELECT "country" FROM "table1_2879165_1" WHERE "ioc_code"='MAS'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the country when the ioc code is mas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2879165_1" (
"ioc_code" text,
"country" text,
"network_station" text,
"television_station" text,
"radio_station" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the country when the ioc code is mas?`:
```sql
|
SELECT "ioc_code" FROM "table1_2879165_1" WHERE "country"='Singapore'; |
## Task
Generate a SQL query to answer the following question:
`What is the ioc code when the country is listed as Singapore?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2879165_1" (
"ioc_code" text,
"country" text,
"network_station" text,
"television_station" text,
"radio_station" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ioc code when the country is listed as Singapore?`:
```sql
|
SELECT COUNT("network_station") FROM "table1_2879165_1" WHERE "country"='Brunei'; |
## Task
Generate a SQL query to answer the following question:
`What is listed in Network station when the country is Brunei?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2879165_1" (
"ioc_code" text,
"country" text,
"network_station" text,
"television_station" text,
"radio_station" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed in Network station when the country is Brunei?`:
```sql
|
SELECT COUNT("television_station") FROM "table1_2879165_1" WHERE "radio_station"='Lao National Radio'; |
## Task
Generate a SQL query to answer the following question:
`How many television station listing have a radio station as lao national radio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2879165_1" (
"ioc_code" text,
"country" text,
"network_station" text,
"television_station" text,
"radio_station" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many television station listing have a radio station as lao national radio?`:
```sql
|
SELECT COUNT("television_station") FROM "table1_2879165_1" WHERE "ioc_code"='MAS'; |
## Task
Generate a SQL query to answer the following question:
`How many television station listings have a ioc code as mas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2879165_1" (
"ioc_code" text,
"country" text,
"network_station" text,
"television_station" text,
"radio_station" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many television station listings have a ioc code as mas?`:
```sql
|
SELECT "written_by" FROM "table1_28768925_1" WHERE "title"='\"The Diaper Incident\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote "the diaper incident"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28768925_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote "the diaper incident"?`:
```sql
|
SELECT "directed_by" FROM "table1_28768925_1" WHERE "title"='\"The Diaper Incident\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed "the diaper incident"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28768925_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed "the diaper incident"?`:
```sql
|
SELECT "written_by" FROM "table1_28768925_1" WHERE "directed_by"='Wendey Stanzler' AND "no_in_series"=27; |
## Task
Generate a SQL query to answer the following question:
`Who wrote episode 27 in the series that was directed by Wendey Stanzler?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28768925_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote episode 27 in the series that was directed by Wendey Stanzler?`:
```sql
|
SELECT "title" FROM "table1_28768925_1" WHERE "no_in_series"=43; |
## Task
Generate a SQL query to answer the following question:
`What is the name of episode 43 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28768925_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of episode 43 in the series?`:
```sql
|
SELECT "original_air_date" FROM "table1_28768925_1" WHERE "u_s_viewers_million"='8.84'; |
## Task
Generate a SQL query to answer the following question:
`What date did the episode that had 8.84 million u.s. viewers originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28768925_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode that had 8.84 million u.s. viewers originally air?`:
```sql
|
SELECT COUNT("game") FROM "game_log" WHERE "high_assists"='Earl Watson (11)' AND "location_attendance"='KeyArena 16,841'; |
## Task
Generate a SQL query to answer the following question:
`How many games have high assists as earl watson (11) and location attendance as Keyarena 16,841?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have high assists as earl watson (11) and location attendance as Keyarena 16,841?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "high_assists"='Earl Watson (6)'; |
## Task
Generate a SQL query to answer the following question:
`What is the record listed when the high assists is earl watson (6)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record listed when the high assists is earl watson (6)?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "date"='January 9'; |
## Task
Generate a SQL query to answer the following question:
`Where is the location attendance when the date is January 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the location attendance when the date is January 9?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='Nick Collison (10)'; |
## Task
Generate a SQL query to answer the following question:
`What is listed in hight points when the high rebounds is listed as Nick Collison (10)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed in hight points when the high rebounds is listed as Nick Collison (10)?`:
```sql
|
SELECT MAX("game") FROM "game_log" WHERE "location_attendance"='KeyArena 16,841'; |
## Task
Generate a SQL query to answer the following question:
`What is listed in game when the location attendance is listed as Keyarena 16,841?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed in game when the location attendance is listed as Keyarena 16,841?`:
```sql
|
SELECT "original_air_date" FROM "table1_28787871_3" WHERE "production_code"=214; |
## Task
Generate a SQL query to answer the following question:
`What was the airdate of the episode of production code 214?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28787871_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the airdate of the episode of production code 214?`:
```sql
|
SELECT COUNT("no_in_season") FROM "table1_28787871_3" WHERE "original_air_date"='June 3, 2012'; |
## Task
Generate a SQL query to answer the following question:
`How many numbers in the season have an air date of June 3, 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28787871_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers in the season have an air date of June 3, 2012?`:
```sql
|
SELECT MAX("production_code") FROM "table1_28787871_3" WHERE "u_s_viewers_millions"='2.3'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest production code of the episodes having a US viewership of exactly 2.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28787871_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest production code of the episodes having a US viewership of exactly 2.3?`:
```sql
|
SELECT "u_s_viewers_millions" FROM "table1_28787871_3" WHERE "title"='\"Happy Howl-O-Ween\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of US viewers watched the episode titled "Happy Howl-o-ween"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28787871_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of US viewers watched the episode titled "Happy Howl-o-ween"?`:
```sql
|
SELECT "economy" FROM "bowling_averages" WHERE "wickets"=29; |
## Task
Generate a SQL query to answer the following question:
`When the number of wickets is 29, what was the economy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"county" text,
"balls" real,
"wickets" real,
"average" text,
"economy" text,
"bbi" text,
"4wi" real,
"5wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the number of wickets is 29, what was the economy?`:
```sql
|
SELECT "wickets" FROM "bowling_averages" WHERE "economy"='3.64'; |
## Task
Generate a SQL query to answer the following question:
`How many wickets was there when the economy was 3.64?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"county" text,
"balls" real,
"wickets" real,
"average" text,
"economy" text,
"bbi" text,
"4wi" real,
"5wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wickets was there when the economy was 3.64?`:
```sql
|
SELECT "average" FROM "bowling_averages" WHERE "wickets"=27; |
## Task
Generate a SQL query to answer the following question:
`What is the average of all the wickets that were 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"county" text,
"balls" real,
"wickets" real,
"average" text,
"economy" text,
"bbi" text,
"4wi" real,
"5wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average of all the wickets that were 27?`:
```sql
|
SELECT "branding" FROM "dzrh_nationwide" WHERE "callsign"='DXGH'; |
## Task
Generate a SQL query to answer the following question:
`Which branding has the callsign of DXGH?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dzrh_nationwide" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"station_type" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which branding has the callsign of DXGH?`:
```sql
|
SELECT "station_type" FROM "dzrh_nationwide" WHERE "frequency"='972kHz'; |
## Task
Generate a SQL query to answer the following question:
`What type of station is within the 972khz frequency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dzrh_nationwide" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"station_type" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of station is within the 972khz frequency?`:
```sql
|
SELECT "station_type" FROM "dzrh_nationwide" WHERE "location"='Cebu'; |
## Task
Generate a SQL query to answer the following question:
`What types of stations are located in Cebu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dzrh_nationwide" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"station_type" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What types of stations are located in Cebu?`:
```sql
|
SELECT "location" FROM "dzrh_nationwide" WHERE "frequency"='1485kHz'; |
## Task
Generate a SQL query to answer the following question:
`Where are all the 1485khz frequency located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dzrh_nationwide" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"station_type" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where are all the 1485khz frequency located?`:
```sql
|
SELECT COUNT("location") FROM "dzrh_nationwide" WHERE "callsign"='DXGH'; |
## Task
Generate a SQL query to answer the following question:
`How many locations have the callsign DXGH?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dzrh_nationwide" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"station_type" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many locations have the callsign DXGH?`:
```sql
|
SELECT "location" FROM "dzrh_nationwide" WHERE "callsign"='DWRH'; |
## Task
Generate a SQL query to answer the following question:
`Where are the broadcasting companys with the callsign DWRH located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dzrh_nationwide" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"station_type" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where are the broadcasting companys with the callsign DWRH located?`:
```sql
|
SELECT "audition_city" FROM "table1_28793672_1" WHERE "venue"='UPI Convention Center'; |
## Task
Generate a SQL query to answer the following question:
`Where is the audition city when the venue is upi convention center?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28793672_1" (
"episode_air_date" text,
"audition_city" text,
"date" text,
"venue" text,
"callback_date" text,
"callback_venue" text,
"golden_tickets" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the audition city when the venue is upi convention center?`:
```sql
|
SELECT COUNT("golden_tickets") FROM "table1_28793672_1" WHERE "callback_venue"='RCTI Studio, Jakarta'; |
## Task
Generate a SQL query to answer the following question:
`How many times is there a golden tickets entry when the callback venue is rcti studio, jakarta?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28793672_1" (
"episode_air_date" text,
"audition_city" text,
"date" text,
"venue" text,
"callback_date" text,
"callback_venue" text,
"golden_tickets" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is there a golden tickets entry when the callback venue is rcti studio, jakarta?`:
```sql
|
SELECT "year" FROM "general_election_results" WHERE "average_pct_of_vote_per_candidate"='1.35'; |
## Task
Generate a SQL query to answer the following question:
`In what year was 1.35% the average vote per candidate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"year" text,
"candidates" real,
"total_votes" real,
"average_votes_per_candidate" real,
"pct_of_total_vote" text,
"average_pct_of_vote_per_candidate" text,
"saved_deposits" real,
"number_of_m_ps" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was 1.35% the average vote per candidate?`:
```sql
|
SELECT MIN("average_votes_per_candidate") FROM "general_election_results" WHERE "average_pct_of_vote_per_candidate"='3.29'; |
## Task
Generate a SQL query to answer the following question:
`When 3.29% was the average per candidate, what was the number of average votes per candidate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"year" text,
"candidates" real,
"total_votes" real,
"average_votes_per_candidate" real,
"pct_of_total_vote" text,
"average_pct_of_vote_per_candidate" text,
"saved_deposits" real,
"number_of_m_ps" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 3.29% was the average per candidate, what was the number of average votes per candidate?`:
```sql
|
SELECT "pct_of_total_vote" FROM "general_election_results" WHERE "year"='1997'; |
## Task
Generate a SQL query to answer the following question:
`What was the percentage of total votes in 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"year" text,
"candidates" real,
"total_votes" real,
"average_votes_per_candidate" real,
"pct_of_total_vote" text,
"average_pct_of_vote_per_candidate" text,
"saved_deposits" real,
"number_of_m_ps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage of total votes in 1997?`:
```sql
|
SELECT COUNT("launched") FROM "dramas" WHERE "original_channel"='CBS (2002)'; |
## Task
Generate a SQL query to answer the following question:
`How many shows were launched on CBS (2002)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dramas" (
"no" real,
"name" text,
"country" text,
"original_channel" text,
"no_of_episodes" real,
"running_time" text,
"launched" text,
"date" text,
"irst" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many shows were launched on CBS (2002)?`:
```sql
|
SELECT COUNT("irst") FROM "dramas" WHERE "original_channel"='Canale 5 (2006)'; |
## Task
Generate a SQL query to answer the following question:
`How many IRST figures for the show that premiered on Canale 5 (2006)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dramas" (
"no" real,
"name" text,
"country" text,
"original_channel" text,
"no_of_episodes" real,
"running_time" text,
"launched" text,
"date" text,
"irst" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many IRST figures for the show that premiered on Canale 5 (2006)?`:
```sql
|
SELECT "original_channel" FROM "dramas" WHERE "no_of_episodes"=88; |
## Task
Generate a SQL query to answer the following question:
`What is the original channel of the show with 88 episodes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dramas" (
"no" real,
"name" text,
"country" text,
"original_channel" text,
"no_of_episodes" real,
"running_time" text,
"launched" text,
"date" text,
"irst" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original channel of the show with 88 episodes?`:
```sql
|
SELECT "date" FROM "dramas" WHERE "name"='Falling Angel'; |
## Task
Generate a SQL query to answer the following question:
`What are the dates that Falling Angel aired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dramas" (
"no" real,
"name" text,
"country" text,
"original_channel" text,
"no_of_episodes" real,
"running_time" text,
"launched" text,
"date" text,
"irst" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the dates that Falling Angel aired?`:
```sql
|
SELECT COUNT("economy") FROM "bowling_averages" WHERE "bbi"='2/19'; |
## Task
Generate a SQL query to answer the following question:
`How many economy stats for the player with 2/19 BBI?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"overs" text,
"wickets" real,
"average" text,
"economy" text,
"bbi" text,
"4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many economy stats for the player with 2/19 BBI?`:
```sql
|
SELECT "player" FROM "bowling_averages" WHERE "average"='35.42'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player with an average of 35.42?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"overs" text,
"wickets" real,
"average" text,
"economy" text,
"bbi" text,
"4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player with an average of 35.42?`:
```sql
|
SELECT "economy" FROM "bowling_averages" WHERE "bbi"='3/33'; |
## Task
Generate a SQL query to answer the following question:
`What is the economy of the player with BBI of 3/33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"overs" text,
"wickets" real,
"average" text,
"economy" text,
"bbi" text,
"4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the economy of the player with BBI of 3/33?`:
```sql
|
SELECT "average" FROM "batting_averages" WHERE "highest_score"='151'; |
## Task
Generate a SQL query to answer the following question:
`What is the average when the highest score is 151?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" text,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average when the highest score is 151?`:
```sql
|
SELECT "player" FROM "batting_averages" WHERE "highest_score"='84'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player when the highest score is 84?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" text,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player when the highest score is 84?`:
```sql
|
SELECT MIN("runs") FROM "batting_averages" WHERE "highest_score"='228*'; |
## Task
Generate a SQL query to answer the following question:
`How many runs are there when the highest score is 228*?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" text,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs are there when the highest score is 228*?`:
```sql
|
SELECT "average" FROM "batting_averages" WHERE "100s"=7; |
## Task
Generate a SQL query to answer the following question:
`What is the average when the 100s is listed as 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" text,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average when the 100s is listed as 7?`:
```sql
|
SELECT MAX("innings") FROM "batting_averages" WHERE "highest_score"='72'; |
## Task
Generate a SQL query to answer the following question:
`What is the innings when the highest score is 72?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" text,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the innings when the highest score is 72?`:
```sql
|
SELECT MAX("matches") FROM "batting_averages"; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number listed for matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" text,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number listed for matches?`:
```sql
|
SELECT "50s" FROM "batting_averages" WHERE "average"='39.60'; |
## Task
Generate a SQL query to answer the following question:
`How many entries is under 50s column when the average is 39.60?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" text,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries is under 50s column when the average is 39.60?`:
```sql
|
SELECT MIN("runs") FROM "batting_averages" WHERE "50s"=3; |
## Task
Generate a SQL query to answer the following question:
`How many runs are there when the 50s column is 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" text,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs are there when the 50s column is 3?`:
```sql
|
SELECT "player" FROM "batting_averages" WHERE "average"='69.66'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player when the average is 69.66?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"innings" real,
"runs" real,
"average" text,
"highest_score" text,
"100s" real,
"50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player when the average is 69.66?`:
```sql
|
SELECT MIN("5wi") FROM "bowling_averages"; |
## Task
Generate a SQL query to answer the following question:
`what is the minimumfor 5wi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"innings" real,
"wickets" real,
"average" text,
"bbi" text,
"bbm" text,
"5wi" real,
"10wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimumfor 5wi?`:
```sql
|
SELECT COUNT("10wi") FROM "bowling_averages" WHERE "bbi"='6/101'; |
## Task
Generate a SQL query to answer the following question:
`how many 10wi and bbi is 6/101`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"innings" real,
"wickets" real,
"average" text,
"bbi" text,
"bbm" text,
"5wi" real,
"10wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many 10wi and bbi is 6/101`:
```sql
|
SELECT "innings" FROM "bowling_averages" WHERE "bbi"='4/26'; |
## Task
Generate a SQL query to answer the following question:
`how many innings had bbi 4/26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"innings" real,
"wickets" real,
"average" text,
"bbi" text,
"bbm" text,
"5wi" real,
"10wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many innings had bbi 4/26?`:
```sql
|
SELECT COUNT("5wi") FROM "bowling_averages" WHERE "average"='33.13'; |
## Task
Generate a SQL query to answer the following question:
`how many 5wi with an average of 33.13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"innings" real,
"wickets" real,
"average" text,
"bbi" text,
"bbm" text,
"5wi" real,
"10wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many 5wi with an average of 33.13?`:
```sql
|
SELECT "innings" FROM "bowling_averages" WHERE "average"='19.60'; |
## Task
Generate a SQL query to answer the following question:
`how many innings have an average of 19.60?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"innings" real,
"wickets" real,
"average" text,
"bbi" text,
"bbm" text,
"5wi" real,
"10wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many innings have an average of 19.60?`:
```sql
|
SELECT "average" FROM "bowling_averages" WHERE "bbi"='3/27'; |
## Task
Generate a SQL query to answer the following question:
`What is the average when the BBI is 3/27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"overs" text,
"wickets" real,
"average" text,
"economy" text,
"bbi" text,
"4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average when the BBI is 3/27?`:
```sql
|
SELECT "player" FROM "bowling_averages" WHERE "economy"='6.14'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player when the economy is 6.14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"overs" text,
"wickets" real,
"average" text,
"economy" text,
"bbi" text,
"4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player when the economy is 6.14?`:
```sql
|
SELECT "player" FROM "bowling_averages" WHERE "economy"='5.29'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player when the economy is 5.29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"overs" text,
"wickets" real,
"average" text,
"economy" text,
"bbi" text,
"4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player when the economy is 5.29?`:
```sql
|
SELECT MIN("matches") FROM "bowling_averages" WHERE "bbi"='3/27'; |
## Task
Generate a SQL query to answer the following question:
`What the number of matches when the BBI is 3/27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"overs" text,
"wickets" real,
"average" text,
"economy" text,
"bbi" text,
"4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What the number of matches when the BBI is 3/27?`:
```sql
|
SELECT "bbi" FROM "bowling_averages" WHERE "economy"='5.68'; |
## Task
Generate a SQL query to answer the following question:
`What is the BBI whent the economy is 5.68?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowling_averages" (
"player" text,
"matches" real,
"overs" text,
"wickets" real,
"average" text,
"economy" text,
"bbi" text,
"4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the BBI whent the economy is 5.68?`:
```sql
|
SELECT "year" FROM "short_tournaments" WHERE "tied"=11; |
## Task
Generate a SQL query to answer the following question:
`What is the year listed when tied is listed as 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "short_tournaments" (
"year" text,
"position" real,
"games_played" real,
"won" real,
"tied" real,
"lost" real,
"goals_scored" real,
"goals_against" real,
"points" real,
"postseason_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year listed when tied is listed as 11?`:
```sql
|
SELECT "goals_against" FROM "short_tournaments" WHERE "goals_scored"=30; |
## Task
Generate a SQL query to answer the following question:
`What is the goals against listed when the goals scored is 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "short_tournaments" (
"year" text,
"position" real,
"games_played" real,
"won" real,
"tied" real,
"lost" real,
"goals_scored" real,
"goals_against" real,
"points" real,
"postseason_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the goals against listed when the goals scored is 30?`:
```sql
|
SELECT COUNT("goals_scored") FROM "short_tournaments" WHERE "year"='Verano 2001'; |
## Task
Generate a SQL query to answer the following question:
`How many goals scored entries are listed when the year is verano 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "short_tournaments" (
"year" text,
"position" real,
"games_played" real,
"won" real,
"tied" real,
"lost" real,
"goals_scored" real,
"goals_against" real,
"points" real,
"postseason_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals scored entries are listed when the year is verano 2001?`:
```sql
|
SELECT "goals_scored" FROM "short_tournaments" WHERE "position"=17 AND "tied"=5; |
## Task
Generate a SQL query to answer the following question:
`What are goals scored when postition is 17 and tied is 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "short_tournaments" (
"year" text,
"position" real,
"games_played" real,
"won" real,
"tied" real,
"lost" real,
"goals_scored" real,
"goals_against" real,
"points" real,
"postseason_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are goals scored when postition is 17 and tied is 5?`:
```sql
|
SELECT "winner" FROM "jersey_progression" WHERE "mountains_classification"='Jaime Vergara' AND "team_classification"='Col es Pasion Café De Colombia 472'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Café De Colombia 472?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progression" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"sprints_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Café De Colombia 472?`:
```sql
|
SELECT "general_classification" FROM "jersey_progression" WHERE "winner"='Sergio Luis Henao' AND "points_classification"='Sergio Luis Henao'; |
## Task
Generate a SQL query to answer the following question:
`Who was the General Classification awardee if Sergio Luis Henao was the winner and the Points Classification award was given to Sergio Luis Henao?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progression" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"sprints_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the General Classification awardee if Sergio Luis Henao was the winner and the Points Classification award was given to Sergio Luis Henao?`:
```sql
|
SELECT "winner" FROM "jersey_progression" WHERE "mountains_classification"='Oscar Solis' AND "team_classification"='EPM-UNE'; |
## Task
Generate a SQL query to answer the following question:
`Who were the winners if the Mountain Classification award was given to Oscar Solis and Team Classification was given to EPM-Une?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progression" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"sprints_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the winners if the Mountain Classification award was given to Oscar Solis and Team Classification was given to EPM-Une?`:
```sql
|
SELECT "stage" FROM "jersey_progression" WHERE "team_classification"='EPM-UNE' AND "mountains_classification"='Oscar Solis' AND "winner"='Jaime Vergara'; |
## Task
Generate a SQL query to answer the following question:
`In what stage did Jaime Vergara won, Team Classification was given to EPM-Une and Mountain Classification winner was Oscar Solis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progression" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"sprints_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what stage did Jaime Vergara won, Team Classification was given to EPM-Une and Mountain Classification winner was Oscar Solis?`:
```sql
|
SELECT MAX("series_num") FROM "season_1_2003_2004" WHERE "title"='\"The Devil Made Me Do It\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest series number for "The Devil Made Me Do It"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2003_2004" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest series number for "The Devil Made Me Do It"?`:
```sql
|
SELECT COUNT("series_num") FROM "season_1_2003_2004" WHERE "title"='\"The Devil Made Me Do It\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the episode series number for "The Devil Made Me Do It" ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2003_2004" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode series number for "The Devil Made Me Do It" ?`:
```sql
|
SELECT MAX("production_code") FROM "season_1_2003_2004" WHERE "title"='\"State of Grace\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code for "State of Grace"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2003_2004" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for "State of Grace"?`:
```sql
|
SELECT "directed_by" FROM "season_1_2003_2004" WHERE "original_air_date"='November 21, 2003'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that aired November 21, 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2003_2004" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode that aired November 21, 2003?`:
```sql
|
SELECT "series_num" FROM "season_1_2003_2004" WHERE "title"='\"St. Joan\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the episode series number of "St. Joan"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2003_2004" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode series number of "St. Joan"?`:
```sql
|
SELECT COUNT("title") FROM "season_1_2003_2004" WHERE "series_num"=4; |
## Task
Generate a SQL query to answer the following question:
`How many episode titles have series number 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2003_2004" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episode titles have series number 4?`:
```sql
|
SELECT COUNT("college_junior_club_team") FROM "round_five" WHERE "nhl_team"='Colorado Avalanche'; |
## Task
Generate a SQL query to answer the following question:
`How may college/junior/club team has a the nhl team listed as Colorado Avalanche?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How may college/junior/club team has a the nhl team listed as Colorado Avalanche?`:
```sql
|
SELECT "player" FROM "round_two" WHERE "nhl_team"='New York Rangers'; |
## Task
Generate a SQL query to answer the following question:
`What player was picked by the New York Rangers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was picked by the New York Rangers?`:
```sql
|
SELECT "position" FROM "round_eight" WHERE "nhl_team"='Toronto Maple Leafs'; |
## Task
Generate a SQL query to answer the following question:
`What position did the draft pick for Toronto Maple Leafs play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_eight" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the draft pick for Toronto Maple Leafs play?`:
```sql
|
SELECT "player" FROM "round_eight" WHERE "nhl_team"='Edmonton Oilers'; |
## Task
Generate a SQL query to answer the following question:
`Who did Edmonton Oilers get for their draft pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_eight" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did Edmonton Oilers get for their draft pick?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_eight" WHERE "player"='Milan Kostolny'; |
## Task
Generate a SQL query to answer the following question:
`What college team did Milan Kostolny play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_eight" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college team did Milan Kostolny play for?`:
```sql
|
SELECT "player" FROM "round_eight" WHERE "nhl_team"='Buffalo Sabres'; |
## Task
Generate a SQL query to answer the following question:
`What player was picked for Buffalo Sabres?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_eight" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was picked for Buffalo Sabres?`:
```sql
|
SELECT "nhl_team" FROM "round_eight" WHERE "player"='Sergei Luchinkin'; |
## Task
Generate a SQL query to answer the following question:
`What NHL team picked Sergei Luchinkin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_eight" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What NHL team picked Sergei Luchinkin?`:
```sql
|
SELECT MIN("moto_gp_500cc") FROM "grand_prix_motorcycle_racing_world_champ"; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum MotoGP/500cc ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_motorcycle_racing_world_champ" (
"rank" real,
"rider" text,
"country" text,
"winning_span" text,
"moto_gp_500cc" real,
"350cc" real,
"moto2_250cc" real,
"moto3_125cc" real,
"80cc_50cc" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum MotoGP/500cc ranking?`:
```sql
|
SELECT "conference_player_of_the_year" FROM "table1_28884880_4" WHERE "conference"='Independent'; |
## Task
Generate a SQL query to answer the following question:
`Who was the conference player of the year from an independent conference?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28884880_4" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the conference player of the year from an independent conference?`:
```sql
|
SELECT "conference_player_of_the_year" FROM "table1_28884880_4" WHERE "tournament_winner"='Alabama State'; |
## Task
Generate a SQL query to answer the following question:
`Who was the conference player of the year when Alabama State was the tournament winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28884880_4" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the conference player of the year when Alabama State was the tournament winner?`:
```sql
|
SELECT "tournament_winner" FROM "table1_28884880_4" WHERE "conference"='Southwestern Athletic Conference'; |
## Task
Generate a SQL query to answer the following question:
`Who was the tournament winner in the Southwestern Athletic Conference?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28884880_4" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the tournament winner in the Southwestern Athletic Conference?`:
```sql
|
SELECT "crashand_ride_cymbal_pads" FROM "list_of_roland_drum_sets" WHERE "drum_set_name"='TD-9K2'; |
## Task
Generate a SQL query to answer the following question:
`what is the crashandride cymbalpads for the drumset name td-9k2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_roland_drum_sets" (
"drum_set_name" text,
"product_line" text,
"years_available" text,
"drum_module" text,
"kick_drum_pad" text,
"snare_pad" text,
"tom_tom_pads" text,
"hi_hat_pad_controller" text,
"crashand_ride_cymbal_pads" text,
"drum_stand_oftenoptional" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the crashandride cymbalpads for the drumset name td-9k2`:
```sql
|
SELECT COUNT("drum_set_name") FROM "list_of_roland_drum_sets" WHERE "drum_stand_oftenoptional"='HD-1/3Stand' AND "tom_tom_pads"='3xCloth-Head'; |
## Task
Generate a SQL query to answer the following question:
`how many drumsets of drumstand (oftenoptional) with hd-1/3stand and tom-tom pads is 3xcloth-head are`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_roland_drum_sets" (
"drum_set_name" text,
"product_line" text,
"years_available" text,
"drum_module" text,
"kick_drum_pad" text,
"snare_pad" text,
"tom_tom_pads" text,
"hi_hat_pad_controller" text,
"crashand_ride_cymbal_pads" text,
"drum_stand_oftenoptional" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many drumsets of drumstand (oftenoptional) with hd-1/3stand and tom-tom pads is 3xcloth-head are`:
```sql
|
SELECT "years_available" FROM "list_of_roland_drum_sets" WHERE "kick_drum_pad"='Rubber'; |
## Task
Generate a SQL query to answer the following question:
`in which year was available the rubber as kickdrum pad`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_roland_drum_sets" (
"drum_set_name" text,
"product_line" text,
"years_available" text,
"drum_module" text,
"kick_drum_pad" text,
"snare_pad" text,
"tom_tom_pads" text,
"hi_hat_pad_controller" text,
"crashand_ride_cymbal_pads" text,
"drum_stand_oftenoptional" text
);
### SQL
Given the database schema, here is the SQL query that answers `in which year was available the rubber as kickdrum pad`:
```sql
|
SELECT "tom_tom_pads" FROM "list_of_roland_drum_sets" WHERE "drum_module"='TD-5'; |
## Task
Generate a SQL query to answer the following question:
`in the drum module td-5 what are the tom-tom pads`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_roland_drum_sets" (
"drum_set_name" text,
"product_line" text,
"years_available" text,
"drum_module" text,
"kick_drum_pad" text,
"snare_pad" text,
"tom_tom_pads" text,
"hi_hat_pad_controller" text,
"crashand_ride_cymbal_pads" text,
"drum_stand_oftenoptional" text
);
### SQL
Given the database schema, here is the SQL query that answers `in the drum module td-5 what are the tom-tom pads`:
```sql
|
SELECT COUNT("snare_pad") FROM "list_of_roland_drum_sets" WHERE "drum_set_name"='TD-15K'; |
## Task
Generate a SQL query to answer the following question:
`for the drumset name td-15k how many snare pads are`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_roland_drum_sets" (
"drum_set_name" text,
"product_line" text,
"years_available" text,
"drum_module" text,
"kick_drum_pad" text,
"snare_pad" text,
"tom_tom_pads" text,
"hi_hat_pad_controller" text,
"crashand_ride_cymbal_pads" text,
"drum_stand_oftenoptional" text
);
### SQL
Given the database schema, here is the SQL query that answers `for the drumset name td-15k how many snare pads are`:
```sql
|
SELECT "race_winner" FROM "table1_28925058_1" WHERE "date"='June 26'; |
## Task
Generate a SQL query to answer the following question:
`Who won the race on June 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28925058_1" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the race on June 26?`:
```sql
|
SELECT "race_winner" FROM "table1_28925058_1" WHERE "date"='June 26'; |
## Task
Generate a SQL query to answer the following question:
`Who won the race on June 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28925058_1" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the race on June 26?`:
```sql
|
SELECT "race_winner" FROM "table1_28925058_1" WHERE "date"='August 15'; |
## Task
Generate a SQL query to answer the following question:
`Who won the race on August 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28925058_1" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the race on August 15?`:
```sql
|
SELECT "date" FROM "table1_28925058_1" WHERE "grand_prix"='Italian Grand Prix'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the Italian Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28925058_1" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the Italian Grand Prix?`:
```sql
|
SELECT COUNT("date") FROM "table1_28925058_1" WHERE "grand_prix"='Spanish Grand Prix' AND "race_winner"='Daniel Ruiz'; |
## Task
Generate a SQL query to answer the following question:
`How many dates did Daniel Ruiz win the Spanish Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28925058_1" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates did Daniel Ruiz win the Spanish Grand Prix?`:
```sql
|
SELECT "race_winner" FROM "table1_28925058_1" WHERE "date"='May 1'; |
## Task
Generate a SQL query to answer the following question:
`Who won the race on May 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_28925058_1" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the race on May 1?`:
```sql
|
SELECT COUNT("date") FROM "changes_during_term" WHERE "incumbent"='James Rutherford'; |
## Task
Generate a SQL query to answer the following question:
`When james rutherford is the incumbent how many dates are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "changes_during_term" (
"by_election" real,
"electorate" text,
"date" text,
"incumbent" text,
"reason" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When james rutherford is the incumbent how many dates are there?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.