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,
"m... |
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_b... |
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,
... |
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... |
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" ... |
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... |
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,... |
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,... |
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" te... |
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_countr... |
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,
"sta... |
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,
... |
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_count... |
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... |
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"... |
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,
... |
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_dat... |
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,
... |
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_re... |
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_invo... |
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,
"club... |
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"... |
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,
... |
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... |
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,
"l... |
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,
... |
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,
"... |
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" rea... |
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" re... |
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" ... |
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_tea... |
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,
... |
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,
... |
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,
"latit... |
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" tex... |
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... |
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_2... |
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... |
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"... |
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_sq... |
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,
... |
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,
... |
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,
"lat... |
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_sq... |
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"... |
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"... |
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" ... |
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,... |
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" tex... |
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"... |
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,
... |
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... |
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... |
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,
"lati... |
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_s... |
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... |
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,... |
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... |
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,
"... |
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_sqm... |
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,
... |
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,
"l... |
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_sq... |
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,
"wa... |
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_sq... |
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,
"wat... |
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,
"latitud... |
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,
"la... |
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,
"lat... |
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" t... |
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" ... |
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" tex... |
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" tex... |
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"... |
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,
"roun... |
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,
"roun... |
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,
... |
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" te... |
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,
... |
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,
... |
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,
"los... |
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,
... |
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,
... |
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,... |
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,
"he... |
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,
"heig... |
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,... |
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,
"contesta... |
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" ... |
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_... |
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" ... |
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,
... |
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_a... |
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_... |
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_alphab... |
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"... |
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_sa... |
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... |
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... |
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_t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.