output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "year_ceremony" FROM "submissions" WHERE "english_title"='kelin'; |
## Task
Generate a SQL query to answer the following question:
`What year was Kelin nominated?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"english_title" text,
"russian_title" text,
"kazakh_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Kelin nominated?`:
```sql
|
SELECT COUNT("to_par") FROM "final_round_sunday" WHERE "score"='76-71-78-67=292'; |
## Task
Generate a SQL query to answer the following question:
`What was the to par score in the match that had a score of 76-71-78-67=292?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_sunday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"winnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the to par score in the match that had a score of 76-71-78-67=292?`:
```sql
|
SELECT AVG("to_par") FROM "final_round_sunday" WHERE "player"='robert allenby'; |
## Task
Generate a SQL query to answer the following question:
`What is Robert Allenby's average to par score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_sunday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"winnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Robert Allenby's average to par score?`:
```sql
|
SELECT "tournament" FROM "mixed_doubles_performance_timeline" WHERE "2009"='1r' AND "2012"='w'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Tournament that has the 2009 of 1r, and the 2012 of w?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_performance_timeline" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Tournament that has the 2009 of 1r, and the 2012 of w?`:
```sql
|
SELECT "2010" FROM "mixed_doubles_performance_timeline" WHERE "2008"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the 2010 that has the 2008 of grand slam tournaments?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_performance_timeline" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the 2010 that has the 2008 of grand slam tournaments?`:
```sql
|
SELECT "2009" FROM "mixed_doubles_performance_timeline" WHERE "2011"='a'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the 2009 that has the 2011 of A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_performance_timeline" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the 2009 that has the 2011 of A?`:
```sql
|
SELECT AVG("to_par") FROM "missed_the_cut" WHERE "total"=155; |
## Task
Generate a SQL query to answer the following question:
`What is the to par for the player with total of 155?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par for the player with total of 155?`:
```sql
|
SELECT "bronze" FROM "women" WHERE "notes"='2.5km, 16controls'; |
## Task
Generate a SQL query to answer the following question:
`Who won Bronze with Notes of 2.5km, 16controls?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"year" real,
"gold" text,
"silver" text,
"bronze" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Bronze with Notes of 2.5km, 16controls?`:
```sql
|
SELECT "gold" FROM "women" WHERE "year">2004 AND "notes"='2.73km, 14controls'; |
## Task
Generate a SQL query to answer the following question:
`Who won Gold later than 2004 with Notes of 2.73km, 14controls?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"year" real,
"gold" text,
"silver" text,
"bronze" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Gold later than 2004 with Notes of 2.73km, 14controls?`:
```sql
|
SELECT "bronze" FROM "women" WHERE "notes"='2.5km, 14controls'; |
## Task
Generate a SQL query to answer the following question:
`Who won Bronze with notes of 2.5km, 14controls?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"year" real,
"gold" text,
"silver" text,
"bronze" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Bronze with notes of 2.5km, 14controls?`:
```sql
|
SELECT "notes" FROM "women" WHERE "year"<2006 AND "silver"='jenny johansson'; |
## Task
Generate a SQL query to answer the following question:
`What are the Notes against a Silver for Jenny Johansson earlier than 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"year" real,
"gold" text,
"silver" text,
"bronze" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Notes against a Silver for Jenny Johansson earlier than 2006?`:
```sql
|
SELECT "constituency_number" FROM "assembly_segments" WHERE "name"='meerut'; |
## Task
Generate a SQL query to answer the following question:
`What is the Constituency number for Meerut?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Constituency number for Meerut?`:
```sql
|
SELECT "name" FROM "assembly_segments" WHERE "constituency_number"='48'; |
## Task
Generate a SQL query to answer the following question:
`What is the name for the constituency at number 48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for the constituency at number 48?`:
```sql
|
SELECT "rank" FROM "summary" WHERE "bronze">3; |
## Task
Generate a SQL query to answer the following question:
`When bronze is more than 3, what is the rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When bronze is more than 3, what is the rank?`:
```sql
|
SELECT SUM("gold") FROM "summary" WHERE "rank"='7' AND "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`When rank is 7 and silver is less than 0, what is the total gold?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When rank is 7 and silver is less than 0, what is the total gold?`:
```sql
|
SELECT "player" FROM "third_round" WHERE "country"='wales'; |
## Task
Generate a SQL query to answer the following question:
`What player is from Wales?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player is from Wales?`:
```sql
|
SELECT "player" FROM "third_round" WHERE "score"='73-68-66=207'; |
## Task
Generate a SQL query to answer the following question:
`What player scored 73-68-66=207?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player scored 73-68-66=207?`:
```sql
|
SELECT "score" FROM "third_round" WHERE "player"='seve ballesteros'; |
## Task
Generate a SQL query to answer the following question:
`What Seve Ballesteros's score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Seve Ballesteros's score?`:
```sql
|
SELECT "country" FROM "third_round" WHERE "player"='craig parry'; |
## Task
Generate a SQL query to answer the following question:
`What country is Craig Parry from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Craig Parry from?`:
```sql
|
SELECT "country" FROM "third_round" WHERE "score"='66-73-69=208'; |
## Task
Generate a SQL query to answer the following question:
`What country has a score of 66-73-69=208?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a score of 66-73-69=208?`:
```sql
|
SELECT "road_team" FROM "nba_finals" WHERE "result"='74-71'; |
## Task
Generate a SQL query to answer the following question:
`What is Road Team, when Result is "74-71"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Road Team, when Result is "74-71"?`:
```sql
|
SELECT "result" FROM "nba_finals" WHERE "date"='april 3'; |
## Task
Generate a SQL query to answer the following question:
`What is Result, when Date is "April 3"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Result, when Date is "April 3"?`:
```sql
|
SELECT "game" FROM "nba_finals" WHERE "road_team"='syracuse' AND "result"='96-89'; |
## Task
Generate a SQL query to answer the following question:
`What is Game, when Road Team is "Syracuse", and when Result is "96-89"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Game, when Road Team is "Syracuse", and when Result is "96-89"?`:
```sql
|
SELECT "home_team" FROM "nba_finals" WHERE "date"='april 10'; |
## Task
Generate a SQL query to answer the following question:
`What is Home Team, when Date is "April 10"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Home Team, when Date is "April 10"?`:
```sql
|
SELECT "game" FROM "nba_finals" WHERE "road_team"='syracuse' AND "result"='109-82'; |
## Task
Generate a SQL query to answer the following question:
`What is Game, when Road Team is "Syracuse", and when Result is "109-82"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Game, when Road Team is "Syracuse", and when Result is "109-82"?`:
```sql
|
SELECT "road_team" FROM "nba_finals" WHERE "date"='april 10'; |
## Task
Generate a SQL query to answer the following question:
`What is Road Team, when Date is "April 10"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Road Team, when Date is "April 10"?`:
```sql
|
SELECT MIN("round") FROM "nfl_draft" WHERE "player"='neil colzie' AND "pick"<24; |
## Task
Generate a SQL query to answer the following question:
`What was the earliest round with Neil Colzie and a pick smaller than 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"overall_pick" real,
"player" text,
"school_club_team" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest round with Neil Colzie and a pick smaller than 24?`:
```sql
|
SELECT "school_club_team" FROM "nfl_draft" WHERE "pick"=24 AND "overall_pick"=310; |
## Task
Generate a SQL query to answer the following question:
`What team had a pick of 24 and an overall pick of 310?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"overall_pick" real,
"player" text,
"school_club_team" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team had a pick of 24 and an overall pick of 310?`:
```sql
|
SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"='replay' AND "away_team"='watford'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the replay game when watford was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the replay game when watford was the away team?`:
```sql
|
SELECT "home_team" FROM "fifth_round_proper" WHERE "away_team"='walsall'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team when walsall was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team when walsall was the away team?`:
```sql
|
SELECT "name" FROM "1991_1992" WHERE "venue"='hong kong'; |
## Task
Generate a SQL query to answer the following question:
`What is Name, when Venue is "Hong Kong"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1991_1992" (
"date" real,
"name" text,
"venue" text,
"winner" text,
"runner_up" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Venue is "Hong Kong"?`:
```sql
|
SELECT "name" FROM "1991_1992" WHERE "venue"='motherwell'; |
## Task
Generate a SQL query to answer the following question:
`What is Name, when Venue is "Motherwell"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1991_1992" (
"date" real,
"name" text,
"venue" text,
"winner" text,
"runner_up" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Venue is "Motherwell"?`:
```sql
|
SELECT "runners_up" FROM "singles_champions" WHERE "champions"='stefan edberg' AND "year"=1987; |
## Task
Generate a SQL query to answer the following question:
`In 1987, what is the Runners-up when Stefan Edberg is Champion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_champions" (
"year" real,
"name_of_tournament" text,
"champions" text,
"runners_up" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 1987, what is the Runners-up when Stefan Edberg is Champion?`:
```sql
|
SELECT "runners_up" FROM "singles_champions" WHERE "champions"='ivan lendl' AND "name_of_tournament"='seiko super tennis' AND "year"<1990; |
## Task
Generate a SQL query to answer the following question:
`What were the Runners-up prior to 1990 when Ivan Lendl was Champion in the Seiko Super Tennis Tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_champions" (
"year" real,
"name_of_tournament" text,
"champions" text,
"runners_up" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the Runners-up prior to 1990 when Ivan Lendl was Champion in the Seiko Super Tennis Tournament?`:
```sql
|
SELECT "name_of_tournament" FROM "singles_champions" WHERE "champions"='boris becker' AND "score"='7–6, 6–4'; |
## Task
Generate a SQL query to answer the following question:
`In What Tournament did Boris Becker have a Score of 7–6, 6–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_champions" (
"year" real,
"name_of_tournament" text,
"champions" text,
"runners_up" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In What Tournament did Boris Becker have a Score of 7–6, 6–4?`:
```sql
|
SELECT "external_weapon" FROM "knights_weapons_items_and_vehicles" WHERE "shield_animal"='falcon'; |
## Task
Generate a SQL query to answer the following question:
`What is the external weapon with the falcon shield animal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "knights_weapons_items_and_vehicles" (
"knight" text,
"weapon_item" text,
"external_weapon" text,
"shield_animal" text,
"cart" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the external weapon with the falcon shield animal?`:
```sql
|
SELECT "cart" FROM "knights_weapons_items_and_vehicles" WHERE "shield_animal"='serpent'; |
## Task
Generate a SQL query to answer the following question:
`What cart has a serpent shield animal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "knights_weapons_items_and_vehicles" (
"knight" text,
"weapon_item" text,
"external_weapon" text,
"shield_animal" text,
"cart" text
);
### SQL
Given the database schema, here is the SQL query that answers `What cart has a serpent shield animal?`:
```sql
|
SELECT "external_weapon" FROM "knights_weapons_items_and_vehicles" WHERE "knight"='zeke'; |
## Task
Generate a SQL query to answer the following question:
`What is the external weapon of knight zeke?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "knights_weapons_items_and_vehicles" (
"knight" text,
"weapon_item" text,
"external_weapon" text,
"shield_animal" text,
"cart" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the external weapon of knight zeke?`:
```sql
|
SELECT "shield_animal" FROM "knights_weapons_items_and_vehicles" WHERE "knight"='phil'; |
## Task
Generate a SQL query to answer the following question:
`What is the shield animal of knight phil?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "knights_weapons_items_and_vehicles" (
"knight" text,
"weapon_item" text,
"external_weapon" text,
"shield_animal" text,
"cart" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the shield animal of knight phil?`:
```sql
|
SELECT "external_weapon" FROM "knights_weapons_items_and_vehicles" WHERE "cart"='ramhead cart'; |
## Task
Generate a SQL query to answer the following question:
`What is the external weapon with a ramhead cart?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "knights_weapons_items_and_vehicles" (
"knight" text,
"weapon_item" text,
"external_weapon" text,
"shield_animal" text,
"cart" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the external weapon with a ramhead cart?`:
```sql
|
SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='sheffield wednesday'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the away team Sheffield Wednesday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the away team Sheffield Wednesday?`:
```sql
|
SELECT "tie_no" FROM "fourth_round_proper" WHERE "away_team"='hartlepool united'; |
## Task
Generate a SQL query to answer the following question:
`What was the tie number for the game with an away team of Hartlepool United?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie number for the game with an away team of Hartlepool United?`:
```sql
|
SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='16'; |
## Task
Generate a SQL query to answer the following question:
`What was the score in Tie number 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in Tie number 16?`:
```sql
|
SELECT "duration" FROM "king_s_commissioners" WHERE "province"='zeeland'; |
## Task
Generate a SQL query to answer the following question:
`What is the duration of the commissioner from the zeeland province?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "king_s_commissioners" (
"province" text,
"commissioner" text,
"assumed_office" text,
"duration" text,
"party" text,
"born" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the duration of the commissioner from the zeeland province?`:
```sql
|
SELECT "round" FROM "fa_cup" WHERE "h_a"='h'; |
## Task
Generate a SQL query to answer the following question:
`Which round has an H/A of H?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which round has an H/A of H?`:
```sql
|
SELECT "round" FROM "fa_cup" WHERE "h_a"='a' AND "opponents"='sheffield united'; |
## Task
Generate a SQL query to answer the following question:
`Rich round has an H/A of A and the opponent Sheffield United?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Rich round has an H/A of A and the opponent Sheffield United?`:
```sql
|
SELECT SUM("population_2008") FROM "counties_and_districts" WHERE "capital"='sanniquellie' AND "created">1964; |
## Task
Generate a SQL query to answer the following question:
`What is the population (2008) when the capital was Sanniquellie, created later than 1964?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "counties_and_districts" (
"mapnum" real,
"county" text,
"capital" text,
"population_2008" real,
"area" text,
"created" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population (2008) when the capital was Sanniquellie, created later than 1964?`:
```sql
|
SELECT MAX("population_2008") FROM "counties_and_districts" WHERE "created"<1857 AND "county"='sinoe'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest population (2008) created earlier than 1857, and the county was Sinoe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "counties_and_districts" (
"mapnum" real,
"county" text,
"capital" text,
"population_2008" real,
"area" text,
"created" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest population (2008) created earlier than 1857, and the county was Sinoe?`:
```sql
|
SELECT MIN("created") FROM "counties_and_districts" WHERE "mapnum"=10; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest created year when the map# was 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "counties_and_districts" (
"mapnum" real,
"county" text,
"capital" text,
"population_2008" real,
"area" text,
"created" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest created year when the map# was 10?`:
```sql
|
SELECT "venue" FROM "scotland_national_team" WHERE "score"='0–0'; |
## Task
Generate a SQL query to answer the following question:
`What is the Venue of the game with a Score of 0–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scotland_national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Venue of the game with a Score of 0–0?`:
```sql
|
SELECT "venue" FROM "scotland_national_team" WHERE "competition"='friendly' AND "score"='1–4'; |
## Task
Generate a SQL query to answer the following question:
`What is the Venue of the Friendly Competition with a Score of 1–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scotland_national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Venue of the Friendly Competition with a Score of 1–4?`:
```sql
|
SELECT "venue" FROM "scotland_national_team" WHERE "competition"='wcq5'; |
## Task
Generate a SQL query to answer the following question:
`What is the Venue of the WCQ5 Competition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scotland_national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Venue of the WCQ5 Competition?`:
```sql
|
SELECT "date" FROM "scotland_national_team" WHERE "score"='2–0'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Competition with a Score of 2–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scotland_national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the Competition with a Score of 2–0?`:
```sql
|
SELECT "venue" FROM "scotland_national_team" WHERE "score"='0–2'; |
## Task
Generate a SQL query to answer the following question:
`What is the Venue of the Competition with a Score of 0–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scotland_national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Venue of the Competition with a Score of 0–2?`:
```sql
|
SELECT "venue" FROM "scotland_national_team" WHERE "score"='2–0'; |
## Task
Generate a SQL query to answer the following question:
`What is the Venue of the Competition with a Score of 2–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scotland_national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Venue of the Competition with a Score of 2–0?`:
```sql
|
SELECT "binary_meaning" FROM "systematic_multiples" WHERE "symbol"='p'; |
## Task
Generate a SQL query to answer the following question:
`What is the binary meaning for symbol p?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "systematic_multiples" (
"symbol" text,
"prefix" text,
"si_meaning" text,
"binary_meaning" text,
"size_difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the binary meaning for symbol p?`:
```sql
|
SELECT "si_meaning" FROM "systematic_multiples" WHERE "symbol"='m'; |
## Task
Generate a SQL query to answer the following question:
`What;s the SI Meaning for symbol m?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "systematic_multiples" (
"symbol" text,
"prefix" text,
"si_meaning" text,
"binary_meaning" text,
"size_difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What;s the SI Meaning for symbol m?`:
```sql
|
SELECT "prefix" FROM "systematic_multiples" WHERE "binary_meaning"='2 10 = 1024 1'; |
## Task
Generate a SQL query to answer the following question:
`Which prefix has a binary meaning of 2 10 = 1024 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "systematic_multiples" (
"symbol" text,
"prefix" text,
"si_meaning" text,
"binary_meaning" text,
"size_difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which prefix has a binary meaning of 2 10 = 1024 1?`:
```sql
|
SELECT "size_difference" FROM "systematic_multiples" WHERE "prefix"='exa'; |
## Task
Generate a SQL query to answer the following question:
`What is the size difference for exa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "systematic_multiples" (
"symbol" text,
"prefix" text,
"si_meaning" text,
"binary_meaning" text,
"size_difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the size difference for exa?`:
```sql
|
SELECT "size_difference" FROM "systematic_multiples" WHERE "binary_meaning"='2 70 = 1024 7'; |
## Task
Generate a SQL query to answer the following question:
`What is the size difference for the binary meaning of 2 70 = 1024 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "systematic_multiples" (
"symbol" text,
"prefix" text,
"si_meaning" text,
"binary_meaning" text,
"size_difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the size difference for the binary meaning of 2 70 = 1024 7?`:
```sql
|
SELECT "score" FROM "winners" WHERE "champion"='masahiro kawamura'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of champion masahiro kawamura?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" text,
"winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of champion masahiro kawamura?`:
```sql
|
SELECT "dates" FROM "winners" WHERE "tournament_location"='ibaraki country club' AND "champion"='masahiro kawamura'; |
## Task
Generate a SQL query to answer the following question:
`What dates was champion masahiro kawamura at the ibaraki country club tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" text,
"winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What dates was champion masahiro kawamura at the ibaraki country club tournament?`:
```sql
|
SELECT "winner_s_share" FROM "winners" WHERE "champion"='hideto tanihara'; |
## Task
Generate a SQL query to answer the following question:
`What is the winner's share of champion hideto tanihara?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" text,
"winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winner's share of champion hideto tanihara?`:
```sql
|
SELECT "champion" FROM "winners" WHERE "purse"='Â¥200,000,000'; |
## Task
Generate a SQL query to answer the following question:
`Who is the champion with a ¥200,000,000 purse?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" text,
"winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the champion with a ¥200,000,000 purse?`:
```sql
|
SELECT MAX("round") FROM "draft_picks" WHERE "nationality"='canada' AND "draft"<1970 AND "pick"=7; |
## Task
Generate a SQL query to answer the following question:
`What round had Canada with a draft of 1970 and a pick of 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round had Canada with a draft of 1970 and a pick of 7?`:
```sql
|
SELECT "placement_in_miss_universe" FROM "miss_universe" WHERE "delegate"='janine mari raymundo tugonon'; |
## Task
Generate a SQL query to answer the following question:
`Which Placement in Miss Universe has a Delegate of janine mari raymundo tugonon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "miss_universe" (
"year" real,
"delegate" text,
"hometown" text,
"placement_in_miss_universe" text,
"other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Placement in Miss Universe has a Delegate of janine mari raymundo tugonon?`:
```sql
|
SELECT "placement_in_miss_universe" FROM "miss_universe" WHERE "delegate"='armi barbara quiray crespo'; |
## Task
Generate a SQL query to answer the following question:
`Which Placement in Miss Universe is armi barbara quiray crespo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "miss_universe" (
"year" real,
"delegate" text,
"hometown" text,
"placement_in_miss_universe" text,
"other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Placement in Miss Universe is armi barbara quiray crespo?`:
```sql
|
SELECT "delegate" FROM "miss_universe" WHERE "placement_in_miss_universe"='fourth runner-up' AND "hometown"='makati , rizal'; |
## Task
Generate a SQL query to answer the following question:
`Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , rizal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "miss_universe" (
"year" real,
"delegate" text,
"hometown" text,
"placement_in_miss_universe" text,
"other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , rizal?`:
```sql
|
SELECT "placement_in_miss_universe" FROM "miss_universe" WHERE "delegate"='rosita cornell capuyon'; |
## Task
Generate a SQL query to answer the following question:
`What kind of Placement in Miss Universe that rosita cornell capuyon is in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "miss_universe" (
"year" real,
"delegate" text,
"hometown" text,
"placement_in_miss_universe" text,
"other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Placement in Miss Universe that rosita cornell capuyon is in?`:
```sql
|
SELECT MAX("year") FROM "miss_universe" WHERE "delegate"='jennifer tarol barrientos'; |
## Task
Generate a SQL query to answer the following question:
`Which Year jennifer tarol barrientos is in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "miss_universe" (
"year" real,
"delegate" text,
"hometown" text,
"placement_in_miss_universe" text,
"other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year jennifer tarol barrientos is in?`:
```sql
|
SELECT SUM("year") FROM "major_competition_record" WHERE "competition"='world championships' AND "notes"=39.01; |
## Task
Generate a SQL query to answer the following question:
`WHAT YEAR WAS THE WORLD CHAMPIONSHIPS IN WITH NOTES OF 39.01?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "major_competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT YEAR WAS THE WORLD CHAMPIONSHIPS IN WITH NOTES OF 39.01?`:
```sql
|
SELECT SUM("money") FROM "final_round" WHERE "player"='angela park'; |
## Task
Generate a SQL query to answer the following question:
`What's the sum of money ($) that angela park has won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of money ($) that angela park has won?`:
```sql
|
SELECT "pick" FROM "national_football_league" WHERE "position"='dt' AND "round">1 AND "overall"<155 AND "year"='1952'; |
## Task
Generate a SQL query to answer the following question:
`What number was the pick for the position of DT in 1952, after round 1, where the overall was less than 155?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_football_league" (
"year" text,
"round" real,
"pick" real,
"overall" real,
"position" text,
"nfl_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number was the pick for the position of DT in 1952, after round 1, where the overall was less than 155?`:
```sql
|
SELECT "nfl_team" FROM "national_football_league" WHERE "overall">118 AND "pick">9 AND "round">5 AND "position"='de'; |
## Task
Generate a SQL query to answer the following question:
`Which NFL team chose a position of DE when the pick was larger than 9, after round 5, and the overal was larger than 118?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_football_league" (
"year" text,
"round" real,
"pick" real,
"overall" real,
"position" text,
"nfl_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which NFL team chose a position of DE when the pick was larger than 9, after round 5, and the overal was larger than 118?`:
```sql
|
SELECT "2006" FROM "singles_performance_timeline" WHERE "2007"='1r' AND "2002"='q2'; |
## Task
Generate a SQL query to answer the following question:
`What is 2006, when 2007 is "1R", and when 2002 is "Q2"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2006, when 2007 is "1R", and when 2002 is "Q2"?`:
```sql
|
SELECT "2001" FROM "singles_performance_timeline" WHERE "2007"='1r' AND "2008"='q1'; |
## Task
Generate a SQL query to answer the following question:
`What is 2001, when 2007 is "1R", and when 2008 is "Q1"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2001, when 2007 is "1R", and when 2008 is "Q1"?`:
```sql
|
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2003"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when 2003 is "A"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when 2003 is "A"?`:
```sql
|
SELECT "2012" FROM "singles_performance_timeline" WHERE "tournament"='french open'; |
## Task
Generate a SQL query to answer the following question:
`What is 2012, when Tournament is "French Open"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2012, when Tournament is "French Open"?`:
```sql
|
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2012"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when 2012 is "Grand Slam Tournaments"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when 2012 is "Grand Slam Tournaments"?`:
```sql
|
SELECT "2004" FROM "singles_performance_timeline" WHERE "2010"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What is 2004, when 2010 is "Grand Slam Tournaments"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2004, when 2010 is "Grand Slam Tournaments"?`:
```sql
|
SELECT "member" FROM "notes" WHERE "electorate"='southern melbourne'; |
## Task
Generate a SQL query to answer the following question:
`Which Member has an Electorate of southern melbourne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "notes" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Member has an Electorate of southern melbourne?`:
```sql
|
SELECT "first_elected" FROM "notes" WHERE "member"='h.b. higgins'; |
## Task
Generate a SQL query to answer the following question:
`When was H.B. Higgins first elected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "notes" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"first_elected" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was H.B. Higgins first elected?`:
```sql
|
SELECT MAX("byes") FROM "2011_ladder" WHERE "draws">0; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of byes when draws are larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of byes when draws are larger than 0?`:
```sql
|
SELECT MIN("losses") FROM "2011_ladder" WHERE "wins"<15 AND "golden_rivers"='quambatook' AND "draws">0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of losses when the goldne rivers is quambatook, wins are smaller than 15 and draws larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of losses when the goldne rivers is quambatook, wins are smaller than 15 and draws larger than 0?`:
```sql
|
SELECT COUNT("losses") FROM "2011_ladder" WHERE "wins"<12 AND "golden_rivers"='ultima' AND "byes">2; |
## Task
Generate a SQL query to answer the following question:
`How many losses did the golden rivers of ultima have when wins were less than 12 and byes larger than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses did the golden rivers of ultima have when wins were less than 12 and byes larger than 2?`:
```sql
|
SELECT AVG("losses") FROM "2011_ladder" WHERE "golden_rivers"='hay'; |
## Task
Generate a SQL query to answer the following question:
`How many losses did the Golden rivers of hay have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses did the Golden rivers of hay have?`:
```sql
|
SELECT COUNT("byes") FROM "2011_ladder" WHERE "wins"=9; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of byes when the wins were 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of byes when the wins were 9?`:
```sql
|
SELECT AVG("draws") FROM "2011_ladder" WHERE "against"=989 AND "wins"<12; |
## Task
Generate a SQL query to answer the following question:
`What is th average dras when wins are less than 12 and the against is 989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is th average dras when wins are less than 12 and the against is 989?`:
```sql
|
SELECT MAX("pole") FROM "by_class" WHERE "class"='125 cc' AND "w_chmp">1; |
## Task
Generate a SQL query to answer the following question:
`What is the highest pole for class 125 cc and a WChmp more than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_class" (
"class" text,
"seas" text,
"1st_gp" text,
"1st_pod" text,
"1st_win" text,
"race" real,
"podiums" real,
"pole" real,
"f_lap" real,
"w_chmp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pole for class 125 cc and a WChmp more than 1?`:
```sql
|
SELECT MAX("f_lap") FROM "by_class" WHERE "class"='500 cc'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest flap for class 500 cc?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_class" (
"class" text,
"seas" text,
"1st_gp" text,
"1st_pod" text,
"1st_win" text,
"race" real,
"podiums" real,
"pole" real,
"f_lap" real,
"w_chmp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest flap for class 500 cc?`:
```sql
|
SELECT "result_f_a" FROM "fa_premier_league" WHERE "league_position"='1st' AND "date"='4 january 1994'; |
## Task
Generate a SQL query to answer the following question:
`Name the Result F – A that has a League position of 1st on 4 january 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fa_premier_league" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Result F – A that has a League position of 1st on 4 january 1994?`:
```sql
|
SELECT "thai_name" FROM "months" WHERE "abbr"='มี.ค.'; |
## Task
Generate a SQL query to answer the following question:
`What is the Thai name for the word abbreviated มี.ค.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" text,
"transcription" text,
"sanskrit_word" text,
"zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Thai name for the word abbreviated มี.ค.?`:
```sql
|
SELECT "english_name" FROM "months" WHERE "abbr"='พ.ย.'; |
## Task
Generate a SQL query to answer the following question:
`What is the English word that is abbreviated พ.ย.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" text,
"transcription" text,
"sanskrit_word" text,
"zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English word that is abbreviated พ.ย.?`:
```sql
|
SELECT "transcription" FROM "months" WHERE "english_name"='march'; |
## Task
Generate a SQL query to answer the following question:
`What is the transcription for the English word March?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" text,
"transcription" text,
"sanskrit_word" text,
"zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transcription for the English word March?`:
```sql
|
SELECT "zodiac_sign" FROM "months" WHERE "english_name"='march'; |
## Task
Generate a SQL query to answer the following question:
`What is the zodiac sign for the English March?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" text,
"transcription" text,
"sanskrit_word" text,
"zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the zodiac sign for the English March?`:
```sql
|
SELECT "abbr" FROM "months" WHERE "zodiac_sign"='capricorn'; |
## Task
Generate a SQL query to answer the following question:
`What is the abbreviation for the sign of Capricorn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" text,
"transcription" text,
"sanskrit_word" text,
"zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the abbreviation for the sign of Capricorn?`:
```sql
|
SELECT "transcription" FROM "months" WHERE "english_name"='march'; |
## Task
Generate a SQL query to answer the following question:
`What is the transcription for the English March?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "months" (
"english_name" text,
"thai_name" text,
"abbr" text,
"transcription" text,
"sanskrit_word" text,
"zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transcription for the English March?`:
```sql
|
SELECT "date" FROM "singles_5_6" WHERE "edition"='1988 world group i' AND "result"='7–6 (7–5) , 6–3'; |
## Task
Generate a SQL query to answer the following question:
`What date was the 1988 world group i edition with a result of 7–6 (7–5) , 6–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_6" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the 1988 world group i edition with a result of 7–6 (7–5) , 6–3?`:
```sql
|
SELECT "opponent" FROM "singles_5_6" WHERE "date"='april 24, 1999'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on april 24, 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_6" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on april 24, 1999?`:
```sql
|
SELECT "result" FROM "singles_5_6" WHERE "surface"='clay' AND "date"='july 17, 1992'; |
## Task
Generate a SQL query to answer the following question:
`What's the result for the clay surface edition on july 17, 1992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_5_6" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the result for the clay surface edition on july 17, 1992?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.