question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Which competition had a final position/round of 2?
CREATE TABLE "competitions" ( "competition" text, "current_position_round" text, "final_position_round" text, "first_match" text, "last_match" text );
SELECT "competition" FROM "competitions" WHERE "final_position_round"='2';
2-12098629-5
Which first match had a final position/round in the third qualifying round?
CREATE TABLE "competitions" ( "competition" text, "current_position_round" text, "final_position_round" text, "first_match" text, "last_match" text );
SELECT "first_match" FROM "competitions" WHERE "final_position_round"='third qualifying round';
2-12098629-5
What is the lowest number of bronze medals for nations with over 6 total and 2 golds?
CREATE TABLE "multiple_asian_games_gold_medalists" ( "athlete" text, "sport" text, "asian_games" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("bronze") FROM "multiple_asian_games_gold_medalists" WHERE "gold"=2 AND "total">6;
2-10882501-12
What is the total number of silver medals for karate athletes with over 2 golds?
CREATE TABLE "multiple_asian_games_gold_medalists" ( "athlete" text, "sport" text, "asian_games" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("silver") FROM "multiple_asian_games_gold_medalists" WHERE "sport"='karate' AND "gold">2;
2-10882501-12
What is the 2009 value with a 1r in 2010 and A in 2011?
CREATE TABLE "doubles" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_win_loss" text );
SELECT "2009" FROM "doubles" WHERE "2010"='1r' AND "2011"='a';
2-11737744-5
What is the 2009 value with a 2010 A value?
CREATE TABLE "doubles" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_win_loss" text );
SELECT "2009" FROM "doubles" WHERE "2010"='a';
2-11737744-5
What is the 2010 value with A in 2008, A in 2011, and 2r in 2012?
CREATE TABLE "doubles" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_win_loss" text );
SELECT "2010" FROM "doubles" WHERE "2008"='a' AND "2011"='a' AND "2012"='2r';
2-11737744-5
What is the average attendance on april 24?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT AVG("attendance") FROM "game_log" WHERE "date"='april 24';
2-11514020-1
What was the score of the away team when Richmond played?
CREATE TABLE "round_12" ( "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_12" WHERE "away_team"='richmond';
2-10809271-12
What company was Constructor when there were 16 laps and grid was 9?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "race" WHERE "laps"=16 AND "grid"=9;
2-1122381-2
What is the Time/Retired when lotus - ford was constructor and the laps were less than 17?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "time_retired" FROM "race" WHERE "constructor"='lotus - ford' AND "laps"<17;
2-1122381-2
What is the number of the grid when there was a Time/Retired of engine and less than 9 laps?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT SUM("grid") FROM "race" WHERE "time_retired"='engine' AND "laps"<9;
2-1122381-2
what was the attendance for a home venue and a w 3-0 result?
CREATE TABLE "2007_08_peterborough_united_f_c_season" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT AVG("attendance") FROM "2007_08_peterborough_united_f_c_season" WHERE "venue"='home' AND "result"='w 3-0';
2-11632002-2
what was the attendance at the home venue with result w 3-1?
CREATE TABLE "2007_08_peterborough_united_f_c_season" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT MAX("attendance") FROM "2007_08_peterborough_united_f_c_season" WHERE "venue"='home' AND "result"='w 3-1';
2-11632002-2
where did rochdale play as opponent?
CREATE TABLE "2007_08_peterborough_united_f_c_season" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT "venue" FROM "2007_08_peterborough_united_f_c_season" WHERE "opponent"='rochdale';
2-11632002-2
Which home team played in front of 18,345 people in Adelaide Oval?
CREATE TABLE "fixtures" ( "round" real, "date" text, "home_team" text, "score" text, "away_team" text, "crowd" real, "stadium" text, "match_details" text );
SELECT "home_team" FROM "fixtures" WHERE "crowd">'18,345' AND "stadium"='adelaide oval';
2-10866020-5
Which team was hosted at Adelaide Oval?
CREATE TABLE "fixtures" ( "round" real, "date" text, "home_team" text, "score" text, "away_team" text, "crowd" real, "stadium" text, "match_details" text );
SELECT "away_team" FROM "fixtures" WHERE "stadium"='adelaide oval';
2-10866020-5
When was a report not held?
CREATE TABLE "by_year" ( "year" text, "driver" text, "constructor" text, "location" text, "report" text );
SELECT "year" FROM "by_year" WHERE "report"='not held';
2-1145089-3
Who was the visitor when vancouver was at home?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "visitor" FROM "game_log" WHERE "home"='vancouver';
2-11739153-8
What is the decision when new jersey was away?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "decision" FROM "game_log" WHERE "visitor"='new jersey';
2-11739153-8
What is URA Index scale?
CREATE TABLE "message_format" ( "subframe_num" real, "page_num" text, "name" text, "word_num" real, "bits" text, "scale" text, "signed" text );
SELECT "scale" FROM "message_format" WHERE "name"='ura index';
2-11866-2
What is the scale of sv_health with a word number smaller than 4?
CREATE TABLE "message_format" ( "subframe_num" real, "page_num" text, "name" text, "word_num" real, "bits" text, "scale" text, "signed" text );
SELECT "scale" FROM "message_format" WHERE "word_num"<4 AND "name"='sv_health';
2-11866-2
Which tennis team is from the United States?
CREATE TABLE "list_of_winners" ( "year_of_award" real, "athlete" text, "nation_of_citizenship" text, "team" text, "competition_governing_body_or_league" text, "sport" text );
SELECT "team" FROM "list_of_winners" WHERE "sport"='tennis' AND "nation_of_citizenship"='united states';
2-10976484-1
What is the nation of citizenship for athletes later than 2011 year of award?
CREATE TABLE "list_of_winners" ( "year_of_award" real, "athlete" text, "nation_of_citizenship" text, "team" text, "competition_governing_body_or_league" text, "sport" text );
SELECT "nation_of_citizenship" FROM "list_of_winners" WHERE "year_of_award">2011;
2-10976484-1
What Constructor did Michael Schumacher have with a Grid smaller than 5?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "race" WHERE "grid"<5 AND "driver"='michael schumacher';
2-1123324-2
Which driver has a Time/Retired of +1 lap?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "race" WHERE "time_retired"='+1 lap';
2-1123324-2
Which apparatus had a final score that was more than 17.75?
CREATE TABLE "detailed_olympic_results" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "score_final" real, "score_qualifying" real );
SELECT "apparatus" FROM "detailed_olympic_results" WHERE "score_final">17.75;
2-11984852-2
Which competition description's apparatus was ribbon?
CREATE TABLE "detailed_olympic_results" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "score_final" real, "score_qualifying" real );
SELECT "competition_description" FROM "detailed_olympic_results" WHERE "apparatus"='ribbon';
2-11984852-2
Which Qualifying score had hoop as an apparatus?
CREATE TABLE "detailed_olympic_results" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "score_final" real, "score_qualifying" real );
SELECT "score_qualifying" FROM "detailed_olympic_results" WHERE "apparatus"='hoop';
2-11984852-2
What is the sum of qualifying scores when the final score is 16.625?
CREATE TABLE "detailed_olympic_results" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "score_final" real, "score_qualifying" real );
SELECT COUNT("score_qualifying") FROM "detailed_olympic_results" WHERE "score_final"=16.625;
2-11984852-2
When was the game played at Princes Park?
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 "date" FROM "round_9" WHERE "venue"='princes park';
2-10808681-9
What did Melbourne score as the home team?
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 "home_team_score" FROM "round_9" WHERE "home_team"='melbourne';
2-10808681-9
What position does the player from malvern prep play?
CREATE TABLE "high_school_players_and_coaches_of_the_y" ( "year" real, "player" text, "position" text, "high_school" text, "hometown" text, "mlb_draft" text );
SELECT "position" FROM "high_school_players_and_coaches_of_the_y" WHERE "high_school"='malvern prep';
2-11677100-1
What team scored more than 572 points and had more than 29 games?
CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real );
SELECT "team" FROM "points" WHERE "points">572 AND "games">29;
2-11194153-3
What is the least amount of games for Luis scola with a rank greater than 1?
CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real );
SELECT MIN("games") FROM "points" WHERE "rank">1 AND "name"='luis scola';
2-11194153-3
What is the identity of the brighton works built train?
CREATE TABLE "steam_locomotives" ( "identity" text, "builder" text, "built" real, "wheel_arrangement" text, "notes" text );
SELECT "identity" FROM "steam_locomotives" WHERE "builder"='brighton works';
2-1160616-1
What was the attendance on May 13?
CREATE TABLE "smythe_division_final_vs_3" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "attendance" FROM "smythe_division_final_vs_3" WHERE "date"='may 13';
2-11128774-10
What is the highest Quantity for PTRD Nos. 3, 15?
CREATE TABLE "locomotives_of_the_great_western_railway" ( "manufacturer" text, "type" text, "quantity" real, "ptrd_nos" text, "gwr_nos" text );
SELECT MAX("quantity") FROM "locomotives_of_the_great_western_railway" WHERE "ptrd_nos"='3, 15';
2-1169521-14
How many were hosted whene the average attendance was 27,638?
CREATE TABLE "match_attendance" ( "team" text, "hosted" real, "average" real, "highest" real, "lowest" real, "total" real, "last_year" real, "up_down" text );
SELECT COUNT("hosted") FROM "match_attendance" WHERE "average"='27,638';
2-1161065-27
What is the lowest attendance last year when more than 176 were hosted?
CREATE TABLE "match_attendance" ( "team" text, "hosted" real, "average" real, "highest" real, "lowest" real, "total" real, "last_year" real, "up_down" text );
SELECT MIN("last_year") FROM "match_attendance" WHERE "hosted">176;
2-1161065-27
Of 2010 est. with less than 171,750 and 2000 less than 131,714, what is the 1970 population average?
CREATE TABLE "population_growth_history" ( "city" text, "1970" real, "1980" real, "1990" real, "2000" real, "2010_est" real );
SELECT AVG("1970") FROM "population_growth_history" WHERE "2010_est"='171,750' AND "2000"<'131,714';
2-11052106-4
With 1990 growth greater than 19,988 and 1970 growth less than 10,522, what is the 1980 average?
CREATE TABLE "population_growth_history" ( "city" text, "1970" real, "1980" real, "1990" real, "2000" real, "2010_est" real );
SELECT AVG("1980") FROM "population_growth_history" WHERE "1990">'19,988' AND "1970"<'10,522';
2-11052106-4
Of 2000 growth less than 32,093 and 1980 growth over 64,975, what is the 1970 total number?
CREATE TABLE "population_growth_history" ( "city" text, "1970" real, "1980" real, "1990" real, "2000" real, "2010_est" real );
SELECT COUNT("1970") FROM "population_growth_history" WHERE "2000"<'32,093' AND "1980">'64,975';
2-11052106-4
How many 1990 growth numbers had less than 10,522 in 1970?
CREATE TABLE "population_growth_history" ( "city" text, "1970" real, "1980" real, "1990" real, "2000" real, "2010_est" real );
SELECT COUNT("1990") FROM "population_growth_history" WHERE "1970"<'10,522';
2-11052106-4
Which is the lowest 1980 growth that had 2,610 in 1970?
CREATE TABLE "population_growth_history" ( "city" text, "1970" real, "1980" real, "1990" real, "2000" real, "2010_est" real );
SELECT MIN("1980") FROM "population_growth_history" WHERE "1970"='2,610';
2-11052106-4
What is the high lap total that has a grid of less than 4 and a Time/Retired of + 1 lap?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MAX("laps") FROM "race" WHERE "grid"<4 AND "time_retired"='+ 1 lap';
2-1123284-2
How many laps associated with a Time/Retired of + 1:25.475?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("laps") FROM "race" WHERE "time_retired"='+ 1:25.475';
2-1123284-2
Where was the game played where the away team scored 12.15 (87)?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_12" WHERE "away_team_score"='12.15 (87)';
2-10869646-12
Which away team played a home team with the score of 13.12 (90)?
CREATE TABLE "round_12" ( "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_12" WHERE "home_team_score"='13.12 (90)';
2-10869646-12
What is the score for the away team when the home team scored 19.17 (131)?
CREATE TABLE "round_12" ( "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_12" WHERE "home_team_score"='19.17 (131)';
2-10869646-12
What was the home teams score when the VFL played Princes Park?
CREATE TABLE "round_14" ( "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_14" WHERE "venue"='princes park';
2-10784349-14
What was the opponents score when Geelong played as home team?
CREATE TABLE "round_14" ( "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_14" WHERE "home_team"='geelong';
2-10784349-14
What was the home teams score when the VFL played at Kardinia Park?
CREATE TABLE "round_14" ( "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_14" WHERE "venue"='kardinia park';
2-10784349-14
When did Fitzroy play as the away team?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_14" WHERE "away_team"='fitzroy';
2-10784349-14
What is the average number of goals of the player with 234 apps and a rank above 8?
CREATE TABLE "all_time_top_scorers" ( "rank" real, "player" text, "goals" real, "apps" real, "avg_game" real );
SELECT AVG("goals") FROM "all_time_top_scorers" WHERE "apps"=234 AND "rank"<8;
2-1167698-5
What is the average avg/game of the player with 97 goals and a rank above 7?
CREATE TABLE "all_time_top_scorers" ( "rank" real, "player" text, "goals" real, "apps" real, "avg_game" real );
SELECT AVG("avg_game") FROM "all_time_top_scorers" WHERE "goals"=97 AND "rank"<7;
2-1167698-5
What is the highest number of games won where less than 21 games were conceded and less than 18 games were actually played?
CREATE TABLE "clausura_2007_standings" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" real, "dif" real, "points_pts" real );
SELECT MAX("won_pg") FROM "clausura_2007_standings" WHERE "goals_conceded_gc"<21 AND "played_pj"<18;
2-11936264-2
What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws?
CREATE TABLE "clausura_2007_standings" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" real, "dif" real, "points_pts" real );
SELECT AVG("goals_conceded_gc") FROM "clausura_2007_standings" WHERE "goals_scored_gf">19 AND "points_pts"=31 AND "draw_pe">7;
2-11936264-2
How many goals were conceded against the Chepo F.C. team where they lost 7 games?
CREATE TABLE "clausura_2007_standings" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" real, "dif" real, "points_pts" real );
SELECT "goals_conceded_gc" FROM "clausura_2007_standings" WHERE "lost_pp"=7 AND "team_equipo"='chepo f.c.';
2-11936264-2
What was the smallest crowd at junction 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 MIN("crowd") FROM "round_15" WHERE "venue"='junction oval';
2-10807673-15
What state has Richard Foster as a member?
CREATE TABLE "notes" ( "member" text, "party" text, "electorate" text, "state" text, "first_elected" text );
SELECT "state" FROM "notes" WHERE "member"='richard foster';
2-12005455-1
Which member has Cook as the electorate?
CREATE TABLE "notes" ( "member" text, "party" text, "electorate" text, "state" text, "first_elected" text );
SELECT "member" FROM "notes" WHERE "electorate"='cook';
2-12005455-1
Who was the driver with chassis 625 553 500?
CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "tyre" text, "driver" text, "rounds" text );
SELECT "driver" FROM "teams_and_drivers" WHERE "chassis"='625 553 500';
2-1140114-2
What was tyre that was made by cooper - bristol that was driven by bob gerard?
CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "tyre" text, "driver" text, "rounds" text );
SELECT "tyre" FROM "teams_and_drivers" WHERE "constructor"='cooper - bristol' AND "driver"='bob gerard';
2-1140114-2
Who was the constructor of the officine alfieri maserati that was driven by Sergio Mantovani?
CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "tyre" text, "driver" text, "rounds" text );
SELECT "constructor" FROM "teams_and_drivers" WHERE "entrant"='officine alfieri maserati' AND "driver"='sergio mantovani';
2-1140114-2
What tyre had Sergio Mantovani as a driver?
CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "tyre" text, "driver" text, "rounds" text );
SELECT "tyre" FROM "teams_and_drivers" WHERE "driver"='sergio mantovani';
2-1140114-2
Can you say what was the entrant of maserati built item with a Tyre of p with a chassis of 250f a6gcm that was driven by Luigi Villoresi?
CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "tyre" text, "driver" text, "rounds" text );
SELECT "entrant" FROM "teams_and_drivers" WHERE "constructor"='maserati' AND "tyre"='p' AND "chassis"='250f a6gcm' AND "driver"='luigi villoresi';
2-1140114-2
What is the dutch word for one?
CREATE TABLE "vocabulary_comparison" ( "english" text, "scots" text, "west_frisian" text, "afrikaans" text, "dutch" text, "dutch_limburgish" text, "low_german" text, "low_german_groningen" text, "middle_german_luxemburgish" text, "german" text, "yiddish" text, "gothic" text );
SELECT "dutch" FROM "vocabulary_comparison" WHERE "english"='one';
2-11883-4
What is the Middle German (Luxemburgish) word for ein?
CREATE TABLE "vocabulary_comparison" ( "english" text, "scots" text, "west_frisian" text, "afrikaans" text, "dutch" text, "dutch_limburgish" text, "low_german" text, "low_german_groningen" text, "middle_german_luxemburgish" text, "german" text, "yiddish" text, "gothic" text );
SELECT "middle_german_luxemburgish" FROM "vocabulary_comparison" WHERE "dutch_limburgish"='ein';
2-11883-4
What is the Middle German (Luxemburgish) word for stone?
CREATE TABLE "vocabulary_comparison" ( "english" text, "scots" text, "west_frisian" text, "afrikaans" text, "dutch" text, "dutch_limburgish" text, "low_german" text, "low_german_groningen" text, "middle_german_luxemburgish" text, "german" text, "yiddish" text, "gothic" text );
SELECT "middle_german_luxemburgish" FROM "vocabulary_comparison" WHERE "english"='stone';
2-11883-4
What is the Dutch waord for høvd / høvur?
CREATE TABLE "vocabulary_comparison" ( "english" text, "scots" text, "west_frisian" text, "afrikaans" text, "dutch" text, "dutch_limburgish" text, "low_german" text, "low_german_groningen" text, "middle_german_luxemburgish" text, "german" text, "yiddish" text, "gothic" text );
SELECT "dutch" FROM "vocabulary_comparison" WHERE "low_german_groningen"='høvd / høvur';
2-11883-4
What is the English word for twie?
CREATE TABLE "vocabulary_comparison" ( "english" text, "scots" text, "west_frisian" text, "afrikaans" text, "dutch" text, "dutch_limburgish" text, "low_german" text, "low_german_groningen" text, "middle_german_luxemburgish" text, "german" text, "yiddish" text, "gothic" text );
SELECT "english" FROM "vocabulary_comparison" WHERE "dutch_limburgish"='twie';
2-11883-4
What is the constructor on the team with 8 rounds and a chassis of 156 158 1512?
CREATE TABLE "teams_and_drivers" ( "constructor" text, "chassis" text, "tyre" text, "driver" text, "rounds" text );
SELECT "constructor" FROM "teams_and_drivers" WHERE "rounds"='8' AND "chassis"='156 158 1512';
2-1140101-2
Who is the driver of the team with tyre d, bt11 chassis, and 8 rounds?
CREATE TABLE "teams_and_drivers" ( "constructor" text, "chassis" text, "tyre" text, "driver" text, "rounds" text );
SELECT "driver" FROM "teams_and_drivers" WHERE "tyre"='d' AND "chassis"='bt11' AND "rounds"='8';
2-1140101-2
What is the number of bronze that silver is smaller than 1 and gold bigger than 0?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "silver"<1 AND "gold">0;
2-11566299-2
what is the name when the nation is France, the pts/game is more than 3 and points is less than 33?
CREATE TABLE "leading_points_scorers" ( "name" text, "nation" text, "points" real, "games" real, "pts_game" real );
SELECT "name" FROM "leading_points_scorers" WHERE "nation"='france' AND "pts_game">3 AND "points"<33;
2-12005179-2
what is the pts/game for Charlotte barras and the games is 5?
CREATE TABLE "leading_points_scorers" ( "name" text, "nation" text, "points" real, "games" real, "pts_game" real );
SELECT "pts_game" FROM "leading_points_scorers" WHERE "games"=5 AND "name"='charlotte barras';
2-12005179-2
what is the average points when the nation is wales and the pts/game is more than 5?
CREATE TABLE "leading_points_scorers" ( "name" text, "nation" text, "points" real, "games" real, "pts_game" real );
SELECT AVG("points") FROM "leading_points_scorers" WHERE "nation"='wales' AND "pts_game">5;
2-12005179-2
When is the earliest year for it is in barcelona, spain?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT MIN("year") FROM "achievements" WHERE "venue"='barcelona, spain';
2-11537397-1
What is the average year they finished 5th in santiago, chile?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT AVG("year") FROM "achievements" WHERE "position"='5th' AND "venue"='santiago, chile';
2-11537397-1
Which pick was MIchael Holper?
CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT MIN("pick") FROM "round_1" WHERE "player"='michael holper';
2-11779131-2
Which country is Leo Najorda from?
CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "country_of_origin" FROM "round_1" WHERE "player"='leo najorda';
2-11779131-2
Which United States player from Hawaii-Hilo had the lowest pick?
CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT MIN("pick") FROM "round_1" WHERE "country_of_origin"='united states' AND "college"='hawaii-hilo';
2-11779131-2
Which United States player for Air21 Express had a pick smaller than 9?
CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "player" FROM "round_1" WHERE "pick"<9 AND "country_of_origin"='united states' AND "pba_team"='air21 express';
2-11779131-2
What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("gold") FROM "medal_table" WHERE "nation"='russia (rus)' AND "silver"<2;
2-1184919-1
What is the total where the nation is South Africa (rsa) and bronze is less than 1?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("total") FROM "medal_table" WHERE "nation"='south africa (rsa)' AND "bronze"<1;
2-1184919-1
Which nation has 0 gold, a rank greater than 14, a total of 1, and silver less than 1?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "nation" FROM "medal_table" WHERE "gold"=0 AND "rank">14 AND "total"=1 AND "silver"<1;
2-1184919-1
Tell me the home team for vfl park venue
CREATE TABLE "round_21" ( "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_21" WHERE "venue"='vfl park';
2-10883333-21
Tell me the home team for venue of mcg
CREATE TABLE "round_21" ( "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_21" WHERE "venue"='mcg';
2-10883333-21
Tell me the most crowd for arden street oval venue
CREATE TABLE "round_21" ( "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_21" WHERE "venue"='arden street oval';
2-10883333-21
What was the away team's score when South Melbourne was the home team?
CREATE TABLE "round_7" ( "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_7" WHERE "home_team"='south melbourne';
2-10883333-7
Who was the home team that scored 19.18 (132)?
CREATE TABLE "round_7" ( "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_7" WHERE "home_team_score"='19.18 (132)';
2-10883333-7
What was the placing of the nation of East Germany?
CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "nation" text, "total_points" real, "placings" real );
SELECT COUNT("placings") FROM "ice_dancing" WHERE "nation"='east germany';
2-12010417-5
What's the highest level of team Astana since 2007?
CREATE TABLE "club_career_stats" ( "season" real, "team" text, "country" text, "league" text, "level" real, "apps" real, "goals" real );
SELECT MAX("level") FROM "club_career_stats" WHERE "team"='astana' AND "season">2007;
2-11558575-2
What is the average amount of goals that has a points smaller of 882, less than 5 field goals, and less than 85 tries all by Ty Williams.
CREATE TABLE "most_points_for_the_club" ( "points" real, "player" text, "tries" real, "goals" real, "field_goals" real );
SELECT AVG("goals") FROM "most_points_for_the_club" WHERE "points"<882 AND "field_goals"<5 AND "player"='ty williams' AND "tries"<85;
2-10848585-2
Who was the away team at Western Oval?
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 "away_team" FROM "round_9" WHERE "venue"='western oval';
2-10823950-9
Who was the home team that played against Collingwood?
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 "home_team" FROM "round_9" WHERE "away_team"='collingwood';
2-10823950-9
What is the average crowd size for Richmond home games?
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 AVG("crowd") FROM "round_9" WHERE "home_team"='richmond';
2-10823950-9
What is the largest crowd for North Melbourne home games?
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 MAX("crowd") FROM "round_9" WHERE "home_team"='north melbourne';
2-10823950-9
In which venue does Melbourne play as the home team?
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 "venue" FROM "round_9" WHERE "home_team"='melbourne';
2-10823950-9