output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "assists" FROM "college" WHERE "year"='1995';
## Task Generate a SQL query to answer the following question: `What is the assists for the year 1995?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college" ( "year" text, "team" text, "gp_gs" text, "goals" text, "assists" text, "total_p...
SELECT "assists" FROM "college" WHERE "team"='smu' AND "total_points"='85';
## Task Generate a SQL query to answer the following question: `What assists has the Team SMU and the total points of 85?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college" ( "year" text, "team" text, "gp_gs" text, "goals" text, "assist...
SELECT "year" FROM "college" WHERE "assists"='48';
## Task Generate a SQL query to answer the following question: `What year had 48 assists?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college" ( "year" text, "team" text, "gp_gs" text, "goals" text, "assists" text, "total_points" text )...
SELECT "total_points" FROM "college" WHERE "gp_gs"='24/23';
## Task Generate a SQL query to answer the following question: `What is the total points for GP/GS of 24/23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college" ( "year" text, "team" text, "gp_gs" text, "goals" text, "assists" text, "t...
SELECT "assists" FROM "college" WHERE "team"='florida' AND "total_points"='75';
## Task Generate a SQL query to answer the following question: `What is the assists for the Team of Florida and the total points of 75?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college" ( "year" text, "team" text, "gp_gs" text, "goals" t...
SELECT "attendance" FROM "first_round" WHERE "home_team"='f.c. central chugoku';
## Task Generate a SQL query to answer the following question: `What is the attendance of the match with F.C. central chugoku as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "match_no" text, "home_team" text, "sco...
SELECT "away_team" FROM "first_round" WHERE "match_no"='9';
## Task Generate a SQL query to answer the following question: `What is the away team of match 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" t...
SELECT "score" FROM "first_round" WHERE "match_no"='15';
## Task Generate a SQL query to answer the following question: `What is the score of match 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text...
SELECT "attendance" FROM "first_round" WHERE "away_team"='kochi university';
## Task Generate a SQL query to answer the following question: `What is the attendance of the match with kochi university as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "match_no" text, "home_team" text, "score" ...
SELECT "attendance" FROM "first_round" WHERE "away_team"='rosso kumamoto';
## Task Generate a SQL query to answer the following question: `What is the attendance of the match with rosso kumamoto as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "match_no" text, "home_team" text, "score" te...
SELECT COUNT("year") FROM "financial_results" WHERE "balance_sheet_total"='€125,359,000';
## Task Generate a SQL query to answer the following question: `What year did the company have a balance sheet total of €125,359,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "financial_results" ( "year" real, "turnover" text, "net_income" ...
SELECT AVG("year") FROM "music_videos" WHERE "album"='da baddest bitch';
## Task Generate a SQL query to answer the following question: `What was the average Year of release for the Album, "Da Baddest Bitch"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "music_videos" ( "song" text, "artist" text, "album" text, "d...
SELECT "artist" FROM "music_videos" WHERE "year">2009 AND "song"='\"party like a dj\"';
## Task Generate a SQL query to answer the following question: `After 2009, which Artist published the Song, "Party Like A DJ"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "music_videos" ( "song" text, "artist" text, "album" text, "director"...
SELECT "result" FROM "international_career" WHERE "score"='3-2';
## Task Generate a SQL query to answer the following question: `What was the result of the game with a score of 3-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_career" ( "date" text, "venue" text, "score" text, "result" text,...
SELECT "score" FROM "international_career" WHERE "competition"='2014 world cup qualification';
## Task Generate a SQL query to answer the following question: `What was the score of the 2014 World Cup Qualification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_career" ( "date" text, "venue" text, "score" text, "result" te...
SELECT "result" FROM "international_career" WHERE "score"='4-1';
## Task Generate a SQL query to answer the following question: `What was the result of the game with a score of 4-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_career" ( "date" text, "venue" text, "score" text, "result" text,...
SELECT "venue" FROM "international_career" WHERE "score"='3-2';
## Task Generate a SQL query to answer the following question: `What venue held with game with a score of 3-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_career" ( "date" text, "venue" text, "score" text, "result" text, "co...
SELECT "cover_model" FROM "2004" WHERE "20_questions"='christina applegate';
## Task Generate a SQL query to answer the following question: `Which Cover model has a 20 Questions of christina applegate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "date" text, "cover_model" text, "centerfold_model" text, "inte...
SELECT "date" FROM "2004" WHERE "centerfold_model"='krista kelly';
## Task Generate a SQL query to answer the following question: `When has a Centerfold model of krista kelly?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" t...
SELECT "20_questions" FROM "2004" WHERE "cover_model"='rena mero , torrie wilson (two alternative covers)';
## Task Generate a SQL query to answer the following question: `Which 20 Questions has a Cover model of rena mero , torrie wilson (two alternative covers)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "date" text, "cover_model" text, "...
SELECT "centerfold_model" FROM "2004" WHERE "date"='3-04';
## Task Generate a SQL query to answer the following question: `When Centerfold model is on 3-04?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_...
SELECT "cover_model" FROM "2004" WHERE "centerfold_model"='scarlett keegan';
## Task Generate a SQL query to answer the following question: `Which Cover model has a Centerfold model of scarlett keegan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "date" text, "cover_model" text, "centerfold_model" text, "inte...
SELECT "date" FROM "2004" WHERE "centerfold_model"='pilar lastra';
## Task Generate a SQL query to answer the following question: `When has a Centerfold model of pilar lastra?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" t...
SELECT AVG("share") FROM "u_s_standard_ratings" WHERE "timeslot"='8:00 p.m.' AND "18_49"='1.3/4' AND "air_date"='april 4, 2008';
## Task Generate a SQL query to answer the following question: `What is the average share at 8:00 p.m., and an 18-49 of 1.3/4 with an air date of April 4, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_standard_ratings" ( "air_date" text, ...
SELECT MIN("share") FROM "u_s_standard_ratings" WHERE "air_date"='march 21, 2008' AND "viewers">5.15;
## Task Generate a SQL query to answer the following question: `What is the lowest share with an air date of March 21, 2008 and had viewers larger than 5.15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_standard_ratings" ( "air_date" text, "...
SELECT MIN("team_s") FROM "champions_and_top_goalscorers" WHERE "top_goalscorer_s"='tvmk' AND "champion"='flora';
## Task Generate a SQL query to answer the following question: `What is the lowest team (s) that have tvmk as top scorer (s) and flora as the champion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_and_top_goalscorers" ( "season" text, ...
SELECT "runner_up" FROM "champions_and_top_goalscorers" WHERE "3rd_position"='narva trans' AND "season"='2005';
## Task Generate a SQL query to answer the following question: `Which runner-up has narva trans as a 3rd position for the 2005 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_and_top_goalscorers" ( "season" text, "champion" text, ...
SELECT "season" FROM "champions_and_top_goalscorers" WHERE "runner_up"='flora' AND "3rd_position"='tvmk' AND "top_goalscorer_s"='narva trans';
## Task Generate a SQL query to answer the following question: `Which season has flora as the runner-up, tvmk as the 3rd position, and narva trans as the top goalscorer (s)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_and_top_goalscorers"...
SELECT "runner_up" FROM "champions_and_top_goalscorers" WHERE "3rd_position"='levadia' AND "team_s"=37;
## Task Generate a SQL query to answer the following question: `Which runner-up has levadia as the 3rd position for the team (s) 37?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_and_top_goalscorers" ( "season" text, "champion" text, ...
SELECT "round" FROM "club_brugge" WHERE "opposition"='lyon';
## Task Generate a SQL query to answer the following question: `What round had the opponent Lyon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_brugge" ( "round" text, "opposition" text, "first_leg" text, "second_leg" text, "aggregate_...
SELECT "first_leg" FROM "club_brugge" WHERE "round"='semi-final';
## Task Generate a SQL query to answer the following question: `Who has the first leg that has a round in the semi-final?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_brugge" ( "round" text, "opposition" text, "first_leg" text, "second_...
SELECT "most_laps_led" FROM "round_1" WHERE "winning_team"='chip ganassi racing' AND "fastest_lap"='marco andretti';
## Task Generate a SQL query to answer the following question: `What is Most Laps Led, when Winning Team is Chip Ganassi Racing, and when Fastest Lap is Marco Andretti?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "race" text, "pole_p...
SELECT "winning_driver" FROM "round_1" WHERE "most_laps_led"='dario franchitti' AND "pole_position"='hélio castroneves';
## Task Generate a SQL query to answer the following question: `Who is the Winning Driver, when Most Laps Led is Dario Franchitti, and when Pole Position is Hélio Castroneves?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "race" text, ...
SELECT "winning_team" FROM "round_1" WHERE "most_laps_led"='alex tagliani';
## Task Generate a SQL query to answer the following question: `What is Winning Team, when Most Laps Led is Alex Tagliani?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "race" text, "pole_position" text, "fastest_lap" text, "most_l...
SELECT "winning_driver" FROM "round_1" WHERE "fastest_lap"='ryan hunter-reay' AND "most_laps_led"='ryan briscoe';
## Task Generate a SQL query to answer the following question: `What is Winning Driver, when Fastest Lap is Ryan Hunter-Reay, and when Most Laps Led is Ryan Briscoe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "race" text, "pole_posi...
SELECT "race" FROM "round_1" WHERE "winning_team"='chip ganassi racing' AND "pole_position"='ryan briscoe' AND "most_laps_led"='scott dixon';
## Task Generate a SQL query to answer the following question: `What is Race, when Winning Team is Chip Ganassi Racing, when Pole Position is Ryan Briscoe, and when Most Laps Led is Scott Dixon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ...
SELECT "winner" FROM "finals_champions_league_era" WHERE "runner_up"='real salt lake';
## Task Generate a SQL query to answer the following question: `Who was the Winner when the Runner-up was Real Salt Lake?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finals_champions_league_era" ( "season" text, "winner" text, "score" text, ...
SELECT "season" FROM "finals_champions_league_era" WHERE "runner_up"='tournament in progress';
## Task Generate a SQL query to answer the following question: `During which Season was the tournament in progress?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finals_champions_league_era" ( "season" text, "winner" text, "score" text, "runn...
SELECT "score" FROM "finals_champions_league_era" WHERE "winner"='c.f. atlante';
## Task Generate a SQL query to answer the following question: `What was the Score during the Season in which the Winner was C.F. Atlante?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finals_champions_league_era" ( "season" text, "winner" text, ...
SELECT "score" FROM "finals_champions_league_era" WHERE "losing_semifinalists"='toluca unam';
## Task Generate a SQL query to answer the following question: `What was the Score when the Losing Semifinalists were Toluca Unam?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finals_champions_league_era" ( "season" text, "winner" text, "score...
SELECT "laws_against_homosexuality" FROM "homosexuality_laws_in_majority_muslim_co" WHERE "penalty"='—' AND "country"='iraq';
## Task Generate a SQL query to answer the following question: `What law has a penalty of — in Iraq?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "homosexuality_laws_in_majority_muslim_co" ( "country" text, "laws_against_homosexuality" text, "p...
SELECT "laws_against_homosexuality" FROM "homosexuality_laws_in_majority_muslim_co" WHERE "country"='malaysia';
## Task Generate a SQL query to answer the following question: `What are the laws against homosexuality in Malaysia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "homosexuality_laws_in_majority_muslim_co" ( "country" text, "laws_against_homosexua...
SELECT AVG("events") FROM "summary" WHERE "top_25"=12 AND "wins"<0;
## Task Generate a SQL query to answer the following question: `What is the average Events when the top-25 is 12 and there are less than 0 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" re...
SELECT SUM("events") FROM "summary" WHERE "top_25">5 AND "top_10"<4 AND "wins">2;
## Task Generate a SQL query to answer the following question: `What is the sum of Events when the top-25 is more than 5, and the top-10 is less than 4, and wins is more than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" ...
SELECT AVG("top_10") FROM "summary" WHERE "cuts_made"=17 AND "wins"<0;
## Task Generate a SQL query to answer the following question: `What is the average Top-10 when there were 17 cuts made with less than 0 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real...
SELECT SUM("cuts_made") FROM "summary" WHERE "events">72;
## Task Generate a SQL query to answer the following question: `What is the sum of Cuts made when there were more than 72 events?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" ...
SELECT AVG("top_5") FROM "summary" WHERE "tournament"='the open championship' AND "top_10"<2;
## Task Generate a SQL query to answer the following question: `What is the average Top-5 for the open championship, and a Top-10 smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" r...
SELECT "original_airing" FROM "united_states" WHERE "rating"<10.1 AND "episode_number_production_number"='96 5-09';
## Task Generate a SQL query to answer the following question: `What was the date of airing for episodes with ratings under 10.1 and production number of 96 5-09?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states" ( "episode_number_produc...
SELECT MIN("total_viewers_in_millions") FROM "united_states" WHERE "episode_number_production_number"='109 5-22';
## Task Generate a SQL query to answer the following question: `What was the fewest number of viewers for the episode production number of 109 5-22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states" ( "episode_number_production_number" t...
SELECT "first_aligned_day" FROM "leap_year_error" WHERE "date"='1614';
## Task Generate a SQL query to answer the following question: `What is the First Aligned date in 1614?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leap_year_error" ( "scholar" text, "date" text, "triennial_leap_years_bc" text, "first_julia...
SELECT COUNT("num_of_airlines") FROM "by_aircraft_movements" WHERE "distance_km"=705;
## Task Generate a SQL query to answer the following question: `How many Airlines have a total distance of 705 (km)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_aircraft_movements" ( "rank" text, "route" text, "avg_daily_flts" real, "num...
SELECT "1st_leg" FROM "first_round" WHERE "team_1"='gambia';
## Task Generate a SQL query to answer the following question: `What is the 1st leg result when team 1 is Gambia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_le...
SELECT "2nd_leg" FROM "first_round" WHERE "team_2"='morocco';
## Task Generate a SQL query to answer the following question: `What is the 2nd leg result when team 2 is Morocco?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_l...
SELECT "name" FROM "rankings" WHERE "year"='2001';
## Task Generate a SQL query to answer the following question: `Which Name was in the Year 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rankings" ( "name" text, "rank" real, "out_of" real, "source" text, "year" text ); ### SQL Given ...
SELECT "name" FROM "rankings" WHERE "out_of"<149 AND "rank"=18;
## Task Generate a SQL query to answer the following question: `Which Name had a Rank of 18 Out of a number smaller than 149?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rankings" ( "name" text, "rank" real, "out_of" real, "source" text, ...
SELECT "name" FROM "rankings" WHERE "rank"=15;
## Task Generate a SQL query to answer the following question: `Which Name had the Rank, 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rankings" ( "name" text, "rank" real, "out_of" real, "source" text, "year" text ); ### SQL Given the ...
SELECT MIN("rank") FROM "rankings" WHERE "name"='area of permanent crops' AND "out_of"<181;
## Task Generate a SQL query to answer the following question: `What is the lowest Rank for the Name, "area of permanent crops", Out of a number smaller than 181?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rankings" ( "name" text, "rank" real,...
SELECT "name" FROM "rankings" WHERE "source"='world bank' AND "rank"<110 AND "out_of"<199;
## Task Generate a SQL query to answer the following question: `Which Name had the Source, World Bank, and a Rank smaller than 110, Out of a number smaller than 199?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rankings" ( "name" text, "rank" re...
SELECT "team" FROM "league" WHERE "coach"='manzoor elahi' AND "captain"='taufeeq umar';
## Task Generate a SQL query to answer the following question: `Which Team has Manzoor Elahi as Coach and Taufeeq Umar as Captain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league" ( "team" text, "city" text, "inaugural_season" text, "fin...
SELECT "city" FROM "league" WHERE "team"='bahawalpur stags';
## Task Generate a SQL query to answer the following question: `Which City has the Bahawalpur Stags Team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league" ( "team" text, "city" text, "inaugural_season" text, "final_season" text, "capta...
SELECT "opponent" FROM "schedule" WHERE "date"='december 18, 1994';
## Task Generate a SQL query to answer the following question: `Who is the opponent of the December 18, 1994 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time"...
SELECT "artist" FROM "1970s" WHERE "date"='june 1979';
## Task Generate a SQL query to answer the following question: `What is the Artist with a Date that is june 1979?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, ...
SELECT "writer" FROM "1970s" WHERE "actual_title"='mork & mindy';
## Task Generate a SQL query to answer the following question: `What is the Writer with an Actual Title that is mork & mindy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970s" ( "spoofed_title" text, "actual_title" text, "writer" text, "ar...
SELECT "writer" FROM "1970s" WHERE "date"='january 1975';
## Task Generate a SQL query to answer the following question: `What is the Writer with a Date that is january 1975?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" tex...
SELECT SUM("2010_census") FROM "cities_and_towns" WHERE "2011_estimate"=410;
## Task Generate a SQL query to answer the following question: `What was the 2010 census when the 2011 estimate was 410?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_and_towns" ( "city" text, "2011_estimate" real, "2010_census" real, ...
SELECT MIN("played") FROM "campeonato_paulista" WHERE "drawn"=2 AND "against">73;
## Task Generate a SQL query to answer the following question: `What is the smallest played amount when there are 2 draws and an against of more than 73?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team"...
SELECT MIN("episodes") FROM "series_overview" WHERE "premiere"='february5,2007';
## Task Generate a SQL query to answer the following question: `What is the earliest season with a premiere of february5,2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_overview" ( "season" real, "episodes" real, "premiere" text, "...
SELECT "premiere" FROM "series_overview" WHERE "episodes">15;
## Task Generate a SQL query to answer the following question: `Which premiere had more than 15 episodes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_overview" ( "season" real, "episodes" real, "premiere" text, "finale" text, "dvd_...
SELECT "high_rebounds" FROM "game_log" WHERE "date"='april 7';
## Task Generate a SQL query to answer the following question: `Who had the highest rebounds of the game on April 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" text, "score" text, "high_points...
SELECT "result" FROM "mixed_martial_arts_record" WHERE "date"='2003';
## Task Generate a SQL query to answer the following question: `What is Result, when Date is 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "result" text, "record" text, "opponent" text, "method" text, "dat...
SELECT "record" FROM "mixed_martial_arts_record" WHERE "date"='1996';
## Task Generate a SQL query to answer the following question: `What is Record, when Date is 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "result" text, "record" text, "opponent" text, "method" text, "dat...
SELECT "notes" FROM "mixed_martial_arts_record" WHERE "date"='2007';
## Task Generate a SQL query to answer the following question: `What is Notes, when Date is 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "result" text, "record" text, "opponent" text, "method" text, "date...
SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "opponent"='junior pitbull';
## Task Generate a SQL query to answer the following question: `What is the highest Round, when the Opponent is Junior Pitbull?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "result" text, "record" text, "opponent" ...
SELECT "date" FROM "mixed_martial_arts_record" WHERE "result"='loss' AND "method"='submission (armbar)';
## Task Generate a SQL query to answer the following question: `What is Date, when Result is Loss, and when Method is Submission (Armbar)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "result" text, "record" text, ...
SELECT "coombe_road" FROM "1980_timetable_an_illustrative_example" WHERE "selsdon"='evening peak';
## Task Generate a SQL query to answer the following question: `What is the Coombe Road time with a Selsdon evening peak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1980_timetable_an_illustrative_example" ( "sanderstead" text, "selsdon" text, ...
SELECT "woodside" FROM "1980_timetable_an_illustrative_example" WHERE "coombe_road"='16:19';
## Task Generate a SQL query to answer the following question: `What is the Woodside for the 16:19 Coombe Road?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1980_timetable_an_illustrative_example" ( "sanderstead" text, "selsdon" text, "coombe_...
SELECT "elmers_end" FROM "1980_timetable_an_illustrative_example" WHERE "bingham_road"='09:54';
## Task Generate a SQL query to answer the following question: `What is the Elmers End with a 09:54 Bingham Road?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1980_timetable_an_illustrative_example" ( "sanderstead" text, "selsdon" text, "coomb...
SELECT "coombe_road" FROM "1980_timetable_an_illustrative_example" WHERE "woodside"='07:23';
## Task Generate a SQL query to answer the following question: `What is the Coombe Road with a Woodside time of 07:23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1980_timetable_an_illustrative_example" ( "sanderstead" text, "selsdon" text, "...
SELECT "elmers_end" FROM "1980_timetable_an_illustrative_example" WHERE "selsdon"='17:57';
## Task Generate a SQL query to answer the following question: `What is the Elmers End with a 17:57 Selsdon time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1980_timetable_an_illustrative_example" ( "sanderstead" text, "selsdon" text, "coomb...
SELECT "selsdon" FROM "1980_timetable_an_illustrative_example" WHERE "coombe_road"='17:19';
## Task Generate a SQL query to answer the following question: `What is the Selsdon for the 17:19 Coombe Road?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1980_timetable_an_illustrative_example" ( "sanderstead" text, "selsdon" text, "coombe_r...
SELECT MAX("wins") FROM "2007_ladder" WHERE "losses"<2;
## Task Generate a SQL query to answer the following question: `What is the highest win for losses less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws...
SELECT AVG("byes") FROM "2007_ladder" WHERE "losses"=15 AND "against"<1874;
## Task Generate a SQL query to answer the following question: `What is the average Byes for the losses of 15, and before 1874?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses...
SELECT SUM("against") FROM "2007_ladder" WHERE "ballarat_fl"='east point' AND "wins"<16;
## Task Generate a SQL query to answer the following question: `What is the sum of against in Ballarat FL of East Point and wins less than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_ladder" ( "ballarat_fl" text, "wins" real, "byes" ...
SELECT "school" FROM "first_round_selections" WHERE "pick"=24;
## Task Generate a SQL query to answer the following question: `What is the School with a Pick that is 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "sc...
SELECT "team" FROM "first_round_selections" WHERE "player"='david cooper';
## Task Generate a SQL query to answer the following question: `What is the Team with a Player that is david cooper?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" t...
SELECT SUM("visitors_2007") FROM "most_visited_tourist_attractions" WHERE "type"='ski jumping hill';
## Task Generate a SQL query to answer the following question: `How many visitors in 2007 were there for ski jumping hill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_visited_tourist_attractions" ( "rank" real, "cultural_attraction" text, ...
SELECT MAX("games") FROM "rebounds" WHERE "rebounds">100 AND "name"='nikola peković' AND "rank"<4;
## Task Generate a SQL query to answer the following question: `What is the highest Games, when Rebounds is greater than 100, when Name is Nikola Peković, and when Rank is less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank...
SELECT COUNT("games") FROM "rebounds" WHERE "rank"<4 AND "rebounds"<102;
## Task Generate a SQL query to answer the following question: `What is the total number of Games, when Rank is less than 4, and when Rebounds is less than 102?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, ...
SELECT MIN("games") FROM "rebounds" WHERE "name"='travis watson' AND "rebounds"<136;
## Task Generate a SQL query to answer the following question: `What is the lowest Games, when Name is Travis Watson, and when Rebounds is less than 136?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team"...
SELECT SUM("rebounds") FROM "rebounds" WHERE "team"='aris thessaloniki' AND "games">14;
## Task Generate a SQL query to answer the following question: `What is the sum of Rebounds, when Team is Aris Thessaloniki, and when Games is greater than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, ...
SELECT MAX("rank") FROM "rebounds" WHERE "name"='travis watson' AND "games"<14;
## Task Generate a SQL query to answer the following question: `What is the highest Rank, when Name is Travis Watson, and when Games is less than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" tex...
SELECT "authors" FROM "non_mammalian" WHERE "novelty"='gen nov' AND "location"='south africa' AND "name"='criocephalosaurus';
## Task Generate a SQL query to answer the following question: `What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name is Criocephalosaurus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_mammalian" ( "name" text,...
SELECT "status" FROM "non_mammalian" WHERE "location"='russia';
## Task Generate a SQL query to answer the following question: `What is Status, when Location is Russia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_mammalian" ( "name" text, "novelty" text, "status" text, "authors" text, "location" t...
SELECT "authors" FROM "non_mammalian" WHERE "novelty"='gen et sp nov' AND "name"='lanthanocephalus';
## Task Generate a SQL query to answer the following question: `What is Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_mammalian" ( "name" text, "novelty" text, "stat...
SELECT "name" FROM "non_mammalian" WHERE "authors"='kammerer & sidor';
## Task Generate a SQL query to answer the following question: `What is Name, when Authors are Kammerer & Sidor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_mammalian" ( "name" text, "novelty" text, "status" text, "authors" text, "loc...
SELECT "name" FROM "non_mammalian" WHERE "location"='tanzania' AND "novelty"='gen nov';
## Task Generate a SQL query to answer the following question: `What is Name, when Location is Tanzania, and when Novelty is Gen Nov?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_mammalian" ( "name" text, "novelty" text, "status" text, "...
SELECT "name" FROM "non_mammalian" WHERE "status"='valid' AND "authors"='maisch' AND "location"='tanzania' AND "novelty"='gen et sp nov';
## Task Generate a SQL query to answer the following question: `What is Name, when Status is Valid, when Authors is Maisch, when Location is Tanzania, and when Novelty is Gen Et Sp Nov?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_mammalian" ( ...
SELECT "t568_a_color" FROM "category_6a" WHERE "t568_b_color"='white/orange stripe';
## Task Generate a SQL query to answer the following question: `What is the T568A color for the cable with a white/orange stripe T568B color?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "category_6a" ( "t568_a_pair" real, "t568_b_pair" real, "...
SELECT "date" FROM "singles_5_5_runners_up" WHERE "opponent"='flavia pennetta';
## Task Generate a SQL query to answer the following question: `What is the Date with an Opponent that is flavia pennetta?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_5_runners_up" ( "outcome" text, "date" text, "tournament" text, ...
SELECT "score" FROM "singles_5_5_runners_up" WHERE "opponent"='flavia pennetta';
## Task Generate a SQL query to answer the following question: `What is the Score with an Opponent that is flavia pennetta?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_5_runners_up" ( "outcome" text, "date" text, "tournament" text, ...