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 heat with a time of 3:45.57 in lane 3?
CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );
SELECT "heat" FROM "heats" WHERE "lane"=3 AND "time"='3:45.57';
2-18624662-2
Who are the Rowers with a Time of 6:39.49?
CREATE TABLE "heat_3" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "rowers" FROM "heat_3" WHERE "time"='6:39.49';
2-18662686-4
What is the Country of the rowers with a Rank of 4?
CREATE TABLE "heat_3" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "country" FROM "heat_3" WHERE "rank"=4;
2-18662686-4
What counties mascot are the Red Ramblers?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='red ramblers';
2-18974097-14
What is the IHSAA class when the county was 83 vermillion?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "county"='83 vermillion';
2-18974097-14
What is the enrollment number for Rockville?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "location"='rockville';
2-18974097-14
What is the Result of the game on October 20, 1963 with an Attendance of 60,671 or greater?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "result" FROM "schedule" WHERE "attendance">'60,671' AND "date"='october 20, 1963';
2-18843084-2
What is the Attendance of the game against Minnesota Vikings?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("attendance") FROM "schedule" WHERE "opponent"='minnesota vikings';
2-18843084-2
what is the average score for søren kjeldsen?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT AVG("score") FROM "first_round" WHERE "player"='søren kjeldsen';
2-18786347-3
What's the against of South Warrnambool when the draw is less than 0?
CREATE TABLE "1946_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );
SELECT SUM("against") FROM "1946_ladder" WHERE "club"='south warrnambool' AND "draws"<0;
2-18628904-15
What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2 losses?
CREATE TABLE "1946_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );
SELECT MIN("draws") FROM "1946_ladder" WHERE "against"<1299 AND "wins">7 AND "club"='warrnambool' AND "losses"<2;
2-18628904-15
What's the against when the draw was more than 0 and had 13 losses?
CREATE TABLE "1946_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );
SELECT COUNT("against") FROM "1946_ladder" WHERE "losses"=13 AND "draws">0;
2-18628904-15
What's the against when there were more than 2 losses, more than 3 wins, and draws more than 0?
CREATE TABLE "1946_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );
SELECT AVG("against") FROM "1946_ladder" WHERE "losses">2 AND "wins">3 AND "draws">0;
2-18628904-15
What's the highest amount of losses of Camperdown when the against was less than 945?
CREATE TABLE "1946_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );
SELECT MAX("losses") FROM "1946_ladder" WHERE "club"='camperdown' AND "against"<945;
2-18628904-15
What is the venue later than 1983 with Men's Open of NSW and Men's 35 of QLD?
CREATE TABLE "results_of_the_national_championships_19" ( "year" real, "venue" text, "men_s_open" text, "women_s_open" text, "men_s_35s" text );
SELECT "venue" FROM "results_of_the_national_championships_19" WHERE "men_s_open"='nsw' AND "men_s_35s"='qld' AND "year">1983;
2-18794675-1
What is the venue earlier than 1995 with Men's Open of QLD and Men's 35 of QLD and Woman's Open of QLD?
CREATE TABLE "results_of_the_national_championships_19" ( "year" real, "venue" text, "men_s_open" text, "women_s_open" text, "men_s_35s" text );
SELECT "venue" FROM "results_of_the_national_championships_19" WHERE "men_s_35s"='qld' AND "men_s_open"='qld' AND "year"<1995 AND "women_s_open"='qld';
2-18794675-1
What is the Men's 35 in year before 1990 when Men's Open is NSW and the venue is Sydney?
CREATE TABLE "results_of_the_national_championships_19" ( "year" real, "venue" text, "men_s_open" text, "women_s_open" text, "men_s_35s" text );
SELECT "men_s_35s" FROM "results_of_the_national_championships_19" WHERE "year"<1990 AND "men_s_open"='nsw' AND "venue"='sydney';
2-18794675-1
In what year was the venue Gold Coast and the Men's 35s NSW?
CREATE TABLE "results_of_the_national_championships_19" ( "year" real, "venue" text, "men_s_open" text, "women_s_open" text, "men_s_35s" text );
SELECT SUM("year") FROM "results_of_the_national_championships_19" WHERE "venue"='gold coast' AND "men_s_35s"='nsw';
2-18794675-1
What is the Men's Open when the venue is Perth?
CREATE TABLE "results_of_the_national_championships_19" ( "year" real, "venue" text, "men_s_open" text, "women_s_open" text, "men_s_35s" text );
SELECT "men_s_open" FROM "results_of_the_national_championships_19" WHERE "venue"='perth';
2-18794675-1
What is the year that the Men's 35 is NSW, Women's Open is QLD and the venue is Sydney?
CREATE TABLE "results_of_the_national_championships_19" ( "year" real, "venue" text, "men_s_open" text, "women_s_open" text, "men_s_35s" text );
SELECT "year" FROM "results_of_the_national_championships_19" WHERE "men_s_35s"='nsw' AND "venue"='sydney' AND "women_s_open"='qld';
2-18794675-1
What is the average for the team with highest less than 13,500 and games played are fewer than 5?
CREATE TABLE "attendances" ( "team" text, "played" real, "highest" real, "lowest" real, "total" real, "average" real );
SELECT MIN("average") FROM "attendances" WHERE "highest"<'13,500' AND "played"<5;
2-18562984-4
what is the sum of league goals when the fa cup goals is more than 0?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT SUM("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals">0;
2-18786728-1
what is the average league cup goals when the league cup apps is 4, league goals is less than 4, fa cup apps is 1 and total apps is 35?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT AVG("league_cup_goals") FROM "appearances_and_goals" WHERE "league_cup_apps"=4 AND "league_goals"<4 AND "fa_cup_apps"='1' AND "total_apps"='35';
2-18786728-1
what is the average league cup goals when the position is df and total goals is more than 4?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT AVG("league_cup_goals") FROM "appearances_and_goals" WHERE "position"='df' AND "total_goals">4;
2-18786728-1
what is the average fa cup goals when the fa cup apps is 0, total goals is less than 1 and position is df?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT AVG("fa_cup_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps"='0' AND "total_goals"<1 AND "position"='df';
2-18786728-1
What year had a score of 0.586?
CREATE TABLE "international_recognition" ( "index" text, "score" text, "palop_rank" text, "cplp_rank" text, "n_africa_rank" text, "world_rank" text, "year" real );
SELECT COUNT("year") FROM "international_recognition" WHERE "score"='0.586';
2-18962637-1
What's the n Africa in 2012 with an N/A as the CPLP?
CREATE TABLE "international_recognition" ( "index" text, "score" text, "palop_rank" text, "cplp_rank" text, "n_africa_rank" text, "world_rank" text, "year" real );
SELECT "n_africa_rank" FROM "international_recognition" WHERE "year"=2012 AND "cplp_rank"='n/a';
2-18962637-1
What was the final venue for 82 delegates?
CREATE TABLE "miss_earth_titleholders" ( "year" real, "finals_venue" text, "location" text, "pageant_date" text, "number_of_delegates" text );
SELECT "finals_venue" FROM "miss_earth_titleholders" WHERE "number_of_delegates"='82';
2-18519532-1
Which Artist has a Record label of vertigo?
CREATE TABLE "best_selling_albums_in_the_uk" ( "artist" text, "record_label" text, "released" text, "chart_peak" real, "number_of_times_certified_platinum" text );
SELECT "artist" FROM "best_selling_albums_in_the_uk" WHERE "record_label"='vertigo';
2-18442691-2
Where is the ceremonial county for motorwy junction 1 and a population larger than 118,229?
CREATE TABLE "settlements_on_m40_corridor" ( "place" text, "population" real, "ceremonial_county" text, "main_railway_station" text, "motorway_junction" text );
SELECT "ceremonial_county" FROM "settlements_on_m40_corridor" WHERE "population">'118,229' AND "motorway_junction"='1';
2-18669511-1
What was the place that had a main railway station of banbury and a population bigger than 28,672?
CREATE TABLE "settlements_on_m40_corridor" ( "place" text, "population" real, "ceremonial_county" text, "main_railway_station" text, "motorway_junction" text );
SELECT "place" FROM "settlements_on_m40_corridor" WHERE "population">'28,672' AND "main_railway_station"='banbury';
2-18669511-1
Who is the president when c-span 2009 is 21?
CREATE TABLE "scholar_survey_results" ( "president" text, "schl_1948" text, "schl_1962" text, "m_b_1982" text, "ct_1982" text, "siena_1982" text, "siena_1990" text, "siena_1994" text, "r_mc_i_1996" text, "schl_1996" text, "c_span_1999" text, "wsj_2000" text, "siena_2002" text, "wsj_2005" text, "times_2008" text, "c_span_2009" text, "siena_2010" text, "uspc_2011" text, "aggr" text );
SELECT "president" FROM "scholar_survey_results" WHERE "c_span_2009"='21';
2-1855342-1
what is c-span 2009 when times 2008** is 08?
CREATE TABLE "scholar_survey_results" ( "president" text, "schl_1948" text, "schl_1962" text, "m_b_1982" text, "ct_1982" text, "siena_1982" text, "siena_1990" text, "siena_1994" text, "r_mc_i_1996" text, "schl_1996" text, "c_span_1999" text, "wsj_2000" text, "siena_2002" text, "wsj_2005" text, "times_2008" text, "c_span_2009" text, "siena_2010" text, "uspc_2011" text, "aggr" text );
SELECT "c_span_2009" FROM "scholar_survey_results" WHERE "times_2008"='08';
2-1855342-1
what is siena 2002 when the president is andrew jackson?
CREATE TABLE "scholar_survey_results" ( "president" text, "schl_1948" text, "schl_1962" text, "m_b_1982" text, "ct_1982" text, "siena_1982" text, "siena_1990" text, "siena_1994" text, "r_mc_i_1996" text, "schl_1996" text, "c_span_1999" text, "wsj_2000" text, "siena_2002" text, "wsj_2005" text, "times_2008" text, "c_span_2009" text, "siena_2010" text, "uspc_2011" text, "aggr" text );
SELECT "siena_2002" FROM "scholar_survey_results" WHERE "president"='andrew jackson';
2-1855342-1
Which Location has a Home Ground of Mong kok stadium?
CREATE TABLE "k" ( "club" text, "league_division" text, "home_ground" text, "location" text, "position_in_2012_13" text );
SELECT "location" FROM "k" WHERE "home_ground"='mong kok stadium';
2-18408905-8
Which club is in the First division?
CREATE TABLE "k" ( "club" text, "league_division" text, "home_ground" text, "location" text, "position_in_2012_13" text );
SELECT "club" FROM "k" WHERE "league_division"='first division';
2-18408905-8
What is the Home Ground with the Location n/a for the Club kcdrsc?
CREATE TABLE "k" ( "club" text, "league_division" text, "home_ground" text, "location" text, "position_in_2012_13" text );
SELECT "home_ground" FROM "k" WHERE "location"='n/a' AND "club"='kcdrsc';
2-18408905-8
What League/Division has a Location of n/a?
CREATE TABLE "k" ( "club" text, "league_division" text, "home_ground" text, "location" text, "position_in_2012_13" text );
SELECT "league_division" FROM "k" WHERE "location"='n/a';
2-18408905-8
What Location is in the second division and has 4th, third division (promoted) as its Position in 2012-13?
CREATE TABLE "k" ( "club" text, "league_division" text, "home_ground" text, "location" text, "position_in_2012_13" text );
SELECT "location" FROM "k" WHERE "league_division"='second division' AND "position_in_2012_13"='4th, third division (promoted)';
2-18408905-8
What was the rank of the team who raced at a time of 7:16.13?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "rank" FROM "semifinal_a_b_2" WHERE "time"='7:16.13';
2-18662704-9
What is the total number of rank for the country of greece?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT COUNT("rank") FROM "semifinal_a_b_2" WHERE "country"='greece';
2-18662704-9
What country were the athletes where ranked smaller than 5 with notes listed as fb?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "country" FROM "semifinal_a_b_2" WHERE "rank"<5 AND "notes"='fb';
2-18662704-9
What is the time for the race with the United States?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "time" FROM "semifinal_a_b_2" WHERE "country"='united states';
2-18662704-9
What shirt No has a Birth Date of April 12, 1986 (age27)?
CREATE TABLE "team_roster_season_2013_2014" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text );
SELECT MIN("shirt_no") FROM "team_roster_season_2013_2014" WHERE "birth_date"='april 12, 1986 (age27)';
2-18729577-2
What position that has a Height larger than 179, and Player is Ezgi Arslan?
CREATE TABLE "team_roster_season_2013_2014" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text );
SELECT "position" FROM "team_roster_season_2013_2014" WHERE "height">179 AND "player"='ezgi arslan';
2-18729577-2
What is the shirt no with a position of setter, a nationality of Italy, and height larger than 172?
CREATE TABLE "team_roster_season_2013_2014" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text );
SELECT SUM("shirt_no") FROM "team_roster_season_2013_2014" WHERE "position"='setter' AND "nationality"='italy' AND "height">172;
2-18729577-2
What player that has a position of middle blocker, a Nationality of Turkey, and shirt no is 8?
CREATE TABLE "team_roster_season_2013_2014" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text );
SELECT "player" FROM "team_roster_season_2013_2014" WHERE "position"='middle blocker' AND "nationality"='turkey' AND "shirt_no"=8;
2-18729577-2
What player that has a Nationality of Turkey, a Height smaller than 183, a shirt no smaller than 19, and a birth date of June 27, 1993 (age20)?
CREATE TABLE "team_roster_season_2013_2014" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text );
SELECT "player" FROM "team_roster_season_2013_2014" WHERE "nationality"='turkey' AND "height"<183 AND "shirt_no"<19 AND "birth_date"='june 27, 1993 (age20)';
2-18729577-2
Which nation won 29 gold medals?
CREATE TABLE "canoe" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "nation" FROM "canoe" WHERE "gold"=29;
2-18771517-6
What is the fewest number of bronze medals won among the nations ranked 12 that won no gold medals and 1 medal overall?
CREATE TABLE "canoe" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("bronze") FROM "canoe" WHERE "total"=1 AND "rank"='12' AND "gold"<1;
2-18771517-6
What is the FCC info for the translator with frequency over 89.3MHz and licensd in Portales, New Mexico?
CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );
SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz">89.3 AND "city_of_license"='portales, new mexico';
2-18566258-1
Which ship was launched from Devonport, Devon?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "ship" FROM "see_also" WHERE "location"='devonport, devon';
2-18548768-1
What country was the Pegasus, build by Royal Dockyard, from?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "country" FROM "see_also" WHERE "builder"='royal dockyard' AND "ship"='pegasus';
2-18548768-1
Who was the builder of Gannet from the United Kingdom?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "builder" FROM "see_also" WHERE "country"='united kingdom' AND "ship"='gannet';
2-18548768-1
Who was the builder of Nor?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "builder" FROM "see_also" WHERE "ship"='nor';
2-18548768-1
Who was the builder of Brage from Norway?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "builder" FROM "see_also" WHERE "country"='norway' AND "ship"='brage';
2-18548768-1
What country was Brage, built by karljohansverns verft, from?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "country" FROM "see_also" WHERE "builder"='karljohansverns verft' AND "ship"='brage';
2-18548768-1
Which Silver has a Total of 11, and a Gold smaller than 8?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("silver") FROM "medals_table" WHERE "total"=11 AND "gold"<8;
2-18554753-4
Which Silver has a Total of 1, and a Rank of 12?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("silver") FROM "medals_table" WHERE "total"=1 AND "rank"='12';
2-18554753-4
Which IHSAA Football Class has a School of wood memorial?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_football_class" text, "county" text );
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='wood memorial';
2-18974097-10
Which IHSAA Football Class has a County of 77 sullivan, and a School of union dugger?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_football_class" text, "county" text );
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "county"='77 sullivan' AND "school"='union dugger';
2-18974097-10
Which IHSAA Football Class has an Enrollment of 406?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_football_class" text, "county" text );
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"=406;
2-18974097-10
Which Size has a County of 62 perry?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "county" text );
SELECT MAX("size") FROM "indiana_high_school_athletics_conference" WHERE "county"='62 perry';
2-18974097-2
Which IHSAA Class has a Size larger than 511?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "county" text );
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "size">511;
2-18974097-2
Which IHSAA Class has a School of mitchell?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "county" text );
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='mitchell';
2-18974097-2
Which County has a Size larger than 258, and a Mascot of commodores?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "county" text );
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "size">258 AND "mascot"='commodores';
2-18974097-2
What was her place in the lineup on match 2?
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" ( "match" text, "date" text, "location" text, "lineup" text, "result" text, "competition" text );
SELECT "lineup" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "match"='2';
2-18537810-2
What is the record of the game played on 2/17/1974?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='2/17/1974';
2-18394824-7
Which stadium had the opposition of 79,122?
CREATE TABLE "home_attendance" ( "date" text, "round" text, "attendance" real, "opposition" text, "stadium" text );
SELECT "stadium" FROM "home_attendance" WHERE "opposition"='79,122';
2-18414540-10
What are the notes of the number 1 rank?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "notes" FROM "semifinal_a_b_2" WHERE "rank"=1;
2-18662679-8
What's the rank if the time was 5:54.57 and FB in notes?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "rank" FROM "semifinal_a_b_2" WHERE "notes"='fb' AND "time"='5:54.57';
2-18662679-8
Who are the rowers with the time of 5:54.57?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "rowers" FROM "semifinal_a_b_2" WHERE "time"='5:54.57';
2-18662679-8
What are the notes of the United States?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "notes" FROM "semifinal_a_b_2" WHERE "country"='united states';
2-18662679-8
What is the gold for a bronze larger than 1, with a total smaller than 10, and a silver of 3?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "gold" FROM "medals_table" WHERE "bronze">1 AND "total"<10 AND "silver"=3;
2-18539850-4
What is the average total when the silver is larger than 2, and a gold larger than 1, and a nation of total?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("total") FROM "medals_table" WHERE "silver">2 AND "gold">1 AND "nation"='total';
2-18539850-4
When the rank is 11, and bronze a smaller than 1 what is the lowest total?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("total") FROM "medals_table" WHERE "rank"='11' AND "bronze"<1;
2-18539850-4
What was the A Score when the B Score was 9.05, and position was larger than 6?
CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real );
SELECT AVG("a_score") FROM "qualified_competitors" WHERE "b_score"=9.05 AND "position">6;
2-18662049-2
What is the total when the B Score was 9.15 for Cheng Fei ( chn )?
CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real );
SELECT AVG("total") FROM "qualified_competitors" WHERE "b_score"=9.15 AND "gymnast"='cheng fei ( chn )';
2-18662049-2
What was their position when the score of B was less than 9.05, a total was 15.275, and A Score larger than 6.4?
CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real );
SELECT AVG("position") FROM "qualified_competitors" WHERE "b_score"<9.05 AND "total"=15.275 AND "a_score">6.4;
2-18662049-2
What is their position when the b score is more than 8.975 for Ekaterina Kramarenko ( rus )?
CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real );
SELECT "position" FROM "qualified_competitors" WHERE "b_score">8.975 AND "gymnast"='ekaterina kramarenko ( rus )';
2-18662049-2
What year had Third-Person Shooter?
CREATE TABLE "joystiq" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT AVG("year") FROM "joystiq" WHERE "genre"='third-person shooter';
2-1851722-38
What year was Portal?
CREATE TABLE "joystiq" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT MAX("year") FROM "joystiq" WHERE "game"='portal';
2-1851722-38
Who was the developer(s) of the genre Adventure?
CREATE TABLE "joystiq" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT "developer_s" FROM "joystiq" WHERE "genre"='adventure';
2-1851722-38
What's the platform of the genre RPG?
CREATE TABLE "joystiq" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT "platform_s" FROM "joystiq" WHERE "genre"='rpg';
2-1851722-38
What's the genre of developer(s) Lionhead Studios?
CREATE TABLE "joystiq" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT "genre" FROM "joystiq" WHERE "developer_s"='lionhead studios';
2-1851722-38
What's year was the genre Adventure?
CREATE TABLE "joystiq" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT "year" FROM "joystiq" WHERE "genre"='adventure';
2-1851722-38
When was Cardinal-Deacon of S. Giorgio in Velabro elevated?
CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "cardinalatial_order_and_title" text, "elevated" text, "elevator" text );
SELECT "elevated" FROM "cardinal_electors" WHERE "cardinalatial_order_and_title"='cardinal-deacon of s. giorgio in velabro';
2-18868987-1
What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated?
CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "cardinalatial_order_and_title" text, "elevated" text, "elevator" text );
SELECT "cardinalatial_order_and_title" FROM "cardinal_electors" WHERE "elector"='pedro martínez de luna y gotor';
2-18868987-1
What is the nationality of the elector withe the Cardinalatial order and title of Cardinal-Priest of Ss. XII Apostoli?
CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "cardinalatial_order_and_title" text, "elevated" text, "elevator" text );
SELECT "nationality" FROM "cardinal_electors" WHERE "cardinalatial_order_and_title"='cardinal-priest of ss. xii apostoli';
2-18868987-1
What Tournament had Jack Nicklaus as Runner(s)-up?
CREATE TABLE "pga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "tournament" FROM "pga_tour_wins_7" WHERE "runner_s_up"='jack nicklaus';
2-1859485-1
What is the Date of the Tournament with a Winning score of −9 (65-71-68-67=271)?
CREATE TABLE "pga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "date" FROM "pga_tour_wins_7" WHERE "winning_score"='−9 (65-71-68-67=271)';
2-1859485-1
What is the Winning Score of the Tournament with Jack Nicklaus as Runner(s)-up?
CREATE TABLE "pga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "winning_score" FROM "pga_tour_wins_7" WHERE "runner_s_up"='jack nicklaus';
2-1859485-1
What is the Runner(s)-up of the Kemper Open Tournament?
CREATE TABLE "pga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "runner_s_up" FROM "pga_tour_wins_7" WHERE "tournament"='kemper open';
2-1859485-1
What week has December 19, 2004 as the date?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text );
SELECT "week" FROM "schedule" WHERE "date"='december 19, 2004';
2-18732289-2
What is the highest week that has espn 8:30pm as the TV time?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text );
SELECT MAX("week") FROM "schedule" WHERE "tv_time"='espn 8:30pm';
2-18732289-2
What result has miami dolphins as the opponent?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text );
SELECT "result" FROM "schedule" WHERE "opponent"='miami dolphins';
2-18732289-2
What is the Time of the swimmer from Chinese Taipei in Heat 3?
CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );
SELECT "time" FROM "heats" WHERE "heat"=3 AND "lane">3 AND "nationality"='chinese taipei';
2-18625318-3
What's the Dolphin Points when the attendance was less than 69,313 and had an opponent of the Buffalo Bills?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "dolphins_points" real, "opponents" real, "record" text, "attendance" real );
SELECT AVG("dolphins_points") FROM "schedule" WHERE "opponent"='buffalo bills' AND "attendance"<'69,313';
2-18847739-2
What's the game with an attendance of 71,962?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "dolphins_points" real, "opponents" real, "record" text, "attendance" real );
SELECT MIN("game") FROM "schedule" WHERE "attendance"='71,962';
2-18847739-2
What was the week 12 standing for the housemate that nominated Deepak P Rahul in week 1 and Amit Carol in week 3?
CREATE TABLE "nominations_table" ( "week_1" text, "week_3" text, "week_4" text, "week_6" text, "week_7" text, "week_8" text, "week_9" text, "week_10" text, "final_week_12" text );
SELECT "final_week_12" FROM "nominations_table" WHERE "week_1"='deepak p rahul' AND "week_3"='amit carol';
2-18921443-1