output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "1st_leg" FROM "preliminary_round" WHERE "2nd_leg"='0-4';
## Task Generate a SQL query to answer the following question: `What is the first leg score when the second leg score is 0-4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_le...
SELECT "status" FROM "newly_named_birds" WHERE "name"='anas cheuen';
## Task Generate a SQL query to answer the following question: `What is the Status with a Name that is anas cheuen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "unit" text, ...
SELECT "unit" FROM "newly_named_birds" WHERE "name"='anas cheuen';
## Task Generate a SQL query to answer the following question: `What is the Unit with a Name that is anas cheuen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "unit" text, "l...
SELECT "opponent" FROM "schedule" WHERE "score"='31-6';
## Task Generate a SQL query to answer the following question: `What team was the Opponent when the Score was 31-6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record...
SELECT "score" FROM "schedule" WHERE "record"='9-3-0';
## Task Generate a SQL query to answer the following question: `What is the Score when the record was 9-3-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text,...
SELECT "record" FROM "schedule" WHERE "attendance">'54,761' AND "result"='loss';
## Task Generate a SQL query to answer the following question: `What is the Record with an attendance of more than 54,761, and a Result of loss?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" te...
SELECT "away_team" FROM "third_round_proper" WHERE "home_team"='coventry city';
## Task Generate a SQL query to answer the following question: `What is the away team where the home team is Coventry City?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "aw...
SELECT "score" FROM "third_round_proper" WHERE "away_team"='exeter city';
## Task Generate a SQL query to answer the following question: `What is the score where the away team is Exeter City?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_tea...
SELECT "tie_no" FROM "third_round_proper" WHERE "away_team"='walsall';
## Task Generate a SQL query to answer the following question: `How many ties does Walsall have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" tex...
SELECT "away_team" FROM "third_round_proper" WHERE "home_team"='bolton wanderers';
## Task Generate a SQL query to answer the following question: `Where Bolton Wanderers is the home team, who is the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, ...
SELECT "tie_no" FROM "third_round_proper" WHERE "attendance"='11,997';
## Task Generate a SQL query to answer the following question: `How many ties are there where attendance is 11,997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team"...
SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='bradford city';
## Task Generate a SQL query to answer the following question: `Where the away team is Bradford City, who is the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "aw...
SELECT "school_club_team" FROM "t" WHERE "position"='guard/forward';
## Task Generate a SQL query to answer the following question: `For which school/club team did the player in the position of Guard/Forward play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "t" ( "name" text, "position" text, "number" real, "...
SELECT "acquisition_via" FROM "t" WHERE "position"='center';
## Task Generate a SQL query to answer the following question: `How was the player in the position of Center acquired?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "t" ( "name" text, "position" text, "number" real, "school_club_team" text, ...
SELECT "season" FROM "t" WHERE "number">15 AND "name"='omar thomas';
## Task Generate a SQL query to answer the following question: `In what season did Omar Thomas play, with a jersey number larger than 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "t" ( "name" text, "position" text, "number" real, "school_...
SELECT COUNT("number") FROM "t" WHERE "school_club_team"='de la salle';
## Task Generate a SQL query to answer the following question: `How many total players came from the school/club team of De La Salle?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "t" ( "name" text, "position" text, "number" real, "school_club...
SELECT "name" FROM "t" WHERE "position"='guard/forward';
## Task Generate a SQL query to answer the following question: `Which player is in the position of Guard/Forward?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "t" ( "name" text, "position" text, "number" real, "school_club_team" text, "seas...
SELECT MAX("wins") FROM "summary" WHERE "top_5">0 AND "events"<4;
## Task Generate a SQL query to answer the following question: `What is the most wins associated with under 4 events with 0 top-5s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10...
SELECT AVG("events") FROM "summary" WHERE "top_10"=1 AND "wins">0 AND "cuts_made"<4;
## Task Generate a SQL query to answer the following question: `What is the average number of events having 1 top-10, fewer than 4 cuts made, and 0 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "...
SELECT AVG("wins") FROM "summary" WHERE "events">28;
## Task Generate a SQL query to answer the following question: `What is the average number of wins for events larger than 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real...
SELECT SUM("top_25") FROM "summary" WHERE "top_5">1;
## Task Generate a SQL query to answer the following question: `What is the sum of top-25s for events with more than 1 top-5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real...
SELECT "producer" FROM "2003" WHERE "title"='city sharks';
## Task Generate a SQL query to answer the following question: `Who is the producer of city sharks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2003" ( "date" text, "title" text, "director" text, "producer" text, "production_cost" text, ...
SELECT "title" FROM "2003" WHERE "producer"='2003';
## Task Generate a SQL query to answer the following question: `What is the title of the film when the producer was 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2003" ( "date" text, "title" text, "director" text, "producer" text, "pr...
SELECT "director" FROM "2003" WHERE "title"='2003';
## Task Generate a SQL query to answer the following question: `Who is the director when the title is 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2003" ( "date" text, "title" text, "director" text, "producer" text, "production_cost"...
SELECT "production_cost" FROM "2003" WHERE "producer"='raintree pictures';
## Task Generate a SQL query to answer the following question: `What is the production cost when the producer is raintree pictures?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2003" ( "date" text, "title" text, "director" text, "producer" t...
SELECT MIN("attendance") FROM "schedule" WHERE "week"=15;
## Task Generate a SQL query to answer the following question: `What was the lowest attendance at a week 15 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendanc...
SELECT "score" FROM "schedule" WHERE "record"='38-18';
## Task Generate a SQL query to answer the following question: `What is the Score for the game with a record of 38-18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "score" text, "l...
SELECT "opponent" FROM "schedule" WHERE "score"='8-2';
## Task Generate a SQL query to answer the following question: `What team was the opponent when the score was 8-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "score" text, "loss"...
SELECT "location" FROM "schedule" WHERE "opponent"='vs. ole miss' AND "loss"='mckean (4-1)';
## Task Generate a SQL query to answer the following question: `What is the Location when the opponent shows vs. ole miss, and a Loss of mckean (4-1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "loca...
SELECT "opponent" FROM "schedule" WHERE "record"='39-19';
## Task Generate a SQL query to answer the following question: `What is the name of the Opponent when there is a Record of 39-19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "score"...
SELECT "record" FROM "schedule" WHERE "date"='may 24' AND "loss"='hayes (2-1)';
## Task Generate a SQL query to answer the following question: `What is the Record on may 24, with a Loss of hayes (2-1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "score" text, ...
SELECT "location" FROM "schedule" WHERE "opponent"='vs. #23 south carolina';
## Task Generate a SQL query to answer the following question: `What is the Location when the Opponent shows vs. #23 south carolina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "sco...
SELECT SUM("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "birthdate"='june 2, 1983';
## Task Generate a SQL query to answer the following question: `What is that if the weight for the play born on June 2, 1983?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" ...
SELECT MAX("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "position"='f' AND "jersey_num"=12;
## Task Generate a SQL query to answer the following question: `What was the highest weight in kg for F Position, Jersey #12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" ...
SELECT "nhl_rights_if_any" FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='downers grove, illinois';
## Task Generate a SQL query to answer the following question: `Which player is the NHL right, who was born in Downers Grove, Illinois?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "je...
SELECT "coding" FROM "sftpa2_m_rna_transcript_variants" WHERE "variant_id"='abd''1a 3';
## Task Generate a SQL query to answer the following question: `Which coding's variant id is abd'1a 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sftpa2_m_rna_transcript_variants" ( "variant_id" text, "5_utr_splice" text, "coding" text, "3...
SELECT "5_utr_splice" FROM "sftpa2_m_rna_transcript_variants" WHERE "coding"='1a 2' AND "variant_id"='abd''1a 2';
## Task Generate a SQL query to answer the following question: `Which 5'utr splice's coding is 1a 2, when the Variant id is abd'1a 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sftpa2_m_rna_transcript_variants" ( "variant_id" text, "5_utr_spli...
SELECT "variant_id" FROM "sftpa2_m_rna_transcript_variants" WHERE "coding"='1a 5' AND "5_utr_splice"='abd''';
## Task Generate a SQL query to answer the following question: `Which variant id's coding is 1a 5 when the 5'utr splice is abd'?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sftpa2_m_rna_transcript_variants" ( "variant_id" text, "5_utr_splice" t...
SELECT "gen_bank_id" FROM "sftpa2_m_rna_transcript_variants" WHERE "variant_id"='abd1a';
## Task Generate a SQL query to answer the following question: `Which genbank id's variant is abd1a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sftpa2_m_rna_transcript_variants" ( "variant_id" text, "5_utr_splice" text, "coding" text, "3_u...
SELECT "coding" FROM "sftpa2_m_rna_transcript_variants" WHERE "3_utr_sequence"='1a 0' AND "5_utr_splice"='abd';
## Task Generate a SQL query to answer the following question: `Which coding entry has a 3'utr sequence of 1a 0 and a 5'utr splice that is abd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sftpa2_m_rna_transcript_variants" ( "variant_id" text, "...
SELECT "gen_bank_id" FROM "sftpa2_m_rna_transcript_variants" WHERE "5_utr_splice"='abd' AND "variant_id"='abd1a 3';
## Task Generate a SQL query to answer the following question: `Which genbank id has a 5'utr splice of abd and a variant id that is abd1a 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sftpa2_m_rna_transcript_variants" ( "variant_id" text, "5_u...
SELECT "years_in_orlando" FROM "g" WHERE "school_club_team"='clemson';
## Task Generate a SQL query to answer the following question: `What year did Orlando have a School/Club team in Clemson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "nationality" text, "position" text, "years_in_orlando...
SELECT "years_in_orlando" FROM "g" WHERE "nationality"='united states' AND "school_club_team"='clemson';
## Task Generate a SQL query to answer the following question: `What years did the player in Orlando play that is from the United States, and is part of the school/club team Clemson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text,...
SELECT "player" FROM "g" WHERE "school_club_team"='georgia';
## Task Generate a SQL query to answer the following question: `Who is the player for the School/Club team in Georgia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "nationality" text, "position" text, "years_in_orlando" t...
SELECT "nationality" FROM "g" WHERE "player"='pat garrity';
## Task Generate a SQL query to answer the following question: `What was the nationality of the player Pat Garrity?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text...
SELECT "nationality" FROM "g" WHERE "school_club_team"='louisville';
## Task Generate a SQL query to answer the following question: `What is the nationality of the School/Club team of Louisville?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "nationality" text, "position" text, "years_in_or...
SELECT COUNT("feature") FROM "wins" WHERE "wins"=6 AND "driver"='adam carroll' AND "starts">32;
## Task Generate a SQL query to answer the following question: `How many features did Adam Carroll win 6 times when the start was larger than 32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins" ( "driver" text, "wins" real, "starts" real, ...
SELECT MIN("feature") FROM "wins" WHERE "wins"=2 AND "sprint"=2;
## Task Generate a SQL query to answer the following question: `What is the lowest feature with 2 wins and 2 sprints?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins" ( "driver" text, "wins" real, "starts" real, "sprint" real, "feature" ...
SELECT AVG("sprint") FROM "wins" WHERE "wins"=10 AND "feature"<5;
## Task Generate a SQL query to answer the following question: `How many sprints on average had 10 wins and less than 5 features?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins" ( "driver" text, "wins" real, "starts" real, "sprint" real, ...
SELECT "country" FROM "final" WHERE "lane">6 AND "mark"='6.63';
## Task Generate a SQL query to answer the following question: `Which country has a lane greater than 6 and a mark of 6.63?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react...
SELECT MIN("lane") FROM "final" WHERE "country"='nigeria' AND "react"<0.133;
## Task Generate a SQL query to answer the following question: `What is the lowest lane for Nigeria, with a react less than 0.133?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, ...
SELECT "mark" FROM "final" WHERE "name"='kim collins';
## Task Generate a SQL query to answer the following question: `What is the mark for Kim Collins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real ); ### SQL Given th...
SELECT "nation" FROM "medal_table" WHERE "bronze"=1 AND "total"=3 AND "silver"=1;
## Task Generate a SQL query to answer the following question: `Which country had 1 Bronze, 1 Silver, with a total of 3 medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" rea...
SELECT "nation" FROM "medal_table" WHERE "silver">2 AND "gold"<4;
## Task Generate a SQL query to answer the following question: `Which country had more than 2 silvers and less than 4 golds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, ...
SELECT AVG("bronze") FROM "medal_table" WHERE "total"=1 AND "silver">0;
## Task Generate a SQL query to answer the following question: `What's the average bronze with a total number of medals being 1, with more than 0 silvers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, ...
SELECT AVG("races") FROM "career_summary" WHERE "final_placing"='15th' AND "season"='2005';
## Task Generate a SQL query to answer the following question: `In the 2005 season, how many races did the 15th place team complete?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text,...
SELECT "team_name" FROM "career_summary" WHERE "races"=10;
## Task Generate a SQL query to answer the following question: `Which team completed 10 races?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wi...
SELECT "pba_team" FROM "round_1" WHERE "pick"=4;
## Task Generate a SQL query to answer the following question: `What is the PBA team with a Pick that is 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "col...
SELECT "player" FROM "round_1" WHERE "pick"=6;
## Task Generate a SQL query to answer the following question: `What is the Player with a Pick that is 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "colle...
SELECT COUNT("total") FROM "medals_table" WHERE "gold"=1 AND "rank"<2;
## Task Generate a SQL query to answer the following question: `How many totals have 1 gold and a rank smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "br...
SELECT SUM("gold") FROM "medals_table" WHERE "nation"='south korea';
## Task Generate a SQL query to answer the following question: `How much gold did South Korea get?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total...
SELECT MAX("slm_number") FROM "united_kingdom" WHERE "built">1895;
## Task Generate a SQL query to answer the following question: `What locomotive built after 1895 has the highest SLM number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_kingdom" ( "built" real, "number" real, "type" text, "slm_number...
SELECT "type" FROM "united_kingdom" WHERE "built"=1923;
## Task Generate a SQL query to answer the following question: `Which type of locomotive was built in 1923?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_kingdom" ( "built" real, "number" real, "type" text, "slm_number" real, "wheel_...
SELECT MIN("number") FROM "united_kingdom" WHERE "slm_number"<924;
## Task Generate a SQL query to answer the following question: `What is the first locomotive that has a SLM number lower than 924?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_kingdom" ( "built" real, "number" real, "type" text, "slm_...
SELECT MIN("place") FROM "1972_isle_of_man_lightweight_tt_250cc_fi" WHERE "country"='united kingdom' AND "time"='1:30.51.2';
## Task Generate a SQL query to answer the following question: `When the United Kingdom had a time of 1:30.51.2, what was the lowest that they ranked?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_lightweight_tt_250cc_fi" ( "place"...
SELECT "country" FROM "1972_isle_of_man_lightweight_tt_250cc_fi" WHERE "speed"='98.09mph';
## Task Generate a SQL query to answer the following question: `What County scored with a speed of 98.09mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_lightweight_tt_250cc_fi" ( "place" real, "rider" text, "country" text, ...
SELECT "set_4" FROM "results_pool_e" WHERE "date"='jun 27' AND "set_3"='17-25';
## Task Generate a SQL query to answer the following question: `What is Set 4, when Date is Jun 27, and when Set 3 is 17-25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_e" ( "date" text, "score" text, "set_1" text, "set_2" text...
SELECT "score" FROM "results_pool_e" WHERE "set_3"='17-25';
## Task Generate a SQL query to answer the following question: `What is Score, when Set 3 is 17-25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_e" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_...
SELECT "set_5" FROM "results_pool_e" WHERE "date"='jun 26' AND "set_2"='25-22';
## Task Generate a SQL query to answer the following question: `What is Set 5, when Date is Jun 26, and when Set 2 is 25-22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_e" ( "date" text, "score" text, "set_1" text, "set_2" text...
SELECT "set_1" FROM "results_pool_e" WHERE "set_3"='22-25';
## Task Generate a SQL query to answer the following question: `What is Set 1, when Set 3 is 22-25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_e" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_...
SELECT "set_1" FROM "results_pool_e" WHERE "date"='jun 26' AND "set_4"='26-24';
## Task Generate a SQL query to answer the following question: `What is Set 1, when Date is Jun 26, and when Set 4 is 26-24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_e" ( "date" text, "score" text, "set_1" text, "set_2" text...
SELECT "set_4" FROM "results_pool_e" WHERE "set_5"='na' AND "set_3"='19-25';
## Task Generate a SQL query to answer the following question: `What is Set 4, when Set 5 is NA, and when Set 3 is 19-25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_e" ( "date" text, "score" text, "set_1" text, "set_2" text, ...
SELECT "team" FROM "winners" WHERE "location"='buenos aires , argentina';
## Task Generate a SQL query to answer the following question: `What is the Team when the match was in buenos aires , argentina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "country" text, "team" text, "individual" t...
SELECT "location" FROM "winners" WHERE "team"='seve ballesteros & manuel piñero';
## Task Generate a SQL query to answer the following question: `What is the Location when the team was seve ballesteros & manuel piñero?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "country" text, "team" text, "indiv...
SELECT "location" FROM "winners" WHERE "individual"='josé maria cañizares';
## Task Generate a SQL query to answer the following question: `What is the Location when the individual was josé maria cañizares?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "country" text, "team" text, "individual"...
SELECT MAX("year") FROM "winners" WHERE "team"='seve ballesteros & manuel piñero';
## Task Generate a SQL query to answer the following question: `What is the highest Year when the team was seve ballesteros & manuel piñero?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "country" text, "team" text, "i...
SELECT COUNT("acres") FROM "closed_landfills" WHERE "landfill"='sai tso wan' AND "opened"<1978;
## Task Generate a SQL query to answer the following question: `What is the total number of acres at Sai Tso Wan, opening before 1978?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "closed_landfills" ( "landfill" text, "location" text, "acres" r...
SELECT SUM("rank") FROM "list_of_top_association_football_goal_sc" WHERE "goals"<76 AND "matches">270;
## Task Generate a SQL query to answer the following question: `Which Rank has a Goals smaller than 76, and a Matches larger than 270?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" t...
SELECT AVG("matches") FROM "list_of_top_association_football_goal_sc" WHERE "rank"<5 AND "years"='1995–2003' AND "goals"<104;
## Task Generate a SQL query to answer the following question: `Which Matches have a Rank smaller than 5, a Years of 1995–2003, and a Goals smaller than 104?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ( ...
SELECT MAX("goals") FROM "list_of_top_association_football_goal_sc" WHERE "name"='lee dong-gook';
## Task Generate a SQL query to answer the following question: `Which Goals have a Name of lee dong-gook?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "match...
SELECT AVG("rank") FROM "list_of_top_association_football_goal_sc" WHERE "years"='1998–present';
## Task Generate a SQL query to answer the following question: `Which Rank has a Years of 1998–present?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches...
SELECT COUNT("matches") FROM "list_of_top_association_football_goal_sc" WHERE "rank"=2;
## Task Generate a SQL query to answer the following question: `Which Matches have a Rank of 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, ...
SELECT "position" FROM "achievements" WHERE "competition"='world championships' AND "venue"='tokyo, japan';
## Task Generate a SQL query to answer the following question: `What Position was achieved in the World Championships Competition in Tokyo, Japan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "v...
SELECT "competition" FROM "achievements" WHERE "position"='1st' AND "notes"='57.03';
## Task Generate a SQL query to answer the following question: `Which Competition was 1st Position with 57.03 in Notes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" te...
SELECT MIN("year") FROM "achievements" WHERE "event"='400m h' AND "notes"='54.86';
## Task Generate a SQL query to answer the following question: `What is the earliest Year for 400m h Event with 54.86 in Notes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "posi...
SELECT COUNT("appearances") FROM "top_goal_scorers" WHERE "team"='chaux-de-fonds' AND "place">8;
## Task Generate a SQL query to answer the following question: `What is the total number of appearances for players from Chaux-de-Fonds with places over 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goal_scorers" ( "place" real, "scorer" t...
SELECT MAX("week") FROM "schedule" WHERE "date"='november 9, 1997';
## Task Generate a SQL query to answer the following question: `What is the highest week of the game on November 9, 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "r...
SELECT "proto_austronesian" FROM "numerals" WHERE "proto_oceanic"='*lima';
## Task Generate a SQL query to answer the following question: `Which Proto-Austronesian has a Proto-Oceanic of *lima?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numerals" ( "number" text, "proto_austronesian" text, "proto_malayo_polynesian"...
SELECT "proto_oceanic" FROM "numerals" WHERE "proto_polynesian"='*lima';
## Task Generate a SQL query to answer the following question: `Which Proto-Oceanic has a Proto-Polynesian of *lima?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numerals" ( "number" text, "proto_austronesian" text, "proto_malayo_polynesian" t...
SELECT "number" FROM "numerals" WHERE "proto_polynesian"='*taha';
## Task Generate a SQL query to answer the following question: `Which Number has a Proto-Polynesian of *taha?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numerals" ( "number" text, "proto_austronesian" text, "proto_malayo_polynesian" text, ...
SELECT "proto_polynesian" FROM "numerals" WHERE "number"='five';
## Task Generate a SQL query to answer the following question: `WHich Proto-Polynesian has a Number of five?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numerals" ( "number" text, "proto_austronesian" text, "proto_malayo_polynesian" text, "...
SELECT "proto_polynesian" FROM "numerals" WHERE "proto_malayo_polynesian"='*telu';
## Task Generate a SQL query to answer the following question: `Which Proto-Polynesian has a Proto-Malayo-Polynesian of *telu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numerals" ( "number" text, "proto_austronesian" text, "proto_malayo_pol...
SELECT "proto_oceanic" FROM "numerals" WHERE "proto_polynesian"='*lima';
## Task Generate a SQL query to answer the following question: `Which Proto-Oceanic has a Proto-Polynesian of *lima?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numerals" ( "number" text, "proto_austronesian" text, "proto_malayo_polynesian" ...
SELECT COUNT("2009") FROM "number_of_participants_per_year_and_coun" WHERE "1999"<1 AND "2006">0 AND "1997"<0;
## Task Generate a SQL query to answer the following question: `How many countries in 2009 have fewer than 1 in 1999, more than 0 in 2006 and none in 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "number_of_participants_per_year_and_coun" ( "c...
SELECT MAX("2006") FROM "number_of_participants_per_year_and_coun" WHERE "2002"<0;
## Task Generate a SQL query to answer the following question: `How much is the highest number in 2006 with fewer than 0 in 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "number_of_participants_per_year_and_coun" ( "country" text, "1997" rea...
SELECT SUM("2003") FROM "number_of_participants_per_year_and_coun" WHERE "2001"=0 AND "2009">0 AND "1999"<0;
## Task Generate a SQL query to answer the following question: `How many are there in 2003 that have 0 in 2001, more than 0 in 2009 and fewer than 0 in 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "number_of_participants_per_year_and_coun" ( ...
SELECT "country" FROM "number_of_participants_per_year_and_coun" WHERE "2012">0 AND "2009">0 AND "2008"=0 AND "2004">0;
## Task Generate a SQL query to answer the following question: `Which country has more than 0 in 2012 and 2009, 0 in 2008 and more than 0 in 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "number_of_participants_per_year_and_coun" ( "country" t...
SELECT "pct_gdp" FROM "recent_government_budget_balances" WHERE "expenditure">50.9 AND "year">2009 AND "income"=39.3;
## Task Generate a SQL query to answer the following question: `Which % GDP has an Expenditure larger than 50.9, and a Year larger than 2009, and an Income of 39.3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_government_budget_balances" ( ...
SELECT SUM("year") FROM "recent_government_budget_balances" WHERE "expenditure"<41.3 AND "pct_gdp"='x' AND "income">34.4;
## Task Generate a SQL query to answer the following question: `Which Year has an Expenditure smaller than 41.3, and a % GDP of x, and an Income larger than 34.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_government_budget_balances" ( "y...
SELECT "surplus_deficit" FROM "recent_government_budget_balances" WHERE "expenditure">45.8 AND "year"<2011 AND "pct_gdp"='(0.9%)';
## Task Generate a SQL query to answer the following question: `Which Surplus(Deficit) has an Expenditure larger than 45.8, and a Year smaller than 2011, and a % GDP of (0.9%)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_government_budget_ba...