output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"=3;
## Task Generate a SQL query to answer the following question: `Can you tell me the Opponent that has the Round of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "meth...
SELECT "main_use" FROM "structures_past_or_present_between_550_a" WHERE "town"='walker city, iowa';
## Task Generate a SQL query to answer the following question: `What is the main use for the structure listed in walker city, iowa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "structures_past_or_present_between_550_a" ( "pinnacle_height" text, ...
SELECT "year" FROM "structures_past_or_present_between_550_a" WHERE "town"='greensboro, north carolina';
## Task Generate a SQL query to answer the following question: `What year was the structure in greensboro, north carolina considered tallest?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "structures_past_or_present_between_550_a" ( "pinnacle_height...
SELECT MIN("year") FROM "structures_past_or_present_between_550_a" WHERE "town"='gray court, south carolina';
## Task Generate a SQL query to answer the following question: `What was the earliest year that a structure was located in gray court, south carolina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "structures_past_or_present_between_550_a" ( "pinnac...
SELECT "main_use" FROM "structures_past_or_present_between_550_a" WHERE "year"<2004 AND "town"='redfield, arkansas';
## Task Generate a SQL query to answer the following question: `What is the main use of the structure that was in redfield, arkansas before 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "structures_past_or_present_between_550_a" ( "pinnacle_he...
SELECT "distance" FROM "race_4_5_01_2010" WHERE "speed"='124.1km/h';
## Task Generate a SQL query to answer the following question: `How far did the pilot go when averaging 124.1km/h?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_4_5_01_2010" ( "position" real, "pilot" text, "glider" text, "speed" text, ...
SELECT "speed" FROM "race_4_5_01_2010" WHERE "glider"='diana 2' AND "pilot"='sebastian kawa';
## Task Generate a SQL query to answer the following question: `What was sebastian kawa's average speed with Diana 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_4_5_01_2010" ( "position" real, "pilot" text, "glider" text, "speed" text...
SELECT "glider" FROM "race_4_5_01_2010" WHERE "pilot"='thomas gostner';
## Task Generate a SQL query to answer the following question: `What glider did thomas gostner pilot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_4_5_01_2010" ( "position" real, "pilot" text, "glider" text, "speed" text, "distance" t...
SELECT "run_4" FROM "results" WHERE "final"='8:16.28';
## Task Generate a SQL query to answer the following question: `Which Run 4 has a Final of 8:16.28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" text, "team" text, "athletes" text, "run_1" text, "run_2" text, "run_3" te...
SELECT "run_4" FROM "results" WHERE "athletes"='hubert stevens & curtis stevens';
## Task Generate a SQL query to answer the following question: `Which Run 4 has Athletes of hubert stevens & curtis stevens?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" text, "team" text, "athletes" text, "run_1" text, "...
SELECT "run_2" FROM "results" WHERE "rank"='4';
## Task Generate a SQL query to answer the following question: `Which Run 2 has a Rank of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" text, "team" text, "athletes" text, "run_1" text, "run_2" text, "run_3" text, "...
SELECT "athletes" FROM "results" WHERE "rank"='bronze';
## Task Generate a SQL query to answer the following question: `Which Athletes have a Rank of bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" text, "team" text, "athletes" text, "run_1" text, "run_2" text, "run_3" ...
SELECT "athletes" FROM "results" WHERE "run_2"='2:21.82';
## Task Generate a SQL query to answer the following question: `Which Athletes have a Run 2 of 2:21.82?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" text, "team" text, "athletes" text, "run_1" text, "run_2" text, "run_3...
SELECT "run_3" FROM "results" WHERE "run_1"='2:20.10';
## Task Generate a SQL query to answer the following question: `Which Run 3 has a Run 1 of 2:20.10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" text, "team" text, "athletes" text, "run_1" text, "run_2" text, "run_3" te...
SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "poll_source"='survey usa' AND "republican_christopher_reed"='37%';
## Task Generate a SQL query to answer the following question: `What were the dates administered in the Survey USA poll source where Republican Christopher Reed received 37%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_unite...
SELECT "republican_christopher_reed" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin"<16;
## Task Generate a SQL query to answer the following question: `What percentage did Republish Christopher Reed receive when the lead margin was smaller than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_se" (...
SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin"<39 AND "republican_christopher_reed"='37%' AND "democrat_tom_harkin"='53%';
## Task Generate a SQL query to answer the following question: `What were the dates administered when the lead margin was smaller than 39 with Republican Christopher Reed at 37% and Democrat Tom Harkin at 53%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE T...
SELECT "democrat_tom_harkin" FROM "opinion_polling_for_the_united_states_se" WHERE "poll_source"='rasmussen reports' AND "lead_margin"=14;
## Task Generate a SQL query to answer the following question: `What was Democrat: Tom Harkin's percentage when the poll source was Rasmussen Reports and the lead margin was 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_un...
SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin">14 AND "poll_source"='research 2000';
## Task Generate a SQL query to answer the following question: `What were the dates administered when the lead margin was larger than 14 and the poll source was Research 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_unit...
SELECT "time_retired" FROM "moto_gp_classification" WHERE "rider"='olivier jacque';
## Task Generate a SQL query to answer the following question: `What is Olivier Jacque's Time/Retired?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text...
SELECT "manufacturer" FROM "moto_gp_classification" WHERE "grid"='11';
## Task Generate a SQL query to answer the following question: `Which manufacturer is grid 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "gri...
SELECT "manufacturer" FROM "moto_gp_classification" WHERE "rider"='loris capirossi';
## Task Generate a SQL query to answer the following question: `Which manufacturer does Loris Capirossi ride for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_re...
SELECT "manufacturer" FROM "moto_gp_classification" WHERE "laps"='8';
## Task Generate a SQL query to answer the following question: `Which manufacturer has 8 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "gri...
SELECT "laps" FROM "moto_gp_classification" WHERE "grid"='4';
## Task Generate a SQL query to answer the following question: `How many laps does grid 4 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "gr...
SELECT "rider" FROM "moto_gp_classification" WHERE "laps"='28' AND "manufacturer"='honda' AND "grid"='1';
## Task Generate a SQL query to answer the following question: `Which rider's manufacturer is Honda and has 28 laps and a grid of 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "lap...
SELECT SUM("2006") FROM "cities_over_1_000_000_population" WHERE "rank"=1 AND "1996">6758845;
## Task Generate a SQL query to answer the following question: `What is the 2006 sum with a rank 1 and more than 6758845 in 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_over_1_000_000_population" ( "rank" real, "city" text, "provi...
SELECT COUNT("2006") FROM "cities_over_1_000_000_population" WHERE "date_of_official_foundation_of_municipality"=1918;
## Task Generate a SQL query to answer the following question: `What is the total number in 2006, which has an official foundation of municipality of 1918?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_over_1_000_000_population" ( "rank" rea...
SELECT AVG("rank") FROM "cities_over_1_000_000_population" WHERE "city"='mashhad' AND "1976"<667770;
## Task Generate a SQL query to answer the following question: `What is teh average rank of the city of mashhad, which had less than 667770 in 1976?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_over_1_000_000_population" ( "rank" real, "c...
SELECT AVG("rank") FROM "cities_over_1_000_000_population" WHERE "province"='alborz' AND "1956">14526;
## Task Generate a SQL query to answer the following question: `What is the average rank of the province alborz, which had more than 14526 in 1956?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_over_1_000_000_population" ( "rank" real, "ci...
SELECT "world_rank" FROM "400_meters" WHERE "year"=1977;
## Task Generate a SQL query to answer the following question: `Which World Rank happened in 1977?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "400_meters" ( "year" real, "result" real, "world_rank" text, "location" text, "date" text ); ##...
SELECT "rank" FROM "nielsen_ratings_broadcast_history" WHERE "premiere"='september 12, 1979';
## Task Generate a SQL query to answer the following question: `What is the rank for the episode that premiered on September 12, 1979?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nielsen_ratings_broadcast_history" ( "season" real, "premiere" te...
SELECT "finale" FROM "nielsen_ratings_broadcast_history" WHERE "premiere"='september 22, 1976';
## Task Generate a SQL query to answer the following question: `What was the date of the finale for the season that premiered on September 22, 1976?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nielsen_ratings_broadcast_history" ( "season" real, ...
SELECT "rank" FROM "nielsen_ratings_broadcast_history" WHERE "premiere"='september 13, 1978';
## Task Generate a SQL query to answer the following question: `What is the rank for the episode that premiered on September 13, 1978?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nielsen_ratings_broadcast_history" ( "season" real, "premiere" te...
SELECT "finale" FROM "nielsen_ratings_broadcast_history" WHERE "season"=3;
## Task Generate a SQL query to answer the following question: `What was the date of the finale for Season 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nielsen_ratings_broadcast_history" ( "season" real, "premiere" text, "finale" text, "r...
SELECT "premiere" FROM "nielsen_ratings_broadcast_history" WHERE "rating"='20.9';
## Task Generate a SQL query to answer the following question: `What was the date of the premiere that had a 20.9 rating?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nielsen_ratings_broadcast_history" ( "season" real, "premiere" text, "finale...
SELECT COUNT("points") FROM "race" WHERE "team"='herdez competition' AND "grid">1;
## Task Generate a SQL query to answer the following question: `What was Herdez Competition's total points with a grid larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired...
SELECT MAX("laps") FROM "race" WHERE "team"='walker racing' AND "grid">15;
## Task Generate a SQL query to answer the following question: `What was the highest lap count for Walker Racing with a grid larger than 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_...
SELECT "driver" FROM "race" WHERE "laps"=248;
## Task Generate a SQL query to answer the following question: `Which driver had 248 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); #...
SELECT "driver" FROM "race" WHERE "time_retired"='+ 10 laps' AND "points">6;
## Task Generate a SQL query to answer the following question: `What driver had a time/retired of + 10 laps and more than 6 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" ...
SELECT "record" FROM "game_log" WHERE "game"=61;
## Task Generate a SQL query to answer the following question: `Which Record has a Game of 61?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_reboun...
SELECT "high_points" FROM "game_log" WHERE "record"='27–29';
## Task Generate a SQL query to answer the following question: `Which High points have a Record of 27–29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "...
SELECT "high_points" FROM "game_log" WHERE "game">58 AND "high_rebounds"='francisco elson (7)';
## Task Generate a SQL query to answer the following question: `Which High points has a Game larger than 58, and a High rebounds of francisco elson (7)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" ...
SELECT "location_attendance" FROM "game_log" WHERE "date"='february 27';
## Task Generate a SQL query to answer the following question: `Which Location Attendance has a Date of february 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points...
SELECT "record" FROM "game_log" WHERE "high_rebounds"='luc mbah a moute (11)';
## Task Generate a SQL query to answer the following question: `Which Record has a High rebounds of luc mbah a moute (11)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_...
SELECT SUM("game") FROM "game_log" WHERE "record"='27–30';
## Task Generate a SQL query to answer the following question: `Which Game has a Record of 27–30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_reb...
SELECT "tournament" FROM "doubles_18_7_10" WHERE "score_in_final"='5–7, 4–6';
## Task Generate a SQL query to answer the following question: `What Tournament had a Score in Final of 5–7, 4–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_18_7_10" ( "date" text, "tournament" text, "surface" text, "partner" text,...
SELECT "opponents_in_final" FROM "doubles_18_7_10" WHERE "score_in_final"='4–6, 1–6' AND "surface"='clay';
## Task Generate a SQL query to answer the following question: `What is the Opponents in Final in the match with a Score in Final of 4–6, 1–6 played on Clay Surface?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_18_7_10" ( "date" text, "t...
SELECT "date" FROM "doubles_18_7_10" WHERE "score_in_final"='4–6, 1–6' AND "partner"='steffi graf';
## Task Generate a SQL query to answer the following question: `What is the Date of the match with Partner Steffi Graf with a Score in Final of 4–6, 1–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_18_7_10" ( "date" text, "tournament" t...
SELECT "partner" FROM "doubles_18_7_10" WHERE "score_in_final"='5–7, 4–6';
## Task Generate a SQL query to answer the following question: `What is the Partner of the match with a Score in Final of 5–7, 4–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_18_7_10" ( "date" text, "tournament" text, "surface" text,...
SELECT "2001" FROM "singles_performance_timeline" WHERE "1999"='2r' AND "1992"='3r';
## Task Generate a SQL query to answer the following question: `What is 2001, when 1999 is "2R", and when 1992 is "3R"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, ...
SELECT "1990" FROM "singles_performance_timeline" WHERE "1997"='1r' AND "tournament"='hamburg';
## Task Generate a SQL query to answer the following question: `What is 1990, when 1997 is "1R", and when Tournament is "Hamburg"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1988" text, "19...
SELECT "2001" FROM "singles_performance_timeline" WHERE "1989"='a' AND "tournament"='u.s. open';
## Task Generate a SQL query to answer the following question: `What is 2001, when 1989 is "A", and when Tournament is "U.S. Open"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1988" text, "1...
SELECT AVG("goals_against") FROM "group_i" WHERE "points"=43 AND "draws">9;
## Task Generate a SQL query to answer the following question: `what is the goals against when the points is 43 and draws is more than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "p...
SELECT SUM("goals_for") FROM "group_i" WHERE "goal_difference">-3 AND "club"='real avilΓ©s cf' AND "goals_against">60;
## Task Generate a SQL query to answer the following question: `what is the goals when the goal difference is more than -3, the club is real avilΓ©s cf and the goals against is more than 60?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "...
SELECT MIN("draws") FROM "group_i" WHERE "position"<5 AND "points"=62 AND "played">38;
## Task Generate a SQL query to answer the following question: `what is the least draws when the position is lower than 5, the points is 62 and played is more than 38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "clu...
SELECT SUM("played") FROM "group_i" WHERE "wins"=21 AND "position">3;
## Task Generate a SQL query to answer the following question: `what is the played when the wins is 21 and the positions is higher than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "...
SELECT SUM("week") FROM "schedule" WHERE "date"='december 2, 2001';
## Task Generate a SQL query to answer the following question: `What is the sum of Week, when Date is December 2, 2001?` ### 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, "att...
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='at cleveland browns';
## Task Generate a SQL query to answer the following question: `What is the total number of Week, when Opponent is At Cleveland Browns?` ### 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, "resu...
SELECT "country" FROM "destinations" WHERE "icao"='votr';
## Task Generate a SQL query to answer the following question: `What Country's ICAO is VOTR?` ### 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 Give...
SELECT "city" FROM "destinations" WHERE "country"='maldives';
## Task Generate a SQL query to answer the following question: `What is the City in the Maldives?` ### 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 "icao" FROM "destinations" WHERE "country"='india' AND "iata"='trz';
## Task Generate a SQL query to answer the following question: `What is the ICAO in India with IATA TRZ?` ### 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 ); ...
SELECT "airport" FROM "destinations" WHERE "country"='singapore';
## Task Generate a SQL query to answer the following question: `What is the Airport in Singapore?` ### 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 "iata"='trz';
## Task Generate a SQL query to answer the following question: `What is the Airport with an IATA of TRZ?` ### 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 ); ...
SELECT "opponent" FROM "regular_season" WHERE "score"='w 87-64';
## Task Generate a SQL query to answer the following question: `What is the opponent of the game with a w 87-64 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, ...
SELECT "location_attendance" FROM "regular_season" WHERE "record"='3-1';
## Task Generate a SQL query to answer the following question: `What is the location/attendance of the game with a 3-1 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" ...
SELECT "high_points" FROM "regular_season" WHERE "date"='may 27';
## Task Generate a SQL query to answer the following question: `Who had the highest points of the game on May 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high...
SELECT "opponent" FROM "schedule" WHERE "date"='october 28, 2001';
## Task Generate a SQL query to answer the following question: `Who is the opponent on October 28, 2001?` ### 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, "record" text, "g...
SELECT MIN("week") FROM "schedule" WHERE "game_site"='ralph wilson stadium' AND "date"='october 7, 2001';
## Task Generate a SQL query to answer the following question: `What was the lowest week at Ralph Wilson Stadium on October 7, 2001?` ### 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"...
SELECT SUM("to_par") FROM "third_round" WHERE "player"='bob rosburg';
## Task Generate a SQL query to answer the following question: `What is the sum of To Par, when Player is "Bob Rosburg"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, ...
SELECT COUNT("to_par") FROM "third_round" WHERE "score"='70-75-76=221';
## Task Generate a SQL query to answer the following question: `What is the total number of To Par, when Score is "70-75-76=221"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score...
SELECT "player" FROM "third_round" WHERE "score"='76-73-73=222';
## Task Generate a SQL query to answer the following question: `What is Player, when Score is "76-73-73=222"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" r...
SELECT "score" FROM "third_round" WHERE "to_par">7 AND "place"='t4' AND "player"='bob rosburg';
## Task Generate a SQL query to answer the following question: `What is Score, when To Par is greater than 7, when Place is "T4", and when Player is "Bob Rosburg"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player...
SELECT "transfer_window" FROM "in" WHERE "ends">2006;
## Task Generate a SQL query to answer the following question: `Which transfer window ends after 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "...
SELECT "transfer_fee" FROM "in" WHERE "name"='paolo vanoli';
## Task Generate a SQL query to answer the following question: `What is the transfer fee for Paolo Vanoli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text,...
SELECT "nat" FROM "in" WHERE "name"='gavin rae';
## Task Generate a SQL query to answer the following question: `What is the nationality of Gavin Rae?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "e...
SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "position"='ot' AND "round">5;
## Task Generate a SQL query to answer the following question: `How much Overall has a Position of ot, and a Round larger than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "ove...
SELECT "to_par" FROM "third_round" WHERE "player"='bart bryant';
## Task Generate a SQL query to answer the following question: `What is the to par for Bart Bryant?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ###...
SELECT "place" FROM "third_round" WHERE "country"='south africa' AND "score"='68-73-66=207';
## Task Generate a SQL query to answer the following question: `Who scored 68-73-66=207 in South Africa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text )...
SELECT "from" FROM "vassal_states" WHERE "name"='zhong';
## Task Generate a SQL query to answer the following question: `What year is Zhong from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text, "from" text ...
SELECT "royal_house" FROM "vassal_states" WHERE "name"='ding';
## Task Generate a SQL query to answer the following question: `Which Royal house has a name of ding?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text, ...
SELECT "type" FROM "vassal_states" WHERE "name"='bo qin';
## Task Generate a SQL query to answer the following question: `What type of state is bo qin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text, "from" ...
SELECT "from" FROM "vassal_states" WHERE "royal_house"='ji';
## Task Generate a SQL query to answer the following question: `What year is the Royal house of ji from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text...
SELECT "type" FROM "vassal_states" WHERE "royal_house"='ji' AND "title"='ruler';
## Task Generate a SQL query to answer the following question: `What type of state has a royal house of ji and has a ruler?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, ...
SELECT "record" FROM "game_log" WHERE "game"=13;
## Task Generate a SQL query to answer the following question: `what is the record when the game is 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "lo...
SELECT "high_points" FROM "game_log" WHERE "date"='november 20';
## Task Generate a SQL query to answer the following question: `who had the high points on november 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "lo...
SELECT "score" FROM "regular_season" WHERE "home"='washington capitols' AND "date"='november 23, 1946';
## Task Generate a SQL query to answer the following question: `What is the Score on November 23, 1946 with Washington Capitols Home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text...
SELECT "date" FROM "regular_season" WHERE "home"='detroit falcons' AND "score"='63–66';
## Task Generate a SQL query to answer the following question: `On what Date is the Detroit Falcons the Home team in a game with a Score of 63–66?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "sco...
SELECT "home" FROM "regular_season" WHERE "date"='january 24, 1947';
## Task Generate a SQL query to answer the following question: `What is the Home team on January 24, 1947?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text...
SELECT "home" FROM "regular_season" WHERE "date"='november 16, 1946';
## Task Generate a SQL query to answer the following question: `What is the Home team on November 16, 1946?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" tex...
SELECT "home" FROM "regular_season" WHERE "date"='february 2, 1947';
## Task Generate a SQL query to answer the following question: `What is the Home team on February 2, 1947?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text...
SELECT AVG("laps") FROM "125cc_classification" WHERE "time"='+23.002' AND "grid"<11;
## Task Generate a SQL query to answer the following question: `Which Laps have a Time of +23.002, and a Grid smaller than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real,...
SELECT "laps" FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "rider"='sergio gadea';
## Task Generate a SQL query to answer the following question: `Which Laps have a Manufacturer of aprilia, and a Rider of sergio gadea?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "la...
SELECT AVG("grid") FROM "125cc_classification" WHERE "rider"='mike di meglio' AND "laps">23;
## Task Generate a SQL query to answer the following question: `Which Grid that has a Rider of mike di meglio, and Laps larger than 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "la...
SELECT "manufacturer" FROM "125cc_classification" WHERE "grid"<9 AND "time"='+22.517';
## Task Generate a SQL query to answer the following question: `Which Manufacturer has a Grid smaller than 9, and a Time of +22.517?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps"...
SELECT "result" FROM "league_cup" WHERE "round"='sf';
## Task Generate a SQL query to answer the following question: `What is Result, when Round is SF?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attend...
SELECT "scorers" FROM "league_cup" WHERE "attendance">'11,091' AND "round"='r3';
## Task Generate a SQL query to answer the following question: `What is Scorers, when Attendance is greater than 11,091, and when Round is R3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "date" text, "round" text, "opponent" tex...
SELECT "result" FROM "league_cup" WHERE "date"='11 august 1992';
## Task Generate a SQL query to answer the following question: `What is Result, when Date is 11 August 1992?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text...
SELECT "result" FROM "league_cup" WHERE "date"='19 august 1992';
## Task Generate a SQL query to answer the following question: `What is Result, when Date is 19 August 1992?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text...
SELECT "res" FROM "mixed_martial_arts_record" WHERE "event"='rof 32: respect';
## Task Generate a SQL query to answer the following question: `Did he win or lose rof 32: respect?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event...
SELECT "round" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "event"='rof 29: aftershock';
## Task Generate a SQL query to answer the following question: `What round did he win rof 29: aftershock in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text,...