output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "date_of_appointment"='29 December 2008'; |
## Task
Generate a SQL query to answer the following question:
`Name the date of vacancy for 29 december 2008 being date of appointment`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date of vacancy for 29 december 2008 being date of appointment`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_1854728_2" WHERE "production_code"='1008/1009'; |
## Task
Generate a SQL query to answer the following question:
`When 1008/1009 is the production code how many directors are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1854728_2" (
"no_in_series" text,
"title" text,
"directed_by" text,
"written_by" text,
"air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1008/1009 is the production code how many directors are there?`:
```sql
|
SELECT "directed_by" FROM "table1_1854728_2" WHERE "written_by"='Arthur Heinemann'; |
## Task
Generate a SQL query to answer the following question:
`When arthur heinemann is the writer who is the director?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1854728_2" (
"no_in_series" text,
"title" text,
"directed_by" text,
"written_by" text,
"air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `When arthur heinemann is the writer who is the director?`:
```sql
|
SELECT "running_with_in_team" FROM "table1_1855841_1" WHERE "candidate"='Elizabeth Falco'; |
## Task
Generate a SQL query to answer the following question:
`Name the running with for elizabeth falco`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1855841_1" (
"candidate" text,
"office_running_for" text,
"running_with_in_team" text,
"won_or_lost" text,
"votes_given" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the running with for elizabeth falco`:
```sql
|
SELECT "office_running_for" FROM "table1_1855841_1" WHERE "candidate"='Carol Marsh'; |
## Task
Generate a SQL query to answer the following question:
`Name the officing running for for carol marsh`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1855841_1" (
"candidate" text,
"office_running_for" text,
"running_with_in_team" text,
"won_or_lost" text,
"votes_given" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the officing running for for carol marsh`:
```sql
|
SELECT "office_running_for" FROM "table1_1855841_1" WHERE "candidate"='Anthony Mussara'; |
## Task
Generate a SQL query to answer the following question:
`Name the office running for for anthony mussara`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1855841_1" (
"candidate" text,
"office_running_for" text,
"running_with_in_team" text,
"won_or_lost" text,
"votes_given" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the office running for for anthony mussara`:
```sql
|
SELECT "votes_given" FROM "table1_1855841_1" WHERE "running_with_in_team"='Michael Russo, Genevy Dimitrion , Manny Ortega'; |
## Task
Generate a SQL query to answer the following question:
`Name the votes given for michael russo, genevy dimitrion , manny ortega`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1855841_1" (
"candidate" text,
"office_running_for" text,
"running_with_in_team" text,
"won_or_lost" text,
"votes_given" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the votes given for michael russo, genevy dimitrion , manny ortega`:
```sql
|
SELECT "loa_metres" FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='2:12:36:23'; |
## Task
Generate a SQL query to answer the following question:
`What was the loa when the corrected time was 2:12:36:23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loa when the corrected time was 2:12:36:23?`:
```sql
|
SELECT "position" FROM "handicap_results_top_10" WHERE "sail_number"='6606'; |
## Task
Generate a SQL query to answer the following question:
`Qhat was the position of sail 6606?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Qhat was the position of sail 6606?`:
```sql
|
SELECT "yacht" FROM "handicap_results_top_10" WHERE "sail_number"='AUS70'; |
## Task
Generate a SQL query to answer the following question:
`On what yacht was the sail number aus70?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what yacht was the sail number aus70?`:
```sql
|
SELECT "corrected_time_d_hh_mm_ss" FROM "handicap_results_top_10" WHERE "sail_number"='AUS70'; |
## Task
Generate a SQL query to answer the following question:
`What was the corrected time of sail number aus70?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the corrected time of sail number aus70?`:
```sql
|
SELECT "skipper" FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='2:18:31:49'; |
## Task
Generate a SQL query to answer the following question:
`Who was the skipper for the vessel with a corrected time of 2:18:31:49?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the skipper for the vessel with a corrected time of 2:18:31:49?`:
```sql
|
SELECT "skipper" FROM "handicap_results_top_10" WHERE "yacht_type"='Nelson Marek 43'; |
## Task
Generate a SQL query to answer the following question:
`Who was the skipper on a Nelson Marek 43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the skipper on a Nelson Marek 43?`:
```sql
|
SELECT COUNT("rank") FROM "best_selling_video_games_of_the_1990s_sa" WHERE "release_date"='21 October 1992'; |
## Task
Generate a SQL query to answer the following question:
`How many titles were released on 21 October 1992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_selling_video_games_of_the_1990s_sa" (
"rank" real,
"title" text,
"release_date" text,
"franchise" text,
"developer_s" text,
"platform" text,
"units_sold_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many titles were released on 21 October 1992?`:
```sql
|
SELECT MIN("rank") FROM "best_selling_video_games_of_the_1990s_sa" WHERE "title"='Super Mario Land 2: 6 Golden Coins'; |
## Task
Generate a SQL query to answer the following question:
`What rank is Super Mario Land 2: 6 Golden Coins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_selling_video_games_of_the_1990s_sa" (
"rank" real,
"title" text,
"release_date" text,
"franchise" text,
"developer_s" text,
"platform" text,
"units_sold_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is Super Mario Land 2: 6 Golden Coins?`:
```sql
|
SELECT "platform" FROM "best_selling_video_games_of_the_1990s_sa" WHERE "units_sold_in_millions"='11.18'; |
## Task
Generate a SQL query to answer the following question:
`What platform sold 11.18 million units?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_selling_video_games_of_the_1990s_sa" (
"rank" real,
"title" text,
"release_date" text,
"franchise" text,
"developer_s" text,
"platform" text,
"units_sold_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What platform sold 11.18 million units?`:
```sql
|
SELECT "release_date" FROM "best_selling_video_games_of_the_1990s_sa" WHERE "units_sold_in_millions"='9.87'; |
## Task
Generate a SQL query to answer the following question:
`What day did the platform sell 9.87 million units?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_selling_video_games_of_the_1990s_sa" (
"rank" real,
"title" text,
"release_date" text,
"franchise" text,
"developer_s" text,
"platform" text,
"units_sold_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did the platform sell 9.87 million units?`:
```sql
|
SELECT COUNT("round") FROM "team_distribution" WHERE "new_entries_this_round"='65'; |
## Task
Generate a SQL query to answer the following question:
`If new entries this round is 65, what is the round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_distribution" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `If new entries this round is 65, what is the round?`:
```sql
|
SELECT MAX("clubs_remaining") FROM "team_distribution" WHERE "leagues_entering_at_this_round"='Süper Lig'; |
## Task
Generate a SQL query to answer the following question:
`If leagues entering this round is Süper Lig, what is the maximum amount of clubs remaining?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_distribution" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `If leagues entering this round is Süper Lig, what is the maximum amount of clubs remaining?`:
```sql
|
SELECT "round" FROM "team_distribution" WHERE "winners_from_previous_round"='8'; |
## Task
Generate a SQL query to answer the following question:
`If the winners from the previous round is 8, what is the round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_distribution" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the winners from the previous round is 8, what is the round?`:
```sql
|
SELECT "new_entries_this_round" FROM "team_distribution" WHERE "round"='Semi-finals'; |
## Task
Generate a SQL query to answer the following question:
`If the round is the semi-finals, what are the new entries this round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_distribution" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the round is the semi-finals, what are the new entries this round?`:
```sql
|
SELECT MAX("losses") FROM "torneo_clausura" WHERE "team"='Atl. Colegiales'; |
## Task
Generate a SQL query to answer the following question:
`How many losses for the team atl. colegiales?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses for the team atl. colegiales?`:
```sql
|
SELECT MIN("points") FROM "torneo_clausura" WHERE "scored"=14; |
## Task
Generate a SQL query to answer the following question:
`How many points when the score is 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points when the score is 14?`:
```sql
|
SELECT MAX("draws") FROM "torneo_clausura" WHERE "scored"=13; |
## Task
Generate a SQL query to answer the following question:
`How many draws are there when the score is 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws are there when the score is 13?`:
```sql
|
SELECT MAX("wins") FROM "torneo_clausura" WHERE "conceded"=18; |
## Task
Generate a SQL query to answer the following question:
`How many wins have conceded as 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins have conceded as 18?`:
```sql
|
SELECT COUNT("draws") FROM "torneo_apertura" WHERE "scored"=25; |
## Task
Generate a SQL query to answer the following question:
`How many draws occurred when 25 points were scored? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws occurred when 25 points were scored? `:
```sql
|
SELECT MIN("points") FROM "torneo_apertura" WHERE "team"='San Lorenzo'; |
## Task
Generate a SQL query to answer the following question:
`What is the least number of poins for San Lorenzo? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least number of poins for San Lorenzo? `:
```sql
|
SELECT "draws" FROM "torneo_apertura" WHERE "team"='12 de Octubre'; |
## Task
Generate a SQL query to answer the following question:
`How many draws does 12 de Octubre have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws does 12 de Octubre have? `:
```sql
|
SELECT MAX("inaba") FROM "table1_18595004_7"; |
## Task
Generate a SQL query to answer the following question:
`What is Inaba's maximum score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18595004_7" (
"week_num" real,
"dance_song" text,
"inaba" real,
"goodman" real,
"tonioli" real,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Inaba's maximum score?`:
```sql
|
SELECT COUNT("tonioli") FROM "table1_18595004_7" WHERE "week_num"=3; |
## Task
Generate a SQL query to answer the following question:
`How many sets of marks does Tonioli get in week 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18595004_7" (
"week_num" real,
"dance_song" text,
"inaba" real,
"goodman" real,
"tonioli" real,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many sets of marks does Tonioli get in week 3?`:
```sql
|
SELECT MIN("age") FROM "candidates" WHERE "hometown"='Columbia, South Carolina'; |
## Task
Generate a SQL query to answer the following question:
`When columbia, south carolina is the hometown what is the lowest age?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When columbia, south carolina is the hometown what is the lowest age?`:
```sql
|
SELECT MIN("age") FROM "candidates" WHERE "hometown"='Austin, Texas'; |
## Task
Generate a SQL query to answer the following question:
`When austin, texas is the hometown what is the lowest age?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When austin, texas is the hometown what is the lowest age?`:
```sql
|
SELECT "result" FROM "candidates" WHERE "candidate"='Stacy Schneider'; |
## Task
Generate a SQL query to answer the following question:
`When stacy schneider is the candidate what are the results?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When stacy schneider is the candidate what are the results?`:
```sql
|
SELECT "township" FROM "o" WHERE "land_sqmi"='35.766'; |
## Task
Generate a SQL query to answer the following question:
`Which township is 35.766 sqmi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which township is 35.766 sqmi?`:
```sql
|
SELECT "county" FROM "o" WHERE "township"='Osborn'; |
## Task
Generate a SQL query to answer the following question:
`What county is the township of Osborn in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What county is the township of Osborn in?`:
```sql
|
SELECT "longitude" FROM "o" WHERE "latitude"='47.985154'; |
## Task
Generate a SQL query to answer the following question:
`What is the longitude with a latitude of 47.985154?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the longitude with a latitude of 47.985154?`:
```sql
|
SELECT "water_sqmi" FROM "o" WHERE "county"='Ramsey' AND "geo_id">3807159460.0; |
## Task
Generate a SQL query to answer the following question:
`How many square miles of water is in Ramsey County with a geo id larger than 3807159460.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many square miles of water is in Ramsey County with a geo id larger than 3807159460.0?`:
```sql
|
SELECT COUNT("latitude") FROM "o" WHERE "water_sqmi"='0.081'; |
## Task
Generate a SQL query to answer the following question:
`how many latitudes have 0.081 (sqmi) of water?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many latitudes have 0.081 (sqmi) of water?`:
```sql
|
SELECT MIN("geo_id") FROM "o"; |
## Task
Generate a SQL query to answer the following question:
`what is the lowest geo id?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest geo id?`:
```sql
|
SELECT MAX("geo_id") FROM "j" WHERE "water_sqmi"='0.771'; |
## Task
Generate a SQL query to answer the following question:
`What is the geo ID for the township with 0.771 square miles of water?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the geo ID for the township with 0.771 square miles of water?`:
```sql
|
SELECT MAX("geo_id") FROM "j" WHERE "county"='Logan'; |
## Task
Generate a SQL query to answer the following question:
`What is the geo id for Logan county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the geo id for Logan county?`:
```sql
|
SELECT "land_sqmi" FROM "j" WHERE "county"='Grand Forks'; |
## Task
Generate a SQL query to answer the following question:
`How big is the land in square miles of Grand Forks county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How big is the land in square miles of Grand Forks county?`:
```sql
|
SELECT MAX("geo_id") FROM "j" WHERE "township"='Joliette'; |
## Task
Generate a SQL query to answer the following question:
`What is the geo id for Joliette?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the geo id for Joliette?`:
```sql
|
SELECT "latitude" FROM "j" WHERE "water_sqmi"='4.243'; |
## Task
Generate a SQL query to answer the following question:
`What was the lattitude for the area with 4.243 square miles of water?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lattitude for the area with 4.243 square miles of water?`:
```sql
|
SELECT "township" FROM "j" WHERE "land_sqmi"='28.597'; |
## Task
Generate a SQL query to answer the following question:
`What township is 28.597 square miles of land?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What township is 28.597 square miles of land?`:
```sql
|
SELECT "township" FROM "l" WHERE "longitude"='-98.741656'; |
## Task
Generate a SQL query to answer the following question:
`Which township has a longitude of -98.741656?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which township has a longitude of -98.741656?`:
```sql
|
SELECT "land_sqmi" FROM "l" WHERE "township"='Lansing'; |
## Task
Generate a SQL query to answer the following question:
`What is the land (sqmi) in lansing township?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the land (sqmi) in lansing township?`:
```sql
|
SELECT MIN("geo_id") FROM "l" WHERE "water_sqmi"='0.457'; |
## Task
Generate a SQL query to answer the following question:
`What is the geo id when water is 0.457?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the geo id when water is 0.457?`:
```sql
|
SELECT MAX("geo_id") FROM "l" WHERE "land_sqmi"='35.999'; |
## Task
Generate a SQL query to answer the following question:
`What is the geo id of the land at 35.999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the geo id of the land at 35.999?`:
```sql
|
SELECT "land_sqmi" FROM "l" WHERE "geo_id"=3801947380; |
## Task
Generate a SQL query to answer the following question:
`What is the land (sqmi) at geo id 3801947380?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the land (sqmi) at geo id 3801947380?`:
```sql
|
SELECT MAX("pop_2010") FROM "m" WHERE "latitude"='48.676125'; |
## Task
Generate a SQL query to answer the following question:
`What is the population associated with latitude 48.676125?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population associated with latitude 48.676125?`:
```sql
|
SELECT COUNT("ansi_code") FROM "m" WHERE "latitude"='48.247662'; |
## Task
Generate a SQL query to answer the following question:
`How many places associated with latitude 48.247662?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many places associated with latitude 48.247662?`:
```sql
|
SELECT "longitude" FROM "m" WHERE "water_sqmi"='0.068'; |
## Task
Generate a SQL query to answer the following question:
`What longitudes associated with a water (sqmi) area of 0.068?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What longitudes associated with a water (sqmi) area of 0.068?`:
```sql
|
SELECT MIN("ansi_code") FROM "m"; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest ansi code?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest ansi code?`:
```sql
|
SELECT "county" FROM "m" WHERE "ansi_code"=1759686; |
## Task
Generate a SQL query to answer the following question:
`What county is associated with ansi code 1759686?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What county is associated with ansi code 1759686?`:
```sql
|
SELECT COUNT("geo_id") FROM "m" WHERE "township"='Malcolm'; |
## Task
Generate a SQL query to answer the following question:
`What is the geo id for malcolm township?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the geo id for malcolm township?`:
```sql
|
SELECT "land_sqmi" FROM "r" WHERE "township"='Reed'; |
## Task
Generate a SQL query to answer the following question:
`What is the land area of Reed Township?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the land area of Reed Township?`:
```sql
|
SELECT "township" FROM "r" WHERE "longitude"='-100.680772'; |
## Task
Generate a SQL query to answer the following question:
`What is the township at longitude -100.680772?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the township at longitude -100.680772?`:
```sql
|
SELECT MIN("ansi_code") FROM "r" WHERE "land_sqmi"='35.737'; |
## Task
Generate a SQL query to answer the following question:
`What is the ANSI code of the township where the area is 35.737 square miles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ANSI code of the township where the area is 35.737 square miles?`:
```sql
|
SELECT MAX("geo_id") FROM "r" WHERE "land_sqmi"='32.532'; |
## Task
Generate a SQL query to answer the following question:
`What is the GEO ID of the township with area of 32.532 square miles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the GEO ID of the township with area of 32.532 square miles?`:
```sql
|
SELECT "township" FROM "r" WHERE "land_sqmi"='34.781'; |
## Task
Generate a SQL query to answer the following question:
`What township is 34.781 square miles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What township is 34.781 square miles?`:
```sql
|
SELECT "longitude" FROM "t" WHERE "township"='Tatman'; |
## Task
Generate a SQL query to answer the following question:
`What longitude is tatman township?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What longitude is tatman township?`:
```sql
|
SELECT "land_sqmi" FROM "t" WHERE "latitude"='47.548602'; |
## Task
Generate a SQL query to answer the following question:
`What is the land area (sqmi) for the township at longtidue 47.548602?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the land area (sqmi) for the township at longtidue 47.548602?`:
```sql
|
SELECT COUNT("ansi_code") FROM "t" WHERE "latitude"='46.415037'; |
## Task
Generate a SQL query to answer the following question:
`How many ansi codes are there for longitude 46.415037?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many ansi codes are there for longitude 46.415037?`:
```sql
|
SELECT "water_sqmi" FROM "t" WHERE "latitude"='48.423224'; |
## Task
Generate a SQL query to answer the following question:
`What is the water area (sqmi) for the township at latitude 48.423224?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the water area (sqmi) for the township at latitude 48.423224?`:
```sql
|
SELECT COUNT("ansi_code") FROM "t" WHERE "latitude"='48.142938'; |
## Task
Generate a SQL query to answer the following question:
`How many ansi codes are there for latitude 48.142938?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many ansi codes are there for latitude 48.142938?`:
```sql
|
SELECT "township" FROM "h" WHERE "county"='Kidder'; |
## Task
Generate a SQL query to answer the following question:
`Name the township for kidder`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "h" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the township for kidder`:
```sql
|
SELECT "latitude" FROM "h" WHERE "geo_id"=3810536900; |
## Task
Generate a SQL query to answer the following question:
`Name the latitude for 3810536900`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "h" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the latitude for 3810536900`:
```sql
|
SELECT "latitude" FROM "h" WHERE "geo_id"=3809935740; |
## Task
Generate a SQL query to answer the following question:
`Name the latitude for 3809935740`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "h" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the latitude for 3809935740`:
```sql
|
SELECT COUNT("county") FROM "h" WHERE "pop_2010"=90; |
## Task
Generate a SQL query to answer the following question:
`Name the number of county for 90 population`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "h" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of county for 90 population`:
```sql
|
SELECT "final_bronze_medal_match" FROM "table1_18602462_21" WHERE "quarterfinals"='Houdet ( FRA ) W 6-2, 6-1'; |
## Task
Generate a SQL query to answer the following question:
`When houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18602462_21" (
"athlete" text,
"class" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `When houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match?`:
```sql
|
SELECT "round_of_32" FROM "table1_18602462_21" WHERE "round_of_16"='Did not advance'; |
## Task
Generate a SQL query to answer the following question:
`When in round of 16 it was did not advance what was it in round of 32?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18602462_21" (
"athlete" text,
"class" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `When in round of 16 it was did not advance what was it in round of 32?`:
```sql
|
SELECT "event" FROM "table1_18602462_21" WHERE "final_bronze_medal_match"='Scheffers ( NED ) L 3-6, 1-6'; |
## Task
Generate a SQL query to answer the following question:
`When scheffers ( ned ) l 3-6, 1-6 is the final/ bronze medal match what was the event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18602462_21" (
"athlete" text,
"class" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `When scheffers ( ned ) l 3-6, 1-6 is the final/ bronze medal match what was the event?`:
```sql
|
SELECT "final_bronze_medal_match" FROM "table1_18602462_21" WHERE "event"='Mixed Quad Singles'; |
## Task
Generate a SQL query to answer the following question:
`When mixed quad singles is the event what is the final/bronze medal match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18602462_21" (
"athlete" text,
"class" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `When mixed quad singles is the event what is the final/bronze medal match?`:
```sql
|
SELECT "quarterfinals" FROM "table1_18602462_21" WHERE "athlete"='Bas van Erp'; |
## Task
Generate a SQL query to answer the following question:
`When bas van erp was the athlete what was the quarterfinals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18602462_21" (
"athlete" text,
"class" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `When bas van erp was the athlete what was the quarterfinals?`:
```sql
|
SELECT "semifinals" FROM "table1_18602462_22" WHERE "athlete"='Dorrie Timmermans-Van Hall'; |
## Task
Generate a SQL query to answer the following question:
`What is the semifinal result for Dorrie Timmermans-Van Hall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18602462_22" (
"athlete" text,
"class" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the semifinal result for Dorrie Timmermans-Van Hall?`:
```sql
|
SELECT "round_of_16" FROM "table1_18602462_22" WHERE "athlete"='Jiske Griffioen Esther Vergeer'; |
## Task
Generate a SQL query to answer the following question:
`What is the round of 16 result for Jiske Griffioen Esther Vergeer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18602462_22" (
"athlete" text,
"class" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round of 16 result for Jiske Griffioen Esther Vergeer?`:
```sql
|
SELECT "round_of_16" FROM "table1_18602462_22" WHERE "semifinals"='Vergeer ( NED ) L 0-6, 1-6'; |
## Task
Generate a SQL query to answer the following question:
`The semifinal score of vergeer ( ned ) l 0-6, 1-6 follows a round of 16 result of what?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18602462_22" (
"athlete" text,
"class" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `The semifinal score of vergeer ( ned ) l 0-6, 1-6 follows a round of 16 result of what?`:
```sql
|
SELECT COUNT("round_of_32") FROM "table1_18602462_22" WHERE "round_of_16"='Polidori ( ITA ) W 6-1, 3-6, 6-3'; |
## Task
Generate a SQL query to answer the following question:
`How many round of 32 results are followed by Polidori ( Ita ) w 6-1, 3-6, 6-3 in the round of 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_18602462_22" (
"athlete" text,
"class" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many round of 32 results are followed by Polidori ( Ita ) w 6-1, 3-6, 6-3 in the round of 16?`:
```sql
|
SELECT MAX("points") FROM "torneo_clausura" WHERE "team"='Libertad'; |
## Task
Generate a SQL query to answer the following question:
`Name the maximum points for libertad`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the maximum points for libertad`:
```sql
|
SELECT MIN("wins") FROM "torneo_clausura" WHERE "losses"=5; |
## Task
Generate a SQL query to answer the following question:
`Name the least wins for 5 losses`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least wins for 5 losses`:
```sql
|
SELECT MAX("draws") FROM "torneo_clausura"; |
## Task
Generate a SQL query to answer the following question:
`Name the most draws`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most draws`:
```sql
|
SELECT MIN("played") FROM "torneo_clausura"; |
## Task
Generate a SQL query to answer the following question:
`Name the least played`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least played`:
```sql
|
SELECT "geographical_regions" FROM "delegates" WHERE "contestant"='Cristina Peña Garzon'; |
## Task
Generate a SQL query to answer the following question:
`When cristina peña garzon is the contestant what is the geographical region?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When cristina peña garzon is the contestant what is the geographical region?`:
```sql
|
SELECT "geographical_regions" FROM "delegates" WHERE "height"='1.79'; |
## Task
Generate a SQL query to answer the following question:
`When 1.79 is the height what is the geographical region?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1.79 is the height what is the geographical region?`:
```sql
|
SELECT COUNT("contestant") FROM "delegates" WHERE "height"='1.67'; |
## Task
Generate a SQL query to answer the following question:
`When 1.67 is the height how many contestants are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1.67 is the height how many contestants are there?`:
```sql
|
SELECT MIN("age") FROM "delegates" WHERE "province_community"='Baoruco'; |
## Task
Generate a SQL query to answer the following question:
`When baoruco is the province, community what is the lowest age?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When baoruco is the province, community what is the lowest age?`:
```sql
|
SELECT "contestant" FROM "delegates" WHERE "height"='1.80' AND "geographical_regions"='El Cibao'; |
## Task
Generate a SQL query to answer the following question:
`When el cibao is the geographical region and the height is 1.80 who is the contestant?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When el cibao is the geographical region and the height is 1.80 who is the contestant?`:
```sql
|
SELECT COUNT("height") FROM "delegates" WHERE "hometown"='Toronto'; |
## Task
Generate a SQL query to answer the following question:
`When toronto is the hometown how many height measurements are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When toronto is the hometown how many height measurements are there?`:
```sql
|
SELECT "3rd_place_team" FROM "international_softball_league_1951_to_19" WHERE "year"=1955; |
## Task
Generate a SQL query to answer the following question:
`What is the 3rd place team for the year of 1955?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_softball_league_1951_to_19" (
"year" real,
"1st_place_team" text,
"2nd_place_team" text,
"3rd_place_team" text,
"4th_place_team" text,
"host_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 3rd place team for the year of 1955?`:
```sql
|
SELECT COUNT("year") FROM "international_softball_league_1951_to_19" WHERE "2nd_place_team"='Merchants, Tampico, IL'; |
## Task
Generate a SQL query to answer the following question:
`How many years was the 2nd place team merchants, tampico, il?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_softball_league_1951_to_19" (
"year" real,
"1st_place_team" text,
"2nd_place_team" text,
"3rd_place_team" text,
"4th_place_team" text,
"host_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was the 2nd place team merchants, tampico, il?`:
```sql
|
SELECT "ruling_planet" FROM "r_i_zodiacal_signs" WHERE "international_alphabet_of_sanskrit_transliteration"='Mithuna'; |
## Task
Generate a SQL query to answer the following question:
`When mithuna is the international alphabet of sanskrit transliteration what is the ruling planet?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `When mithuna is the international alphabet of sanskrit transliteration what is the ruling planet?`:
```sql
|
SELECT "sanskrit_gloss" FROM "r_i_zodiacal_signs" WHERE "western_name"='Sagittarius'; |
## Task
Generate a SQL query to answer the following question:
`When Sagittarius is the wester name what is the sanskrit gloss?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Sagittarius is the wester name what is the sanskrit gloss?`:
```sql
|
SELECT COUNT("quality") FROM "r_i_zodiacal_signs" WHERE "sanskrit_gloss"='scorpion'; |
## Task
Generate a SQL query to answer the following question:
`When scorpion is the sankrit gloss how many qualities are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `When scorpion is the sankrit gloss how many qualities are there?`:
```sql
|
SELECT COUNT("western_name") FROM "r_i_zodiacal_signs" WHERE "sanskrit"='धनुष'; |
## Task
Generate a SQL query to answer the following question:
`When धनुष is the sankrit how many western names are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `When धनुष is the sankrit how many western names are there?`:
```sql
|
SELECT "gloss" FROM "r_i_zodiacal_signs" WHERE "international_alphabet_of_sanskrit_transliteration"='Kumbha'; |
## Task
Generate a SQL query to answer the following question:
`When kumbha is the international alphabet of sanskrit transliteration what is the gloss?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `When kumbha is the international alphabet of sanskrit transliteration what is the gloss?`:
```sql
|
SELECT "gloss" FROM "r_i_zodiacal_signs" WHERE "sanskrit_gloss"='twins'; |
## Task
Generate a SQL query to answer the following question:
`When twins is the sankrit gloss what is the gloss?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `When twins is the sankrit gloss what is the gloss?`:
```sql
|
SELECT "actor_actress" FROM "nominees" WHERE "film_title_used_in_nomination"='Mrs. Miniver'; |
## Task
Generate a SQL query to answer the following question:
`In the film Mrs. Miniver, what is the actresses name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nominees" (
"year_ceremony" text,
"actor_actress" text,
"category" text,
"film_title_used_in_nomination" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the film Mrs. Miniver, what is the actresses name?`:
```sql
|
SELECT "year_ceremony" FROM "nominees" WHERE "actor_actress"='Teresa Wright' AND "category"='Best Supporting Actress'; |
## Task
Generate a SQL query to answer the following question:
`What year was Teresa Wright nominated best supporting actress?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nominees" (
"year_ceremony" text,
"actor_actress" text,
"category" text,
"film_title_used_in_nomination" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Teresa Wright nominated best supporting actress?`:
```sql
|
SELECT "category" FROM "nominees" WHERE "film_title_used_in_nomination"='Working Girl'; |
## Task
Generate a SQL query to answer the following question:
`What category was the movie Working Girl nominated?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nominees" (
"year_ceremony" text,
"actor_actress" text,
"category" text,
"film_title_used_in_nomination" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category was the movie Working Girl nominated?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.