question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Which Agricultural Panel has a Nominated by the Taoiseach larger than 6, and a Total larger than 60?
CREATE TABLE "composition_of_the_15th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real );
SELECT SUM("agricultural_panel") FROM "composition_of_the_15th_seanad" WHERE "nominated_by_the_taoiseach">6 AND "total">60;
2-15547150-1
What is Team 1 when Team 2 is Jac Port-Gentil?
CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_1" FROM "second_round" WHERE "team_2"='jac port-gentil';
2-16163508-3
What was Team 2 with a 2nd leg of 0-0?
CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_2" FROM "second_round" WHERE "2nd_leg"='0-0';
2-16163508-3
What is the 1st leg of the Round that has a 2nd leg of 1-3 and Team 1 Es Tunis?
CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "second_round" WHERE "2nd_leg"='1-3' AND "team_1"='es tunis';
2-16163508-3
What is Winning Score, when Tournament is Joburg Open 1, and when Date is 17 Jan 2010?
CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "winning_score" FROM "sunshine_tour_wins_6" WHERE "tournament"='joburg open 1' AND "date"='17 jan 2010';
2-1598164-6
What is Date, when Tournament is Alfred Dunhill Championship 1?
CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "date" FROM "sunshine_tour_wins_6" WHERE "tournament"='alfred dunhill championship 1';
2-1598164-6
What is Tournament, when Margin is Victory of 6 Strokes?
CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "tournament" FROM "sunshine_tour_wins_6" WHERE "margin_of_victory"='6 strokes';
2-1598164-6
What is Winning Score, when Date is 17 Jan 2010?
CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "winning_score" FROM "sunshine_tour_wins_6" WHERE "date"='17 jan 2010';
2-1598164-6
What is Tournament, when Runner(s)-Up is Garth Mulroy?
CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "tournament" FROM "sunshine_tour_wins_6" WHERE "runner_s_up"='garth mulroy';
2-1598164-6
What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and when Tournament is Joburg Open 1?
CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "runner_s_up" FROM "sunshine_tour_wins_6" WHERE "margin_of_victory"='1 stroke' AND "tournament"='joburg open 1';
2-1598164-6
What is the points sum of the series with less than 0 poles?
CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text );
SELECT SUM("points") FROM "career_summary" WHERE "poles"<0;
2-16141981-1
What is the sum of the races in the 2007 season, which has more than 4 podiums?
CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text );
SELECT SUM("races") FROM "career_summary" WHERE "podiums">4 AND "season"='2007';
2-16141981-1
What is the sum of the poles of Team la filière, which has less than 162 points?
CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text );
SELECT SUM("poles") FROM "career_summary" WHERE "team"='la filière' AND "points"<162;
2-16141981-1
What is the average number of points in the 2012 season, which has less than 1 wins and less than 0 podiums?
CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text );
SELECT AVG("points") FROM "career_summary" WHERE "wins"<1 AND "season"='2012' AND "podiums"<0;
2-16141981-1
How many poles had a moto2 class?
CREATE TABLE "by_class" ( "class" text, "season" text, "race" real, "podiums" real, "pole" real );
SELECT "pole" FROM "by_class" WHERE "class"='moto2';
2-15590360-2
What is the sum of the Cultural and Educational Panels that have an Administrative Panel greater than 1, an Agricultural Panel of 11 and a University of Dublin smaller than 3?
CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real );
SELECT SUM("cultural_and_educational_panel") FROM "composition_of_the_7th_seanad" WHERE "administrative_panel">1 AND "agricultural_panel"=11 AND "university_of_dublin"<3;
2-15547582-1
What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0?
CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real );
SELECT SUM("agricultural_panel") FROM "composition_of_the_7th_seanad" WHERE "industrial_and_commercial_panel"<0;
2-15547582-1
What is the lowest number of National University of Ireland that has a Cultural and Educational Panel of 0, and a Labour Panel smaller than 1?
CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real );
SELECT MIN("national_university_of_ireland") FROM "composition_of_the_7th_seanad" WHERE "cultural_and_educational_panel"=0 AND "labour_panel"<1;
2-15547582-1
What is the total of Industrial and Commercial Panels that have a Labour Panel greater than 1, a Nominated by the Taoiseach lesss than 11 and a Cultural and Educational Panel smaller than 0
CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real );
SELECT COUNT("industrial_and_commercial_panel") FROM "composition_of_the_7th_seanad" WHERE "labour_panel">1 AND "nominated_by_the_taoiseach"<11 AND "cultural_and_educational_panel"<0;
2-15547582-1
What was the highest number of goals when 2428 minutes were played?
CREATE TABLE "players" ( "player" text, "position" text, "gp_gs" text, "minutes" real, "goals" real, "assists" real );
SELECT MAX("goals") FROM "players" WHERE "minutes"=2428;
2-15754274-1
What is the number of minutes when there are more than 4 goals and 3 assists?
CREATE TABLE "players" ( "player" text, "position" text, "gp_gs" text, "minutes" real, "goals" real, "assists" real );
SELECT "minutes" FROM "players" WHERE "goals">4 AND "assists"=3;
2-15754274-1
What is the total number of assists when Edmundo Rodriguez is playing the position of striker, less than 4 goals were scored, and the minutes were less than 473?
CREATE TABLE "players" ( "player" text, "position" text, "gp_gs" text, "minutes" real, "goals" real, "assists" real );
SELECT COUNT("assists") FROM "players" WHERE "position"='striker' AND "goals"<4 AND "player"='edmundo rodriguez' AND "minutes"<473;
2-15754274-1
What is the least ERP W when the freguency MHz is 89.3 fm?
CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text );
SELECT MIN("erp_w") FROM "translators" WHERE "frequency_m_hz"='89.3 fm';
2-15728409-1
Call sign k216fo has what average ERP W?
CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text );
SELECT AVG("erp_w") FROM "translators" WHERE "call_sign"='k216fo';
2-15728409-1
What city does call sign K248am have its license in?
CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text );
SELECT "city_of_license" FROM "translators" WHERE "call_sign"='k248am';
2-15728409-1
What call sign has ERP W greater than 197?
CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text );
SELECT "call_sign" FROM "translators" WHERE "erp_w">197;
2-15728409-1
How many points did Costa score in the Macau Grand Prix since 2011?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );
SELECT "points" FROM "career_summary" WHERE "season">2011 AND "series"='macau grand prix';
2-16096064-1
Which teams had the 1st position and entered 1 race?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );
SELECT "team" FROM "career_summary" WHERE "races"='1' AND "position"='1st';
2-16096064-1
How many points did Carlin have when they had 3 wins?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );
SELECT "points" FROM "career_summary" WHERE "wins"='3' AND "team"='carlin';
2-16096064-1
How many Points have an Against smaller than 43, and a Position smaller than 1?
CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT SUM("points") FROM "laf_s_campeonato_paulista" WHERE "against"<43 AND "position"<1;
2-15384084-2
How many Drawn have a Position of 7, and Points larger than 18?
CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT COUNT("drawn") FROM "laf_s_campeonato_paulista" WHERE "position"=7 AND "points">18;
2-15384084-2
How many Against have a Team of hespanha, and Points smaller than 30?
CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT COUNT("against") FROM "laf_s_campeonato_paulista" WHERE "team"='hespanha' AND "points"<30;
2-15384084-2
Which Points is the average one that has Drawn of 3, and a Played smaller than 22?
CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT AVG("points") FROM "laf_s_campeonato_paulista" WHERE "drawn"=3 AND "played"<22;
2-15384084-2
How much Played has an Against larger than 37, and a Lost of 15, and Points smaller than 11?
CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT SUM("played") FROM "laf_s_campeonato_paulista" WHERE "against">37 AND "lost"=15 AND "points"<11;
2-15384084-2
Which artist has the Spoofed title Miscue 911?
CREATE TABLE "1990s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text );
SELECT "artist" FROM "1990s" WHERE "spoofed_title"='miscue 911';
2-15860633-8
Which Spoofed title is from February 1998?
CREATE TABLE "1990s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text );
SELECT "spoofed_title" FROM "1990s" WHERE "date"='february 1998';
2-15860633-8
Which artist has a Spoofed title in June 1992?
CREATE TABLE "1990s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text );
SELECT "artist" FROM "1990s" WHERE "date"='june 1992';
2-15860633-8
What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("laps") FROM "125cc_classification" WHERE "manufacturer"='ktm' AND "time_retired"='+56.440' AND "grid"<11;
2-16175675-3
What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT MAX("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "time_retired"='+1.660';
2-16175675-3
What Round against Aleksander Emelianenko had a time of 5:00?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "round" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "opponent"='aleksander emelianenko';
2-16174499-2
In 1958, what has the IRFU All-Stars Home Venue?
CREATE TABLE "list_of_games" ( "season" real, "date" text, "venue" text, "city" text, "visitor" text, "score" text, "home" text, "attendance" real );
SELECT "venue" FROM "list_of_games" WHERE "home"='irfu all-stars' AND "season"=1958;
2-16090565-1
On what Date was the Venue at Exhibition Stadium?
CREATE TABLE "list_of_games" ( "season" real, "date" text, "venue" text, "city" text, "visitor" text, "score" text, "home" text, "attendance" real );
SELECT "date" FROM "list_of_games" WHERE "venue"='exhibition stadium';
2-16090565-1
Before 1957, what was the largest in Attendance at Varsity Stadium?
CREATE TABLE "list_of_games" ( "season" real, "date" text, "venue" text, "city" text, "visitor" text, "score" text, "home" text, "attendance" real );
SELECT MAX("attendance") FROM "list_of_games" WHERE "season"<1957 AND "venue"='varsity stadium';
2-16090565-1
What is the Time with a Score that is 65-19?
CREATE TABLE "round_three" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );
SELECT "time" FROM "round_three" WHERE "score"='65-19';
2-15764352-3
What is the Time with an Away that is broadview hawks?
CREATE TABLE "round_three" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );
SELECT "time" FROM "round_three" WHERE "away"='broadview hawks';
2-15764352-3
Which Position has an Against of 32, and a Difference of 18, and a Drawn larger than 4?
CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT SUM("position") FROM "campeonato_paulista" WHERE "against"=32 AND "difference"='18' AND "drawn">4;
2-15318286-1
Which Position has an Against smaller than 49, and a Drawn of 4?
CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT MAX("position") FROM "campeonato_paulista" WHERE "against"<49 AND "drawn"=4;
2-15318286-1
Which Played has a Drawn of 5, and a Team of palmeiras, and a Position smaller than 6?
CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT MAX("played") FROM "campeonato_paulista" WHERE "drawn"=5 AND "team"='palmeiras' AND "position"<6;
2-15318286-1
What team played on November 17?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "team" FROM "game_log" WHERE "date"='november 17';
2-15872814-3
What is the comp when the ryds is 2?
CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text );
SELECT "comp" FROM "post_season" WHERE "r_yds"='2';
2-15408374-3
What is the RAtt when the comp is 48?
CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text );
SELECT "r_att" FROM "post_season" WHERE "comp"='48';
2-15408374-3
What is the RAtt when the long is 73?
CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text );
SELECT "r_att" FROM "post_season" WHERE "long"='73';
2-15408374-3
What is the RYds when the RAtt was 2, and the comp is 41?
CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text );
SELECT "r_yds" FROM "post_season" WHERE "r_att"='2' AND "comp"='41';
2-15408374-3
What is the Long when the ryds is 18?
CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text );
SELECT "long" FROM "post_season" WHERE "r_yds"='18';
2-15408374-3
What is the RAvg when the ratt is 3?
CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text );
SELECT "r_avg" FROM "post_season" WHERE "r_att"='3';
2-15408374-3
Who was the Runner-up for the merrill lynch/golf digest commemorative pro-am tournament?
CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "runner_s_up" FROM "senior_pga_tour_wins_9" WHERE "tournament"='merrill lynch/golf digest commemorative pro-am';
2-1544891-3
What was the margin of victory when the winning score was –14 (70-68-67=205)?
CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "margin_of_victory" FROM "senior_pga_tour_wins_9" WHERE "winning_score"='–14 (70-68-67=205)';
2-1544891-3
Who were the runner(s)-up when the winning score was –10 (69-68-74-67=278)?
CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "margin_of_victory" FROM "senior_pga_tour_wins_9" WHERE "winning_score"='–10 (69-68-74-67=278)';
2-1544891-3
Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes?
CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "runner_s_up" FROM "senior_pga_tour_wins_9" WHERE "margin_of_victory"='2 strokes' AND "tournament"='mazda senior tournament players championship';
2-1544891-3
When was the last title of the team with a home ground of Sydney cricket ground?
CREATE TABLE "teams" ( "team_name_sponsored_name" text, "home_ground_a" text, "first_season" text, "last_title" text, "titles" real );
SELECT "last_title" FROM "teams" WHERE "home_ground_a"='sydney cricket ground';
2-1585656-1
How many people were in attendance for the game week 15?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("attendance") FROM "schedule" WHERE "week"=15;
2-15378789-1
What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='buffalo bills' AND "week">14;
2-15378789-1
What is the average Week when there were more than 63,866 people in attendance on September 7, 1981?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT AVG("week") FROM "schedule" WHERE "attendance">'63,866' AND "date"='september 7, 1981';
2-15378789-1
What is the average Attendance for the game on November 1, 1981?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT AVG("attendance") FROM "schedule" WHERE "date"='november 1, 1981';
2-15378789-1
What position is played by the player from the Chicago Cubs?
CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text );
SELECT "position" FROM "supplemental_first_round_selections" WHERE "team"='chicago cubs';
2-16022840-3
What is the name of the Outfielder that was picked prior to Pick 42?
CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text );
SELECT "player" FROM "supplemental_first_round_selections" WHERE "position"='outfielder' AND "pick"<42;
2-16022840-3
What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko?
CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );
SELECT "week_of" FROM "october" WHERE "semi_finalists"='anke huber chanda rubin' AND "runner_up"='meredith mcgrath larisa savchenko';
2-15866312-10
What is the Semi finalists when the Runner-up was katrina adams zina garrison-jackson?
CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );
SELECT "semi_finalists" FROM "october" WHERE "runner_up"='katrina adams zina garrison-jackson';
2-15866312-10
What is the Winner when anke huber chanda rubin was semi finalist?
CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );
SELECT "winner" FROM "october" WHERE "semi_finalists"='anke huber chanda rubin';
2-15866312-10
What is the Tier when the runner-up is chanda rubin caroline vis?
CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );
SELECT "tier" FROM "october" WHERE "runner_up"='chanda rubin caroline vis';
2-15866312-10
What is the Week when the winner was mary joe fernández 6–4, 7–5?
CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );
SELECT "week_of" FROM "october" WHERE "winner"='mary joe fernández 6–4, 7–5';
2-15866312-10
What is the Runner-up with the tier was tier ii, and a Winner of gigi fernández natalia zvereva 5–7, 6–1, 6–4?
CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );
SELECT "runner_up" FROM "october" WHERE "tier"='tier ii' AND "winner"='gigi fernández natalia zvereva 5–7, 6–1, 6–4';
2-15866312-10
Which week had safe as the result and Dolly Parton as the theme?
CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text );
SELECT "week_num" FROM "performances" WHERE "result"='safe' AND "theme"='dolly parton';
2-15796083-1
On which week was the beatles the original artist and the order # smaller than 10?
CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text );
SELECT "week_num" FROM "performances" WHERE "original_artist"='the beatles' AND "order_num"<10;
2-15796083-1
On which week was the result safe and the song choice " across the universe "?
CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text );
SELECT "week_num" FROM "performances" WHERE "result"='safe' AND "song_choice"='\" across the universe \"';
2-15796083-1
Which original artist had 5 as their order #?
CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text );
SELECT "original_artist" FROM "performances" WHERE "order_num"=5;
2-15796083-1
Which nominee was nominated in the Outstanding Director of a Musical category?
CREATE TABLE "1997_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text );
SELECT "nominee" FROM "1997_broadway_revival" WHERE "category"='outstanding director of a musical';
2-161607-2
What is the result for Brent Spiner?
CREATE TABLE "1997_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text );
SELECT "result" FROM "1997_broadway_revival" WHERE "nominee"='brent spiner';
2-161607-2
What is the number of games for Shaun Stonerook?
CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real );
SELECT MIN("games") FROM "rebounds" WHERE "name"='shaun stonerook';
2-16050349-11
What is the highest total number of medals of the nation with less than 1 bronzes and less than 0 silver medals?
CREATE TABLE "medal_leaders" ( "nation" text, "sport" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("total") FROM "medal_leaders" WHERE "bronze"<1 AND "silver"<0;
2-16142610-11
Total weeks of 49,980 attendance?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT SUM("week") FROM "schedule" WHERE "attendance"='49,980';
2-15378820-1
Mean attendance for December 22, 1980?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT AVG("attendance") FROM "schedule" WHERE "date"='december 22, 1980';
2-15378820-1
Overall attendance for week 4?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "attendance" FROM "schedule" WHERE "week"=4;
2-15378820-1
What was in 2007 that has a 3r of 1999?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text );
SELECT "2007" FROM "singles_performance_timeline" WHERE "1999"='3r';
2-1547532-8
What was in 2007 that is from 2004 0f 2r and 2010 of A?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text );
SELECT "2007" FROM "singles_performance_timeline" WHERE "2004"='2r' AND "2010"='a';
2-1547532-8
What is in 2001, that has the year 2006, 2r, and in 2010 an A?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text );
SELECT "2001" FROM "singles_performance_timeline" WHERE "2006"='2r' AND "2010"='a';
2-1547532-8
Who was awarded after 1947 in the category of, the best actor in a leading role?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "result" text, "category" text, "film" text );
SELECT "award" FROM "awards_and_nominations" WHERE "year">1947 AND "category"='best actor in a leading role';
2-154682-2
Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11?
CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text );
SELECT "opponent" FROM "kickboxing_record" WHERE "method"='tko' AND "location"='elgin, illinois, usa' AND "date"='2001-02-11';
2-1533651-2
Which Round has a Location of auckland, new zealand, and a Method of tko on 1994-11-24?
CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text );
SELECT AVG("round") FROM "kickboxing_record" WHERE "location"='auckland, new zealand' AND "method"='tko' AND "date"='1994-11-24';
2-1533651-2
Which highest Round has a Result of loss?
CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text );
SELECT MAX("round") FROM "kickboxing_record" WHERE "result"='loss';
2-1533651-2
Which Location has a Method of decision?
CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text );
SELECT "location" FROM "kickboxing_record" WHERE "method"='decision';
2-1533651-2
What tournament has 1r as a 2004, and 1r as a 2007?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text );
SELECT "tournament" FROM "grand_slam_singles_performance_timeline" WHERE "2004"='1r' AND "2007"='1r';
2-1564278-4
What 2012 has q2 as the 2010, and wimbledon as the tournament?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text );
SELECT "2012" FROM "grand_slam_singles_performance_timeline" WHERE "2010"='q2' AND "tournament"='wimbledon';
2-1564278-4
What 2006 has grand slam tournaments of 2010?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text );
SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2010"='grand slam tournaments';
2-1564278-4
What 2006 has grand slam tournaments of 2005?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text );
SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2005"='grand slam tournaments';
2-1564278-4
What 2006 has q2 as the 2007?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text );
SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2007"='q2';
2-1564278-4
What are the losses where the award is Mike Miller (Smoy)?
CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text, "wins" text, "losses" text, "winpct" text, "awards" text );
SELECT "losses" FROM "seasons" WHERE "awards"='mike miller (smoy)';
2-15679812-3
Where the wins are 46, what is the win%?
CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text, "wins" text, "losses" text, "winpct" text, "awards" text );
SELECT "winpct" FROM "seasons" WHERE "wins"='46';
2-15679812-3
Where the Vancouver Grizzlies is the awards, what is the conference?
CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text, "wins" text, "losses" text, "winpct" text, "awards" text );
SELECT "conference" FROM "seasons" WHERE "awards"='vancouver grizzlies';
2-15679812-3
What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9?
CREATE TABLE "elections_to_the_legislative_assembly_of" ( "party" text, "1985" real, "1987" real, "1990" real, "1995" real, "1999" real, "2003" real, "2007" real, "2011" real );
SELECT MAX("1987") FROM "elections_to_the_legislative_assembly_of" WHERE "1995"<1995 AND "1999"<9;
2-1586335-4