question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What was the margin of victory at the Texas International Open?
CREATE TABLE "pga_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "margin_of_victory" FROM "pga_tour_wins_6" WHERE "tournament"='texas international open';
2-1510351-1
What was the margin of victory in the tournament with a winning score of −3 (74-68-72-71=285)?
CREATE TABLE "pga_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "margin_of_victory" FROM "pga_tour_wins_6" WHERE "winning_score"='−3 (74-68-72-71=285)';
2-1510351-1
Which Avg/G has an Effic larger than 129.73, and a Cmp-Att-Int of 333-500-13?
CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real );
SELECT SUM("avg_g") FROM "passing" WHERE "effic">129.73 AND "cmp_att_int"='333-500-13';
2-14982694-7
Which Effic is the highest one that has an Avg/G smaller than 305.6, and a GP-GS of 13-13?
CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real );
SELECT MAX("effic") FROM "passing" WHERE "avg_g"<305.6 AND "gp_gs"='13-13';
2-14982694-7
Which Avg/G that has a Name of opponents, and an Effic smaller than 129.73?
CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real );
SELECT SUM("avg_g") FROM "passing" WHERE "name"='opponents' AND "effic"<129.73;
2-14982694-7
Which Cmp-Att-Int has a GP-GS of 3-0?
CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real );
SELECT "cmp_att_int" FROM "passing" WHERE "gp_gs"='3-0';
2-14982694-7
Which Effic is the average one that has an Avg/G larger than 3.7, and a GP-GS of 13, and a Cmp-Att-Int of 318-521-15?
CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real );
SELECT AVG("effic") FROM "passing" WHERE "avg_g">3.7 AND "gp_gs"='13' AND "cmp_att_int"='318-521-15';
2-14982694-7
Which home team was playing on January 13?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "home" FROM "january" WHERE "date"='january 13';
2-13761074-9
How many runs were there when the high score was 55 and there were more than 12 innings?
CREATE TABLE "performance_against_each_opponent" ( "matches" real, "innings" real, "not_out" real, "runs" real, "high_score" real, "average" real );
SELECT SUM("runs") FROM "performance_against_each_opponent" WHERE "high_score"=55 AND "innings">12;
2-1420080-1
How many runs were there when there was 1 match and les than 86 average?
CREATE TABLE "performance_against_each_opponent" ( "matches" real, "innings" real, "not_out" real, "runs" real, "high_score" real, "average" real );
SELECT SUM("runs") FROM "performance_against_each_opponent" WHERE "matches"=1 AND "average"<86;
2-1420080-1
Which station has programming of Me-TV?
CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text );
SELECT "station" FROM "digital_channels" WHERE "programming"='me-tv';
2-1406855-1
Which station has programming of Me-TV?
CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text );
SELECT "station" FROM "digital_channels" WHERE "programming"='me-tv';
2-1406855-1
What is the short name having video of 720p and programming of Main KSTC-TV programming?
CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text );
SELECT "psip_short_name" FROM "digital_channels" WHERE "video"='720p' AND "programming"='main kstc-tv programming';
2-1406855-1
What is the video associated with a short name of KSTCDT2?
CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text );
SELECT "video" FROM "digital_channels" WHERE "psip_short_name"='kstcdt2';
2-1406855-1
What is the short name of channel 5.5, KSTC-TV?
CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text );
SELECT "psip_short_name" FROM "digital_channels" WHERE "station"='kstc-tv' AND "channel"=5.5;
2-1406855-1
What is the short name of the channel under 5.2?
CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text );
SELECT "psip_short_name" FROM "digital_channels" WHERE "channel"<5.2;
2-1406855-1
Which Men's doubles has a Women's doubles of pam brady rosine lemon?
CREATE TABLE "past_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );
SELECT "men_s_doubles" FROM "past_winners" WHERE "women_s_doubles"='pam brady rosine lemon';
2-14260117-1
Which province has a prefecture of Xiangxi with 0.81% of China's Tujia population?
CREATE TABLE "by_county" ( "province" text, "prefecture" text, "county" text, "tujia_population" real, "pct_of_china_s_tujia_population" text );
SELECT "province" FROM "by_county" WHERE "prefecture"='xiangxi' AND "pct_of_china_s_tujia_population"='0.81%';
2-152834-2
Which prefecture is in Hubei province and Enshi county?
CREATE TABLE "by_county" ( "province" text, "prefecture" text, "county" text, "tujia_population" real, "pct_of_china_s_tujia_population" text );
SELECT "prefecture" FROM "by_county" WHERE "province"='hubei' AND "county"='enshi';
2-152834-2
What is the sum of Tujia population with the Zhangjiajie prefecture in Sangzhi county?
CREATE TABLE "by_county" ( "province" text, "prefecture" text, "county" text, "tujia_population" real, "pct_of_china_s_tujia_population" text );
SELECT SUM("tujia_population") FROM "by_county" WHERE "prefecture"='zhangjiajie' AND "county"='sangzhi';
2-152834-2
What is the total number of attendence has points greater than 40, and detroit as the home?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real );
SELECT COUNT("attendance") FROM "game_log" WHERE "points">40 AND "home"='detroit';
2-14335332-6
What is the total number of Tropical Lows for more than 11 tropical cyclones in 1998–99, and a Severe Tropical Cyclones larger than 9?
CREATE TABLE "1990s" ( "season" text, "tropical_lows" real, "tropical_cyclones" real, "severe_tropical_cyclones" real, "strongest_storm" text );
SELECT COUNT("tropical_lows") FROM "1990s" WHERE "tropical_cyclones">11 AND "season"='1998–99' AND "severe_tropical_cyclones">9;
2-14617522-3
What is the largest number for tropical Lows for the 1990–91 season with more than 10 tropical cyclones?
CREATE TABLE "1990s" ( "season" text, "tropical_lows" real, "tropical_cyclones" real, "severe_tropical_cyclones" real, "strongest_storm" text );
SELECT MAX("tropical_lows") FROM "1990s" WHERE "season"='1990–91' AND "tropical_cyclones">10;
2-14617522-3
What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows.
CREATE TABLE "1990s" ( "season" text, "tropical_lows" real, "tropical_cyclones" real, "severe_tropical_cyclones" real, "strongest_storm" text );
SELECT MIN("severe_tropical_cyclones") FROM "1990s" WHERE "strongest_storm"='tiffany' AND "tropical_lows">10;
2-14617522-3
What is the least amount of severe tropical cyclones for the 1992–93 season and the tropical Lows smaller than 6?
CREATE TABLE "1990s" ( "season" text, "tropical_lows" real, "tropical_cyclones" real, "severe_tropical_cyclones" real, "strongest_storm" text );
SELECT MIN("severe_tropical_cyclones") FROM "1990s" WHERE "season"='1992–93' AND "tropical_lows"<6;
2-14617522-3
What is the least amount of tropical lows for the 1993–94 season with less than 11 tropical cyclones
CREATE TABLE "1990s" ( "season" text, "tropical_lows" real, "tropical_cyclones" real, "severe_tropical_cyclones" real, "strongest_storm" text );
SELECT MIN("tropical_lows") FROM "1990s" WHERE "season"='1993–94' AND "tropical_cyclones"<11;
2-14617522-3
How many Weeks are on september 8, 1980 and Attendances larger than 55,045? Question 4
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("week") FROM "schedule" WHERE "date"='september 8, 1980' AND "attendance">'55,045';
2-15085721-2
Which Round has a College of stanford?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text );
SELECT "round" FROM "nfl_draft" WHERE "college"='stanford';
2-14094057-1
Which Round has a Pick of 174?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text );
SELECT "round" FROM "nfl_draft" WHERE "pick"=174;
2-14094057-1
Which Position has a Pick of 174?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text );
SELECT "position" FROM "nfl_draft" WHERE "pick"=174;
2-14094057-1
that was held in 1964?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT "event" FROM "achievements" WHERE "year"=1964;
2-14576140-1
What is the name of the Event with a venue that was in toronto, canada?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT "event" FROM "achievements" WHERE "venue"='toronto, canada';
2-14576140-1
What is the Year the competition the british empire and commonwealth games were held?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT SUM("year") FROM "achievements" WHERE "competition"='british empire and commonwealth games';
2-14576140-1
What is the position of the commonwealth games?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT "position" FROM "achievements" WHERE "competition"='commonwealth games';
2-14576140-1
What is the venue with a competition in 1964?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT "venue" FROM "achievements" WHERE "year"=1964;
2-14576140-1
Name the date for clay surface and location of santos, brazil
CREATE TABLE "singles_finals_19_8_11" ( "outcome" text, "date" text, "location" text, "surface" text, "opponent_in_final" text, "score" text );
SELECT "date" FROM "singles_finals_19_8_11" WHERE "surface"='clay' AND "location"='santos, brazil';
2-15162330-2
Name the date with outcome of winner and score of 4–6 6–2 7–6 (7–4)
CREATE TABLE "singles_finals_19_8_11" ( "outcome" text, "date" text, "location" text, "surface" text, "opponent_in_final" text, "score" text );
SELECT "date" FROM "singles_finals_19_8_11" WHERE "outcome"='winner' AND "score"='4–6 6–2 7–6 (7–4)';
2-15162330-2
What's the highest capacity for a position of 5 in 2004?
CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2004" text );
SELECT MAX("capacity") FROM "teams_and_venues" WHERE "position_in_2004"='5';
2-14749970-1
Which venue has a capacity over 41,040 for Darida?
CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2004" text );
SELECT "venue" FROM "teams_and_venues" WHERE "capacity">'41,040' AND "team"='darida';
2-14749970-1
Which venue was number 9 for 2004?
CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2004" text );
SELECT "venue" FROM "teams_and_venues" WHERE "position_in_2004"='9';
2-14749970-1
What city was founded in 1857?
CREATE TABLE "institutions" ( "school" text, "city" text, "state" text, "enrollment" real, "founded" real );
SELECT "city" FROM "institutions" WHERE "founded"=1857;
2-14014822-1
Which Opponent has a Time of 2:31?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text );
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='2:31';
2-1521674-2
Which Method has a Round of 1, and a Time of 0:28?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text );
SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "time"='0:28';
2-1521674-2
Which Time has an Event of call to arms i?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text );
SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='call to arms i';
2-1521674-2
what team played on april 9
CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text );
SELECT "opponent" FROM "playoffs" WHERE "date"='april 9';
2-14323142-9
What is the smallest frequency (kHz) that is in the location of Longview?
CREATE TABLE "am_stations" ( "frequency_k_hz" real, "call_letters" text, "licensed_location" text, "type" text, "format" text );
SELECT MIN("frequency_k_hz") FROM "am_stations" WHERE "licensed_location"='longview';
2-151199-7
What is the location with a frequency (kHz) greater than 1370?
CREATE TABLE "am_stations" ( "frequency_k_hz" real, "call_letters" text, "licensed_location" text, "type" text, "format" text );
SELECT "licensed_location" FROM "am_stations" WHERE "frequency_k_hz">1370;
2-151199-7
What is the capacity number for Yunost?
CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2002" text );
SELECT COUNT("capacity") FROM "teams_and_venues" WHERE "venue"='yunost';
2-14748588-1
What is the total number of first prizes in USD for the Canadian Open?
CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real );
SELECT SUM("1st_prize") FROM "tournament_results" WHERE "tournament"='canadian open';
2-14639860-1
Which Drawn has a Lost of 19?
CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );
SELECT "drawn" FROM "2011_2012_table" WHERE "lost"='19';
2-14070062-1
Which Played has a Club of club?
CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );
SELECT "played" FROM "2011_2012_table" WHERE "club"='club';
2-14070062-1
Which Club has 1 Losing bonus?
CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );
SELECT "club" FROM "2011_2012_table" WHERE "losing_bonus"='1';
2-14070062-1
What is the Losing bonus of 571 Points ?
CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );
SELECT "losing_bonus" FROM "2011_2012_table" WHERE "points_for"='571';
2-14070062-1
Which Lost has a Tries for of 75?
CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );
SELECT "lost" FROM "2011_2012_table" WHERE "tries_for"='75';
2-14070062-1
Who is the opponent in the final of the match on 19 February 2006?
CREATE TABLE "singles_12_3_9" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "opponent_in_the_final" FROM "singles_12_3_9" WHERE "date"='19 february 2006';
2-15179071-2
Who is the opponent in the final of the match on 26 March 2006?
CREATE TABLE "singles_12_3_9" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "opponent_in_the_final" FROM "singles_12_3_9" WHERE "date"='26 march 2006';
2-15179071-2
What is the overall number of the player from Utah with a pick # higher than 7?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='utah' AND "pick_num"<7;
2-15198842-29
What is the highest round of the player with a pick number lower than 34?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num">34;
2-15198842-29
What round did Mitch Davis, with an overall higher than 118, have?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("round") FROM "atlanta_falcons_draft_history" WHERE "name"='mitch davis' AND "overall"<118;
2-15198842-29
What is the highest overall of the player from Georgia?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='georgia';
2-15198842-29
What is the position of the player with an overall of 45?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "position" FROM "atlanta_falcons_draft_history" WHERE "overall"=45;
2-15198842-29
How many wins for team nsu and over 2 points?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT AVG("wins") FROM "motorcycle_grand_prix_results" WHERE "team"='nsu' AND "points">2;
2-15099176-2
What is the earliest year associated with under 0 wins?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<0;
2-15099176-2
How many wins for team mv agusta, over 10 points, and after 1957?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT SUM("wins") FROM "motorcycle_grand_prix_results" WHERE "team"='mv agusta' AND "points">10 AND "year">1957;
2-15099176-2
What College/Junior/Club Team (League) has a round of 3?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round"=3;
2-14347256-16
What player has a round larger than 1 in Austria?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "player" FROM "draft_picks" WHERE "round">1 AND "nationality"='austria';
2-14347256-16
Which player's nationality is from Sweden?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "player" FROM "draft_picks" WHERE "nationality"='sweden';
2-14347256-16
What College/Junior/Club Team (League) from Canada has a round smaller than 3?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "nationality"='canada' AND "round"<3;
2-14347256-16
What was the distance in 1997?
CREATE TABLE "men_kayak" ( "distance" text, "event" text, "record" text, "nationality" text, "year" real, "location" text );
SELECT "distance" FROM "men_kayak" WHERE "year"=1997;
2-14884844-1
Who was the opponents in the final on January 5, 2003, on a hard surface?
CREATE TABLE "doubles_19_12_titles_7_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "opponents_in_the_final" FROM "doubles_19_12_titles_7_runners_up" WHERE "surface"='hard' AND "date"='january 5, 2003';
2-14026187-6
What was the final score on the February 19, 2012 final?
CREATE TABLE "doubles_19_12_titles_7_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "score_in_the_final" FROM "doubles_19_12_titles_7_runners_up" WHERE "date"='february 19, 2012';
2-14026187-6
Name the least attendance with venue of away on 24 august 2007
CREATE TABLE "conference_national" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance_away" real );
SELECT MIN("attendance_away") FROM "conference_national" WHERE "venue"='away' AND "date"='24 august 2007';
2-15211906-3
Name the average attendance with result of won 2-0 on 2 november 2007
CREATE TABLE "conference_national" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance_away" real );
SELECT AVG("attendance_away") FROM "conference_national" WHERE "result"='won 2-0' AND "date"='2 november 2007';
2-15211906-3
What is the uniform number of the player whose last name is Wiltshire?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text );
SELECT MIN("uninum") FROM "player_roster" WHERE "surname"='wiltshire';
2-14431362-10
When the rank is larger than 3 with a second quarter of johnson & johnson 156,515.9, what is the fourth quarter?
CREATE TABLE "2009" ( "rank" real, "first_quarter" text, "second_quarter" text, "third_quarter" text, "fourth_quarter" text );
SELECT "fourth_quarter" FROM "2009" WHERE "rank">3 AND "second_quarter"='johnson & johnson 156,515.9';
2-14094649-5
With a rank of 2 what is the second quarter?
CREATE TABLE "2009" ( "rank" real, "first_quarter" text, "second_quarter" text, "third_quarter" text, "fourth_quarter" text );
SELECT "second_quarter" FROM "2009" WHERE "rank"=2;
2-14094649-5
When the third quarter is China Mobile 195,680.4, what is the rank?
CREATE TABLE "2009" ( "rank" real, "first_quarter" text, "second_quarter" text, "third_quarter" text, "fourth_quarter" text );
SELECT "rank" FROM "2009" WHERE "third_quarter"='china mobile 195,680.4';
2-14094649-5
When the first quarter is procter & gamble 138,013, what is the rank?
CREATE TABLE "2009" ( "rank" real, "first_quarter" text, "second_quarter" text, "third_quarter" text, "fourth_quarter" text );
SELECT "rank" FROM "2009" WHERE "first_quarter"='procter & gamble 138,013';
2-14094649-5
When the rank is less than 4, and has a second quarter of exxon mobil 341,140.3, what is the fourth quarter?
CREATE TABLE "2009" ( "rank" real, "first_quarter" text, "second_quarter" text, "third_quarter" text, "fourth_quarter" text );
SELECT "fourth_quarter" FROM "2009" WHERE "rank"<4 AND "second_quarter"='exxon mobil 341,140.3';
2-14094649-5
What is the Term end that has a Party of united australia and 184 days in office?
CREATE TABLE "list_of_ministers_for_the_interior" ( "order" text, "minister" text, "party" text, "prime_minister" text, "title" text, "term_start" text, "term_end" text, "term_in_office" text );
SELECT "term_end" FROM "list_of_ministers_for_the_interior" WHERE "party"='united australia' AND "term_in_office"='184 days';
2-14492090-2
How many values for INT's occur with more than 0 yards, over 6 sacks, and average above 17.5?
CREATE TABLE "defensive" ( "player" text, "sacks" real, "int_s" real, "yards" real, "average" real, "long" text );
SELECT COUNT("int_s") FROM "defensive" WHERE "yards">0 AND "sacks">6 AND "average">17.5;
2-14655657-7
What is the sum of average values for 23 yards?
CREATE TABLE "defensive" ( "player" text, "sacks" real, "int_s" real, "yards" real, "average" real, "long" text );
SELECT SUM("average") FROM "defensive" WHERE "yards"=23;
2-14655657-7
What is the lowest value of INT's with an average more than 25?
CREATE TABLE "defensive" ( "player" text, "sacks" real, "int_s" real, "yards" real, "average" real, "long" text );
SELECT MIN("int_s") FROM "defensive" WHERE "average">25;
2-14655657-7
What are the most yards for 2 sacks and an average greater than 0?
CREATE TABLE "defensive" ( "player" text, "sacks" real, "int_s" real, "yards" real, "average" real, "long" text );
SELECT MAX("yards") FROM "defensive" WHERE "sacks"=2 AND "average">0;
2-14655657-7
What is the sum of values for INT'S with Mossy Cade for 0 yards and less than 3 sacks?
CREATE TABLE "defensive" ( "player" text, "sacks" real, "int_s" real, "yards" real, "average" real, "long" text );
SELECT SUM("int_s") FROM "defensive" WHERE "yards"=0 AND "sacks"<3 AND "player"='mossy cade';
2-14655657-7
What is listed for the Bronze, with the Location of Bangkok, and the Year of 1978?
CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT "bronze" FROM "individual" WHERE "location"='bangkok' AND "year"=1978;
2-14769579-3
What's listed for the lowest Year that a Silver of Kim Kyung-Ho?
CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT MIN("year") FROM "individual" WHERE "silver"='kim kyung-ho';
2-14769579-3
What's the Gold that also has Bronze of Kim Sun-Bin?
CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT "gold" FROM "individual" WHERE "bronze"='kim sun-bin';
2-14769579-3
What's the Bronze that's also got a Godl of Kim Woo-Jin?
CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT "bronze" FROM "individual" WHERE "gold"='kim woo-jin';
2-14769579-3
What is listed as the highest Year that's also got a Bronze of Wataru Haraguchi?
CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT MAX("year") FROM "individual" WHERE "bronze"='wataru haraguchi';
2-14769579-3
What was the score when their record was 35–23–15?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "score" FROM "march" WHERE "record"='35–23–15';
2-13909437-7
Which home team has a score of 5 – 6?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "march" WHERE "score"='5 – 6';
2-13909437-7
In what county is the school of Merrillville?
CREATE TABLE "current_members" ( "school" text, "location" text, "mascot" text, "county" text, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "year_joined" real, "previous_conference" text );
SELECT "county" FROM "current_members" WHERE "school"='merrillville';
2-15090962-1
The school of Portage was in what conference previous?
CREATE TABLE "current_members" ( "school" text, "location" text, "mascot" text, "county" text, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "year_joined" real, "previous_conference" text );
SELECT "previous_conference" FROM "current_members" WHERE "school"='portage';
2-15090962-1
What is the name of the school that is in Valparaiso?
CREATE TABLE "current_members" ( "school" text, "location" text, "mascot" text, "county" text, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "year_joined" real, "previous_conference" text );
SELECT "school" FROM "current_members" WHERE "location"='valparaiso';
2-15090962-1
Which FA Cup is the highest one that has a Malaysia Cup of 0, and a Player of ahmad fouzee masuri, and a Total larger than 0?
CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real );
SELECT MAX("fa_cup") FROM "scorers" WHERE "malaysia_cup"=0 AND "player"='ahmad fouzee masuri' AND "total">0;
2-14998347-8
How many totals have a Player of ahmad fouzee masuri, and an FA Cup larger than 0?
CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real );
SELECT COUNT("total") FROM "scorers" WHERE "player"='ahmad fouzee masuri' AND "fa_cup">0;
2-14998347-8
Which FA Cup has a Player of khairan ezuan razali, and a Total smaller than 0?
CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real );
SELECT AVG("fa_cup") FROM "scorers" WHERE "player"='khairan ezuan razali' AND "total"<0;
2-14998347-8
How many Malaysia Cups have a Total larger than 3, and a Player of ivan yusoff, and a League smaller than 2?
CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real );
SELECT COUNT("malaysia_cup") FROM "scorers" WHERE "total">3 AND "player"='ivan yusoff' AND "league"<2;
2-14998347-8
Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8?
CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real );
SELECT SUM("fa_cup") FROM "scorers" WHERE "malaysia_cup">0 AND "total"=8;
2-14998347-8