question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
When the laps are over 53, what's the average grid?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("grid") FROM "classification" WHERE "laps">53;
2-1123364-1
What's the average laps driven by david coulthard?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("laps") FROM "classification" WHERE "driver"='david coulthard';
2-1123364-1
who is the opponent in the final when the year is before 1883?
CREATE TABLE "singles_5" ( "outcome" text, "year" real, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "opponent_in_the_final" FROM "singles_5" WHERE "year"<1883;
2-1117909-1
what is the outcome for the 1887?
CREATE TABLE "singles_5" ( "outcome" text, "year" real, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "outcome" FROM "singles_5" WHERE "year"=1887;
2-1117909-1
what is the outcome when the opponent in the final is william renshaw after year 1882?
CREATE TABLE "singles_5" ( "outcome" text, "year" real, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "outcome" FROM "singles_5" WHERE "year">1882 AND "opponent_in_the_final"='william renshaw';
2-1117909-1
what is the score when the outcome is runner-up, the opponent in the final is herbert lawford and the year is after 1882?
CREATE TABLE "singles_5" ( "outcome" text, "year" real, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "score" FROM "singles_5" WHERE "year">1882 AND "outcome"='runner-up' AND "opponent_in_the_final"='herbert lawford';
2-1117909-1
What artist has a mintage of greater than 34,135?
CREATE TABLE "natural_wonders" ( "year" real, "design" text, "issue" text, "artist" text, "mintage" real, "issue_price" text );
SELECT "artist" FROM "natural_wonders" WHERE "mintage">'34,135';
2-11916083-40
What artist was released in 2005?
CREATE TABLE "natural_wonders" ( "year" real, "design" text, "issue" text, "artist" text, "mintage" real, "issue_price" text );
SELECT "artist" FROM "natural_wonders" WHERE "year"=2005;
2-11916083-40
What's melbourne's average year?
CREATE TABLE "goal_to_draw" ( "player" text, "team" text, "opponent" text, "year" real, "score" text );
SELECT AVG("year") FROM "goal_to_draw" WHERE "team"='melbourne';
2-11694586-2
Who was ashley sampi's opponent?
CREATE TABLE "goal_to_draw" ( "player" text, "team" text, "opponent" text, "year" real, "score" text );
SELECT "opponent" FROM "goal_to_draw" WHERE "player"='ashley sampi';
2-11694586-2
Which team did daniel bradshaw play for after 1935?
CREATE TABLE "goal_to_draw" ( "player" text, "team" text, "opponent" text, "year" real, "score" text );
SELECT "team" FROM "goal_to_draw" WHERE "year">1935 AND "player"='daniel bradshaw';
2-11694586-2
Who played in 1992?
CREATE TABLE "goal_to_draw" ( "player" text, "team" text, "opponent" text, "year" real, "score" text );
SELECT "player" FROM "goal_to_draw" WHERE "year"=1992;
2-11694586-2
What date was fitzroy the away team?
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 "date" FROM "round_4" WHERE "away_team"='fitzroy';
2-10809823-4
Name the surface when the partner is carlos berlocq
CREATE TABLE "doubles_7_2_titles_5_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "surface" FROM "doubles_7_2_titles_5_runners_up" WHERE "partner"='carlos berlocq';
2-11983898-7
Name the date for clay surface and score of 0–6, 0–6
CREATE TABLE "doubles_7_2_titles_5_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "date" FROM "doubles_7_2_titles_5_runners_up" WHERE "surface"='clay' AND "score"='0–6, 0–6';
2-11983898-7
Name the partner with score of 6–3, 6–2
CREATE TABLE "doubles_7_2_titles_5_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "partner" FROM "doubles_7_2_titles_5_runners_up" WHERE "score"='6–3, 6–2';
2-11983898-7
Name the tournament for clay surface and outcome is winner with score is 6–3, 6–2
CREATE TABLE "doubles_7_2_titles_5_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "tournament" FROM "doubles_7_2_titles_5_runners_up" WHERE "surface"='clay' AND "outcome"='winner' AND "score"='6–3, 6–2';
2-11983898-7
Name the outcome on 6 october 2013
CREATE TABLE "doubles_7_2_titles_5_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "outcome" FROM "doubles_7_2_titles_5_runners_up" WHERE "date"='6 october 2013';
2-11983898-7
What is the song with more than 9 points and 44 (11) jury (points)?
CREATE TABLE "national_final" ( "draw" real, "song" text, "artist" text, "jury_points" text, "televotes_points" text, "total_points" real, "place" real );
SELECT "song" FROM "national_final" WHERE "total_points">9 AND "jury_points"='44 (11)';
2-11467004-1
Who is the artist with 2153 (5) televotes (points)?
CREATE TABLE "national_final" ( "draw" real, "song" text, "artist" text, "jury_points" text, "televotes_points" text, "total_points" real, "place" real );
SELECT "artist" FROM "national_final" WHERE "televotes_points"='2153 (5)';
2-11467004-1
What is the lowest total points Karine Trécy has with less than 4 draws?
CREATE TABLE "national_final" ( "draw" real, "song" text, "artist" text, "jury_points" text, "televotes_points" text, "total_points" real, "place" real );
SELECT MIN("total_points") FROM "national_final" WHERE "draw"<4 AND "artist"='karine trécy';
2-11467004-1
What is the lowest total points Karine Trécy has with a less than 12 place?
CREATE TABLE "national_final" ( "draw" real, "song" text, "artist" text, "jury_points" text, "televotes_points" text, "total_points" real, "place" real );
SELECT MIN("total_points") FROM "national_final" WHERE "artist"='karine trécy' AND "place"<12;
2-11467004-1
What is the average rating of viewers 18 to 49 where the total viewer count is 3.93 million and share less than 4?
CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "timeslot_est" text, "season" real, "rating" real, "share" real, "18_49" real, "viewers_m" real, "rank_num" text );
SELECT AVG("18_49") FROM "weekly_ratings" WHERE "viewers_m"=3.93 AND "share"<4;
2-11251109-4
What is the total number of ratings among the 18 to 49 group that was aired on January 7, 2009?
CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "timeslot_est" text, "season" real, "rating" real, "share" real, "18_49" real, "viewers_m" real, "rank_num" text );
SELECT COUNT("18_49") FROM "weekly_ratings" WHERE "air_date"='january 7, 2009';
2-11251109-4
What is the total number of viewers for the show that was aired on December 10, 2008 with an 18 to 49 rating less than 1.2?
CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "timeslot_est" text, "season" real, "rating" real, "share" real, "18_49" real, "viewers_m" real, "rank_num" text );
SELECT COUNT("viewers_m") FROM "weekly_ratings" WHERE "air_date"='december 10, 2008' AND "18_49"<1.2;
2-11251109-4
What was Mike Hailwood's highest laps when he had a grid more than 7?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MAX("laps") FROM "classification" WHERE "driver"='mike hailwood' AND "grid">7;
2-1122552-1
What is the name of the site with a CERCLIS ID of prd980512362?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "municipality" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "name" FROM "superfund_sites" WHERE "cerclis_id"='prd980512362';
2-11096788-1
What is the site for Florida?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "municipality" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "listed" FROM "superfund_sites" WHERE "municipality"='florida';
2-11096788-1
What site in the RCA Del Caribe was deleted?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "municipality" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "deleted" FROM "superfund_sites" WHERE "name"='rca del caribe';
2-11096788-1
Where is the partially deleted site of fibers public supply wells located?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "municipality" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "partially_deleted" FROM "superfund_sites" WHERE "name"='fibers public supply wells';
2-11096788-1
The proposed 03/08/2004 site is in what municipality?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "municipality" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "municipality" FROM "superfund_sites" WHERE "proposed"='03/08/2004';
2-11096788-1
What is the release format for titles after 1983?
CREATE TABLE "release_history" ( "release_format" text, "country" text, "label" text, "cat_no" text, "release_date" real );
SELECT "release_format" FROM "release_history" WHERE "release_date">1983;
2-11433588-2
Which crowd had an Away team score of 7.12 (54)?
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 AVG("crowd") FROM "round_13" WHERE "away_team_score"='7.12 (54)';
2-10809271-13
What venue is the home of the Carlton team?
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 "venue" FROM "round_13" WHERE "home_team"='carlton';
2-10809271-13
Which driver had a grid of 18 with 68 laps?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );
SELECT "driver" FROM "race" WHERE "laps"='68' AND "grid"='18';
2-1123320-2
Which driver had a grid of 18?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );
SELECT "driver" FROM "race" WHERE "grid"='18';
2-1123320-2
Which driver had a grid of 22?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );
SELECT "driver" FROM "race" WHERE "grid"='22';
2-1123320-2
Which season is the wicket 2nd partnership in?
CREATE TABLE "partnership_records" ( "wicket_partnership" text, "runs" text, "batsmen" text, "opponents" text, "venue" text, "season" text );
SELECT "season" FROM "partnership_records" WHERE "wicket_partnership"='2nd';
2-11241613-4
Where did v kent play?
CREATE TABLE "partnership_records" ( "wicket_partnership" text, "runs" text, "batsmen" text, "opponents" text, "venue" text, "season" text );
SELECT "venue" FROM "partnership_records" WHERE "opponents"='v kent';
2-11241613-4
Which runs had james bryant graeme welch as Batsmen?
CREATE TABLE "partnership_records" ( "wicket_partnership" text, "runs" text, "batsmen" text, "opponents" text, "venue" text, "season" text );
SELECT "runs" FROM "partnership_records" WHERE "batsmen"='james bryant graeme welch';
2-11241613-4
Which clay has a Record of 2–0, and a Hard 1–0?
CREATE TABLE "head_to_head_record" ( "record" text, "hard" text, "clay" text, "grass" text, "carpet" text );
SELECT "clay" FROM "head_to_head_record" WHERE "record"='2–0' AND "hard"='1–0';
2-11233323-12
Which hard has a Clay of 0–0, Grass of 0–0, Carpet of 0–0, and a Record of 1–0?
CREATE TABLE "head_to_head_record" ( "record" text, "hard" text, "clay" text, "grass" text, "carpet" text );
SELECT "hard" FROM "head_to_head_record" WHERE "clay"='0–0' AND "grass"='0–0' AND "carpet"='0–0' AND "record"='1–0';
2-11233323-12
Which carpet has a Clay of 1–0 and a Hard 1–1?
CREATE TABLE "head_to_head_record" ( "record" text, "hard" text, "clay" text, "grass" text, "carpet" text );
SELECT "carpet" FROM "head_to_head_record" WHERE "clay"='1–0' AND "hard"='1–1';
2-11233323-12
Name the most rank for population more than 93,378
CREATE TABLE "references" ( "rank" real, "council_area" text, "speakers" real, "population" real, "percentage_pct" real );
SELECT MAX("rank") FROM "references" WHERE "population">'93,378';
2-11934811-1
What award is featured in 1992?
CREATE TABLE "feature_film" ( "year" real, "award" text, "category" text, "type" text, "title" text );
SELECT "award" FROM "feature_film" WHERE "year"=1992;
2-1139937-1
What award was won in the best sound category for the exorcist before 1998?
CREATE TABLE "feature_film" ( "year" real, "award" text, "category" text, "type" text, "title" text );
SELECT "award" FROM "feature_film" WHERE "year"<1998 AND "type"='won' AND "category"='best sound' AND "title"='the exorcist';
2-1139937-1
What was the candidate that got 1,019 votes for staten island?
CREATE TABLE "1953" ( "1953" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real );
SELECT "1953" FROM "1953" WHERE "richmond_staten_is"='1,019';
2-1108394-34
What was the opposing team for the game on August 29?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "opponent" FROM "game_log" WHERE "date"='august 29';
2-11800675-6
which spans had a drop of 0?
CREATE TABLE "most_tries" ( "player" text, "span" text, "start" text, "tries" text, "conv" text, "pens" text, "drop" text );
SELECT "span" FROM "most_tries" WHERE "drop"='0';
2-1145226-5
which player has 11 tries?
CREATE TABLE "most_tries" ( "player" text, "span" text, "start" text, "tries" text, "conv" text, "pens" text, "drop" text );
SELECT "player" FROM "most_tries" WHERE "tries"='11';
2-1145226-5
which player has a conv of 14?
CREATE TABLE "most_tries" ( "player" text, "span" text, "start" text, "tries" text, "conv" text, "pens" text, "drop" text );
SELECT "player" FROM "most_tries" WHERE "conv"='14';
2-1145226-5
on the span of 1992-2000, what was the conv ?
CREATE TABLE "most_tries" ( "player" text, "span" text, "start" text, "tries" text, "conv" text, "pens" text, "drop" text );
SELECT "conv" FROM "most_tries" WHERE "span"='1992-2000';
2-1145226-5
What is the high point toal for martine foubert placing below 2?
CREATE TABLE "semi_final_3_21_february_1999" ( "draw" real, "artist" text, "song" text, "points" real, "place" real );
SELECT MAX("points") FROM "semi_final_3_21_february_1999" WHERE "artist"='martine foubert' AND "place">2;
2-11021760-3
How much did the away team Melbourne score?
CREATE TABLE "round_1" ( "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_1" WHERE "away_team"='melbourne';
2-10806592-1
What is the highest crowd number for the home team Richmond?
CREATE TABLE "round_1" ( "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_1" WHERE "home_team"='richmond';
2-10806592-1
What home team played at Glenferrie Oval?
CREATE TABLE "round_1" ( "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_1" WHERE "venue"='glenferrie oval';
2-10806592-1
How much did the away team St Kilda score?
CREATE TABLE "round_1" ( "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_1" WHERE "away_team"='st kilda';
2-10806592-1
Which Home team score has an Away team score of 11.9 (75)?
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"='11.9 (75)';
2-10790397-12
Which Crowd has an Away team of st kilda?
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 "crowd" FROM "round_12" WHERE "away_team"='st kilda';
2-10790397-12
Which Away team has an Away team score of 15.13 (103)?
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 "away_team_score"='15.13 (103)';
2-10790397-12
What stadium has a final score of 26–21?
CREATE TABLE "2006" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "stadium" FROM "2006" WHERE "final_score"='26–21';
2-10944289-2
When the new orleans saints were visiting texas stadium, what was the final score?
CREATE TABLE "2006" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "final_score" FROM "2006" WHERE "stadium"='texas stadium' AND "visiting_team"='new orleans saints';
2-10944289-2
What was the final score at texas stadium on September 17?
CREATE TABLE "2006" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "final_score" FROM "2006" WHERE "stadium"='texas stadium' AND "date"='september 17';
2-10944289-2
What was the final score for the game at giants stadium when the indianapolis colts were the visiting team?
CREATE TABLE "2006" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "final_score" FROM "2006" WHERE "visiting_team"='indianapolis colts' AND "stadium"='giants stadium';
2-10944289-2
What were the investment earnings in the year that State and Federal taxes were $8,549,565?
CREATE TABLE "district_122_gross_revenue_by_sources" ( "year" real, "property_taxes" text, "investment_earnings" text, "other_local_sources" text, "state_federal" text, "total_revenue" text );
SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "state_federal"='8,549,565';
2-11608735-3
What were the investment earnings in the year that State and Federal taxes were $13,999,169?
CREATE TABLE "district_122_gross_revenue_by_sources" ( "year" real, "property_taxes" text, "investment_earnings" text, "other_local_sources" text, "state_federal" text, "total_revenue" text );
SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "state_federal"='13,999,169';
2-11608735-3
What were the investment earnings in a year when other local sources were $2,670,060 after 2001?
CREATE TABLE "district_122_gross_revenue_by_sources" ( "year" real, "property_taxes" text, "investment_earnings" text, "other_local_sources" text, "state_federal" text, "total_revenue" text );
SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "year">2001 AND "other_local_sources"='$2,670,060';
2-11608735-3
What were the investment earnings in a year when total revenue was $21,779,618?
CREATE TABLE "district_122_gross_revenue_by_sources" ( "year" real, "property_taxes" text, "investment_earnings" text, "other_local_sources" text, "state_federal" text, "total_revenue" text );
SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "total_revenue"='21,779,618';
2-11608735-3
What were property taxes in a year when total revenue was $40,891,700 after 2002?
CREATE TABLE "district_122_gross_revenue_by_sources" ( "year" real, "property_taxes" text, "investment_earnings" text, "other_local_sources" text, "state_federal" text, "total_revenue" text );
SELECT "property_taxes" FROM "district_122_gross_revenue_by_sources" WHERE "year">2002 AND "total_revenue"='$40,891,700';
2-11608735-3
What rank for season 1?
CREATE TABLE "ratings" ( "season" real, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text );
SELECT "rank" FROM "ratings" WHERE "season"=1;
2-11315-1
What week had an attendance of 27,262?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "week" FROM "schedule" WHERE "attendance"='27,262';
2-11172697-1
What opponent has an attendance of 20,456?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "attendance"='20,456';
2-11172697-1
What was the record on March 27?
CREATE TABLE "stanley_cup_finals" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "record" FROM "stanley_cup_finals" WHERE "date"='march 27';
2-11446913-3
What was the record on March 22?
CREATE TABLE "stanley_cup_finals" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "record" FROM "stanley_cup_finals" WHERE "date"='march 22';
2-11446913-3
What was the record on April 1?
CREATE TABLE "stanley_cup_finals" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "record" FROM "stanley_cup_finals" WHERE "date"='april 1';
2-11446913-3
What date did North Melbourne score 22.14 (146) as the home team?
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"='22.14 (146)' AND "home_team"='north melbourne';
2-10885968-12
What was the lowest crowd size when Carlton was the away team.
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 MIN("crowd") FROM "round_12" WHERE "away_team"='carlton';
2-10885968-12
Who played as the home team when Footscray was the away team?
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" FROM "round_12" WHERE "away_team"='footscray';
2-10885968-12
Who was playing as the home team when the away team scored 18.14 (122)?
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" FROM "round_12" WHERE "away_team_score"='18.14 (122)';
2-10885968-12
What size was the crowd when Hawthorn was the home team?
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 "home_team"='hawthorn';
2-10885968-12
What is the lowest number of Gold the Nation of Italy had when it ranked other than 1, and had more than 0 Silver?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "medal_table" WHERE "rank">1 AND "nation"='italy' AND "silver">0;
2-1158514-3
How many Golds did the country with a Rank better than 5 and more Bronze than 1 receive?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("gold") FROM "medal_table" WHERE "rank"<5 AND "bronze">1;
2-1158514-3
When the Total is less than 1, how many Bronze medals are won?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("bronze") FROM "medal_table" WHERE "total"<1;
2-1158514-3
When the Total is less than 1, and Bronze is 0, how many Gold medals are there?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("gold") FROM "medal_table" WHERE "bronze"=0 AND "total"<1;
2-1158514-3
What is the Rank of the Nation of Germany when the Total is more than 2?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("rank") FROM "medal_table" WHERE "nation"='germany' AND "total">2;
2-1158514-3
Which weightlifter with a snatch larger than 117.5 had the lowest bodyweight?
CREATE TABLE "super_heavyweight_75_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT MIN("bodyweight") FROM "super_heavyweight_75_kg" WHERE "snatch">117.5;
2-11279593-15
Which weightlifter, who had a bodyweight of less than 136.16 and a clean and jerk larger than 135, had the highest Total?
CREATE TABLE "super_heavyweight_75_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT MAX("total_kg") FROM "super_heavyweight_75_kg" WHERE "bodyweight"<136.16 AND "clean_jerk">135;
2-11279593-15
Of weightlifters who weighed more than 136.16, who had the highest Total?
CREATE TABLE "super_heavyweight_75_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT MAX("total_kg") FROM "super_heavyweight_75_kg" WHERE "bodyweight">136.16;
2-11279593-15
What was the average clean and jerk of all weightlifters who had a bodyweight smaller than 87.5 and a snatch of less than 95?
CREATE TABLE "super_heavyweight_75_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT AVG("clean_jerk") FROM "super_heavyweight_75_kg" WHERE "bodyweight"=87.5 AND "snatch"<95;
2-11279593-15
What is the sum of the weight that all weightlifters managed to clean and jerk, among weightlifters who had a snatch of more than 95 and a Total of more than 200?
CREATE TABLE "super_heavyweight_75_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT COUNT("clean_jerk") FROM "super_heavyweight_75_kg" WHERE "total_kg"=200 AND "snatch">95;
2-11279593-15
What kilometer (Rizal Park-basis) has a kilometer of 25?
CREATE TABLE "exits" ( "kilometer_no_rizal_park_basis" text, "kilometer_no_layac_basis" text, "exit" text, "barangay" text, "municipality" text );
SELECT "kilometer_no_rizal_park_basis" FROM "exits" WHERE "kilometer_no_layac_basis"='25';
2-11301349-2
Which Barangay has an exit of Sisiman toll barrier?
CREATE TABLE "exits" ( "kilometer_no_rizal_park_basis" text, "kilometer_no_layac_basis" text, "exit" text, "barangay" text, "municipality" text );
SELECT "barangay" FROM "exits" WHERE "exit"='sisiman toll barrier';
2-11301349-2
What kilometer (Layac-basis) has a Barangay of general lim (capot)?
CREATE TABLE "exits" ( "kilometer_no_rizal_park_basis" text, "kilometer_no_layac_basis" text, "exit" text, "barangay" text, "municipality" text );
SELECT "kilometer_no_layac_basis" FROM "exits" WHERE "barangay"='general lim (capot)';
2-11301349-2
In which municipality is Barangay Poblacion?
CREATE TABLE "exits" ( "kilometer_no_rizal_park_basis" text, "kilometer_no_layac_basis" text, "exit" text, "barangay" text, "municipality" text );
SELECT "municipality" FROM "exits" WHERE "barangay"='poblacion';
2-11301349-2
What is the exit at kilometer (Rizal Park-basis) 164?
CREATE TABLE "exits" ( "kilometer_no_rizal_park_basis" text, "kilometer_no_layac_basis" text, "exit" text, "barangay" text, "municipality" text );
SELECT "exit" FROM "exits" WHERE "kilometer_no_rizal_park_basis"='164';
2-11301349-2
What is the competition on 23 February 1929?
CREATE TABLE "internationals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "competition" FROM "internationals" WHERE "date"='23 february 1929';
2-1181987-1
What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "club_province" FROM "2007_rugby_world_cup_squads" WHERE "position"='wing' AND "caps"<24 AND "player"='sireli bobo';
2-11783766-10
What is the total number of Caps Aca Ratuva, a flanker, has?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT COUNT("caps") FROM "2007_rugby_world_cup_squads" WHERE "position"='flanker' AND "player"='aca ratuva';
2-11783766-10
What is the date of birth of Kameli Ratuvou?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "date_of_birth_age" FROM "2007_rugby_world_cup_squads" WHERE "player"='kameli ratuvou';
2-11783766-10
What is the date of birth of Henry Qiodravu?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "date_of_birth_age" FROM "2007_rugby_world_cup_squads" WHERE "player"='henry qiodravu';
2-11783766-10