output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "country" FROM "list" WHERE "engine_make_capacity"='jawa 350cc';
## Task Generate a SQL query to answer the following question: `What country had the car with the Jawa 350cc engine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "country" text, "automobile_name" text, "manufacturer" text, "engine_ma...
SELECT "country" FROM "list" WHERE "engine_make_capacity"='čz 171cc';
## Task Generate a SQL query to answer the following question: `In what country was the car with the čz 171cc engine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "country" text, "automobile_name" text, "manufacturer" text, "engine_m...
SELECT "automobile_name" FROM "list" WHERE "year"='1956-1958';
## Task Generate a SQL query to answer the following question: `What is the name of the car that was made in the years 1956-1958?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "country" text, "automobile_name" text, "manufacturer" text,...
SELECT "automobile_name" FROM "list" WHERE "manufacturer"='letecke zavody n.p., jinonice';
## Task Generate a SQL query to answer the following question: `What is the name of the car manufactured by Letecke Zavody N.P., Jinonice?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "country" text, "automobile_name" text, "manufactur...
SELECT "manufacturer" FROM "list" WHERE "engine_make_capacity"='jawa 249cc' AND "year"='1956-1963';
## Task Generate a SQL query to answer the following question: `Who manufactured the car with the jawa 249cc engine that was made in the years 1956-1963?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "country" text, "automobile_name" text...
SELECT "set_2" FROM "results_pool_c" WHERE "date"='jun 29';
## Task Generate a SQL query to answer the following question: `What is the Set 2 with a Date that is jun 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_c" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" tex...
SELECT "set_1" FROM "results_pool_c" WHERE "set_2"='25-19';
## Task Generate a SQL query to answer the following question: `What is the Set 1 with a Set 2 that is 25-19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_c" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" tex...
SELECT "set_5" FROM "results_pool_c" WHERE "date"='jun 29';
## Task Generate a SQL query to answer the following question: `What is the Set 5 with a Date that is jun 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_c" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" tex...
SELECT "construction_completed" FROM "superfund_sites" WHERE "listed"='09/21/1984' AND "deleted"='11/04/1999';
## Task Generate a SQL query to answer the following question: `When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" ...
SELECT "partially_deleted" FROM "superfund_sites" WHERE "construction_completed"='–' AND "name"='st. maries creosote';
## Task Generate a SQL query to answer the following question: `What is the partially deleted result for a completed construction of m– in St. Maries Creosote?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superfund_sites" ( "cerclis_id" text, "n...
SELECT "partially_deleted" FROM "superfund_sites" WHERE "name"='bunker hill mining & metallurgical';
## Task Generate a SQL query to answer the following question: `What is the partially deleted result for Bunker Hill Mining & Metallurgical?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "count...
SELECT "partially_deleted" FROM "superfund_sites" WHERE "deleted"='–' AND "county"='valley';
## Task Generate a SQL query to answer the following question: `What is the partially deleted result for a deleted of m– in Valley?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, ...
SELECT SUM("match") FROM "second_league" WHERE "points">22;
## Task Generate a SQL query to answer the following question: `How many matches ended with more than 22 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_league" ( "team" text, "match" real, "points" real, "draw" real, "lost" re...
SELECT "1965" FROM "grand_tour_results_timeline" WHERE "1967"='7';
## Task Generate a SQL query to answer the following question: `What is the value in 1965 when 7 is the value for 1967?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_tour_results_timeline" ( "1965" text, "1966" text, "1967" text, "1968"...
SELECT "1971" FROM "grand_tour_results_timeline" WHERE "1969"='30';
## Task Generate a SQL query to answer the following question: `What is the value in 1971 when 30 is the value for 1969?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_tour_results_timeline" ( "1965" text, "1966" text, "1967" text, "1968...
SELECT "1966" FROM "grand_tour_results_timeline" WHERE "1969"='0';
## Task Generate a SQL query to answer the following question: `What was the value in 1966 with a 0 value in 1969?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_tour_results_timeline" ( "1965" text, "1966" text, "1967" text, "1968" text...
SELECT "name" FROM "squad_changes" WHERE "moving_to"='arminia bielefeld';
## Task Generate a SQL query to answer the following question: `Who was the player moving to Arminia Bielefeld?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer...
SELECT "tournament" FROM "pga_tour_wins_13" WHERE "winning_score"='–9 (69-72-68-70=279)';
## Task Generate a SQL query to answer the following question: `What tournament had a Winning score of –9 (69-72-68-70=279)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text,...
SELECT "winning_score" FROM "pga_tour_wins_13" WHERE "tournament"='greater vancouver open';
## Task Generate a SQL query to answer the following question: `What was the winning score of the Greater Vancouver Open tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_scor...
SELECT "runner_s_up" FROM "pga_tour_wins_13" WHERE "margin_of_victory"='3 strokes' AND "winning_score"='–13 (68-70-66-71=275)';
## Task Generate a SQL query to answer the following question: `Which runner(s)-up had a Winning score of –13 (68-70-66-71=275) and a Margin of victory of 3 strokes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_13" ( "date" text, "...
SELECT "margin_of_victory" FROM "pga_tour_wins_13" WHERE "tournament"='southwest golf classic';
## Task Generate a SQL query to answer the following question: `What was the Margin of victory in the southwest golf classic Tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_...
SELECT "margin_of_victory" FROM "pga_tour_wins_13" WHERE "winning_score"='–9 (69-72-68-70=279)';
## Task Generate a SQL query to answer the following question: `When the Winning score was –9 (69-72-68-70=279), what was the Margin of victory?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "...
SELECT "height" FROM "tallest_buildings_by_state_or_territory" WHERE "floor_count"<25;
## Task Generate a SQL query to answer the following question: `What height has a floor count less than 25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings_by_state_or_territory" ( "state_territory" text, "building" text, "heigh...
SELECT "state_territory" FROM "tallest_buildings_by_state_or_territory" WHERE "height"='121 m';
## Task Generate a SQL query to answer the following question: `What state/territory has 121 m as the height?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings_by_state_or_territory" ( "state_territory" text, "building" text, "hei...
SELECT "state_territory" FROM "tallest_buildings_by_state_or_territory" WHERE "building"='lovett tower';
## Task Generate a SQL query to answer the following question: `What state/territory has lovett tower as the building?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings_by_state_or_territory" ( "state_territory" text, "building" tex...
SELECT "date" FROM "season_schedule" WHERE "opponent"='oakland raiders';
## Task Generate a SQL query to answer the following question: `What was the date of the game against Oakland Raiders?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, ...
SELECT "year" FROM "performance_summary_in_champions_league" WHERE "wins"='2';
## Task Generate a SQL query to answer the following question: `What year has 2 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wins" text, "losses" text, "no_resu...
SELECT "success_rate" FROM "performance_summary_in_champions_league" WHERE "year"='2012';
## Task Generate a SQL query to answer the following question: `What is the success rate for the year 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wins" text, "lo...
SELECT "wins" FROM "performance_summary_in_champions_league" WHERE "matches"='4' AND "success_rate"='25%';
## Task Generate a SQL query to answer the following question: `What was the win for 4 matches with a success rate of 25%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wi...
SELECT "wins" FROM "performance_summary_in_champions_league" WHERE "matches"='6';
## Task Generate a SQL query to answer the following question: `what was the win for the 6 matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wins" text, "losses" te...
SELECT "losses" FROM "performance_summary_in_champions_league" WHERE "matches"='5';
## Task Generate a SQL query to answer the following question: `What is the losses for the 5 matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wins" text, "losses" ...
SELECT "losses" FROM "performance_summary_in_champions_league" WHERE "year"='2012';
## Task Generate a SQL query to answer the following question: `What is the losses for the year 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wins" text, "losses" ...
SELECT AVG("total") FROM "medal_table" WHERE "gold">4;
## Task Generate a SQL query to answer the following question: `What is the average Total with a Gold that is larger than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, ...
SELECT AVG("total") FROM "medal_table" WHERE "bronze">1;
## Task Generate a SQL query to answer the following question: `What is the average Total with a Bronze that is larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real...
SELECT "brazil_scorers" FROM "brazil_national_team" WHERE "competition"='world cup' AND "score"='1-2';
## Task Generate a SQL query to answer the following question: `Who were the Brazil scorers for the World Cup Competition with a 1-2 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_national_team" ( "date" text, "result" text, "score...
SELECT "competition" FROM "brazil_national_team" WHERE "score"='4-3';
## Task Generate a SQL query to answer the following question: `Which competition had a 4-3 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_national_team" ( "date" text, "result" text, "score" text, "brazil_scorers" text, "compe...
SELECT MAX("top_5") FROM "summary" WHERE "events">18 AND "top_25"=23;
## Task Generate a SQL query to answer the following question: `What is the highest Top-5 that has 18 or more events with a Top-25 of 23?` ### 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, "...
SELECT MIN("cuts_made") FROM "summary" WHERE "top_25"<6 AND "wins"<0;
## Task Generate a SQL query to answer the following question: `What is the lowest cuts made that had a Top-25 less than 6 and wins greater than 0?` ### 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"...
SELECT "race_title" FROM "race_calendar" WHERE "winner"='glenn seton' AND "circuit"='sandown international raceway';
## Task Generate a SQL query to answer the following question: `What race did Glenn Seton win on the Sandown International Raceway circuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_...
SELECT "date" FROM "race_calendar" WHERE "race_title"='oran park';
## Task Generate a SQL query to answer the following question: `What date was the race at Oran Park ran?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winn...
SELECT MAX("assists") FROM "assists" WHERE "rank"=2 AND "games"<2;
## Task Generate a SQL query to answer the following question: `What is the largest number of assists for the second rank when there were less than 2 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "assists" ( "rank" real, "name" text, "tea...
SELECT MIN("rank") FROM "assists" WHERE "games">2;
## Task Generate a SQL query to answer the following question: `What is the smallest rank when there are more than 2 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "assists" ( "rank" real, "name" text, "team" text, "games" real, "assis...
SELECT AVG("games") FROM "assists" WHERE "name"='pablo prigioni' AND "assists">14;
## Task Generate a SQL query to answer the following question: `What is the mean number of games for pablo prigioni when there are more than 14 assists?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "assists" ( "rank" real, "name" text, "team" t...
SELECT "region" FROM "list_of_trolleybus_systems_in_russia" WHERE "vehicles_12_09"=57;
## Task Generate a SQL query to answer the following question: `What region has 57 vehicles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_trolleybus_systems_in_russia" ( "region" text, "location" text, "from" text, "depots_12_09" rea...
SELECT "score" FROM "doubles" WHERE "year">1991 AND "category"='iva';
## Task Generate a SQL query to answer the following question: `What was the Score after 1991 in Category IVA?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles" ( "year" real, "category" text, "champions" text, "runners_up" text, "scor...
SELECT "score" FROM "doubles" WHERE "year"=2002;
## Task Generate a SQL query to answer the following question: `What was the Score in 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles" ( "year" real, "category" text, "champions" text, "runners_up" text, "score" text ); ### SQL ...
SELECT "category" FROM "doubles" WHERE "year"<1995;
## Task Generate a SQL query to answer the following question: `What was the Category before 1995?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles" ( "year" real, "category" text, "champions" text, "runners_up" text, "score" text ); #...
SELECT "category" FROM "doubles" WHERE "year">1991 AND "score"='7-5, 6-7, 6-2';
## Task Generate a SQL query to answer the following question: `What was the Category after 1991 with a Score of 7-5, 6-7, 6-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles" ( "year" real, "category" text, "champions" text, "runners_...
SELECT "issue_date_s" FROM "see_also" WHERE "artist"='paul mccartney and michael jackson';
## Task Generate a SQL query to answer the following question: `What was the issue date for the song by Paul Mccartney and Michael Jackson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "wee...
SELECT MIN("seats_a_cs") FROM "chhattisgarh_result" WHERE "election_winner"='inc' AND "incumbent"='bjp';
## Task Generate a SQL query to answer the following question: `What is the smallest number of seats with INC as an election winner and BJP incumbent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chhattisgarh_result" ( "state" text, "seats_a_cs"...
SELECT "election_winner" FROM "chhattisgarh_result" WHERE "incumbent"='bjp' AND "state"='chhattisgarh';
## Task Generate a SQL query to answer the following question: `Who was the election winner with a BJP incumbent in Chhattisgarh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chhattisgarh_result" ( "state" text, "seats_a_cs" real, "date_of_cou...
SELECT "date_of_counting" FROM "chhattisgarh_result" WHERE "seats_a_cs"<87 AND "incumbent"='inc' AND "election_winner"='inc';
## Task Generate a SQL query to answer the following question: `When was the date of counting with less than 87 seats, INC as incumbent and INC as election winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chhattisgarh_result" ( "state" text, ...
SELECT "country" FROM "destinations" WHERE "iata"='evn';
## Task Generate a SQL query to answer the following question: `Which country has an IATA of EVN?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL...
SELECT "airport" FROM "destinations" WHERE "country"='russia' AND "iata"='aer';
## Task Generate a SQL query to answer the following question: `What is the name of the airport located in Russia with an IATA of AER?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "ic...
SELECT "airport" FROM "destinations" WHERE "country"='russia' AND "iata"='krr';
## Task Generate a SQL query to answer the following question: `What is the name of the airport located in Russia with an IATA of KRR?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "ic...
SELECT "airport" FROM "destinations" WHERE "icao"='ulli';
## Task Generate a SQL query to answer the following question: `What is the name of the airport with an ICAO of ULLI?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airp...
SELECT "icao" FROM "destinations" WHERE "country"='armenia';
## Task Generate a SQL query to answer the following question: `What is the ICAO for the destination in Armenia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" ...
SELECT "airport" FROM "destinations" WHERE "iata"='kuf';
## Task Generate a SQL query to answer the following question: `What is the name of the airport with an IATA of KUF?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airpo...
SELECT "status" FROM "newly_named_dinosaurs" WHERE "authors"='del corro';
## Task Generate a SQL query to answer the following question: `What is the status of Author Del Corro?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "loca...
SELECT "location" FROM "newly_named_dinosaurs" WHERE "authors"='molnar';
## Task Generate a SQL query to answer the following question: `What is the location of the authors of Molnar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, ...
SELECT "status" FROM "newly_named_dinosaurs" WHERE "name"='prenocephale';
## Task Generate a SQL query to answer the following question: `What is the status of Prenocephale?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location...
SELECT "novelty" FROM "newly_named_dinosaurs" WHERE "status"='valid' AND "location"='mongolia' AND "name"='prenocephale';
## Task Generate a SQL query to answer the following question: `What is the novel that has a valid status, located in Mongolia, and named Prenocephale?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" ...
SELECT "novelty" FROM "newly_named_dinosaurs" WHERE "name"='tylocephale';
## Task Generate a SQL query to answer the following question: `What is the novelty of Tylocephale?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location...
SELECT "team_1" FROM "round_of_16" WHERE "team_2"='vfl gummersbach';
## Task Generate a SQL query to answer the following question: `Which team 1 has vfl gummersbach as team 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" tex...
SELECT "2nd_leg" FROM "round_of_16" WHERE "1st_leg"='31-37';
## Task Generate a SQL query to answer the following question: `What is the 2nd leg that has 31-37 as the 1st leg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_l...
SELECT "team_1" FROM "round_of_16" WHERE "team_2"='cbm valladolid';
## Task Generate a SQL query to answer the following question: `Which team 1 has cbm valladolid as team 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text...
SELECT "2nd_leg" FROM "round_of_16" WHERE "team_1"='rk gold club kozina';
## Task Generate a SQL query to answer the following question: `What 2nd leg has rk gold club kozina as team 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg"...
SELECT "1st_leg" FROM "round_of_16" WHERE "agg"='52-70';
## Task Generate a SQL query to answer the following question: `What 1st leg has 52-70 as the agg.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ###...
SELECT "surface" FROM "singles_13_7_6" WHERE "date"='october 10, 2004';
## Task Generate a SQL query to answer the following question: `What was the surface for October 10, 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_7_6" ( "date" text, "tournament" text, "surface" text, "opponent" text, "sco...
SELECT "surface" FROM "singles_13_7_6" WHERE "opponent"='roger federer';
## Task Generate a SQL query to answer the following question: `What was the surface for the opponent Roger Federer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_7_6" ( "date" text, "tournament" text, "surface" text, "opponent" te...
SELECT COUNT("year") FROM "competition_record" WHERE "competition"='olympic games' AND "event"='400 m';
## Task Generate a SQL query to answer the following question: `How many years was the 400 m event in the olympic games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competition_record" ( "year" real, "competition" text, "venue" text, "posit...
SELECT "attendance" FROM "season_schedule" WHERE "result"='l 26-21';
## Task Generate a SQL query to answer the following question: `How many were in attendance of the game with l 26-21 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" ...
SELECT "opponent" FROM "season_schedule" WHERE "attendance"='37,845';
## Task Generate a SQL query to answer the following question: `Who is the opponent for the game with 37,845 people in attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "re...
SELECT "silver" FROM "all_time_medal_tables" WHERE "gold"=2 AND "bronze">2;
## Task Generate a SQL query to answer the following question: `How many silver medals were there with 2 gold medals and more than 2 bronze medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_medal_tables" ( "rank" text, "nation" text,...
SELECT MIN("total") FROM "all_time_medal_tables" WHERE "rank"='11' AND "silver">0;
## Task Generate a SQL query to answer the following question: `What is the smallest total number of medals for rank 11 and more than 0 silver medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_medal_tables" ( "rank" text, "nation" te...
SELECT SUM("total") FROM "all_time_medal_tables" WHERE "bronze">2 AND "nation"='united states' AND "gold">1;
## Task Generate a SQL query to answer the following question: `What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_medal_tables" ...
SELECT MAX("gold") FROM "all_time_medal_tables" WHERE "nation"='canada' AND "bronze">7;
## Task Generate a SQL query to answer the following question: `What is the largest number of gold medals for Canada with more than 7 bronze medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_medal_tables" ( "rank" text, "nation" text...
SELECT SUM("silver") FROM "all_time_medal_tables" WHERE "total"<23 AND "nation"='united states' AND "bronze">3;
## Task Generate a SQL query to answer the following question: `What is the sum of all silver medals with less than 23 medals in total and more than 3 bronze medals for the United States?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_medal_t...
SELECT "date" FROM "100_meters" WHERE "location"='zurich' AND "result"=10.07;
## Task Generate a SQL query to answer the following question: `When was Steve Williams in Zurich and his result was 10.07?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "100_meters" ( "year" real, "result" real, "world_rank" text, "location" ...
SELECT MAX("lost") FROM "south_group" WHERE "draw"=0 AND "team"='gwardia katowice' AND "points"<12;
## Task Generate a SQL query to answer the following question: `What is the largest number lost with 0 draws and less than 12 points for Gwardia Katowice?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_group" ( "team" text, "match" real, "...
SELECT MAX("draw") FROM "south_group" WHERE "lost"=6 AND "points"<15;
## Task Generate a SQL query to answer the following question: `What is the highest number of draws with 6 losses and less than 15 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_group" ( "team" text, "match" real, "points" real, ...
SELECT COUNT("draw") FROM "south_group" WHERE "lost">11 AND "match"<14;
## Task Generate a SQL query to answer the following question: `How many draws correspond to more than 11 losses in a match less than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_group" ( "team" text, "match" real, "points" real, "...
SELECT "director" FROM "submissions" WHERE "film_title_used_in_nomination"='children of sarajevo';
## Task Generate a SQL query to answer the following question: `What is the Director of Children of Sarajevo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_tit...
SELECT "result" FROM "submissions" WHERE "year_ceremony"='2010 (83rd)';
## Task Generate a SQL query to answer the following question: `What is the Result of the 2010 (83rd) Ceremony?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_t...
SELECT "result" FROM "submissions" WHERE "year_ceremony"='2013 (86th)';
## Task Generate a SQL query to answer the following question: `What is the Result of the 2013 (86th) Ceremony?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_t...
SELECT "original_title" FROM "submissions" WHERE "film_title_used_in_nomination"='children of sarajevo';
## Task Generate a SQL query to answer the following question: `What is the Original title of Children of Sarajevo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "origin...
SELECT "original_title" FROM "submissions" WHERE "result"='not nominated' AND "year_ceremony"='2012 (85th)';
## Task Generate a SQL query to answer the following question: `In the 2012 (85th) Ceremony, what was the Original title of the film not nominated?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_use...
SELECT MIN("draw") FROM "references" WHERE "points">43 AND "rank"='6th';
## Task Generate a SQL query to answer the following question: `What is the lowest draw number for the song ranked 6th with more than 43 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "draw" real, "song" text, "performer" t...
SELECT SUM("points") FROM "references" WHERE "performer"='partners in crime';
## Task Generate a SQL query to answer the following question: `What is the total sum of points for songs performed by Partners in Crime?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, ...
SELECT "class" FROM "broadcast_translators_of_wzxv" WHERE "facility_id"=150935;
## Task Generate a SQL query to answer the following question: `What is the class of facility ID 150935?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_translators_of_wzxv" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" t...
SELECT "city_of_license" FROM "broadcast_translators_of_wzxv" WHERE "facility_id">150833;
## Task Generate a SQL query to answer the following question: `Which city has a facility ID greater than 150833?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_translators_of_wzxv" ( "call_sign" text, "frequency_m_hz" real, "city_of_l...
SELECT "position" FROM "round_one" WHERE "cfl_team"='toronto argonauts';
## Task Generate a SQL query to answer the following question: `What position does the player from the Toronto Argonauts play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "positi...
SELECT "1st_leg" FROM "matches" WHERE "team_2"='concepto egile';
## Task Generate a SQL query to answer the following question: `What was the 1st leg for Team 2 Concepto Egile?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" tex...
SELECT "team_1" FROM "matches" WHERE "team_2"='gomera';
## Task Generate a SQL query to answer the following question: `Which team 1 has team 2, Gomera?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Gi...
SELECT "team" FROM "naia_football_independents" WHERE "founded"<1883 AND "type"='public';
## Task Generate a SQL query to answer the following question: `What public team was founded prior to 1883?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "naia_football_independents" ( "institution" text, "location" text, "founded" real, "type...
SELECT "name" FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "spike"=342;
## Task Generate a SQL query to answer the following question: `Who has exactly 342 spikes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "name" text, "date_of_birth" text, "height" real, "weight" r...
SELECT MIN("spike") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "weight"=83 AND "height">190;
## Task Generate a SQL query to answer the following question: `What is the smallest number of spikes for players with a weight of 83 and height over 190?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "na...
SELECT "class" FROM "s_rebroadcaster_of_cbqt_fm" WHERE "power"='78 watts';
## Task Generate a SQL query to answer the following question: `What is Class, when Power is 78 Watts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cbqt_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "p...
SELECT "power" FROM "s_rebroadcaster_of_cbqt_fm" WHERE "identifier"='cbeb-fm';
## Task Generate a SQL query to answer the following question: `What is Power, when Identifier is CBEB-FM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cbqt_fm" ( "city_of_license" text, "identifier" text, "frequency" text, ...
SELECT "identifier" FROM "s_rebroadcaster_of_cbqt_fm" WHERE "city_of_license"='terrace bay';
## Task Generate a SQL query to answer the following question: `What is Identifier, when City of License is Terrace Bay?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cbqt_fm" ( "city_of_license" text, "identifier" text, "fre...