question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is the total number of runs for the player with fewer than 9 Inns?
CREATE TABLE "batting_averages" ( "player" text, "matches" real, "inns" real, "runs" real, "high_score" real, "average" real, "catches" real, "stump" real );
SELECT COUNT("runs") FROM "batting_averages" WHERE "inns"<9;
2-10621256-1
What is the smallest average for the player with 13 matches and fewer than 7 catches?
CREATE TABLE "batting_averages" ( "player" text, "matches" real, "inns" real, "runs" real, "high_score" real, "average" real, "catches" real, "stump" real );
SELECT MIN("average") FROM "batting_averages" WHERE "matches"=13 AND "catches"<7;
2-10621256-1
Which city is the host of the University of Texas?
CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text );
SELECT "city" FROM "first_and_second_rounds" WHERE "host"='university of texas';
2-10696974-4
In which region is the Thompson-Boling arena located?
CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text );
SELECT "region" FROM "first_and_second_rounds" WHERE "venue"='thompson-boling arena';
2-10696974-4
Who is the host in the city of Philadelphia?
CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text );
SELECT "host" FROM "first_and_second_rounds" WHERE "city"='philadelphia';
2-10696974-4
Which city in the mideast region is the hot of Temple University?
CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text );
SELECT "city" FROM "first_and_second_rounds" WHERE "region"='mideast' AND "host"='temple university';
2-10696974-4
Which city is the University of Montana located in?
CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text );
SELECT "city" FROM "first_and_second_rounds" WHERE "host"='university of montana';
2-10696974-4
What was the away team score at Hawthorn?
CREATE TABLE "round_13" ( "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_13" WHERE "home_team"='hawthorn';
2-10776330-13
Who went to Geelong to play?
CREATE TABLE "round_13" ( "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_13" WHERE "home_team"='geelong';
2-10776330-13
Who did Collingwood play at home?
CREATE TABLE "round_13" ( "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_13" WHERE "away_team"='collingwood';
2-10776330-13
When did an away team score 7.8 (50)?
CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_13" WHERE "away_team_score"='7.8 (50)';
2-10776330-13
What population has an area (km²) of 62,848 and a density less than 37.7?
CREATE TABLE "by_density" ( "rank" text, "state" text, "population" real, "area_km" real, "density" real );
SELECT COUNT("population") FROM "by_density" WHERE "area_km"='62,848' AND "density"<37.7;
2-1067470-4
Which population is the greatest, has a density of 20.3, and an area (km²) larger than 50,350?
CREATE TABLE "by_density" ( "rank" text, "state" text, "population" real, "area_km" real, "density" real );
SELECT MAX("population") FROM "by_density" WHERE "density"=20.3 AND "area_km">'50,350';
2-1067470-4
The state of Aguascalientes has an area (km²) larger than 151,571 and a density greater than 80.9, what is the rank?
CREATE TABLE "by_density" ( "rank" text, "state" text, "population" real, "area_km" real, "density" real );
SELECT "rank" FROM "by_density" WHERE "area_km">'151,571' AND "density">80.9 AND "state"='aguascalientes';
2-1067470-4
Who was the home team at the game held at the 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 "home_team" FROM "round_15" WHERE "venue"='junction oval';
2-10776330-15
Where was the game held when Fitzroy was the away team?
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 "away_team"='fitzroy';
2-10776330-15
How many people attended the Rams game against the Kansas City Chiefs?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "opponent"='kansas city chiefs';
2-10689129-1
What is China's IATA?
CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "iata" FROM "references" WHERE "country"='china';
2-10687134-2
Where is the City of Douala?
CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "country" FROM "references" WHERE "city"='douala';
2-10687134-2
Which airport is in South Africa and has a ICAO fajs?
CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "airport" FROM "references" WHERE "country"='south africa' AND "icao"='fajs';
2-10687134-2
What is Cuba's ICAO?
CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "icao" FROM "references" WHERE "country"='cuba';
2-10687134-2
What is Angola's airport and ICAO of fnsa?
CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "airport" FROM "references" WHERE "country"='angola' AND "icao"='fnsa';
2-10687134-2
What team plays at home at Windy Hill?
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 "venue"='windy hill';
2-10767118-9
What was the size of the crowd that saw the Home team score 11.10 (76)?
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 COUNT("crowd") FROM "round_9" WHERE "home_team_score"='11.10 (76)';
2-10767118-9
What was Footscray's score as an away 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 "away_team_score" FROM "round_9" WHERE "away_team"='footscray';
2-10767118-9
What was the home teams score agains the team that scored 7.15 (57)?
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 "away_team_score"='7.15 (57)';
2-10767118-9
What day is richmond the away side?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_17" WHERE "away_team"='richmond';
2-10775038-17
Who is the home team when hawthorn is the away team?
CREATE TABLE "round_17" ( "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_17" WHERE "away_team"='hawthorn';
2-10775038-17
What is the name of the game with odds of winning 1 in 4.23 with a top prize of $15,000?
CREATE TABLE "scratchers" ( "game_name" text, "price" text, "top_prize" text, "launch_date" text, "odds_of_winning" text );
SELECT "game_name" FROM "scratchers" WHERE "odds_of_winning"='1 in 4.23' AND "top_prize"='$15,000';
2-10546774-1
What is the launch date odds of winning 1 in 4.23 with a top prize of $15,000?
CREATE TABLE "scratchers" ( "game_name" text, "price" text, "top_prize" text, "launch_date" text, "odds_of_winning" text );
SELECT "launch_date" FROM "scratchers" WHERE "odds_of_winning"='1 in 4.23' AND "top_prize"='$15,000';
2-10546774-1
What is the launch date odds of winning 1 in 4.54?
CREATE TABLE "scratchers" ( "game_name" text, "price" text, "top_prize" text, "launch_date" text, "odds_of_winning" text );
SELECT "launch_date" FROM "scratchers" WHERE "odds_of_winning"='1 in 4.54';
2-10546774-1
What is the launch date odds of winning 1 in 4.44?
CREATE TABLE "scratchers" ( "game_name" text, "price" text, "top_prize" text, "launch_date" text, "odds_of_winning" text );
SELECT "launch_date" FROM "scratchers" WHERE "odds_of_winning"='1 in 4.44';
2-10546774-1
What is the name of the game with a top prize of $888?
CREATE TABLE "scratchers" ( "game_name" text, "price" text, "top_prize" text, "launch_date" text, "odds_of_winning" text );
SELECT "game_name" FROM "scratchers" WHERE "top_prize"='$888';
2-10546774-1
What is the top price of $1 with a launch date on February 12, 2008?
CREATE TABLE "scratchers" ( "game_name" text, "price" text, "top_prize" text, "launch_date" text, "odds_of_winning" text );
SELECT "top_prize" FROM "scratchers" WHERE "price"='$1' AND "launch_date"='february 12, 2008';
2-10546774-1
What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and the grid number is under 23?
CREATE TABLE "race_3_results" ( "name" text, "team" text, "laps" real, "grid" real, "points" real );
SELECT MAX("laps") FROM "race_3_results" WHERE "points"<5 AND "team"='garry rogers motorsport' AND "grid"<23;
2-10660136-4
What is the name of the driver who went 46 laps had less than 9 points and had a grid number under 12?
CREATE TABLE "race_3_results" ( "name" text, "team" text, "laps" real, "grid" real, "points" real );
SELECT "name" FROM "race_3_results" WHERE "laps"=46 AND "points"<9 AND "grid"<12;
2-10660136-4
Where was the 1966 final played?
CREATE TABLE "list_of_finals" ( "year" real, "winner" text, "score" text, "runner_up" text, "finals_venue_surface" text, "city" text );
SELECT "finals_venue_surface" FROM "list_of_finals" WHERE "year"=1966;
2-10528107-1
What is the average Worst score for Mario Lopez as the Best dancer and Tango as the Dance?
CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer" text, "best_score" real, "worst_dancer" text, "worst_score" real );
SELECT AVG("worst_score") FROM "highest_and_lowest_scoring_performances" WHERE "best_dancer"='mario lopez' AND "dance"='tango';
2-10535525-3
What is the highest Best score for the Dance Mambo?
CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer" text, "best_score" real, "worst_dancer" text, "worst_score" real );
SELECT MAX("best_score") FROM "highest_and_lowest_scoring_performances" WHERE "dance"='mambo';
2-10535525-3
Who is the Best dancer with the Worst dancer of Jerry Springer, a Best score of 29, and the Dance was the Quickstep?
CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer" text, "best_score" real, "worst_dancer" text, "worst_score" real );
SELECT "best_dancer" FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer"='jerry springer' AND "best_score"=29 AND "dance"='quickstep';
2-10535525-3
How many dances placed below 1 with a point total of 40?
CREATE TABLE "averages" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" real );
SELECT "number_of_dances" FROM "averages" WHERE "place">1 AND "total_points"=40;
2-10535584-4
What is the lowest number of dances with a rank larger than 4 and a place of 8?
CREATE TABLE "averages" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" real );
SELECT MIN("number_of_dances") FROM "averages" WHERE "rank_by_average">4 AND "place"=8;
2-10535584-4
What is the lowest number of dances with a less than 2 place and an average smaller than 27.5?
CREATE TABLE "averages" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" real );
SELECT MIN("number_of_dances") FROM "averages" WHERE "place"<2 AND "average"<27.5;
2-10535584-4
What is the total difference for teams that played less than 6 games?
CREATE TABLE "europe_pool_a" ( "club" text, "played" real, "lost" real, "drawn" real, "against" real, "diff" real, "points" real );
SELECT SUM("diff") FROM "europe_pool_a" WHERE "played"<6;
2-10637415-3
What is the highest number of games played for teams that lost over 5 games and had an against total of 228?
CREATE TABLE "europe_pool_a" ( "club" text, "played" real, "lost" real, "drawn" real, "against" real, "diff" real, "points" real );
SELECT MAX("played") FROM "europe_pool_a" WHERE "lost">5 AND "against"=228;
2-10637415-3
How many games lost for team(s) with less than 4 paints and against total of over 340?
CREATE TABLE "europe_pool_a" ( "club" text, "played" real, "lost" real, "drawn" real, "against" real, "diff" real, "points" real );
SELECT COUNT("lost") FROM "europe_pool_a" WHERE "points"<4 AND "against">340;
2-10637415-3
What week was the game that had an attendance of 24,242?
CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "week" FROM "game_by_game_results" WHERE "attendance"='24,242';
2-10646744-2
What was the attendance of the game that had a score of l 35–14?
CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "attendance" FROM "game_by_game_results" WHERE "result"='l 35–14';
2-10646744-2
When was the pre-Week 10 game that had an attendance of over 38,865?
CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "game_by_game_results" WHERE "week"<10 AND "attendance"='38,865';
2-10646744-2
Which Location has a PPV Buyrate of 775,000?
CREATE TABLE "2006_in_sports" ( "date" text, "event" text, "alternate_name_s" text, "location" text, "attendance" text, "ppv_buyrate" text );
SELECT "location" FROM "2006_in_sports" WHERE "ppv_buyrate"='775,000';
2-1057933-1
Where did Geelong play as the away team?
CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_5" WHERE "away_team"='geelong';
2-10747009-5
What was the away team's score against Hawthorn?
CREATE TABLE "round_5" ( "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_5" WHERE "away_team"='hawthorn';
2-10747009-5
What was the largest crowd when the home team scored 14.7 (91)?
CREATE TABLE "round_5" ( "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_5" WHERE "home_team_score"='14.7 (91)';
2-10747009-5
What as the home team that scored 18.15 (123)?
CREATE TABLE "round_5" ( "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_5" WHERE "home_team_score"='18.15 (123)';
2-10747009-5
What was the away team that scored 6.13 (49)?
CREATE TABLE "round_5" ( "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_5" WHERE "away_team_score"='6.13 (49)';
2-10747009-5
When Fitzroy was the home team, what was the away team's score?
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"='fitzroy';
2-10701914-12
On what date did the home team score 5.8 (38)?
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 "date" FROM "round_12" WHERE "home_team_score"='5.8 (38)';
2-10701914-12
How big was the largest crowd recorded at the Arden Street Oval venue?
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 MAX("crowd") FROM "round_12" WHERE "venue"='arden street oval';
2-10701914-12
How big was the crowd at the match where the away team had a score of 10.14 (74)?
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 COUNT("crowd") FROM "round_12" WHERE "away_team_score"='10.14 (74)';
2-10701914-12
What is the average crowd size at all matches where the home team scored 6.12 (48)?
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 AVG("crowd") FROM "round_12" WHERE "home_team_score"='6.12 (48)';
2-10701914-12
At what venue did the match where the home team scored 8.6 (54) take place?
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 "home_team_score"='8.6 (54)';
2-10701914-12
What is the smallest attendance in week 1?
CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MIN("attendance") FROM "exhibition_schedule" WHERE "week"=1;
2-10652150-2
What is the larges week for the date august 9, 1968 and less than 64,020 in attendance?
CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MAX("week") FROM "exhibition_schedule" WHERE "date"='august 9, 1968' AND "attendance"<'64,020';
2-10652150-2
What is the smallest attendance number for august 9, 1968?
CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MIN("attendance") FROM "exhibition_schedule" WHERE "date"='august 9, 1968';
2-10652150-2
What was the result of the game on august 30, 1968?
CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "result" FROM "exhibition_schedule" WHERE "date"='august 30, 1968';
2-10652150-2
What is the class of the w267an call sign?
CREATE TABLE "broadcast_translators_of_wbfj_fm" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "facility_id" real, "erp_w" real, "height_m_ft" text, "class" text, "fcc_info" text );
SELECT "class" FROM "broadcast_translators_of_wbfj_fm" WHERE "call_sign"='w267an';
2-10711725-1
What is the lowest ERP W of the 67829 Facility ID?
CREATE TABLE "broadcast_translators_of_wbfj_fm" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "facility_id" real, "erp_w" real, "height_m_ft" text, "class" text, "fcc_info" text );
SELECT MIN("erp_w") FROM "broadcast_translators_of_wbfj_fm" WHERE "facility_id"=67829;
2-10711725-1
What is the FCC info for the call sign with a frequency MHz of 101.3, a ERP W over 10, and a Facility ID smaller than 87027?
CREATE TABLE "broadcast_translators_of_wbfj_fm" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "facility_id" real, "erp_w" real, "height_m_ft" text, "class" text, "fcc_info" text );
SELECT "fcc_info" FROM "broadcast_translators_of_wbfj_fm" WHERE "frequency_m_hz"=101.3 AND "erp_w">10 AND "facility_id"<87027;
2-10711725-1
What was the average of the Off Reb with steals less than 8 and FTM-FTA of 16-17?
CREATE TABLE "external_links" ( "rank" real, "score" real, "date" text, "player" text, "opponent" text, "minutes" real, "fgm_fga" text, "3_pm_3_pa" text, "ftm_fta" text, "off_reb" real, "def_reb" real, "assists" real, "steals" real, "blocks" real, "turnovers" real, "fouls" real, "point...
SELECT AVG("off_reb") FROM "external_links" WHERE "ftm_fta"='16-17' AND "steals"<8;
2-10656107-1
Which song released on heavenly (hvn152)?
CREATE TABLE "singles" ( "song" text, "release_date" text, "release_info" text, "formats" text, "album" text );
SELECT "song" FROM "singles" WHERE "release_info"='heavenly (hvn152)';
2-10537807-4
Which album had a release of heavenly (hvn95)?
CREATE TABLE "singles" ( "song" text, "release_date" text, "release_info" text, "formats" text, "album" text );
SELECT "album" FROM "singles" WHERE "release_info"='heavenly (hvn95)';
2-10537807-4
What is the sum of all the rounds when a Florida State player was drafted?
CREATE TABLE "1997_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text );
SELECT COUNT("round") FROM "1997_new_england_patriots_draft_selectio" WHERE "college"='florida state';
2-10672678-1
What is the average round in which a Safety with an overall rank higher than 89 was drafted?
CREATE TABLE "1997_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text );
SELECT AVG("round") FROM "1997_new_england_patriots_draft_selectio" WHERE "position"='safety' AND "overall">89;
2-10672678-1
Where was 2010 tournament where the United States received the silver?
CREATE TABLE "results" ( "year" real, "gold" text, "silver" text, "bronze" text, "venue" text );
SELECT "venue" FROM "results" WHERE "silver"='united states' AND "year"=2010;
2-10689967-1
Where was the tournament where Finland received the bronze and the United States received the silver?
CREATE TABLE "results" ( "year" real, "gold" text, "silver" text, "bronze" text, "venue" text );
SELECT "venue" FROM "results" WHERE "bronze"='finland' AND "silver"='united states';
2-10689967-1
Who received the gold at the tournament at bratislava where the Czech Republic received the silver?
CREATE TABLE "results" ( "year" real, "gold" text, "silver" text, "bronze" text, "venue" text );
SELECT "gold" FROM "results" WHERE "silver"='czech republic' AND "venue"='bratislava';
2-10689967-1
Where was the post 1991 tournament where the Czech Republic received the bronze and Russia received the silver?
CREATE TABLE "results" ( "year" real, "gold" text, "silver" text, "bronze" text, "venue" text );
SELECT "venue" FROM "results" WHERE "year">1991 AND "bronze"='czech republic' AND "silver"='russia';
2-10689967-1
Who was the away team when the home team scored 10.12 (72)?
CREATE TABLE "round_2" ( "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_2" WHERE "home_team_score"='10.12 (72)';
2-10701045-2
Who was the away team at the game at Kardinia Park?
CREATE TABLE "round_2" ( "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_2" WHERE "venue"='kardinia park';
2-10701045-2
What was the smallest crowd for a Melbourne away game?
CREATE TABLE "round_2" ( "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_2" WHERE "away_team"='melbourne';
2-10701045-2
Who was the home team that scored 10.12 (72)?
CREATE TABLE "round_2" ( "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_2" WHERE "home_team_score"='10.12 (72)';
2-10701045-2
What day did the team play on week 8?
CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "date" FROM "regular_season_schedule" WHERE "week"=8;
2-10651104-3
What was the average size of the crowd for matches held at Corio Oval?
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 AVG("crowd") FROM "round_12" WHERE "venue"='corio oval';
2-10767118-12
For the match with an away team score of 16.21 (117), what was the home team score?
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 "home_team_score" FROM "round_12" WHERE "away_team_score"='16.21 (117)';
2-10767118-12
For the match with a home team score of 11.14 (80), what was the venue?
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 "home_team_score"='11.14 (80)';
2-10767118-12
What home team played against St Kilda?
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" FROM "round_14" WHERE "away_team"='st kilda';
2-10767118-14
At what venue was South Melbourne the 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 "venue" FROM "round_14" WHERE "home_team"='south melbourne';
2-10767118-14
What was Hawthorn's score when they were the 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 "home_team_score" FROM "round_14" WHERE "home_team"='hawthorn';
2-10767118-14
At which venue did the away team score 7.7 (49)?
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 "venue" FROM "round_14" WHERE "away_team_score"='7.7 (49)';
2-10767118-14
What was the home team's score when they played at Lake Oval?
CREATE TABLE "round_13" ( "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_13" WHERE "venue"='lake oval';
2-10773616-13
What is the latest available income inequality for the country with a population of 21,315,135?
CREATE TABLE "indicators" ( "country" text, "area_km_2010" text, "population_2011" text, "gdp_ppp_intl_2011" text, "gdp_ppp_per_capita_intl_2011" text, "income_inequality_1994_2011_latest_available" text, "hdi_2011" text, "fsi_2012" text, "cpi_2011" text, "ief_2011" text, "gpi_2012" text, "wpfi_...
SELECT "income_inequality_1994_2011_latest_available" FROM "indicators" WHERE "population_2011"='21,315,135';
2-10634933-2
What is the IEF 2011 of the country with an FSI 2012 of 99.2?
CREATE TABLE "indicators" ( "country" text, "area_km_2010" text, "population_2011" text, "gdp_ppp_intl_2011" text, "gdp_ppp_per_capita_intl_2011" text, "income_inequality_1994_2011_latest_available" text, "hdi_2011" text, "fsi_2012" text, "cpi_2011" text, "ief_2011" text, "gpi_2012" text, "wpfi_...
SELECT "ief_2011" FROM "indicators" WHERE "fsi_2012"='99.2';
2-10634933-2
What is the current income inequality for the country of Seychelles?
CREATE TABLE "indicators" ( "country" text, "area_km_2010" text, "population_2011" text, "gdp_ppp_intl_2011" text, "gdp_ppp_per_capita_intl_2011" text, "income_inequality_1994_2011_latest_available" text, "hdi_2011" text, "fsi_2012" text, "cpi_2011" text, "ief_2011" text, "gpi_2012" text, "wpfi_...
SELECT "income_inequality_1994_2011_latest_available" FROM "indicators" WHERE "country"='seychelles';
2-10634933-2
What is the HDI 2011 of the country with a DI 2011 of 7.63?
CREATE TABLE "indicators" ( "country" text, "area_km_2010" text, "population_2011" text, "gdp_ppp_intl_2011" text, "gdp_ppp_per_capita_intl_2011" text, "income_inequality_1994_2011_latest_available" text, "hdi_2011" text, "fsi_2012" text, "cpi_2011" text, "ief_2011" text, "gpi_2012" text, "wpfi_...
SELECT "hdi_2011" FROM "indicators" WHERE "di_2011"='7.63';
2-10634933-2
What country has an IEF 2011 of 45.3?
CREATE TABLE "indicators" ( "country" text, "area_km_2010" text, "population_2011" text, "gdp_ppp_intl_2011" text, "gdp_ppp_per_capita_intl_2011" text, "income_inequality_1994_2011_latest_available" text, "hdi_2011" text, "fsi_2012" text, "cpi_2011" text, "ief_2011" text, "gpi_2012" text, "wpfi_...
SELECT "country" FROM "indicators" WHERE "ief_2011"='45.3';
2-10634933-2
What date did South Melbourne play as the Away team?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_18" WHERE "away_team"='south melbourne';
2-10750694-18
Where did Essendon play as the home team?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_18" WHERE "home_team"='essendon';
2-10750694-18
What is the school or country for the guard from 2000?
CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text );
SELECT "school_country" FROM "p" WHERE "position"='guard' AND "from"='2000';
2-10560886-17
What is the player from the year 2000?
CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text );
SELECT "player" FROM "p" WHERE "from"='2000';
2-10560886-17
What position does the player from 2002 play?
CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text );
SELECT "position" FROM "p" WHERE "from"='2002';
2-10560886-17