output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT SUM("round") FROM "draft_picks" WHERE "nationality"='united states' AND "pick"=125;
## Task Generate a SQL query to answer the following question: `What is the sum of Round, when Nationality is "United States", and when Pick is "125"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "play...
SELECT "round" FROM "draft_picks" WHERE "school_club_team"='tennessee-chattanooga';
## Task Generate a SQL query to answer the following question: `What is Round, when School/Club Team is "Tennessee-Chattanooga"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationali...
SELECT AVG("pick") FROM "draft_picks" WHERE "player"='willie white' AND "round"<2;
## Task Generate a SQL query to answer the following question: `What is the average Pick, when Player is "Willie White",and when Round is less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "play...
SELECT COUNT("height_m") FROM "geography" WHERE "prominence_ft"='12,867' AND "prominence_m">'3,922';
## Task Generate a SQL query to answer the following question: `What is the total height of the peak with a prominence of 12,867 ft and a prominence in m greater than 3,922?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "geography" ( "name_of_peak" ...
SELECT COUNT("prominence_ft") FROM "geography" WHERE "name_of_peak"='kangchenjunga central' AND "prominence_m"<32;
## Task Generate a SQL query to answer the following question: `What is the total prominence in ft of the peak of kangchenjunga central, which has a prominence in m less than 32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "geography" ( "name_of_p...
SELECT COUNT("prominence_m") FROM "geography" WHERE "height_m">'7,903' AND "name_of_peak"='kangchenjunga west (yalung kang)' AND "height_ft"<'27,904';
## Task Generate a SQL query to answer the following question: `What is the total prominence in m of kangchenjunga west (yalung kang) peak, which has a height in m greater than 7,903 and a height in ft less than 27,904?` ### Database Schema This query will run on a database whose schema is represented in this string:...
SELECT MAX("prominence_ft") FROM "geography" WHERE "prominence_m"<103;
## Task Generate a SQL query to answer the following question: `What is the highest prominence in ft of the peak with a prominence in m less than 103?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "geography" ( "name_of_peak" text, "height_m" real...
SELECT "result" FROM "schedule" WHERE "attendance"='78,793';
## Task Generate a SQL query to answer the following question: `What was the result when the attendance was 78,793?` ### 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, "attenda...
SELECT "attendance" FROM "schedule" WHERE "result"='bye';
## Task Generate a SQL query to answer the following question: `What was the attendance when the result was a bye?` ### 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, "attendan...
SELECT "attendance" FROM "schedule" WHERE "week"=10;
## Task Generate a SQL query to answer the following question: `What was the attendance total for week 10?` ### 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, "attendance" text...
SELECT "date" FROM "schedule" WHERE "week"=7;
## Task Generate a SQL query to answer the following question: `What's the game date for week 7?` ### 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, "attendance" text ); ### SQ...
SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "pick"=7;
## Task Generate a SQL query to answer the following question: `WHAT IS THE ROUND WITH PICK OF 7?` ### 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, "overall" real, "name" text, "po...
SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "position"='k' AND "overall"<181;
## Task Generate a SQL query to answer the following question: `WHAT IS THE PICK WITH K POSITION AND OVERALL SMALLER THAN 181?` ### 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, "overal...
SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "college"='michigan' AND "overall">37;
## Task Generate a SQL query to answer the following question: `WHAT IS THE ROUND FROM MICHIGAN COLLEGE, AND OVERALL LARGER THAN 37?` ### 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, "...
SELECT MIN("round") FROM "washington_redskins_draft_history" WHERE "position"='cb';
## Task Generate a SQL query to answer the following question: `WHAT IS THE LOWEST ROUND FOR CB POSITION?` ### 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, "overall" real, "name" tex...
SELECT "writer" FROM "season_1_2005" WHERE "original_airdate"='september 4, 2005 (hbo)';
## Task Generate a SQL query to answer the following question: `Who's the Writer with an Original Airdate of september 4, 2005 (hbo)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1_2005" ( "episode" real, "title" text, "writer" text, ...
SELECT "director" FROM "season_1_2005" WHERE "episode"=13;
## Task Generate a SQL query to answer the following question: `Which Director has an Episode of 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1_2005" ( "episode" real, "title" text, "writer" text, "director" text, "original_aird...
SELECT "original_airdate" FROM "season_1_2005" WHERE "episode"=1;
## Task Generate a SQL query to answer the following question: `Which Original Airdate has an Episode of 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1_2005" ( "episode" real, "title" text, "writer" text, "director" text, "origin...
SELECT "date" FROM "scottish_premier_division" WHERE "venue"='a' AND "result"='3–0';
## Task Generate a SQL query to answer the following question: `On what date was the venue A with a result of 3–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scottish_premier_division" ( "date" text, "opponent" text, "venue" text, "result"...
SELECT MAX("bike_no") FROM "the_2012_season" WHERE "position">1 AND "points">369 AND "equipment"='zabel-wsp';
## Task Generate a SQL query to answer the following question: `What is the most noteworthy Bike No that has a Position bigger than 1, and a Points bigger than 369, and an Equipment of zabel-wsp?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_2012...
SELECT COUNT("position") FROM "the_2012_season" WHERE "bike_no"=4;
## Task Generate a SQL query to answer the following question: `What is the aggregate number of Position that has a Bike No of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_2012_season" ( "position" real, "driver_passenger" text, "equipm...
SELECT "date" FROM "schedule" WHERE "result"='l 14–24';
## Task Generate a SQL query to answer the following question: `When was the result l 14–24?` ### 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, "game_site" text, "record" te...
SELECT MIN("week") FROM "schedule" WHERE "game_site"='mile high stadium' AND "attendance">'75,007';
## Task Generate a SQL query to answer the following question: `What was the first week when there was an attendance over 75,007 at Mile High Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent...
SELECT "attendance" FROM "fifth_round_proper" WHERE "tie_no"='replay' AND "away_team"='swindon town';
## Task Generate a SQL query to answer the following question: `Away team Swindon Town had a Tie no listing of Replay with what as an Attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text,...
SELECT "tie_no" FROM "fifth_round_proper" WHERE "home_team"='liverpool';
## Task Generate a SQL query to answer the following question: `Liverpool as a home team as listed what in the Tie no column?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "...
SELECT "score" FROM "fifth_round_proper" WHERE "away_team"='grimsby town';
## Task Generate a SQL query to answer the following question: `What is the score for the away team of Grimsby Town?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team...
SELECT SUM("pick") FROM "nfl_draft" WHERE "round">1 AND "school_club_team"='alcorn state' AND "position"='defensive back';
## Task Generate a SQL query to answer the following question: `Which Pick has a Round larger than 1, a School/Club Team of alcorn state, and a Position of defensive back?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "...
SELECT COUNT("pick") FROM "nfl_draft" WHERE "position"='offensive guard' AND "player"='reggie mckenzie' AND "round">2;
## Task Generate a SQL query to answer the following question: `Which Pick has a Position of offensive guard, a Player of reggie mckenzie, and a Round larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" ...
SELECT "school_club_team" FROM "nfl_draft" WHERE "round"<5 AND "pick">1 AND "player"='reggie mckenzie';
## Task Generate a SQL query to answer the following question: `Which School/Club Team has a Round smaller than 5, a Pick larger than 1, and a Player of reggie mckenzie?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pi...
SELECT "player" FROM "nfl_draft" WHERE "round"<2;
## Task Generate a SQL query to answer the following question: `Which Player has a Round smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team...
SELECT "record" FROM "game_log" WHERE "date"='march 26';
## Task Generate a SQL query to answer the following question: `What was the record on march 26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record"...
SELECT "visitor" FROM "game_log" WHERE "date"='march 26';
## Task Generate a SQL query to answer the following question: `Who visited on march 26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, ...
SELECT MIN("points") FROM "game_log" WHERE "date"='march 2';
## Task Generate a SQL query to answer the following question: `What were the lowest points on march 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "...
SELECT SUM("points") FROM "game_log" WHERE "record"='21–36–9' AND "attendance">'14,768';
## Task Generate a SQL query to answer the following question: `Which Points have a Record of 21–36–9, and an Attendance larger than 14,768?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, ...
SELECT "name" FROM "rushing" WHERE "loss">2 AND "avg_g">-16 AND "gp_gs"='11–7' AND "gain">86;
## Task Generate a SQL query to answer the following question: `which Name has a Loss larger than 2, and a Avg/G larger than -16, and a GP-GS of 11–7, and a Gain larger than 86?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "name" text, ...
SELECT MAX("long") FROM "rushing" WHERE "avg_g"<8.4 AND "gp_gs"='4–0';
## Task Generate a SQL query to answer the following question: `Name the highest Long that has an Avg/G smaller than 8.4, and an GP-GS of 4–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "l...
SELECT MIN("gain") FROM "rushing" WHERE "long"=0 AND "gp_gs"='4–0' AND "loss"<3;
## Task Generate a SQL query to answer the following question: `Name the lowest Gain which has a Long of 0, and a GP-GS of 4–0, and a Loss smaller than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain...
SELECT COUNT("loss") FROM "rushing" WHERE "avg_g"=8.4;
## Task Generate a SQL query to answer the following question: `Name the total of Loss which has an Avg/G of 8.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "loss" real, "long" real, "...
SELECT "team" FROM "classification" WHERE "points"='15';
## Task Generate a SQL query to answer the following question: `Which Team has Points of 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_ret...
SELECT "laps" FROM "classification" WHERE "points"='lead changes: 13 between 8 drivers';
## Task Generate a SQL query to answer the following question: `Which Laps has a Points of lead changes: 13 between 8 drivers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team...
SELECT "driver" FROM "classification" WHERE "grid"='1';
## Task Generate a SQL query to answer the following question: `Which Driver has a Grid of 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_re...
SELECT MAX("wins") FROM "career_summary" WHERE "series"='british formula three' AND "season"='2005' AND "poles"<0;
## Task Generate a SQL query to answer the following question: `WHAT IS THE HIGHEST WINS WITH A SERIES OF BRITISH FORMULA THREE, SEASON 2005, POLES SMALLER THAN 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "se...
SELECT SUM("races") FROM "career_summary" WHERE "points"='9';
## Task Generate a SQL query to answer the following question: `WHAT IS THE SUM OF RACES WITH 9 POINTS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "races" real, "poles" real, "wins" real, ...
SELECT AVG("poles") FROM "career_summary" WHERE "points"='n/a';
## Task Generate a SQL query to answer the following question: `WHAT IS THE AVERAGE POLES WITH POINTS N/A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "races" real, "poles" real, "wins" real...
SELECT "player" FROM "made_the_cut" WHERE "total"<293 AND "country"='south africa';
## Task Generate a SQL query to answer the following question: `Who is that player from South Africa who had a total score under 293?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text...
SELECT "best" FROM "qualifying_results" WHERE "qual_2"='1:47.042';
## Task Generate a SQL query to answer the following question: `What is the best when the qual 2 is 1:47.042?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best"...
SELECT "team" FROM "qualifying_results" WHERE "name"='alex sperafico';
## Task Generate a SQL query to answer the following question: `What is the team when the name is alex sperafico?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "b...
SELECT "qual_2" FROM "qualifying_results" WHERE "best"='1:45.172';
## Task Generate a SQL query to answer the following question: `What is the qual 2 when the best is 1:45.172?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best"...
SELECT "name" FROM "qualifying_results" WHERE "best"='1:45.361';
## Task Generate a SQL query to answer the following question: `What is the name for the best of 1:45.361?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" te...
SELECT "name" FROM "qualifying_results" WHERE "qual_2"='1:43.374';
## Task Generate a SQL query to answer the following question: `What name has a qual 2 of 1:43.374?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); #...
SELECT "name" FROM "qualifying_results" WHERE "qual_2"='1:46.025';
## Task Generate a SQL query to answer the following question: `What name has a qual 2 of 1:46.025?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); #...
SELECT "streak" FROM "game_log" WHERE "date"='march 27';
## Task Generate a SQL query to answer the following question: `What was the streak on March 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, "opponent" text, "result" text, "team_points" real, "oppo...
SELECT "streak" FROM "game_log" WHERE "team_points">113 AND "game"<12 AND "date"='november 16';
## Task Generate a SQL query to answer the following question: `Which streak before game 12 had a team points larger than 113 on November 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, ...
SELECT MIN("total") FROM "medal_table" WHERE "gold"=8 AND "silver"<4;
## Task Generate a SQL query to answer the following question: `Who scored the lowest with 8 gold medals and less than 4 silver 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, "sil...
SELECT "rank" FROM "medal_table" WHERE "silver"=3;
## Task Generate a SQL query to answer the following question: `What is the rank for the 3 silver 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" real, "bronze" real, ...
SELECT "young_classification" FROM "jersey_progress" WHERE "aggressive_rider"='tim johnson';
## Task Generate a SQL query to answer the following question: `Which young classification has an aggressive rider of Tim Johnson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage_winner" text, "general_classification" text...
SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "name"='rich dobbert';
## Task Generate a SQL query to answer the following question: `what was the overall pick number for rich dobbert?` ### 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, "overall" real, "...
SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "overall">295 AND "name"='rich dobbert' AND "pick"<10;
## Task Generate a SQL query to answer the following question: `What is the sum of the rounds where the overall pick was more than 295 and the pick was smaller than 10 and the player was rich dobbert?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "was...
SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"<322 AND "round">3 AND "name"='eric norri';
## Task Generate a SQL query to answer the following question: `What position did eric norri play who was the overall pick less than 322 on a round larger than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "r...
SELECT "report" FROM "round_2" WHERE "home_team"='townsville crocodiles';
## Task Generate a SQL query to answer the following question: `What was the report for the game with the home team of the Townsville Crocodiles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "date" text, "home_team" text, "score" te...
SELECT "venue" FROM "round_2" WHERE "away_team"='melbourne tigers';
## Task Generate a SQL query to answer the following question: `What was the venue that featured the Melbourne Tigers as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "date" text, "home_team" text, "score" text, "awa...
SELECT "report" FROM "round_2" WHERE "venue"='hisense arena';
## Task Generate a SQL query to answer the following question: `What was the report for the game played at the Hisense Arena?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "date" text, "home_team" text, "score" text, "away_team" te...
SELECT "goal_difference" FROM "final_table" WHERE "points_1"='51' AND "goals_against"<66;
## Task Generate a SQL query to answer the following question: `When the Points 1 was 51 and the Goals Against was less than 66, what was the Goal Difference?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" te...
SELECT SUM("played") FROM "final_table" WHERE "goals_for">60 AND "lost"=8 AND "position"<1;
## Task Generate a SQL query to answer the following question: `What is the total of Played where the Goals For is higher than 60, the Lost is 8, and the Position is less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "positio...
SELECT "goal_difference" FROM "final_table" WHERE "position"=22;
## Task Generate a SQL query to answer the following question: `What was the Goal Difference for Postion 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real...
SELECT "lost" FROM "final_table" WHERE "goals_for">59 AND "drawn"<15 AND "team"='hyde united';
## Task Generate a SQL query to answer the following question: `When Team Hyde United had more than 59 Goals For and fewer than 15 Drawn, what was the Lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" text...
SELECT AVG("lost") FROM "final_table" WHERE "team"='matlock town' AND "goals_against">66;
## Task Generate a SQL query to answer the following question: `What is the average Lost for Team Matlock Town when the Goals Against is higher than 66?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" text, ...
SELECT "attendance" FROM "pittsburgh_pirates_vs_atlanta_braves" WHERE "date"='october 17';
## Task Generate a SQL query to answer the following question: `What was the attendance on October 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pittsburgh_pirates_vs_atlanta_braves" ( "game" real, "date" text, "location" text, "time" tex...
SELECT "location" FROM "pittsburgh_pirates_vs_atlanta_braves" WHERE "attendance">'57,347';
## Task Generate a SQL query to answer the following question: `Where was the attendance more than 57,347?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pittsburgh_pirates_vs_atlanta_braves" ( "game" real, "date" text, "location" text, "time"...
SELECT MAX("game") FROM "pittsburgh_pirates_vs_atlanta_braves" WHERE "time"='2:46' AND "attendance">'57,533';
## Task Generate a SQL query to answer the following question: `When was the last game that had a time of 2:46 and attendance of more than 57,533?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pittsburgh_pirates_vs_atlanta_braves" ( "game" real, ...
SELECT "place" FROM "final_round" WHERE "country"='south africa';
## Task Generate a SQL query to answer the following question: `What place is South Africa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" rea...
SELECT AVG("year") FROM "1998" WHERE "name"='shri. shambu nath khajuria';
## Task Generate a SQL query to answer the following question: `What was the average year when shri. shambu nath khajuria won the padma shri awards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1998" ( "year" real, "name" text, "field" text, ...
SELECT COUNT("year") FROM "1998" WHERE "name"='prof. aditya naraian purohit';
## Task Generate a SQL query to answer the following question: `What is the total number of years that prof. aditya naraian purohit won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1998" ( "year" real, "name" text, "field" text, "state" tex...
SELECT SUM("year") FROM "1998" WHERE "state"='orissa' AND "name"='prof. priyambada mohanty hejmadi';
## Task Generate a SQL query to answer the following question: `What is the sum of the years when the winner was prof. priyambada mohanty hejmadi from orissa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1998" ( "year" real, "name" text, "fiel...
SELECT "event" FROM "achievements" WHERE "competition"='world cross country championships';
## Task Generate a SQL query to answer the following question: `Which event was part of the World Cross Country championships?` ### 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, "posit...
SELECT "department" FROM "external_links" WHERE "experience"='6 years';
## Task Generate a SQL query to answer the following question: `What department as 6 years experience?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "college_code" text, "faculty_name" text, "designation" text, "qualificatio...
SELECT "designation" FROM "external_links" WHERE "qualification"='m.tech (e.c.e)';
## Task Generate a SQL query to answer the following question: `What is the designation for the m.tech (e.c.e) qualification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "college_code" text, "faculty_name" text, "designation...
SELECT "department" FROM "external_links" WHERE "qualification"='m.phil (physics)';
## Task Generate a SQL query to answer the following question: `What department has an m.phil (physics) qualification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "college_code" text, "faculty_name" text, "designation" text,...
SELECT "result_f_a" FROM "league_cup" WHERE "opponents"='leeds united';
## Task Generate a SQL query to answer the following question: `hat is the Result F– A when they played against Leeds United?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "date" text, "round" text, "opponents" text, "h_a" text,...
SELECT "round" FROM "league_cup" WHERE "opponents"='middlesbrough' AND "h_a"='h';
## Task Generate a SQL query to answer the following question: `What is the round when they played against Middlesbrough, and the h/a was h?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "date" text, "round" text, "opponents" text...
SELECT COUNT("game") FROM "game_log" WHERE "record"='61-16';
## Task Generate a SQL query to answer the following question: `How many games have 61-16 as the record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "...
SELECT "date" FROM "game_log" WHERE "score"='104-113';
## Task Generate a SQL query to answer the following question: `What date has 104-113 as the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "recor...
SELECT "date" FROM "game_log" WHERE "score"='113-115 (ot)';
## Task Generate a SQL query to answer the following question: `What date has 113-115 (ot) as the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "...
SELECT AVG("game") FROM "game_log" WHERE "date"='january 9';
## Task Generate a SQL query to answer the following question: `What is the mean game played on January 9?` ### 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 "game" FROM "playoffs" WHERE "record"='1-2';
## Task Generate a SQL query to answer the following question: `Which game number includes a record of 1-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, ...
SELECT "score" FROM "playoffs" WHERE "high_assists"='joel przybilla (4)';
## Task Generate a SQL query to answer the following question: `For the game where Joel Przybilla (4) received high assists, what was the final score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" te...
SELECT "high_points" FROM "playoffs" WHERE "record"='2-4';
## Task Generate a SQL query to answer the following question: `For the game that had an end record of 2-4, who was the high points scorer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "scor...
SELECT AVG("attendance") FROM "schedule" WHERE "opponent"='new orleans saints' AND "game"<11;
## Task Generate a SQL query to answer the following question: `What is the attendance of the game against the New Orleans Saints before game 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" tex...
SELECT "date" FROM "schedule" WHERE "streak"='lost 7';
## Task Generate a SQL query to answer the following question: `On what date was the streak at lost 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "falcons_points" real...
SELECT "date" FROM "singles_7" WHERE "round"='2r';
## Task Generate a SQL query to answer the following question: `What was the date for Round 2r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponen...
SELECT "date" FROM "singles_7" WHERE "opponent"='george khrikadze';
## Task Generate a SQL query to answer the following question: `What date did the opponent George Khrikadze play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7" ( "edition" text, "round" text, "date" text, "against" text, "surface...
SELECT "round" FROM "singles_7" WHERE "result"='6-0, 6-1, 6-2';
## Task Generate a SQL query to answer the following question: `What round resulted in 6-0, 6-1, 6-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "o...
SELECT "round" FROM "singles_7" WHERE "opponent"='sergiy stakhovsky';
## Task Generate a SQL query to answer the following question: `What round was the opponent Sergiy Stakhovsky?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7" ( "edition" text, "round" text, "date" text, "against" text, "surface" t...
SELECT "record" FROM "regular_season" WHERE "date"='december 11';
## Task Generate a SQL query to answer the following question: `What is the record on December 11?` ### 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, "decision" text, "a...
SELECT "date" FROM "schedule" WHERE "result"='l 30-27';
## Task Generate a SQL query to answer the following question: `What date was the game that resulted in L 30-27?` ### 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, "attendance...
SELECT MAX("attendance") FROM "schedule" WHERE "result"='l 23-20';
## Task Generate a SQL query to answer the following question: `What was the highest attendance of games that resulted in L 23-20?` ### 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" t...
SELECT "result" FROM "fa_cup" WHERE "opponent"='manchester united' AND "venue"='h';
## Task Generate a SQL query to answer the following question: `What was the result when the opponent was manchester united in venue h?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue...
SELECT MAX("1st_ru") FROM "by_country_tally" WHERE "2nd_ru"<0;
## Task Generate a SQL query to answer the following question: `What's the greatest 1st RU that has a 2nd RU less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_country_tally" ( "rank" real, "country" text, "miss_united_continent" rea...
SELECT COUNT("semifinalists") FROM "by_country_tally" WHERE "miss_united_continent"=0 AND "2nd_ru"=0 AND "1st_ru">0 AND "total"<2;
## Task Generate a SQL query to answer the following question: `How many semifinalists had a total less than 2, 1st RU greater than 0, 2nd RU was 0 and Miss United Continent of 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_country_tally" ( "r...
SELECT MAX("rank") FROM "by_country_tally" WHERE "country"='peru' AND "total">3;
## Task Generate a SQL query to answer the following question: `What rank was Peru with a total greater than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_country_tally" ( "rank" real, "country" text, "miss_united_continent" real, "virr...