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 lowest pick when the School is Stanford University?
CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text );
SELECT MIN("pick") FROM "supplemental_first_round_selections" WHERE "school"='stanford university';
2-11598240-3
What Team has a Pick of 40?
CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text );
SELECT "team" FROM "supplemental_first_round_selections" WHERE "pick"=40;
2-11598240-3
What date was the away team Hawthorn?
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 "date" FROM "round_8" WHERE "away_team"='hawthorn';
2-10808933-8
What is the high loss total for players with zero wins and a win % greater than 0?
CREATE TABLE "most_games_as_starting_quarterback" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real );
SELECT MAX("losses") FROM "most_games_as_starting_quarterback" WHERE "wins"=0 AND "win_pct">0;
2-11510145-2
What is the win % for the QB with 3 starts?
CREATE TABLE "most_games_as_starting_quarterback" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real );
SELECT "win_pct" FROM "most_games_as_starting_quarterback" WHERE "starts"=3;
2-11510145-2
What venue did geelong play an away game?
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 "venue" FROM "round_7" WHERE "away_team"='geelong';
2-10809351-7
What was the away team score when the home team scored 8.14 (62)?
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_score"='8.14 (62)';
2-10809351-7
What home team played an away team of melbourne?
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 "away_team"='melbourne';
2-10809351-7
Which player had an overall pick of 130?
CREATE TABLE "2009_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT "player" FROM "2009_draft_picks" WHERE "overall"='130';
2-11803648-18
What round was Corey Cowick picked?
CREATE TABLE "2009_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT AVG("round") FROM "2009_draft_picks" WHERE "player"='corey cowick';
2-11803648-18
What position does the player from the Miami University (CCHA) club team play?
CREATE TABLE "2009_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT "position" FROM "2009_draft_picks" WHERE "club_team"='miami university (ccha)';
2-11803648-18
What most recent year had North Melbourne as a team and Hamish Mcintosh as a player?
CREATE TABLE "missed_opportunities" ( "player" text, "team" text, "opponent" text, "year" real, "score" text, "outcome" text );
SELECT MAX("year") FROM "missed_opportunities" WHERE "team"='north melbourne' AND "player"='hamish mcintosh';
2-11694586-5
Which score had Essendon as an opponent and Steven Clark as a player?
CREATE TABLE "missed_opportunities" ( "player" text, "team" text, "opponent" text, "year" real, "score" text, "outcome" text );
SELECT "score" FROM "missed_opportunities" WHERE "opponent"='essendon' AND "player"='steven clark';
2-11694586-5
Which team got a Behind outcome and had an opponent of Brisbane Bears?
CREATE TABLE "missed_opportunities" ( "player" text, "team" text, "opponent" text, "year" real, "score" text, "outcome" text );
SELECT "team" FROM "missed_opportunities" WHERE "outcome"='behind' AND "opponent"='brisbane bears';
2-11694586-5
When did the north melbourne team play?
CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_22" WHERE "home_team"='north melbourne';
2-10885968-22
Who was the away team at junction oval?
CREATE TABLE "round_22" ( "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_22" WHERE "venue"='junction oval';
2-10885968-22
What was the home team's score at junction oval?
CREATE TABLE "round_22" ( "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_22" WHERE "venue"='junction oval';
2-10885968-22
What venue was essendon the away team?
CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_22" WHERE "away_team"='essendon';
2-10885968-22
Who is the home team at kardinia park?
CREATE TABLE "round_22" ( "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_22" WHERE "venue"='kardinia park';
2-10885968-22
What is the storage stability of Arsine with a toxicity of 8, and field stability less than 5?
CREATE TABLE "list_of_blood_agents" ( "agent" text, "melting_boiling_point" text, "effectiveness_as_blood_agent" real, "persistence_open_area" real, "persistence_enclosed_area" real, "field_stability" real, "storage_stability" real, "toxicity_as_blood_agent" real );
SELECT MIN("storage_stability") FROM "list_of_blood_agents" WHERE "toxicity_as_blood_agent">8 AND "agent"='arsine' AND "field_stability"<5;
2-1095283-1
What is the field stability of Cyanogen Bromide that has an effectiveness of 9?
CREATE TABLE "list_of_blood_agents" ( "agent" text, "melting_boiling_point" text, "effectiveness_as_blood_agent" real, "persistence_open_area" real, "persistence_enclosed_area" real, "field_stability" real, "storage_stability" real, "toxicity_as_blood_agent" real );
SELECT COUNT("field_stability") FROM "list_of_blood_agents" WHERE "agent"='cyanogen bromide' AND "effectiveness_as_blood_agent">9;
2-1095283-1
When the Venue is mcg what is the Home 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 "home_team" FROM "round_13" WHERE "venue"='mcg';
2-10885968-13
If the Away team had a score of 14.14 (98), what's the name of the Away 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 "away_team" FROM "round_13" WHERE "away_team_score"='14.14 (98)';
2-10885968-13
When the Away team was hawthorn, what's the Home 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 "home_team" FROM "round_13" WHERE "away_team"='hawthorn';
2-10885968-13
When the away team scored 9.14 (68), what was the home teams score?
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 "away_team_score"='9.14 (68)';
2-10885968-13
What is the total associated with a Clean & jerk of 135, and a Snatch of 115?
CREATE TABLE "flyweight_56_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT "total_kg" FROM "flyweight_56_kg" WHERE "clean_jerk"=135 AND "snatch"=115;
2-11279593-1
What is the highest Bodyweight associated with a Clean & jerk larger than 120, and a Total (kg) of 245?
CREATE TABLE "flyweight_56_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT MAX("bodyweight") FROM "flyweight_56_kg" WHERE "clean_jerk">120 AND "total_kg"=245;
2-11279593-1
What is the sum Total (kg) associated with a Snatch less than 110, and a Clean & jerk larger than 120?
CREATE TABLE "flyweight_56_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT SUM("total_kg") FROM "flyweight_56_kg" WHERE "snatch"<110 AND "clean_jerk">120;
2-11279593-1
How many people have a Clean & jerk smaller than 142.5, a Bodyweight smaller than 55.58, and a Total (kg) larger than 210?
CREATE TABLE "flyweight_56_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT COUNT("snatch") FROM "flyweight_56_kg" WHERE "clean_jerk"<142.5 AND "bodyweight"<55.58 AND "total_kg">210;
2-11279593-1
Tell me the object type which has an apparent magnitude more than 10.6 and declination of °44′07″
CREATE TABLE "5101_5200" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );
SELECT "object_type" FROM "5101_5200" WHERE "apparent_magnitude">10.6 AND "declination_j2000"='°44′07″';
2-11051845-2
Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112
CREATE TABLE "5101_5200" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );
SELECT "declination_j2000" FROM "5101_5200" WHERE "apparent_magnitude">10.4 AND "ngc_number"=5112;
2-11051845-2
Which event has a Method of submission (triangle choke), and an Opponent of thiago tavares?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='submission (triangle choke)' AND "opponent"='thiago tavares';
2-11266587-2
What is the result with a Round of 3, and an Opponent of keith wisniewski?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text );
SELECT "res" FROM "mixed_martial_arts_record" WHERE "round"='3' AND "opponent"='keith wisniewski';
2-11266587-2
Which time has eddie miller as opponent?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text );
SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='eddie miller';
2-11266587-2
What's the average Rd number for dane jackson with a pick number over 44?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT AVG("rd_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='dane jackson' AND "pick_num">44;
2-11636955-20
What's the largest pick number for corrie d'alessio with a rd number over 6?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT MAX("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='corrie d''alessio' AND "rd_num">6;
2-11636955-20
Who was the visiting team at the Cavaliers game that had a score of 121–85?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "visitor" FROM "january" WHERE "score"='121–85';
2-11960713-3
On what date did Melbourne play as the home 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 "date" FROM "round_15" WHERE "home_team"='melbourne';
2-10807253-15
How many points did the away team score when the home team scored 16.12 (108)?
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 "home_team_score"='16.12 (108)';
2-10823719-9
How many points did the home team score when the home team scored 18.19 (127)?
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"='18.19 (127)';
2-10823719-9
What team owns the Venue of 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 "home_team" FROM "round_9" WHERE "venue"='western oval';
2-10823719-9
What did the Victoria park home team score?
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 "venue"='victoria park';
2-10823719-9
What was the crowd size when geelong played home?
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"='geelong';
2-10823719-9
What was the crowd size when the visiting team scored 23.18 (156)?
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 "away_team_score"='23.18 (156)';
2-10823719-9
Where did the away team play when they scored 22.14 (146)?
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_score"='22.14 (146)';
2-10824095-15
Where did the home team play when they scored 18.20 (128)?
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_score"='18.20 (128)';
2-10824095-15
Name the most that attendend when the venue was td banknorth garden and the series of montreal leads 3-1
CREATE TABLE "eastern_conference_quarter_finals_vs_8" ( "date" text, "venue" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT MAX("attendance") FROM "eastern_conference_quarter_finals_vs_8" WHERE "venue"='td banknorth garden' AND "series"='montreal leads 3-1';
2-11801035-10
Name the decision for boston bruins visitor
CREATE TABLE "eastern_conference_quarter_finals_vs_8" ( "date" text, "venue" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "decision" FROM "eastern_conference_quarter_finals_vs_8" WHERE "visitor"='boston bruins';
2-11801035-10
What is the average total medals Egypt, who has less than 2 gold, has?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("total") FROM "medal_table" WHERE "nation"='egypt' AND "gold"<2;
2-12097182-3
What is the total number of gold medals Egypt, who has less than 0 silver, has?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("gold") FROM "medal_table" WHERE "nation"='egypt' AND "silver"<0;
2-12097182-3
What is the highest gold a team with less than 3 silver and more than 5 bronze medals has?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("gold") FROM "medal_table" WHERE "silver"<3 AND "bronze">5;
2-12097182-3
What is the rank of the team with 1 bronze and 0 gold medals?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "rank" FROM "medal_table" WHERE "bronze"=1 AND "gold"=0;
2-12097182-3
What is the average % of population Tunisia, which has an average relative annual growth smaller than 1.03?
CREATE TABLE "table" ( "rank" text, "country_or_dependent_territory" text, "july_1_2013_projection" real, "pct_of_pop" real, "average_relative_annual_growth_pct" real, "average_absolute_annual_growth" real );
SELECT AVG("pct_of_pop") FROM "table" WHERE "country_or_dependent_territory"='tunisia' AND "average_relative_annual_growth_pct"<1.03;
2-12101133-1
What is the average relative annual growth of the country ranked 3 with an average absolute annual growth larger than 1,051,000?
CREATE TABLE "table" ( "rank" text, "country_or_dependent_territory" text, "july_1_2013_projection" real, "pct_of_pop" real, "average_relative_annual_growth_pct" real, "average_absolute_annual_growth" real );
SELECT AVG("average_relative_annual_growth_pct") FROM "table" WHERE "rank"='3' AND "average_absolute_annual_growth">'1,051,000';
2-12101133-1
What is the average relative annual growth of Lebanon, which has a July 1, 2013 projection larger than 4,127,000?
CREATE TABLE "table" ( "rank" text, "country_or_dependent_territory" text, "july_1_2013_projection" real, "pct_of_pop" real, "average_relative_annual_growth_pct" real, "average_absolute_annual_growth" real );
SELECT SUM("average_relative_annual_growth_pct") FROM "table" WHERE "country_or_dependent_territory"='lebanon' AND "july_1_2013_projection">'4,127,000';
2-12101133-1
Who was the home team at Kardinia Park?
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 "venue"='kardinia park';
2-10783853-5
What was Footscray's score as the home 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 "home_team_score" FROM "round_5" WHERE "home_team"='footscray';
2-10783853-5
On what date was there a competition in which the home team was the Suns?
CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "date" FROM "november" WHERE "home"='suns';
2-11965631-4
In the competition in which the visiting team was the Suns, who was the leading scorer?
CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "leading_scorer" FROM "november" WHERE "visitor"='suns';
2-11965631-4
What was the record in the competition in which the home team was the Mavericks?
CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "record" FROM "november" WHERE "home"='mavericks';
2-11965631-4
What's the average year a Rangam movie came out?
CREATE TABLE "telugu_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text );
SELECT AVG("year") FROM "telugu_songs" WHERE "movie"='rangam';
2-11203591-2
What year was "Ulike o Chilake" released?
CREATE TABLE "telugu_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text );
SELECT "year" FROM "telugu_songs" WHERE "song_title"='\"ulike o chilake\"';
2-11203591-2
What movie was "anti pettukundhuna" in?
CREATE TABLE "telugu_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text );
SELECT "movie" FROM "telugu_songs" WHERE "song_title"='\"anti pettukundhuna\"';
2-11203591-2
What was the name of the song in Amma Cheppindi?
CREATE TABLE "telugu_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text );
SELECT "song_title" FROM "telugu_songs" WHERE "movie"='amma cheppindi';
2-11203591-2
What was the average year that Thuppakki movies came out?
CREATE TABLE "telugu_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text );
SELECT AVG("year") FROM "telugu_songs" WHERE "movie"='thuppakki';
2-11203591-2
What is the highest summary statistic of the algorithm with a distance larger than 2 and simulated datasets of aabbababaaabbababbab?
CREATE TABLE "table_1_example_of_abc_rejection_algorit" ( "theta_i" real, "simulated_datasets_step_2" text, "summary_statistic_omega_s_i_step_3" real, "distance_rho_omega_s_i_omega_e_step_4" real, "outcome_step_4" text );
SELECT MAX("summary_statistic_omega_s_i_step_3") FROM "table_1_example_of_abc_rejection_algorit" WHERE "distance_rho_omega_s_i_omega_e_step_4">2 AND "simulated_datasets_step_2"='aabbababaaabbababbab';
2-11864519-1
What is the summary of the algorithm with a theta i of 0.43?
CREATE TABLE "table_1_example_of_abc_rejection_algorit" ( "theta_i" real, "simulated_datasets_step_2" text, "summary_statistic_omega_s_i_step_3" real, "distance_rho_omega_s_i_omega_e_step_4" real, "outcome_step_4" text );
SELECT "summary_statistic_omega_s_i_step_3" FROM "table_1_example_of_abc_rejection_algorit" WHERE "theta_i"=0.43;
2-11864519-1
How many games had 2 goals scored?
CREATE TABLE "all_time_national_performance" ( "nationality" text, "year" text, "games_played" real, "minutes_played" text, "goals_scored" text, "yellow_card" text, "red_card" text );
SELECT SUM("games_played") FROM "all_time_national_performance" WHERE "goals_scored"='2';
2-1127788-2
What was the result week 11?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "week"=11;
2-11059684-1
Name the total number of democratic votes when the other votes are less than 18 and the percentage of R votes are 52.63% and votes since 1856 less than 38
CREATE TABLE "analytical_table" ( "state" text, "votes" real, "votes_since_1856" real, "democratic_votes" real, "d_votes_since_1856" real, "pct_of_d_votes" text, "d_pct_since_1856" text, "republican_votes" real, "pct_of_r_votes" text, "r_pct_since_1856" text, "other_votes" real, "o_votes_since_1856" real, "pct_of_o_votes" text, "o_pct_since_1856" text );
SELECT COUNT("democratic_votes") FROM "analytical_table" WHERE "other_votes"<18 AND "pct_of_r_votes"='52.63%' AND "votes_since_1856"<38;
2-12102536-2
On what Date was the Opponent Panathinaikos?
CREATE TABLE "uefa_cup" ( "round" text, "date" text, "opponent" text, "score" text, "attendance" real, "report" text );
SELECT "date" FROM "uefa_cup" WHERE "opponent"='panathinaikos';
2-11768629-3
How many people attended games with st kilda as the home side?
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 SUM("crowd") FROM "round_14" WHERE "home_team"='st kilda';
2-10809157-14
Who is the home team when the crowd is over 32,485?
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 "crowd">'32,485';
2-10809157-14
What is the average number of floors for buildings in mecca ranked above 12?
CREATE TABLE "tallest_buildings_under_construction" ( "rank" real, "name" text, "city" text, "height" text, "floors" real );
SELECT AVG("floors") FROM "tallest_buildings_under_construction" WHERE "city"='mecca' AND "rank"<12;
2-11606138-2
What city is the lamar tower 1, ranked above 5?
CREATE TABLE "tallest_buildings_under_construction" ( "rank" real, "name" text, "city" text, "height" text, "floors" real );
SELECT "city" FROM "tallest_buildings_under_construction" WHERE "rank"<5 AND "name"='lamar tower 1';
2-11606138-2
What city has a building with over 57 floors?
CREATE TABLE "tallest_buildings_under_construction" ( "rank" real, "name" text, "city" text, "height" text, "floors" real );
SELECT "city" FROM "tallest_buildings_under_construction" WHERE "floors">57;
2-11606138-2
How many laps did antônio pizzonia do?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("laps") FROM "race" WHERE "driver"='antônio pizzonia';
2-1123633-2
What is the constructor for time/retired of handling?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "race" WHERE "time_retired"='handling';
2-1123633-2
What was the away team's score at windy hill?
CREATE TABLE "round_19" ( "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_19" WHERE "venue"='windy hill';
2-10826385-19
What is the average crowd size when the away team scores 7.13 (55)?
CREATE TABLE "round_19" ( "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_19" WHERE "away_team_score"='7.13 (55)';
2-10826385-19
What is the home team's score when the away side scores 14.11 (95)?
CREATE TABLE "round_19" ( "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_19" WHERE "away_team_score"='14.11 (95)';
2-10826385-19
What is the highest round of a player from Sweden who plays right wing?
CREATE TABLE "2013_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT MAX("round") FROM "2013_draft_picks" WHERE "nationality"='sweden' AND "position"='right wing';
2-11803648-22
What is the position of a player from a round less than 4 and an overall of 17?
CREATE TABLE "2013_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT "position" FROM "2013_draft_picks" WHERE "round"<4 AND "overall"='17';
2-11803648-22
What is the average round of a player with an overall of 138?
CREATE TABLE "2013_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT AVG("round") FROM "2013_draft_picks" WHERE "overall"='138';
2-11803648-22
Who is the player from Sweden from a round after 3?
CREATE TABLE "2013_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT "player" FROM "2013_draft_picks" WHERE "nationality"='sweden' AND "round">3;
2-11803648-22
What is the nationality of a player from linköpings hc (se)?
CREATE TABLE "2013_draft_picks" ( "round" real, "overall" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT "nationality" FROM "2013_draft_picks" WHERE "club_team"='linköpings hc (se)';
2-11803648-22
What is the crowd size for st kilda as the home team?
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 "crowd" FROM "round_1" WHERE "home_team"='st kilda';
2-10809351-1
When an away team scored 6.12 (48), what was the home team?
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 "away_team_score"='6.12 (48)';
2-10809351-1
I want the sum of pages for thistle among roses
CREATE TABLE "titles" ( "swedish_title" text, "norwegian_title" text, "translated_title" text, "published" real, "pages" real, "isbn" text );
SELECT SUM("pages") FROM "titles" WHERE "translated_title"='thistle among roses';
2-11098039-1
Who is the manager for FMC Corporation pension fund?
CREATE TABLE "the_statement" ( "fund" text, "manager" text, "fund_period" text, "fund_return" text, "market_return" text );
SELECT "manager" FROM "the_statement" WHERE "fund"='fmc corporation pension fund';
2-11886885-1
What fund has a fund return of 19.8% / 13.7%?
CREATE TABLE "the_statement" ( "fund" text, "manager" text, "fund_period" text, "fund_return" text, "market_return" text );
SELECT "fund" FROM "the_statement" WHERE "fund_return"='19.8% / 13.7%';
2-11886885-1
What was the position of Frank Tripp?
CREATE TABLE "overview" ( "character" text, "position" text, "actor" text, "first_episode" text, "final_episode" text, "episodes_credited" real );
SELECT "position" FROM "overview" WHERE "character"='frank tripp';
2-11210576-1
What was the final episode credited of 187?
CREATE TABLE "overview" ( "character" text, "position" text, "actor" text, "first_episode" text, "final_episode" text, "episodes_credited" real );
SELECT "final_episode" FROM "overview" WHERE "episodes_credited"=187;
2-11210576-1
Which class at 55 built?
CREATE TABLE "1890_1904" ( "class" text, "wheels" text, "date" text, "no_built" real, "loco_nos" text, "comments" text );
SELECT "class" FROM "1890_1904" WHERE "no_built"=55;
2-1169552-15
What is the Loco Nos of the e3 class?
CREATE TABLE "1890_1904" ( "class" text, "wheels" text, "date" text, "no_built" real, "loco_nos" text, "comments" text );
SELECT "loco_nos" FROM "1890_1904" WHERE "class"='e3';
2-1169552-15
How many people attended Junction Oval?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT SUM("crowd") FROM "round_6" WHERE "venue"='junction oval';
2-10806852-6
What was the score of the team that played against Fitzroy?
CREATE TABLE "round_6" ( "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_6" WHERE "away_team"='fitzroy';
2-10806852-6
Which 2011-12 season with a volume larger than 27,543 at club of melfi?
CREATE TABLE "girone_b" ( "club" text, "city" text, "stadium" text, "capacity" real, "2011_12_season" text );
SELECT "2011_12_season" FROM "girone_b" WHERE "capacity">'27,543' AND "club"='melfi';
2-1083851-6
What is the name of the stadium for the city of melfi?
CREATE TABLE "girone_b" ( "club" text, "city" text, "stadium" text, "capacity" real, "2011_12_season" text );
SELECT "stadium" FROM "girone_b" WHERE "city"='melfi';
2-1083851-6
What is the total capacity for the stadium of pasquale ianniello?
CREATE TABLE "girone_b" ( "club" text, "city" text, "stadium" text, "capacity" real, "2011_12_season" text );
SELECT SUM("capacity") FROM "girone_b" WHERE "stadium"='pasquale ianniello';
2-1083851-6