output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "to_par" FROM "final_leaderboard" WHERE "score"='74-74-74-71=293'; |
## Task
Generate a SQL query to answer the following question:
`Name the to par for score of 74-74-74-71=293`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the to par for score of 74-74-74-71=293`:
```sql
|
SELECT "player" FROM "final_leaderboard" WHERE "score"='68-68-75-74=285'; |
## Task
Generate a SQL query to answer the following question:
`Name the player for 68-68-75-74=285`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player for 68-68-75-74=285`:
```sql
|
SELECT "to_par" FROM "final_leaderboard" WHERE "player"='gene kunes'; |
## Task
Generate a SQL query to answer the following question:
`Name the to par for gene kunes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the to par for gene kunes`:
```sql
|
SELECT AVG("points") FROM "complete_formula_one_results" WHERE "year"<1955; |
## Task
Generate a SQL query to answer the following question:
`What is the average Points for a year before 1955?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Points for a year before 1955?`:
```sql
|
SELECT SUM("year") FROM "complete_formula_one_results" WHERE "team"='scuderia ferrari' AND "engine"='ferrari 106 2.5 l4' AND "points">12; |
## Task
Generate a SQL query to answer the following question:
`What is the total year with a Team of scuderia ferrari, an Engine of ferrari 106 2.5 l4, and more than 12 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total year with a Team of scuderia ferrari, an Engine of ferrari 106 2.5 l4, and more than 12 points?`:
```sql
|
SELECT COUNT("wins") FROM "career_summary" WHERE "podiums">1 AND "races"=9 AND "season">1984; |
## Task
Generate a SQL query to answer the following question:
`How many wins has a podiums greater than 1 and 9 as the races with a season after 1984?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"podiums" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins has a podiums greater than 1 and 9 as the races with a season after 1984?`:
```sql
|
SELECT MAX("podiums") FROM "career_summary" WHERE "wins"=0 AND "season">1985; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Podiums with 0 as wins, and a season later than 1985?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"podiums" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Podiums with 0 as wins, and a season later than 1985?`:
```sql
|
SELECT "budget" FROM "specials" WHERE "month_year"='march 2013'; |
## Task
Generate a SQL query to answer the following question:
`What was the Top Gear budget in March 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specials" (
"month_year" text,
"episode" text,
"title" text,
"hammond_s_vehicle" text,
"clarkson_s_vehicle" text,
"may_s_vehicle" text,
"back_up" text,
"budget" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Top Gear budget in March 2013?`:
```sql
|
SELECT "episode" FROM "specials" WHERE "budget"='£7,000'; |
## Task
Generate a SQL query to answer the following question:
`Which episode of Top Gear had a budget of £7,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specials" (
"month_year" text,
"episode" text,
"title" text,
"hammond_s_vehicle" text,
"clarkson_s_vehicle" text,
"may_s_vehicle" text,
"back_up" text,
"budget" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode of Top Gear had a budget of £7,000?`:
```sql
|
SELECT "month_year" FROM "specials" WHERE "title"='bolivia special'; |
## Task
Generate a SQL query to answer the following question:
`Which month and year held the Bolivia Special title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specials" (
"month_year" text,
"episode" text,
"title" text,
"hammond_s_vehicle" text,
"clarkson_s_vehicle" text,
"may_s_vehicle" text,
"back_up" text,
"budget" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which month and year held the Bolivia Special title?`:
```sql
|
SELECT "may_s_vehicle" FROM "specials" WHERE "hammond_s_vehicle"='1974 toyota land cruiser'; |
## Task
Generate a SQL query to answer the following question:
`When Hammond had the 1974 Toyota Land Cruiser, what was May's vehicle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specials" (
"month_year" text,
"episode" text,
"title" text,
"hammond_s_vehicle" text,
"clarkson_s_vehicle" text,
"may_s_vehicle" text,
"back_up" text,
"budget" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Hammond had the 1974 Toyota Land Cruiser, what was May's vehicle?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_five" WHERE "position"='right wing'; |
## Task
Generate a SQL query to answer the following question:
`Which team has a right wing position listed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" 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 `Which team has a right wing position listed?`:
```sql
|
SELECT "position" FROM "round_five" WHERE "nationality"='canada' AND "nhl_team"='boston bruins'; |
## Task
Generate a SQL query to answer the following question:
`What position is the player that is from Canada and on the Boston Bruins`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" 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 is the player that is from Canada and on the Boston Bruins`:
```sql
|
SELECT "position" FROM "round_five" WHERE "nhl_team"='los angeles kings'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the player on the Los Angeles Kings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" 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 is the position of the player on the Los Angeles Kings?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_five" WHERE "pick_num"='64'; |
## Task
Generate a SQL query to answer the following question:
`Which team has the # 64 pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" 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 `Which team has the # 64 pick?`:
```sql
|
SELECT "nationality" FROM "round_five" WHERE "pick_num"='63'; |
## Task
Generate a SQL query to answer the following question:
`What nationality is the #63 pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" 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 nationality is the #63 pick?`:
```sql
|
SELECT "player" FROM "round_five" WHERE "pick_num"='69'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player that is pick #69?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" 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 is the name of the player that is pick #69?`:
```sql
|
SELECT "tyres" FROM "complete_formula_one_results" WHERE "points"=8; |
## Task
Generate a SQL query to answer the following question:
`Which tyres received 8 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which tyres received 8 points?`:
```sql
|
SELECT SUM("points") FROM "complete_formula_one_results" WHERE "engine_s"='ford dfz 3.5 v8'; |
## Task
Generate a SQL query to answer the following question:
`How many points were awarded to the Ford DFZ 3.5 V8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were awarded to the Ford DFZ 3.5 V8?`:
```sql
|
SELECT "engine_s" FROM "complete_formula_one_results" WHERE "points"=0 AND "year"=1988; |
## Task
Generate a SQL query to answer the following question:
`Which engine received 0 points in 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which engine received 0 points in 1988?`:
```sql
|
SELECT "issue_date" FROM "singles_chart" WHERE "download"='no available' AND "artist"='eric prydz'; |
## Task
Generate a SQL query to answer the following question:
`What's the Issue Date for an Eric Prydz song with a no available Download information?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_chart" (
"week" real,
"issue_date" text,
"artist" text,
"single" text,
"download" text,
"title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Issue Date for an Eric Prydz song with a no available Download information?`:
```sql
|
SELECT "download" FROM "singles_chart" WHERE "week"=44; |
## Task
Generate a SQL query to answer the following question:
`What's the Download information for the song from Week 44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_chart" (
"week" real,
"issue_date" text,
"artist" text,
"single" text,
"download" text,
"title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Download information for the song from Week 44?`:
```sql
|
SELECT "title" FROM "singles_chart" WHERE "download"='crazy frog' AND "issue_date"='july 2'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the July 2 song that is downloaded as Crazy Frog?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_chart" (
"week" real,
"issue_date" text,
"artist" text,
"single" text,
"download" text,
"title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the July 2 song that is downloaded as Crazy Frog?`:
```sql
|
SELECT "division_record" FROM "2009_regular_season_football_standings" WHERE "school"='woodbridge'; |
## Task
Generate a SQL query to answer the following question:
`What is the division record for Woodbridge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_regular_season_football_standings" (
"school" text,
"team" text,
"division_record" text,
"overall_record" text,
"season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the division record for Woodbridge?`:
```sql
|
SELECT "runner_up" FROM "previous_winners" WHERE "winners"='polonia bydgoszcz' AND "3rd_place"='mega-lada togliatti'; |
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up when Polonia Bydgoszcz won and Mega-Lada Togliatti finished 3rd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"runner_up" text,
"3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up when Polonia Bydgoszcz won and Mega-Lada Togliatti finished 3rd?`:
```sql
|
SELECT "runner_up" FROM "previous_winners" WHERE "year"='2004'; |
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up in 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"runner_up" text,
"3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up in 2004?`:
```sql
|
SELECT "3rd_place" FROM "previous_winners" WHERE "venue"='pardubice'; |
## Task
Generate a SQL query to answer the following question:
`Who was the 3rd place team at Pardubice?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"runner_up" text,
"3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 3rd place team at Pardubice?`:
```sql
|
SELECT "country" FROM "currency" WHERE "1_euro">1.46611 AND "1_usd"='1.76650'; |
## Task
Generate a SQL query to answer the following question:
`Which country has a Euro that equals larger than 1.46611, and an usd equal to 1.76650?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "currency" (
"country" text,
"currency" text,
"1_euro" real,
"1_usd" text,
"central_bank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a Euro that equals larger than 1.46611, and an usd equal to 1.76650?`:
```sql
|
SELECT "central_bank" FROM "currency" WHERE "1_euro">297.547 AND "country"='chile'; |
## Task
Generate a SQL query to answer the following question:
`Which Chile central bank has a Euro larger than 297.547?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "currency" (
"country" text,
"currency" text,
"1_euro" real,
"1_usd" text,
"central_bank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Chile central bank has a Euro larger than 297.547?`:
```sql
|
SELECT "to_par" FROM "third_round_saturday" WHERE "country"='denmark'; |
## Task
Generate a SQL query to answer the following question:
`Name the To par for denmark`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_saturday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the To par for denmark`:
```sql
|
SELECT "place" FROM "third_round_saturday" WHERE "player"='pat perez'; |
## Task
Generate a SQL query to answer the following question:
`Nam ethe place for pat perez`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_saturday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Nam ethe place for pat perez`:
```sql
|
SELECT "country" FROM "third_round_saturday" WHERE "player"='vijay singh'; |
## Task
Generate a SQL query to answer the following question:
`Name the country vijay singh is from`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_saturday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country vijay singh is from`:
```sql
|
SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz"<106.5 AND "call_sign"='w218ck'; |
## Task
Generate a SQL query to answer the following question:
`Which city has frequency under 106.5MHz and a callsign of w218ck?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has frequency under 106.5MHz and a callsign of w218ck?`:
```sql
|
SELECT "class" FROM "translators" WHERE "city_of_license"='richmond, virginia'; |
## Task
Generate a SQL query to answer the following question:
`Which class has a city of Richmond, Virginia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has a city of Richmond, Virginia?`:
```sql
|
SELECT "erp_w" FROM "translators" WHERE "frequency_m_hz"=91.3; |
## Task
Generate a SQL query to answer the following question:
`What is the ERP W for the frequency of 91.3MHz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ERP W for the frequency of 91.3MHz?`:
```sql
|
SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz">98.5 AND "erp_w"<155; |
## Task
Generate a SQL query to answer the following question:
`Which call sign has a frequency greater than 98.5MHz and ERP W under 155?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which call sign has a frequency greater than 98.5MHz and ERP W under 155?`:
```sql
|
SELECT MIN("tracks") FROM "disc_list" WHERE "length"='18:36'; |
## Task
Generate a SQL query to answer the following question:
`Which tracks have a length of 18:36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_list" (
"disc" text,
"title" text,
"type" text,
"length" text,
"tracks" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which tracks have a length of 18:36?`:
```sql
|
SELECT "length" FROM "disc_list" WHERE "disc"='67'; |
## Task
Generate a SQL query to answer the following question:
`What is the length of disc 67?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_list" (
"disc" text,
"title" text,
"type" text,
"length" text,
"tracks" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length of disc 67?`:
```sql
|
SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "year">1950 AND "engine"='maserati straight-6'; |
## Task
Generate a SQL query to answer the following question:
`What points larger than 1950 has a maserati straight-6 engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What points larger than 1950 has a maserati straight-6 engine?`:
```sql
|
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='officine alfieri maserati' AND "year"=1952; |
## Task
Generate a SQL query to answer the following question:
`What is the chassis for a 1952 officine alfieri maserati with an entrant?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the chassis for a 1952 officine alfieri maserati with an entrant?`:
```sql
|
SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year"=1951 AND "chassis"='alfa romeo 159m'; |
## Task
Generate a SQL query to answer the following question:
`What type of engine does a 1951 alfa romeo 159m chasis have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What type of engine does a 1951 alfa romeo 159m chasis have?`:
```sql
|
SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "year"=1952; |
## Task
Generate a SQL query to answer the following question:
`What Entrant has a 1952 maserati straight-6 engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Entrant has a 1952 maserati straight-6 engine?`:
```sql
|
SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year">1950 AND "points"<7; |
## Task
Generate a SQL query to answer the following question:
`What Entrant older than 1950 has points smaller than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Entrant older than 1950 has points smaller than 7?`:
```sql
|
SELECT SUM("points") FROM "complete_formula_one_world_championship_" WHERE "entrant"='alfa romeo spa' AND "year"<1951; |
## Task
Generate a SQL query to answer the following question:
`What is the total points that an 1951 Entrant alfa romeo spa have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total points that an 1951 Entrant alfa romeo spa have?`:
```sql
|
SELECT "co_driver" FROM "bathurst_1000_results" WHERE "laps">32 AND "year"=1999; |
## Task
Generate a SQL query to answer the following question:
`Who is the co-driver in 1999 with more than 32 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bathurst_1000_results" (
"year" real,
"number" real,
"team" text,
"co_driver" text,
"position" text,
"laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the co-driver in 1999 with more than 32 laps?`:
```sql
|
SELECT "winning_constructor" FROM "drivers_standings" WHERE "fastest_lap"='mark webber' AND "grand_prix"='malaysian grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the winning constructor for when the fastest lap was mark webber at the malaysian grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_standings" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning constructor for when the fastest lap was mark webber at the malaysian grand prix`:
```sql
|
SELECT "winning_constructor" FROM "drivers_standings" WHERE "grand_prix"='abu dhabi grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the winning constructor for abu dhabi grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_standings" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning constructor for abu dhabi grand prix`:
```sql
|
SELECT "pole_position" FROM "drivers_standings" WHERE "grand_prix"='belgian grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the pole position for belgian grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_standings" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the pole position for belgian grand prix`:
```sql
|
SELECT "pole_position" FROM "drivers_standings" WHERE "grand_prix"='korean grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the pole positon for korean grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_standings" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the pole positon for korean grand prix`:
```sql
|
SELECT "pole_position" FROM "drivers_standings" WHERE "grand_prix"='german grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the pole position at the german grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_standings" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the pole position at the german grand prix`:
```sql
|
SELECT "code" FROM "erm_ii_members" WHERE "currency"='latvian lats'; |
## Task
Generate a SQL query to answer the following question:
`What is the code for Latvian Lats?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "erm_ii_members" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"central_rate" text,
"official_target_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the code for Latvian Lats?`:
```sql
|
SELECT "currency" FROM "erm_ii_members" WHERE "central_rate"='3.45280'; |
## Task
Generate a SQL query to answer the following question:
`Which currency has a central rate of 3.45280?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "erm_ii_members" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"central_rate" text,
"official_target_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which currency has a central rate of 3.45280?`:
```sql
|
SELECT "currency" FROM "erm_ii_members" WHERE "central_rate"='0.702804'; |
## Task
Generate a SQL query to answer the following question:
`Which currency has a central rate of 0.702804?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "erm_ii_members" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"central_rate" text,
"official_target_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which currency has a central rate of 0.702804?`:
```sql
|
SELECT "entry_erm_ii" FROM "erm_ii_members" WHERE "currency"='hungarian forint'; |
## Task
Generate a SQL query to answer the following question:
`What is the entry ERM II for the Hungarian Forint?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "erm_ii_members" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"central_rate" text,
"official_target_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the entry ERM II for the Hungarian Forint?`:
```sql
|
SELECT "official_target_date" FROM "erm_ii_members" WHERE "currency"='swedish krona'; |
## Task
Generate a SQL query to answer the following question:
`What is the official target date for the Swedish Krona?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "erm_ii_members" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"central_rate" text,
"official_target_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the official target date for the Swedish Krona?`:
```sql
|
SELECT "winner" FROM "european_poker_tour" WHERE "event"='ept german open'; |
## Task
Generate a SQL query to answer the following question:
`The EPT German open was won by which listed winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `The EPT German open was won by which listed winner?`:
```sql
|
SELECT "event" FROM "european_poker_tour" WHERE "winner"='will fry'; |
## Task
Generate a SQL query to answer the following question:
`What event did Will Fry win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event did Will Fry win?`:
```sql
|
SELECT "city" FROM "european_poker_tour" WHERE "event"='ept german open'; |
## Task
Generate a SQL query to answer the following question:
`The EPT German Open took place in what city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `The EPT German Open took place in what city?`:
```sql
|
SELECT "date" FROM "european_poker_tour" WHERE "city"='copenhagen'; |
## Task
Generate a SQL query to answer the following question:
`When did an event take place in the City of Copenhagen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did an event take place in the City of Copenhagen?`:
```sql
|
SELECT "city" FROM "european_poker_tour" WHERE "prize"='£1,000,000'; |
## Task
Generate a SQL query to answer the following question:
`The prize of £1,000,000 was given by an event in what city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `The prize of £1,000,000 was given by an event in what city?`:
```sql
|
SELECT "event" FROM "european_poker_tour" WHERE "winner"='joão barbosa'; |
## Task
Generate a SQL query to answer the following question:
`João Barbosa was the winner of which event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `João Barbosa was the winner of which event?`:
```sql
|
SELECT COUNT("attendance") FROM "scottish_premier_league" WHERE "opponent"='st. johnstone' AND "venue"='home'; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance during the Home game where St. Johnstone was the Opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scottish_premier_league" (
"date" text,
"opponent" text,
"venue" text,
"result_celtic_score_first" text,
"attendance" real,
"match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance during the Home game where St. Johnstone was the Opponent?`:
```sql
|
SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "class_pos"='6th'; |
## Task
Generate a SQL query to answer the following question:
`Which class has a Class Position of 6th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"pos" text,
"class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has a Class Position of 6th?`:
```sql
|
SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "year"=1968; |
## Task
Generate a SQL query to answer the following question:
`Which class has a Year of 1968?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"pos" text,
"class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has a Year of 1968?`:
```sql
|
SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "team"='kouros racing team'; |
## Task
Generate a SQL query to answer the following question:
`Which class has a Team of kouros racing team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"pos" text,
"class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has a Team of kouros racing team?`:
```sql
|
SELECT "winner" FROM "1970s_colts_11_9" WHERE "loser"='baltimore colts' AND "location"='schaefer stadium' AND "result"='42-3'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Winner, when the Loser is the Baltimore Colts, when the Location is Schaefer Stadium, and when the Result is 42-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s_colts_11_9" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Winner, when the Loser is the Baltimore Colts, when the Location is Schaefer Stadium, and when the Result is 42-3?`:
```sql
|
SELECT "location" FROM "1970s_colts_11_9" WHERE "winner"='baltimore colts' AND "year"<1972 AND "result"='14-6'; |
## Task
Generate a SQL query to answer the following question:
`What is the Location, when the Winner is the Baltimore Colts, when the Year is before 1972, and when the Result is 14-6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s_colts_11_9" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location, when the Winner is the Baltimore Colts, when the Year is before 1972, and when the Result is 14-6?`:
```sql
|
SELECT "date" FROM "1970s_colts_11_9" WHERE "year">1978 AND "location"='memorial stadium (baltimore)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date, when the Year is after 1978, and when the Location is Memorial Stadium (Baltimore)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s_colts_11_9" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date, when the Year is after 1978, and when the Location is Memorial Stadium (Baltimore)?`:
```sql
|
SELECT "engine" FROM "formula_one_world_championship_results" WHERE "chassis"='lotus 44 f2'; |
## Task
Generate a SQL query to answer the following question:
`Which engine has a Chassis of lotus 44 f2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_one_world_championship_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which engine has a Chassis of lotus 44 f2?`:
```sql
|
SELECT "entrant" FROM "formula_one_world_championship_results" WHERE "year"=1969; |
## Task
Generate a SQL query to answer the following question:
`What entrant appeared in 1969?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_one_world_championship_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What entrant appeared in 1969?`:
```sql
|
SELECT "engine" FROM "formula_one_world_championship_results" WHERE "year">1969; |
## Task
Generate a SQL query to answer the following question:
`Which engine has a Year larger than 1969?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_one_world_championship_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which engine has a Year larger than 1969?`:
```sql
|
SELECT MAX("year") FROM "formula_one_world_championship_results" WHERE "entrant"='ron harris / team lotus'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest year with an Entrant of ron harris / team lotus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_one_world_championship_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest year with an Entrant of ron harris / team lotus?`:
```sql
|
SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "stage"='21'; |
## Task
Generate a SQL query to answer the following question:
`During stage 21, who held the Intergiro classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `During stage 21, who held the Intergiro classification?`:
```sql
|
SELECT "stage" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='gatorade'; |
## Task
Generate a SQL query to answer the following question:
`During which stage was gatorade the Trofeo Fast Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `During which stage was gatorade the Trofeo Fast Team?`:
```sql
|
SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='gb-mg maglificio'; |
## Task
Generate a SQL query to answer the following question:
`Who held the Intergiro classificaiton when the Trofeo Fast Team is gb-mg maglificio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who held the Intergiro classificaiton when the Trofeo Fast Team is gb-mg maglificio?`:
```sql
|
SELECT "stage" FROM "classification_leadership_by_stage" WHERE "intergiro_classification"='miguel indurain' AND "points_classification"='mario cipollini' AND "young_rider_classification"='leonardo sierra'; |
## Task
Generate a SQL query to answer the following question:
`During which stage was the Intergiro classification held by Miguel Indurain, the Points classification held by Mario Cipollini, and the Young rider classification held by Leonardo Sierra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `During which stage was the Intergiro classification held by Miguel Indurain, the Points classification held by Mario Cipollini, and the Young rider classification held by Leonardo Sierra?`:
```sql
|
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "general_classification"='miguel indurain' AND "points_classification"='mario cipollini' AND "mountains_classification"='claudio chiappucci' AND "young_rider_classification"='pavel tonkov'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner when the General classification was held by Miguel Indurain, the Points classification held by Mario Cipollini, the Mountains classification held by Claudio Chiappucci, and the Young RIder classification held by Pavel Tonkov?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner when the General classification was held by Miguel Indurain, the Points classification held by Mario Cipollini, the Mountains classification held by Claudio Chiappucci, and the Young RIder classification held by Pavel Tonkov?`:
```sql
|
SELECT "strong_s_num" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strong_s_words_compounded"='yasha [# 3467] & yahu'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of Strong's Words Compounded of yasha [# 3467] & yahu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
"strong_s_num" text,
"hebrew_word" text,
"strong_s_transliteration" text,
"strong_s_words_compounded" text,
"english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of Strong's Words Compounded of yasha [# 3467] & yahu?`:
```sql
|
SELECT "english_spelling" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strong_s_num"='5166'; |
## Task
Generate a SQL query to answer the following question:
`How to spell Strong's # of 5166 in English?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
"strong_s_num" text,
"hebrew_word" text,
"strong_s_transliteration" text,
"strong_s_words_compounded" text,
"english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `How to spell Strong's # of 5166 in English?`:
```sql
|
SELECT "strong_s_words_compounded" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strong_s_num"='5418'; |
## Task
Generate a SQL query to answer the following question:
`What is the Words with a Strong's # of 5418?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
"strong_s_num" text,
"hebrew_word" text,
"strong_s_transliteration" text,
"strong_s_words_compounded" text,
"english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Words with a Strong's # of 5418?`:
```sql
|
SELECT "goals_against" FROM "goalkeeping_leaders" WHERE "minutes"=2520; |
## Task
Generate a SQL query to answer the following question:
`What is the goals against for the goalkeeper with 2520 minutes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalkeeping_leaders" (
"player" text,
"club" text,
"games_played" real,
"minutes" real,
"goals_against" real,
"ga_average" real,
"wins" real,
"loses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the goals against for the goalkeeper with 2520 minutes?`:
```sql
|
SELECT AVG("games_played") FROM "goalkeeping_leaders" WHERE "loses"=10 AND "player"='bo oshoniyi' AND "minutes">1170; |
## Task
Generate a SQL query to answer the following question:
`What is the average Games Played for Bo Oshoniyi, who had more than 1170 minutes and 10 loses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalkeeping_leaders" (
"player" text,
"club" text,
"games_played" real,
"minutes" real,
"goals_against" real,
"ga_average" real,
"wins" real,
"loses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Games Played for Bo Oshoniyi, who had more than 1170 minutes and 10 loses?`:
```sql
|
SELECT MAX("goals_against") FROM "goalkeeping_leaders" WHERE "club"='dallas burn' AND "ga_average">1.46; |
## Task
Generate a SQL query to answer the following question:
`What is the highest goals against the goalkeeper of Dallas Burn, who had a GA average larger than 1.46, had?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalkeeping_leaders" (
"player" text,
"club" text,
"games_played" real,
"minutes" real,
"goals_against" real,
"ga_average" real,
"wins" real,
"loses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest goals against the goalkeeper of Dallas Burn, who had a GA average larger than 1.46, had?`:
```sql
|
SELECT MIN("loses") FROM "goalkeeping_leaders" WHERE "minutes">2776; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of losses a goalkeeper with more than 2776 minutes had?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalkeeping_leaders" (
"player" text,
"club" text,
"games_played" real,
"minutes" real,
"goals_against" real,
"ga_average" real,
"wins" real,
"loses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of losses a goalkeeper with more than 2776 minutes had?`:
```sql
|
SELECT MIN("minutes") FROM "goalkeeping_leaders" WHERE "games_played"=13; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest minutes a goalkeeper with 13 games played has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalkeeping_leaders" (
"player" text,
"club" text,
"games_played" real,
"minutes" real,
"goals_against" real,
"ga_average" real,
"wins" real,
"loses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest minutes a goalkeeper with 13 games played has?`:
```sql
|
SELECT "round" FROM "biggest_losses" WHERE "score"='10-52'; |
## Task
Generate a SQL query to answer the following question:
`Which round resulted in 10-52?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "biggest_losses" (
"margin" real,
"score" text,
"opponent" text,
"venue" text,
"round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round resulted in 10-52?`:
```sql
|
SELECT "venue" FROM "biggest_losses" WHERE "opponent"='melbourne storm' AND "round"='rd 7, 2006'; |
## Task
Generate a SQL query to answer the following question:
`What venue did Melbourne Storm played in Rd 7, 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "biggest_losses" (
"margin" real,
"score" text,
"opponent" text,
"venue" text,
"round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue did Melbourne Storm played in Rd 7, 2006?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "result"='draw'; |
## Task
Generate a SQL query to answer the following question:
`In which venue was the result a draw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which venue was the result a draw?`:
```sql
|
SELECT "tansen_singers" FROM "comedy_circus_ke_taansen" WHERE "comedian_ii"='preeti amin'; |
## Task
Generate a SQL query to answer the following question:
`Who is the singer that has Comedian; II of Preeti Amin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comedy_circus_ke_taansen" (
"pair_no" real,
"comedian_1" text,
"comedian_ii" text,
"tansen_singers" text,
"place_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the singer that has Comedian; II of Preeti Amin?`:
```sql
|
SELECT "comedian_1" FROM "comedy_circus_ke_taansen" WHERE "pair_no">5 AND "comedian_ii"='jimmy moses'; |
## Task
Generate a SQL query to answer the following question:
`Who is the comedian that has a pair no larger than 5 with a comedian II: Jimmy Moses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comedy_circus_ke_taansen" (
"pair_no" real,
"comedian_1" text,
"comedian_ii" text,
"tansen_singers" text,
"place_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the comedian that has a pair no larger than 5 with a comedian II: Jimmy Moses?`:
```sql
|
SELECT "place_result" FROM "comedy_circus_ke_taansen" WHERE "comedian_ii"='ali asgar'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of Comedian : II of Ali Asgar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comedy_circus_ke_taansen" (
"pair_no" real,
"comedian_1" text,
"comedian_ii" text,
"tansen_singers" text,
"place_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of Comedian : II of Ali Asgar?`:
```sql
|
SELECT "school_colors" FROM "western_division" WHERE "founded"=1969 AND "institution"='barton community college'; |
## Task
Generate a SQL query to answer the following question:
`Which School Colors were Founded of 1969, with an Institution of barton community college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_division" (
"institution" text,
"main_campus_location" text,
"founded" real,
"mascot" text,
"school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School Colors were Founded of 1969, with an Institution of barton community college?`:
```sql
|
SELECT "institution" FROM "western_division" WHERE "mascot"='broncbusters'; |
## Task
Generate a SQL query to answer the following question:
`Which Institution has a Mascot of broncbusters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_division" (
"institution" text,
"main_campus_location" text,
"founded" real,
"mascot" text,
"school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Institution has a Mascot of broncbusters?`:
```sql
|
SELECT MAX("founded") FROM "western_division" WHERE "institution"='cloud county community college'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest Founded with an Institution of cloud county community college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_division" (
"institution" text,
"main_campus_location" text,
"founded" real,
"mascot" text,
"school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest Founded with an Institution of cloud county community college?`:
```sql
|
SELECT COUNT("founded") FROM "western_division" WHERE "main_campus_location"='liberal'; |
## Task
Generate a SQL query to answer the following question:
`What is the total Founded with a Main Campus Location of liberal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_division" (
"institution" text,
"main_campus_location" text,
"founded" real,
"mascot" text,
"school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total Founded with a Main Campus Location of liberal?`:
```sql
|
SELECT "3_person_dive" FROM "encounters" WHERE "2_person_dive"='none'; |
## Task
Generate a SQL query to answer the following question:
`What is the 3-person dive that has none as the 2-person dive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "encounters" (
"1_person_dive" text,
"2_person_dive" text,
"3_person_dive" text,
"surface" text,
"cage_dive" text,
"seal_turtle_decoy" text,
"catch_release" text,
"attached_camera" text,
"remote_camera" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 3-person dive that has none as the 2-person dive?`:
```sql
|
SELECT "2_person_dive" FROM "encounters" WHERE "surface"='2'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2-person dive that has 2 as the surface?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "encounters" (
"1_person_dive" text,
"2_person_dive" text,
"3_person_dive" text,
"surface" text,
"cage_dive" text,
"seal_turtle_decoy" text,
"catch_release" text,
"attached_camera" text,
"remote_camera" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2-person dive that has 2 as the surface?`:
```sql
|
SELECT "surface" FROM "encounters" WHERE "cage_dive"='2'; |
## Task
Generate a SQL query to answer the following question:
`What surface has 2 as a cage dive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "encounters" (
"1_person_dive" text,
"2_person_dive" text,
"3_person_dive" text,
"surface" text,
"cage_dive" text,
"seal_turtle_decoy" text,
"catch_release" text,
"attached_camera" text,
"remote_camera" text
);
### SQL
Given the database schema, here is the SQL query that answers `What surface has 2 as a cage dive?`:
```sql
|
SELECT "cage_dive" FROM "encounters" WHERE "3_person_dive"='none'; |
## Task
Generate a SQL query to answer the following question:
`Which cage dive has none as a 3-person dive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "encounters" (
"1_person_dive" text,
"2_person_dive" text,
"3_person_dive" text,
"surface" text,
"cage_dive" text,
"seal_turtle_decoy" text,
"catch_release" text,
"attached_camera" text,
"remote_camera" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which cage dive has none as a 3-person dive?`:
```sql
|
SELECT "3_person_dive" FROM "encounters" WHERE "remote_camera"='0'; |
## Task
Generate a SQL query to answer the following question:
`Which 3-person dive has 0 as a remote camera?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "encounters" (
"1_person_dive" text,
"2_person_dive" text,
"3_person_dive" text,
"surface" text,
"cage_dive" text,
"seal_turtle_decoy" text,
"catch_release" text,
"attached_camera" text,
"remote_camera" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 3-person dive has 0 as a remote camera?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.