output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("year") FROM "honour_board" WHERE "iron_man_award"='kyal horsley';
## Task Generate a SQL query to answer the following question: `How many Years have an Iron Man Award of kyal horsley?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "honour_board" ( "year" real, "coach" text, "captain" text, "club_champion" te...
SELECT "coach" FROM "honour_board" WHERE "most_improved"='rory thompson';
## Task Generate a SQL query to answer the following question: `Which Coach has a Most Improved of rory thompson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "honour_board" ( "year" real, "coach" text, "captain" text, "club_champion" text, ...
SELECT SUM("year") FROM "honour_board" WHERE "community_award"='jarrod harbrow';
## Task Generate a SQL query to answer the following question: `Which Year has a Community Award of jarrod harbrow?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "honour_board" ( "year" real, "coach" text, "captain" text, "club_champion" text,...
SELECT MIN("capacity") FROM "summaries" WHERE "team"='šibenik';
## Task Generate a SQL query to answer the following question: `what is the capacity for the team šibenik?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summaries" ( "team" text, "manager" text, "home_city" text, "stadium" text, "capacity" ...
SELECT "stadium" FROM "summaries" WHERE "team"='čakovec';
## Task Generate a SQL query to answer the following question: `what is the stadium for čakovec?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summaries" ( "team" text, "manager" text, "home_city" text, "stadium" text, "capacity" real ); ##...
SELECT AVG("capacity") FROM "summaries" WHERE "home_city"='zagreb' AND "manager"='zlatko kranjčar';
## Task Generate a SQL query to answer the following question: `what is the capacity when the home city is zagreb and the manager is zlatko kranjčar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summaries" ( "team" text, "manager" text, "home_...
SELECT "home_city" FROM "summaries" WHERE "stadium"='stadion src mladost';
## Task Generate a SQL query to answer the following question: `what is the home city for the stadion src mladost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summaries" ( "team" text, "manager" text, "home_city" text, "stadium" text, "ca...
SELECT "grid" FROM "race" WHERE "time_retired"='electrical' AND "laps"=51;
## Task Generate a SQL query to answer the following question: `What is the grid for the driver with an electrical time/retired and 51 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_...
SELECT "driver" FROM "race" WHERE "grid"=1;
## Task Generate a SQL query to answer the following question: `Who is the driver with 1 grid?` ### 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 ); ### SQL Given ...
SELECT "place" FROM "first_round" WHERE "player"='mark carnevale';
## Task Generate a SQL query to answer the following question: `What place was Mark Carnevale in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### S...
SELECT MAX("attendance") FROM "round_4" WHERE "away"='real juventud';
## Task Generate a SQL query to answer the following question: `What was the highest attendance against Real Juventud?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "date" text, "home" text, "score" text, "away" text, "attendance...
SELECT "away_captain" FROM "test_matches" WHERE "date"='7,8,10,11 feb 1908';
## Task Generate a SQL query to answer the following question: `Who is the away captain for the matches dated 7,8,10,11 feb 1908?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "test_matches" ( "date" text, "home_captain" text, "away_captain" tex...
SELECT "home_captain" FROM "test_matches" WHERE "venue"='adelaide oval';
## Task Generate a SQL query to answer the following question: `Who is the home captain at the Adelaide Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "test_matches" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, ...
SELECT "home_captain" FROM "test_matches" WHERE "result"='aus by 245 runs';
## Task Generate a SQL query to answer the following question: `Who is the home captain that won AUS by 245 runs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "test_matches" ( "date" text, "home_captain" text, "away_captain" text, "venue" tex...
SELECT "venue" FROM "test_matches" WHERE "date"='1,2,3,4,6,7 jan 1908';
## Task Generate a SQL query to answer the following question: `What was the venue for the dates 1,2,3,4,6,7 jan 1908?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "test_matches" ( "date" text, "home_captain" text, "away_captain" text, "venue...
SELECT "venue" FROM "test_matches" WHERE "date"='7,8,10,11 feb 1908';
## Task Generate a SQL query to answer the following question: `What was the venue for the dates 7,8,10,11 Feb 1908?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "test_matches" ( "date" text, "home_captain" text, "away_captain" text, "venue" ...
SELECT "in_production" FROM "technology_comparison_for_grid_level_app" WHERE "toxic_materials"='yes' AND "technology"='sodium-sulfur batteries';
## Task Generate a SQL query to answer the following question: `What's the production if the technology is sodium-sulfur batteries and yes to toxic materials?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "technology_comparison_for_grid_level_app" ( ...
SELECT "moving_parts" FROM "technology_comparison_for_grid_level_app" WHERE "technology"='lead-acid';
## Task Generate a SQL query to answer the following question: `What are the moving parts of lead-acid?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "technology_comparison_for_grid_level_app" ( "technology" text, "moving_parts" text, "room_temp...
SELECT "room_temperature" FROM "technology_comparison_for_grid_level_app" WHERE "in_production"='no' AND "toxic_materials"='no';
## Task Generate a SQL query to answer the following question: `What's the room temperature with no toxic materials and no ln production?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "technology_comparison_for_grid_level_app" ( "technology" text, ...
SELECT "technology" FROM "technology_comparison_for_grid_level_app" WHERE "toxic_materials"='yes' AND "moving_parts"='no';
## Task Generate a SQL query to answer the following question: `What's the technology when there are no moving parts but yes to toxic materials?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "technology_comparison_for_grid_level_app" ( "technology" ...
SELECT "score" FROM "second_round" WHERE "place"='t9' AND "country"='united states' AND "player"='kirk triplett';
## Task Generate a SQL query to answer the following question: `What was the Score for T9 United States Player Kirk Triplett?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" t...
SELECT "country" FROM "second_round" WHERE "player"='tiger woods';
## Task Generate a SQL query to answer the following question: `What country is Tiger Woods from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### ...
SELECT SUM("assists") FROM "statistics" WHERE "club"='chicago fire' AND "goals">2;
## Task Generate a SQL query to answer the following question: `what is the assists when the club is chicago fire and goals is more than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, ...
SELECT MAX("assists") FROM "statistics" WHERE "goals"<0;
## Task Generate a SQL query to answer the following question: `what is the most assists when the goals is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "apps" real, "go...
SELECT "score_in_the_final" FROM "singles_finals_5_0_5" WHERE "date"=1981;
## Task Generate a SQL query to answer the following question: `What is Score in The Final, when Date is "1981"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_finals_5_0_5" ( "outcome" text, "date" real, "championship" text, "surface"...
SELECT "opponent_in_the_final" FROM "singles_finals_5_0_5" WHERE "date"=1976;
## Task Generate a SQL query to answer the following question: `What is Opponent in The Final, when Date is "1976"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_finals_5_0_5" ( "outcome" text, "date" real, "championship" text, "surfa...
SELECT "location_attendance" FROM "game_log" WHERE "date"='december 30';
## Task Generate a SQL query to answer the following question: `What is Location Attendance, when Date is "December 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_re...
SELECT "date" FROM "game_log" WHERE "high_rebounds"='amar''e stoudemire (13)';
## Task Generate a SQL query to answer the following question: `What is Date, when High Rebounds is "Amar'e Stoudemire (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, "hi...
SELECT "score" FROM "game_log" WHERE "location_attendance"='us airways center 18,422' AND "game"<22;
## Task Generate a SQL query to answer the following question: `What is Score, when Location Attendance is "US Airways Center 18,422", and when Game is less than 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" te...
SELECT "score" FROM "game_log" WHERE "game"=19;
## Task Generate a SQL query to answer the following question: `What is Score, when Game is "19"?` ### 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_rebounds" text, "high_a...
SELECT "location_attendance" FROM "game_log" WHERE "team"='orlando';
## Task Generate a SQL query to answer the following question: `What is Location Attendance, when Team is "Orlando"?` ### 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_reboun...
SELECT "record" FROM "game_log" WHERE "date"='december 30';
## Task Generate a SQL query to answer the following question: `What is Record, when Date is "December 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_rebounds" text,...
SELECT MAX("theaters") FROM "box_office_charts" WHERE "rank">7;
## Task Generate a SQL query to answer the following question: `Name the Theaters that has a Rank larger than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "box_office_charts" ( "date" text, "rank" real, "weekend_gross" text, "theaters" rea...
SELECT "gross_to_date" FROM "box_office_charts" WHERE "date"='august 23–25';
## Task Generate a SQL query to answer the following question: `Name the Gross-to-date which has a Date of august 23–25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "box_office_charts" ( "date" text, "rank" real, "weekend_gross" text, "theat...
SELECT MIN("round") FROM "nfl_draft" WHERE "position"='defensive back' AND "pick"=226;
## Task Generate a SQL query to answer the following question: `Name the Round which has a Position of defensive back and a Pick of 226?` ### 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, "pos...
SELECT "round" FROM "nfl_draft" WHERE "player"='zack walz';
## Task Generate a SQL query to answer the following question: `Name the Round which has a Player of zack walz?` ### 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_cl...
SELECT MIN("round") FROM "nfl_draft" WHERE "position"='defensive back' AND "player"='corey chavous';
## Task Generate a SQL query to answer the following question: `Name the Round which has a Position of defensive back and corey chavous?` ### 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, "pos...
SELECT COUNT("pick") FROM "nfl_draft" WHERE "round"=7 AND "school_club_team"='arizona st.';
## Task Generate a SQL query to answer the following question: `Name all Pick that has a Round of 7, and a School/Club Team of arizona st.?` ### 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, "...
SELECT MAX("the_year") FROM "year_by_year" WHERE "regular_season"='7th';
## Task Generate a SQL query to answer the following question: `Which Year has a Regular Season of 7th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "the_year" real, "division" real, "league" text, "regular_season" text, "p...
SELECT MAX("the_year") FROM "year_by_year" WHERE "division">3;
## Task Generate a SQL query to answer the following question: `Which Year has a Division larger than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "the_year" real, "division" real, "league" text, "regular_season" text, "...
SELECT SUM("the_year") FROM "year_by_year" WHERE "playoffs"='did not qualify' AND "division"<3;
## Task Generate a SQL query to answer the following question: `Which Year did not qualify for Playoffs, and had a Division smaller than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "the_year" real, "division" real, "league"...
SELECT "league" FROM "year_by_year" WHERE "playoffs"='did not qualify' AND "the_year">2008;
## Task Generate a SQL query to answer the following question: `Which league did not qualify for the Playoffs, and had a Year larger than 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "the_year" real, "division" real, "lea...
SELECT "home_team" FROM "group_a" WHERE "away_team_score"='10.8 (64)';
## Task Generate a SQL query to answer the following question: `What is Home Team, when Away Team Score is 10.8 (64)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away_t...
SELECT MIN("crowd") FROM "group_a" WHERE "home_team"='brisbane lions';
## Task Generate a SQL query to answer the following question: `What is Lowest Crowd, when Home Team is Brisbane Lions?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away...
SELECT "date" FROM "group_a" WHERE "away_team"='kangaroos';
## Task Generate a SQL query to answer the following question: `What is Date, when Away Team is Kangaroos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" ...
SELECT "ground" FROM "group_a" WHERE "home_team_score"='12.14 (86)';
## Task Generate a SQL query to answer the following question: `What is Ground, when Home Team Score is 12.14 (86)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away_tea...
SELECT "away_team" FROM "group_a" WHERE "home_team"='kangaroos' AND "away_team_score"='9.11 (65)';
## Task Generate a SQL query to answer the following question: `What is Away Team, when Home Team is Kangaroos, and when Away Team Score is 9.11 (65)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_a" ( "home_team" text, "home_team_score" te...
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "time"='1:12';
## Task Generate a SQL query to answer the following question: `What is the smallest round with a time of 1:12?` ### 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" te...
SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='legacy fighting championship 12';
## Task Generate a SQL query to answer the following question: `How long was the time for the Legacy Fighting Championship 12?` ### 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...
SELECT "country" FROM "third_round" WHERE "to_par"='+1' AND "player"='woody austin';
## Task Generate a SQL query to answer the following question: `WHAT COUNTRY HAS A TO PAR OF +1, WITH WOODY AUSTIN?` ### 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_...
SELECT "to_par" FROM "third_round" WHERE "player"='ernie els';
## Task Generate a SQL query to answer the following question: `WHAT IS THE TO PAR FOR ERNIE ELS?` ### 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 ); ### S...
SELECT "place" FROM "third_round" WHERE "player"='tom lehman';
## Task Generate a SQL query to answer the following question: `WHAT PLACE DOES TOM LEHMAN HAVE?` ### 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 ); ### SQ...
SELECT "to_par" FROM "third_round" WHERE "place"='1';
## Task Generate a SQL query to answer the following question: `WHAT IS THE TO PAR FOR NUMBER 1?` ### 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 ); ### SQ...
SELECT "player" FROM "third_round" WHERE "to_par"='+1' AND "country"='scotland';
## Task Generate a SQL query to answer the following question: `WHAT IS TEH PLAYER WITH A TO PAR OF +1 FOR SCOTLAND?` ### 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...
SELECT "paris_roubaix_fra" FROM "see_also" WHERE "year"=2006;
## Task Generate a SQL query to answer the following question: `Who won the Paris-Roubaix in 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "year" real, "e3_harelbeke_bel" text, "gent_wevelgem_bel" text, "tour_of_flanders_bel...
SELECT "built" FROM "references" WHERE "name"='conant creek pegram truss railroad bridge';
## Task Generate a SQL query to answer the following question: `Who built the conant creek pegram truss railroad bridge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, ...
SELECT "location" FROM "references" WHERE "built"='1910';
## Task Generate a SQL query to answer the following question: `Where is the historic place that was built in 1910?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "coun...
SELECT "listed" FROM "references" WHERE "built"='1896, 1914';
## Task Generate a SQL query to answer the following question: `What is the list date of the historic place that was built 1896, 1914?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "loca...
SELECT "listed" FROM "references" WHERE "county"='canyon';
## Task Generate a SQL query to answer the following question: `When was the historic place listed that's in canyon county?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text,...
SELECT "averaging_time" FROM "standards" WHERE "regulatory_citation"='40 cfr 50.4(b)';
## Task Generate a SQL query to answer the following question: `what is the averaging time when the regulatory citation is 40 cfr 50.4(b)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standards" ( "pollutant" text, "type" text, "standard" text...
SELECT "regulatory_citation" FROM "standards" WHERE "standard"='15 μg/m³';
## Task Generate a SQL query to answer the following question: `what is the regulatory citation when the standard is 15 μg/m³?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standards" ( "pollutant" text, "type" text, "standard" text, "averagi...
SELECT "standard" FROM "standards" WHERE "pollutant"='o 3' AND "averaging_time"='8-hour';
## Task Generate a SQL query to answer the following question: `what is the standard when the pollutant is o 3 and averaging time is 8-hour?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standards" ( "pollutant" text, "type" text, "standard" te...
SELECT "pollutant" FROM "standards" WHERE "regulatory_citation"='40 cfr 50.7(a)' AND "type"='primary';
## Task Generate a SQL query to answer the following question: `what is the polluntant when the regulatory citation is 40 cfr 50.7(a) and the type is primary?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standards" ( "pollutant" text, "type" tex...
SELECT "type" FROM "standards" WHERE "averaging_time"='1-hour' AND "standard"='0.12 ppm (235 μg/m³)';
## Task Generate a SQL query to answer the following question: `what is the type when the averaging time is 1-hour and the standard is 0.12 ppm (235 μg/m³)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standards" ( "pollutant" text, "type" text,...
SELECT "type" FROM "standards" WHERE "regulatory_citation"='40 cfr 50.9(a)';
## Task Generate a SQL query to answer the following question: `what is the type when the regulatory citation is 40 cfr 50.9(a)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standards" ( "pollutant" text, "type" text, "standard" text, "avera...
SELECT MAX("league") FROM "per_competition" WHERE "title_playoff">0;
## Task Generate a SQL query to answer the following question: `What is the highest League, when Title Playoff is greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "per_competition" ( "player" text, "league" real, "title_playoff" rea...
SELECT MIN("title_playoff") FROM "per_competition" WHERE "total"<3 AND "league">2;
## Task Generate a SQL query to answer the following question: `What is the lowest Title Playoff, when Total is less than 3, and when League is greater than "2"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "per_competition" ( "player" text, "lea...
SELECT MIN("title_playoff") FROM "per_competition" WHERE "league">3 AND "super_cup"<0;
## Task Generate a SQL query to answer the following question: `What is the lowest Title Playoff, when League is greater than 3, and when Super Cup is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "per_competition" ( "player" text, "l...
SELECT COUNT("super_cup") FROM "per_competition" WHERE "title_playoff"=0 AND "total">9 AND "league"<11;
## Task Generate a SQL query to answer the following question: `What is the total number of Super Cup, when Title Playoff is "0", when Total is greater than 9, and when League is less than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "per_competi...
SELECT "score" FROM "game_log" WHERE "team"='toronto';
## Task Generate a SQL query to answer the following question: `What was the score when the jazz played against toronto?` ### 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_po...
SELECT "date" FROM "game_log" WHERE "team"='miami';
## Task Generate a SQL query to answer the following question: `What is the date of the game against miami?` ### 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 "opponent" FROM "schedule" WHERE "week"=7;
## Task Generate a SQL query to answer the following question: `Who was the Opponent in 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 ); ### SQL...
SELECT "attendance" FROM "schedule" WHERE "date"='november 7, 1999';
## Task Generate a SQL query to answer the following question: `What was the Attendance on November 7, 1999?` ### 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" te...
SELECT "opponent" FROM "schedule" WHERE "result"='l 23-41';
## Task Generate a SQL query to answer the following question: `Who was the Opponent of the Game with a Result of l 23-41?` ### 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, "...
SELECT "attendance" FROM "schedule" WHERE "week"=1;
## Task Generate a SQL query to answer the following question: `What was the Attendance in Week 1?` ### 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 SUM("avg_finish") FROM "nascar_sprint_cup_series" WHERE "starts"=9 AND "top_10"<0;
## Task Generate a SQL query to answer the following question: `How much average Finish has Starts of 9, and a Top 10 smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" r...
SELECT "winnings" FROM "nascar_sprint_cup_series" WHERE "starts">34 AND "poles"<1 AND "top_10"=5;
## Task Generate a SQL query to answer the following question: `Which Winnings have Starts larger than 34, and Poles smaller than 1, and a Top 10 of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts...
SELECT MAX("diameter_km") FROM "planitia" WHERE "name"='alma-merghen planitia' AND "year_named"<1997;
## Task Generate a SQL query to answer the following question: `Which Diameter (km) has a Name of alma-merghen planitia, and a Year named smaller than 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planitia" ( "name" text, "latitude" text, ...
SELECT "longitude" FROM "planitia" WHERE "latitude"='73.0s' AND "name"='aibarchin planitia';
## Task Generate a SQL query to answer the following question: `Which Longitude has a Latitude of 73.0s, and a Name of aibarchin planitia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planitia" ( "name" text, "latitude" text, "longitude" text,...
SELECT MIN("year_named") FROM "planitia" WHERE "name"='nuptadi planitia' AND "diameter_km">'1,200.0';
## Task Generate a SQL query to answer the following question: `Which Year named has a Name of nuptadi planitia, and a Diameter (km) larger than 1,200.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planitia" ( "name" text, "latitude" text, "l...
SELECT "latitude" FROM "planitia" WHERE "year_named"<1997 AND "name"='aino planitia';
## Task Generate a SQL query to answer the following question: `Which Latitude has a Year named smaller than 1997, and a Name of aino planitia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planitia" ( "name" text, "latitude" text, "longitude" ...
SELECT "tournament" FROM "singles_7" WHERE "opponent"='sergio roitman';
## Task Generate a SQL query to answer the following question: `In what tournament did Cipolla face Sergio Roitman?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, ...
SELECT "rating_share_18_49" FROM "us_nielsen_ratings" WHERE "share">10 AND "viewers_millions"=12.42;
## Task Generate a SQL query to answer the following question: `What is the Rating/Share (18-49) that also has a Share greater than 10 and 12.42 million Viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "us_nielsen_ratings" ( "rating" real, "...
SELECT MIN("week") FROM "schedule" WHERE "record"='2-9';
## Task Generate a SQL query to answer the following question: `Which Week has a Record of 2-9?` ### 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, "attendance...
SELECT COUNT("week") FROM "schedule" WHERE "attendance"<'70,056' AND "opponent"='at minnesota vikings';
## Task Generate a SQL query to answer the following question: `Which Week has an Attendance smaller than 70,056, and an Opponent of at minnesota vikings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "oppo...
SELECT "1993" FROM "doubles_performance_timeline" WHERE "1990"='qf' AND "1995"='2r';
## Task Generate a SQL query to answer the following question: `What is the 1993 finish for the event that had a 1990 of QF and 1995 of 2R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" te...
SELECT "1994" FROM "doubles_performance_timeline" WHERE "tournament"='miami';
## Task Generate a SQL query to answer the following question: `What is the 1994 finish for the Miami tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992...
SELECT "to_par" FROM "second_round" WHERE "country"='united states' AND "score"='73-68=141' AND "player"='brad faxon';
## Task Generate a SQL query to answer the following question: `What is the to par score from Brad Faxon of the United States with a score of 73-68=141?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, ...
SELECT "to_par" FROM "second_round" WHERE "place"='t8' AND "score"='73-68=141' AND "country"='zimbabwe';
## Task Generate a SQL query to answer the following question: `What's the to par score in T8 place from Zimbabwe and has a score of 73-68=141?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country"...
SELECT "score" FROM "second_round" WHERE "place"='t4' AND "player"='lee janzen';
## Task Generate a SQL query to answer the following question: `What's the score of Lee Janzen in T4 place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" te...
SELECT "score" FROM "second_round" WHERE "place"='t2' AND "player"='jeff maggert';
## Task Generate a SQL query to answer the following question: `What's the score of Jeff Maggert in T2 place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" ...
SELECT "to_par" FROM "second_round" WHERE "score"='68-73=141';
## Task Generate a SQL query to answer the following question: `What's the to par when the score was 68-73=141?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par...
SELECT SUM("games") FROM "points" WHERE "points"=377;
## Task Generate a SQL query to answer the following question: `What's the total number of game that has 377 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ...
SELECT COUNT("points") FROM "points" WHERE "name"='tiago splitter' AND "rank"<5;
## Task Generate a SQL query to answer the following question: `What's the total number of points that the rank is less than 5 and has Tiago Splitter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "points" ( "rank" real, "name" text, "team" text...
SELECT SUM("games") FROM "points" WHERE "points">266 AND "name"='juan carlos navarro';
## Task Generate a SQL query to answer the following question: `What is the total number of games that has Juan Carlos Navarro and more than 266 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "points" ( "rank" real, "name" text, "team" te...
SELECT SUM("rank") FROM "points" WHERE "team"='tau cerámica' AND "name"='igor rakočević' AND "points">377;
## Task Generate a SQL query to answer the following question: `What's the rank of Igor Rakočević of Tau Cerámica with more than 377 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games...
SELECT COUNT("rank") FROM "points" WHERE "team"='tau cerámica' AND "points"=377 AND "games">21;
## Task Generate a SQL query to answer the following question: `What's the rank of the Tau Cerámica that has 377 points and more than 21 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "ga...
SELECT "dates" FROM "aircraft" WHERE "squadron"='squadron 33';
## Task Generate a SQL query to answer the following question: `What are the dates of squadron 33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aircraft" ( "aircraft" text, "origin" text, "squadron" text, "display_aircraft" real, "dates" t...
SELECT "institution" FROM "list_of_a_star_talent_search_winners" WHERE "year">2007 AND "award"='2nd' AND "chief_judge"='peter agre';
## Task Generate a SQL query to answer the following question: `What institution won 2nd more recently than 2007 with Peter Agre as Chief Judge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_a_star_talent_search_winners" ( "year" real, "a...
SELECT "name" FROM "list_of_a_star_talent_search_winners" WHERE "chief_judge"='peter agre' AND "award"='3rd';
## Task Generate a SQL query to answer the following question: `What student won 3rd with Peter Agre as Chief Judge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_a_star_talent_search_winners" ( "year" real, "award" text, "name" text, ...