question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What college has Chito Victolero?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "college" FROM "round_2" WHERE "player"='chito victolero';
2-10810530-3
What college has Jojo Manalo?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "college" FROM "round_2" WHERE "player"='jojo manalo';
2-10810530-3
What is the pick number for the College of Perpetual help with the Coca-Cola Tigers as a PBA team?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT COUNT("pick") FROM "round_2" WHERE "college"='perpetual help' AND "pba_team"='coca-cola tigers';
2-10810530-3
What is the score of the game on May 5?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "date"='may 5';
2-12076689-3
What is the record of the game with 18,084 in attendance?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "attendance"='18,084';
2-12076689-3
What is the record of the game on May 30?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='may 30';
2-12076689-3
Who won third place in the Zurich Tournament?
CREATE TABLE "2012" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text );
SELECT "third_place" FROM "2012" WHERE "tournament"='zurich';
2-11346282-14
Who was the winner with a score of 7–6 (7–3) , 2–6, [10–6]?
CREATE TABLE "2012" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text );
SELECT "winner" FROM "2012" WHERE "score"='7–6 (7–3) , 2–6, [10–6]';
2-11346282-14
Which tournament did Thomas Enqvist win?
CREATE TABLE "2012" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text );
SELECT "tournament" FROM "2012" WHERE "winner"='thomas enqvist';
2-11346282-14
Which tournament was Tim Henman the runner-up in?
CREATE TABLE "2012" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text );
SELECT "tournament" FROM "2012" WHERE "runner_up"='tim henman';
2-11346282-14
What is the venue where 153 runs were scored?
CREATE TABLE "highest_partnerships_of_the_tournament" ( "runs" text, "wicket" text, "partnerships" text, "versus" text, "venue" text, "date" text );
SELECT "venue" FROM "highest_partnerships_of_the_tournament" WHERE "runs"='153';
2-11611293-8
What is the partnership in the game with 166* runs and an opponent of Namibia?
CREATE TABLE "highest_partnerships_of_the_tournament" ( "runs" text, "wicket" text, "partnerships" text, "versus" text, "venue" text, "date" text );
SELECT "partnerships" FROM "highest_partnerships_of_the_tournament" WHERE "versus"='namibia' AND "runs"='166*';
2-11611293-8
What is the date of the game against South Africa and 2nd wickets?
CREATE TABLE "highest_partnerships_of_the_tournament" ( "runs" text, "wicket" text, "partnerships" text, "versus" text, "venue" text, "date" text );
SELECT "date" FROM "highest_partnerships_of_the_tournament" WHERE "versus"='south africa' AND "wicket"='2nd';
2-11611293-8
Who was the Away team that played at Carlton on 11 June 1966?
CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_8" WHERE "date"='11 june 1966' AND "home_team"='carlton';
2-10808089-8
What was the smallest crowd at a home game of carlton?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MIN("crowd") FROM "round_9" WHERE "home_team"='carlton';
2-10790099-9
What's the title for year n.m.?
CREATE TABLE "publication_history" ( "year" text, "language" text, "title" text, "translator" text, "company" text, "pages" real );
SELECT "title" FROM "publication_history" WHERE "year"='n.m.';
2-1162324-1
What is the language for translators ritah meltser and amatsyah porat?
CREATE TABLE "publication_history" ( "year" text, "language" text, "title" text, "translator" text, "company" text, "pages" real );
SELECT "language" FROM "publication_history" WHERE "translator"='ritah meltser and amatsyah porat';
2-1162324-1
What's the fewest number of pages for the title al-jiniral fi matahatihi?
CREATE TABLE "publication_history" ( "year" text, "language" text, "title" text, "translator" text, "company" text, "pages" real );
SELECT MIN("pages") FROM "publication_history" WHERE "title"='al-jiniral fi matahatihi';
2-1162324-1
What is the date for Zouave?
CREATE TABLE "allied_ships" ( "date" text, "name" text, "flag" text, "tonnage_grt" real, "sunk_by" text );
SELECT "date" FROM "allied_ships" WHERE "name"='zouave';
2-12018899-2
What is the date where the tonnage is larger than 5,754 and the ship was sunk by U-305?
CREATE TABLE "allied_ships" ( "date" text, "name" text, "flag" text, "tonnage_grt" real, "sunk_by" text );
SELECT "date" FROM "allied_ships" WHERE "tonnage_grt">'5,754' AND "sunk_by"='u-305';
2-12018899-2
What is the date for the name of Granville?
CREATE TABLE "allied_ships" ( "date" text, "name" text, "flag" text, "tonnage_grt" real, "sunk_by" text );
SELECT "date" FROM "allied_ships" WHERE "name"='granville';
2-12018899-2
What is the name of the ship sunk by U-305 on 17 March 1943?
CREATE TABLE "allied_ships" ( "date" text, "name" text, "flag" text, "tonnage_grt" real, "sunk_by" text );
SELECT "name" FROM "allied_ships" WHERE "date"='17 march 1943' AND "sunk_by"='u-305';
2-12018899-2
Which date's visitor was jazz, when the leading scorer was Mehmet Okur (22)?
CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "date" FROM "april" WHERE "visitor"='jazz' AND "leading_scorer"='mehmet okur (22)';
2-11964263-10
What Club has Fiba European Champion's Cup and an Italian Cup?
CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text );
SELECT "club" FROM "all_the_triple_crowns_achieved" WHERE "european_cup"='fiba european champion''s cup' AND "national_cup"='italian cup';
2-12072982-1
What European Cup is in Israeli Premier League?
CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text );
SELECT "european_cup" FROM "all_the_triple_crowns_achieved" WHERE "national_league"='israeli premier league';
2-12072982-1
Which season is Euroleague with Greek Cup?
CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text );
SELECT "season" FROM "all_the_triple_crowns_achieved" WHERE "european_cup"='euroleague' AND "national_cup"='greek cup';
2-12072982-1
Which European Cup is in the 1990-91 season?
CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text );
SELECT "european_cup" FROM "all_the_triple_crowns_achieved" WHERE "season"='1990-91';
2-12072982-1
Which European Cup is in the 2006-07 season?
CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text );
SELECT "european_cup" FROM "all_the_triple_crowns_achieved" WHERE "season"='2006-07';
2-12072982-1
Which National League is in 1969-70 season?
CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text );
SELECT "national_league" FROM "all_the_triple_crowns_achieved" WHERE "season"='1969-70';
2-12072982-1
what is the right ascension (j2000) when the apparent magnitude is 13?
CREATE TABLE "3001_3100" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );
SELECT "right_ascension_j2000" FROM "3001_3100" WHERE "apparent_magnitude"=13;
2-11097691-1
what is the constellation when the right ascension (j2000) is 09h51m54.0s?
CREATE TABLE "3001_3100" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );
SELECT "constellation" FROM "3001_3100" WHERE "right_ascension_j2000"='09h51m54.0s';
2-11097691-1
what is the lowest apparent magnitude when the object type is spiral galaxy, the constellation is leo minor and the ngc number is more than 3021?
CREATE TABLE "3001_3100" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );
SELECT MIN("apparent_magnitude") FROM "3001_3100" WHERE "object_type"='spiral galaxy' AND "constellation"='leo minor' AND "ngc_number">3021;
2-11097691-1
Name the total number of Draws when goals for is 58 and losses is 12 when goal differences is less than 21
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT COUNT("draws") FROM "final_table" WHERE "goals_for"=58 AND "losses"=12 AND "goal_difference"<21;
2-12108714-2
How many goals for where there when draws are less than 11, points of is 54+16 and goals against are less than 39?
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT COUNT("goals_for") FROM "final_table" WHERE "draws"<11 AND "points"='54+16' AND "goals_against"<39;
2-12108714-2
Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT COUNT("played") FROM "final_table" WHERE "points"='31-7' AND "position"=16 AND "goals_for"<35;
2-12108714-2
Name the total number of goal difference when the position is more than 20
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT COUNT("goal_difference") FROM "final_table" WHERE "position">20;
2-12108714-2
Name the sum of draws when the position is less than 17 and wins is less than 11
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT SUM("draws") FROM "final_table" WHERE "position"<17 AND "wins"<11;
2-12108714-2
what is the first season of current spell when the number of seasons is more than 72 and the position in 2012 4th?
CREATE TABLE "clubs" ( "club" text, "position_in_2012" text, "first_season" text, "number_of_seasons" real, "first_season_of_current_spell" real, "titles" real, "last_title" text );
SELECT SUM("first_season_of_current_spell") FROM "clubs" WHERE "number_of_seasons">72 AND "position_in_2012"='4th';
2-1096793-1
what is the most number of season when the position in 2012 10th and the first season of current spell after 2004?
CREATE TABLE "clubs" ( "club" text, "position_in_2012" text, "first_season" text, "number_of_seasons" real, "first_season_of_current_spell" real, "titles" real, "last_title" text );
SELECT MAX("number_of_seasons") FROM "clubs" WHERE "position_in_2012"='10th' AND "first_season_of_current_spell">2004;
2-1096793-1
what is the position is 2012 when the last title is n/a and the first season is 2011?
CREATE TABLE "clubs" ( "club" text, "position_in_2012" text, "first_season" text, "number_of_seasons" real, "first_season_of_current_spell" real, "titles" real, "last_title" text );
SELECT "position_in_2012" FROM "clubs" WHERE "last_title"='n/a' AND "first_season"='2011';
2-1096793-1
what is the last title when the titles is more than 12 and the position in 2012 is 7th
CREATE TABLE "clubs" ( "club" text, "position_in_2012" text, "first_season" text, "number_of_seasons" real, "first_season_of_current_spell" real, "titles" real, "last_title" text );
SELECT "last_title" FROM "clubs" WHERE "titles">12 AND "position_in_2012"='7th';
2-1096793-1
What is the rank number for a placing of 28.5 and a total less than 92.7?
CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real );
SELECT COUNT("rank") FROM "pairs" WHERE "placings"='28.5' AND "total"<92.7;
2-11124874-3
What is the placing value for a total less than 96.07 in the United States?
CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real );
SELECT "placings" FROM "pairs" WHERE "total"<96.07 AND "nation"='united states';
2-11124874-3
What is the total for Rank 11?
CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real );
SELECT COUNT("total") FROM "pairs" WHERE "rank"=11;
2-11124874-3
What is the sum of all total values for Switzerland?
CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real );
SELECT SUM("total") FROM "pairs" WHERE "nation"='switzerland';
2-11124874-3
What rank goes to a total of 92.7?
CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real );
SELECT "rank" FROM "pairs" WHERE "total"=92.7;
2-11124874-3
Who has a rank great than 3 and a placing of 64?
CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real );
SELECT "name" FROM "pairs" WHERE "rank">3 AND "placings"='64';
2-11124874-3
How many Horizontal Bars have a Team of japan (jpn), and Parallel Bars smaller than 38.924?
CREATE TABLE "team_all_around" ( "rank" real, "team" text, "floor_exercise" real, "pommel_horse" real, "rings" real, "vault" real, "parallel_bars" real, "horizontal_bar" real, "total" real );
SELECT COUNT("horizontal_bar") FROM "team_all_around" WHERE "team"='japan (jpn)' AND "parallel_bars"<38.924;
2-11542215-2
How many pommel Horses have Rings of 37.461, and a Total smaller than 229.507?
CREATE TABLE "team_all_around" ( "rank" real, "team" text, "floor_exercise" real, "pommel_horse" real, "rings" real, "vault" real, "parallel_bars" real, "horizontal_bar" real, "total" real );
SELECT COUNT("pommel_horse") FROM "team_all_around" WHERE "rings"=37.461 AND "total"<229.507;
2-11542215-2
What is the sum of totals with a Vault of 38.437, and a Floor Exercise smaller than 37.524?
CREATE TABLE "team_all_around" ( "rank" real, "team" text, "floor_exercise" real, "pommel_horse" real, "rings" real, "vault" real, "parallel_bars" real, "horizontal_bar" real, "total" real );
SELECT COUNT("total") FROM "team_all_around" WHERE "vault"=38.437 AND "floor_exercise"<37.524;
2-11542215-2
How many pommel horses have a Total smaller than 230.019, a Team of china (chn), and a Vault smaller than 38.437?
CREATE TABLE "team_all_around" ( "rank" real, "team" text, "floor_exercise" real, "pommel_horse" real, "rings" real, "vault" real, "parallel_bars" real, "horizontal_bar" real, "total" real );
SELECT COUNT("pommel_horse") FROM "team_all_around" WHERE "total"<230.019 AND "team"='china (chn)' AND "vault"<38.437;
2-11542215-2
What is the title where the studio was RKO, the role was Dolly, and the year was later than 1943?
CREATE TABLE "filmography" ( "year" real, "title" text, "role" text, "studio" text, "director" text );
SELECT "title" FROM "filmography" WHERE "year">1943 AND "studio"='rko' AND "role"='dolly';
2-11882313-1
Who was the director for To Have and Have Not, earlier than 1945 with WB studio?
CREATE TABLE "filmography" ( "year" real, "title" text, "role" text, "studio" text, "director" text );
SELECT "director" FROM "filmography" WHERE "studio"='wb' AND "year"<1945 AND "title"='to have and have not';
2-11882313-1
What year was The Horn Blows at Midnight, directed by Raoul Walsh?
CREATE TABLE "filmography" ( "year" real, "title" text, "role" text, "studio" text, "director" text );
SELECT AVG("year") FROM "filmography" WHERE "director"='raoul walsh' AND "title"='the horn blows at midnight';
2-11882313-1
What title was directed by Raoul Walsh later than 1945?
CREATE TABLE "filmography" ( "year" real, "title" text, "role" text, "studio" text, "director" text );
SELECT "title" FROM "filmography" WHERE "director"='raoul walsh' AND "year">1945;
2-11882313-1
What was the studio for The Hard Way in 1943?
CREATE TABLE "filmography" ( "year" real, "title" text, "role" text, "studio" text, "director" text );
SELECT "studio" FROM "filmography" WHERE "year"=1943 AND "title"='the hard way';
2-11882313-1
Which team plays at Lake Oval?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_15" WHERE "venue"='lake oval';
2-10790804-15
What was the away score when they played at Brunswick Street Oval?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_15" WHERE "venue"='brunswick street oval';
2-10790804-15
Where was South Melbourne played?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_15" WHERE "home_team"='south melbourne';
2-10790804-15
Where week is greater than 14 and Opponent is Dallas Cowboys, what is the result?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "week">14 AND "opponent"='dallas cowboys';
2-10996301-1
Where week is greater than 7 and attendance is 66,251 what is the result?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "week">7 AND "attendance"='66,251';
2-10996301-1
Where attendance is 79,431 what is date?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "attendance"='79,431';
2-10996301-1
Where Date is september 13, 1998 what is result?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "date"='september 13, 1998';
2-10996301-1
What did the away team score at Junction oval?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_4" WHERE "venue"='junction oval';
2-10784349-4
What was the average amount of spectators when the away team scored 14.7 (91)?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT AVG("crowd") FROM "round_4" WHERE "away_team_score"='14.7 (91)';
2-10784349-4
What did the away team score when the home team scored 13.15 (93)?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_4" WHERE "home_team_score"='13.15 (93)';
2-10784349-4
Name the score when the home is ny islanders and the visitor is montreal
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "january" WHERE "home"='ny islanders' AND "visitor"='montreal';
2-11902440-6
Name the score when the decision is dipietro and the visitor is philadelphia
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "january" WHERE "decision"='dipietro' AND "visitor"='philadelphia';
2-11902440-6
Name the score when it had a decision of dipietro and visitor of ny islanders with home of colorado
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "january" WHERE "decision"='dipietro' AND "visitor"='ny islanders' AND "home"='colorado';
2-11902440-6
Name the least attendance with carolina visitor
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT MIN("attendance") FROM "january" WHERE "visitor"='carolina';
2-11902440-6
What was the Home team score when the crowd was larger than 12,240 and Carlton was the away team?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_3" WHERE "crowd">'12,240' AND "away_team"='carlton';
2-10809157-3
What Venue had Carlton has the Away team?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_3" WHERE "away_team"='carlton';
2-10809157-3
What is the record when Clippers have the high points?
CREATE TABLE "standings" ( "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "record" FROM "standings" WHERE "high_points"='clippers';
2-11965574-5
What had the high points when OT had high rebounds?
CREATE TABLE "standings" ( "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_points" FROM "standings" WHERE "high_rebounds"='ot';
2-11965574-5
On what date did the Suns have high points with a record of 33–13?
CREATE TABLE "standings" ( "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "date" FROM "standings" WHERE "high_points"='suns' AND "record"='33–13';
2-11965574-5
Who has the high assists when location attendance is 20,562?
CREATE TABLE "standings" ( "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_assists" FROM "standings" WHERE "location_attendance"='20,562';
2-11965574-5
Which Bronze has a Silver smaller than 1, and a Total larger than 3?
CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "silver"<1 AND "total">3;
2-10964790-2
Which Gold has a Nation of united states, and a Total larger than 5?
CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "medal_table" WHERE "nation"='united states' AND "total">5;
2-10964790-2
Which Bronze has a Nation of argentina, and a Silver smaller than 0?
CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "nation"='argentina' AND "silver"<0;
2-10964790-2
Which Bronze has a Silver of 2, and a Total smaller than 5?
CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "silver"=2 AND "total"<5;
2-10964790-2
Where was the game played when the away team scored 8.14 (62)?
CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_8" WHERE "away_team_score"='8.14 (62)';
2-10806194-8
What is the largest amount of spectators when the home team scored 13.11 (89)?
CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MAX("crowd") FROM "round_8" WHERE "home_team_score"='13.11 (89)';
2-10806194-8
How many spectators were at the away team Carlton?
CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "crowd" FROM "round_8" WHERE "away_team"='carlton';
2-10806194-8
What school colors for the friends' school with over 1000 enrolled?
CREATE TABLE "current_member_schools" ( "school" text, "location" text, "enrolment" real, "founded" real, "denomination" text, "boys_girls" text, "day_boarding" text, "school_colors" text );
SELECT "school_colors" FROM "current_member_schools" WHERE "enrolment">1000 AND "school"='the friends'' school';
2-11531237-1
What is the low enrolment for schools founded after 1995?
CREATE TABLE "current_member_schools" ( "school" text, "location" text, "enrolment" real, "founded" real, "denomination" text, "boys_girls" text, "day_boarding" text, "school_colors" text );
SELECT MIN("enrolment") FROM "current_member_schools" WHERE "founded">1995;
2-11531237-1
WHere is the friends' school?
CREATE TABLE "current_member_schools" ( "school" text, "location" text, "enrolment" real, "founded" real, "denomination" text, "boys_girls" text, "day_boarding" text, "school_colors" text );
SELECT "location" FROM "current_member_schools" WHERE "school"='the friends'' school';
2-11531237-1
What is the System with the Current version 3.0.0?
CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text );
SELECT "system" FROM "atari_5200" WHERE "current_version"='3.0.0';
2-11561548-3
What is the Name when the License is gpl and the Current Version is 1.72?
CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text );
SELECT "name" FROM "atari_5200" WHERE "license"='gpl' AND "current_version"='1.72';
2-11561548-3
What is the System when the Licence is gpl and the Current Version is 1.72?
CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text );
SELECT "system" FROM "atari_5200" WHERE "license"='gpl' AND "current_version"='1.72';
2-11561548-3
What is the System with a freeware License?
CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text );
SELECT "system" FROM "atari_5200" WHERE "license"='freeware';
2-11561548-3
What is the License when the Platform is windows and the Name is Altirra?
CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text );
SELECT "license" FROM "atari_5200" WHERE "platform"='windows' AND "name"='altirra';
2-11561548-3
What Platform has a Current Version 0.6.2?
CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text );
SELECT "platform" FROM "atari_5200" WHERE "current_version"='0.6.2';
2-11561548-3
What is the average attendance on October 9, 1983?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 9, 1983';
2-11157211-2
What is the lowest attendance on September 4, 1983?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MIN("attendance") FROM "schedule" WHERE "date"='september 4, 1983';
2-11157211-2
What is the name of the school whose namesake is John F. Kennedy?
CREATE TABLE "junior_high_schools" ( "school_s_name" text, "school_s_namesake" text, "year_opened" text, "principal" text, "mascot" text );
SELECT "school_s_name" FROM "junior_high_schools" WHERE "school_s_namesake"='john f. kennedy';
2-11119381-3
What is the mascot whose school opened in 1970?
CREATE TABLE "junior_high_schools" ( "school_s_name" text, "school_s_namesake" text, "year_opened" text, "principal" text, "mascot" text );
SELECT "mascot" FROM "junior_high_schools" WHERE "year_opened"='1970';
2-11119381-3
What principal has a school mascot of the patriots?
CREATE TABLE "junior_high_schools" ( "school_s_name" text, "school_s_namesake" text, "year_opened" text, "principal" text, "mascot" text );
SELECT "principal" FROM "junior_high_schools" WHERE "mascot"='patriots';
2-11119381-3
What is the namesake of the school whose mascot is the patriots?
CREATE TABLE "junior_high_schools" ( "school_s_name" text, "school_s_namesake" text, "year_opened" text, "principal" text, "mascot" text );
SELECT "school_s_namesake" FROM "junior_high_schools" WHERE "mascot"='patriots';
2-11119381-3
What is the school namesake for Lincoln Junior High School?
CREATE TABLE "junior_high_schools" ( "school_s_name" text, "school_s_namesake" text, "year_opened" text, "principal" text, "mascot" text );
SELECT "school_s_namesake" FROM "junior_high_schools" WHERE "school_s_name"='lincoln junior high school';
2-11119381-3
What was the venue when the score was 24–28?
CREATE TABLE "1997_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text );
SELECT "venue" FROM "1997_fixtures_and_results" WHERE "score"='24–28';
2-10813310-4