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 Wavelength of Frequency (MHz) 14.050–14.150?
CREATE TABLE "400_w_sub_bands" ( "band" real, "frequency_m_hz" text, "wavelength" text, "type" text, "power_w" real );
SELECT "wavelength" FROM "400_w_sub_bands" WHERE "frequency_m_hz"='14.050–14.150';
2-18529884-7
Who are the recipients in 1994?
CREATE TABLE "satellite_awards" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text );
SELECT "recipients_and_nominees" FROM "satellite_awards" WHERE "year"=1994;
2-18552926-7
Who are the recipients that won for David Duchovny role/episode?
CREATE TABLE "satellite_awards" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text );
SELECT "recipients_and_nominees" FROM "satellite_awards" WHERE "role_episode"='david duchovny' AND "result"='won';
2-18552926-7
What's the category in 1998 with the role/episode of David Duchovny?
CREATE TABLE "satellite_awards" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text );
SELECT "category" FROM "satellite_awards" WHERE "year"=1998 AND "role_episode"='david duchovny';
2-18552926-7
Which network has more than 31.4 channels with a 4:3 aspect?
CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "network" text );
SELECT "network" FROM "digital_channels" WHERE "aspect"='4:3' AND "channel">31.4;
2-188003-1
Which video is on channel 31.2 with a 4:3 aspect?
CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "network" text );
SELECT "video" FROM "digital_channels" WHERE "aspect"='4:3' AND "channel"=31.2;
2-188003-1
Which video has a 16:9 aspect?
CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "network" text );
SELECT "video" FROM "digital_channels" WHERE "aspect"='16:9';
2-188003-1
What's the constituency number of the Seoni district and has none reserved?
CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real );
SELECT "constituency_number" FROM "assembly_segments" WHERE "reserved_for_sc_st_none"='none' AND "district"='seoni';
2-18508229-1
What is the district of Paraswada with none reserved?
CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real );
SELECT "district" FROM "assembly_segments" WHERE "reserved_for_sc_st_none"='none' AND "name"='paraswada';
2-18508229-1
What's the reserved number for constituency number 108?
CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real );
SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "constituency_number"='108';
2-18508229-1
What's the name of Constituency number 108?
CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real );
SELECT "name" FROM "assembly_segments" WHERE "constituency_number"='108';
2-18508229-1
What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("total") FROM "medal_table" WHERE "bronze">1 AND "silver"=0 AND "gold"<0;
2-18781567-2
What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("bronze") FROM "medal_table" WHERE "total"<8 AND "rank"=9 AND "silver"<0;
2-18781567-2
What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "nation" FROM "medal_table" WHERE "rank">4 AND "total"=2 AND "silver">0;
2-18781567-2
What was the average rank for the team that had more than 5 medals and more than 6 gold medals?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("rank") FROM "medal_table" WHERE "total">5 AND "gold">6;
2-18781567-2
Which artist has a draw higher than 4 and fewer than 5 points?
CREATE TABLE "result_of_national_final" ( "draw" real, "song" text, "artist" text, "points" real, "place" text );
SELECT "artist" FROM "result_of_national_final" WHERE "draw">4 AND "points"<5;
2-18682634-1
Which artist has 13 points?
CREATE TABLE "result_of_national_final" ( "draw" real, "song" text, "artist" text, "points" real, "place" text );
SELECT "artist" FROM "result_of_national_final" WHERE "points"=13;
2-18682634-1
What is the greatest B score when the A score was less than 6.5?
CREATE TABLE "floor_event_final_qualifiers" ( "position" text, "gymnast" text, "a_score" real, "b_score" real, "total" real );
SELECT MAX("b_score") FROM "floor_event_final_qualifiers" WHERE "a_score"<6.5;
2-18662026-3
What is the Time of the Great Britain players with Notes of SA/B?
CREATE TABLE "repechage_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "time" FROM "repechage_2" WHERE "notes"='sa/b' AND "country"='great britain';
2-18662704-7
What is the Rowers of the race with a Time of 7:41.97 and Notes of FC?
CREATE TABLE "repechage_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "rowers" FROM "repechage_2" WHERE "notes"='fc' AND "time"='7:41.97';
2-18662704-7
What is the Week of the game against the Minnesota Vikings?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT MIN("week") FROM "schedule" WHERE "opponent"='minnesota vikings';
2-18733395-1
What is the Week of the game against Green Bay Packers?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT AVG("week") FROM "schedule" WHERE "opponent"='green bay packers';
2-18733395-1
What is the Attendance of the game with a Result of L 20-14?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "result"='l 20-14';
2-18733395-1
What is the Week number on October 5, 2003?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT MIN("week") FROM "schedule" WHERE "date"='october 5, 2003';
2-18733395-1
What is the Week number with an Attendance of 62,123?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT COUNT("week") FROM "schedule" WHERE "attendance"='62,123';
2-18733395-1
How many households are in Ottawa?
CREATE TABLE "oklahoma_counties_ranked_by_per_capita_i" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT SUM("number_of_households") FROM "oklahoma_counties_ranked_by_per_capita_i" WHERE "county"='ottawa';
2-1840453-1
What county has a population more than 603,403 and a mediuan family income of $61,694?
CREATE TABLE "oklahoma_counties_ranked_by_per_capita_i" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT "county" FROM "oklahoma_counties_ranked_by_per_capita_i" WHERE "population">'603,403' AND "median_family_income"='$61,694';
2-1840453-1
What is the sum of enrollments for schools located in Culver?
CREATE TABLE "membership" ( "school_ihsaa_i_dnum" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text, "year_joined" real );
SELECT SUM("enrollment") FROM "membership" WHERE "location"='culver';
2-18936749-1
Which year did the school with enrollment of 413 join?
CREATE TABLE "membership" ( "school_ihsaa_i_dnum" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text, "year_joined" real );
SELECT "year_joined" FROM "membership" WHERE "enrollment"=413;
2-18936749-1
How many years was Reasons to be Pretty nominated for best play?
CREATE TABLE "original_broadway_production" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text );
SELECT COUNT("year") FROM "original_broadway_production" WHERE "category"='best play';
2-18963715-1
What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play?
CREATE TABLE "original_broadway_production" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text );
SELECT MIN("year") FROM "original_broadway_production" WHERE "category"='best performance by a leading actor in a play';
2-18963715-1
What is the match report from the game played on 28 february 2009?
CREATE TABLE "results_and_fixtures" ( "date" text, "venue" text, "opponents" text, "competition" text, "match_report" text );
SELECT "match_report" FROM "results_and_fixtures" WHERE "date"='28 february 2009';
2-18433620-1
What is the match report from the game played on 25 april 2009?
CREATE TABLE "results_and_fixtures" ( "date" text, "venue" text, "opponents" text, "competition" text, "match_report" text );
SELECT "match_report" FROM "results_and_fixtures" WHERE "date"='25 april 2009';
2-18433620-1
Where was the game played on 3 january 2009 against east fife?
CREATE TABLE "results_and_fixtures" ( "date" text, "venue" text, "opponents" text, "competition" text, "match_report" text );
SELECT "venue" FROM "results_and_fixtures" WHERE "opponents"='east fife' AND "date"='3 january 2009';
2-18433620-1
What is the match report for the game that was played on 23 august 2008 in stark's park during the second division competition?
CREATE TABLE "results_and_fixtures" ( "date" text, "venue" text, "opponents" text, "competition" text, "match_report" text );
SELECT "match_report" FROM "results_and_fixtures" WHERE "venue"='stark''s park' AND "competition"='second division' AND "date"='23 august 2008';
2-18433620-1
What is the match report for the game played at forthbank stadium against stirling albion?
CREATE TABLE "results_and_fixtures" ( "date" text, "venue" text, "opponents" text, "competition" text, "match_report" text );
SELECT "match_report" FROM "results_and_fixtures" WHERE "opponents"='stirling albion' AND "venue"='forthbank stadium';
2-18433620-1
What is average quantity, when DRG number is 99 011?
CREATE TABLE "narrow_gauge_locomotives" ( "class" text, "railway_number_s" text, "drg_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement_uic_bauart" text );
SELECT AVG("quantity") FROM "narrow_gauge_locomotives" WHERE "drg_number_s"='99 011';
2-18843924-5
Which railway number has 3 quantity?
CREATE TABLE "narrow_gauge_locomotives" ( "class" text, "railway_number_s" text, "drg_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement_uic_bauart" text );
SELECT "railway_number_s" FROM "narrow_gauge_locomotives" WHERE "quantity"=3;
2-18843924-5
Which DRG number has xxx railway number?
CREATE TABLE "narrow_gauge_locomotives" ( "class" text, "railway_number_s" text, "drg_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement_uic_bauart" text );
SELECT "drg_number_s" FROM "narrow_gauge_locomotives" WHERE "railway_number_s"='xxx';
2-18843924-5
Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093?
CREATE TABLE "narrow_gauge_locomotives" ( "class" text, "railway_number_s" text, "drg_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement_uic_bauart" text );
SELECT "quantity" FROM "narrow_gauge_locomotives" WHERE "axle_arrangement_uic_bauart"='c n2t' AND "drg_number_s"='99 093';
2-18843924-5
What song came out on March 8, 2008?
CREATE TABLE "dsds_performances" ( "date" text, "topic_of_the_show" text, "song" text, "original_artist" text, "place_percentage" text );
SELECT "song" FROM "dsds_performances" WHERE "date"='march 8, 2008';
2-18490880-1
What was the topic of the show on March 15, 2008?
CREATE TABLE "dsds_performances" ( "date" text, "topic_of_the_show" text, "song" text, "original_artist" text, "place_percentage" text );
SELECT "topic_of_the_show" FROM "dsds_performances" WHERE "date"='march 15, 2008';
2-18490880-1
When against is more than 1244 with less than 8 losses, what is the average of wins?
CREATE TABLE "1939_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );
SELECT AVG("wins") FROM "1939_ladder" WHERE "against">1244 AND "losses"<8;
2-18628904-13
What is the name of the mill located on Anawan Street with a reference number larger than 8?
CREATE TABLE "existing_historic_textile_mills" ( "refnum" real, "name" text, "built" real, "location" text, "construction" text );
SELECT "name" FROM "existing_historic_textile_mills" WHERE "refnum">8 AND "location"='anawan street';
2-18478400-1
What is the name of the mill constructed of red brick in 1910 with a reference number lower than 55?
CREATE TABLE "existing_historic_textile_mills" ( "refnum" real, "name" text, "built" real, "location" text, "construction" text );
SELECT "name" FROM "existing_historic_textile_mills" WHERE "refnum"<55 AND "built"=1910 AND "construction"='red brick';
2-18478400-1
What is the location of the Durfee Mill No. 1, built before 1872 ?
CREATE TABLE "existing_historic_textile_mills" ( "refnum" real, "name" text, "built" real, "location" text, "construction" text );
SELECT "location" FROM "existing_historic_textile_mills" WHERE "built"<1872 AND "name"='durfee mill no. 1';
2-18478400-1
What is the location of the mill with a reference number of 44?
CREATE TABLE "existing_historic_textile_mills" ( "refnum" real, "name" text, "built" real, "location" text, "construction" text );
SELECT "location" FROM "existing_historic_textile_mills" WHERE "refnum"=44;
2-18478400-1
Which Construction is named of fu-hsing?
CREATE TABLE "composition" ( "name_pinyin" text, "name_wade_giles" text, "characters" text, "type" text, "construction" text );
SELECT "construction" FROM "composition" WHERE "name_wade_giles"='fu-hsing';
2-18820545-1
which Construction is named heng-hai?
CREATE TABLE "composition" ( "name_pinyin" text, "name_wade_giles" text, "characters" text, "type" text, "construction" text );
SELECT "construction" FROM "composition" WHERE "name_wade_giles"='heng-hai';
2-18820545-1
Who has a Construction of 1873, foochow navy yard?
CREATE TABLE "composition" ( "name_pinyin" text, "name_wade_giles" text, "characters" text, "type" text, "construction" text );
SELECT "characters" FROM "composition" WHERE "construction"='1873, foochow navy yard';
2-18820545-1
Which Name (pinyin) is named fu-ching?
CREATE TABLE "composition" ( "name_pinyin" text, "name_wade_giles" text, "characters" text, "type" text, "construction" text );
SELECT "name_pinyin" FROM "composition" WHERE "name_wade_giles"='fu-ching';
2-18820545-1
Who has a Construction of 1870, foochow navy yard, and a Name (Wade Giles) of fu-hsing?
CREATE TABLE "composition" ( "name_pinyin" text, "name_wade_giles" text, "characters" text, "type" text, "construction" text );
SELECT "characters" FROM "composition" WHERE "construction"='1870, foochow navy yard' AND "name_wade_giles"='fu-hsing';
2-18820545-1
Which Label has a Release of liebesgrüsse aus ost-berlin?
CREATE TABLE "discography" ( "release" text, "track" text, "format" text, "label" text, "year" real );
SELECT "label" FROM "discography" WHERE "release"='liebesgrüsse aus ost-berlin';
2-18948956-2
What is the rank of the person with more than 5 games played?
CREATE TABLE "leading_scorers" ( "rank" real, "player" text, "games_played" real, "goals" real, "assists" real );
SELECT SUM("rank") FROM "leading_scorers" WHERE "games_played">5;
2-18803620-4
How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">1 AND "silver">1 AND "rank"='total';
2-18706598-4
How many golds have a bronze greater than 1, total as the nation, and a silver less than 18?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">1 AND "nation"='total' AND "silver"<18;
2-18706598-4
How many bronzes have west germany as the nation?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("bronze") FROM "medals_table" WHERE "nation"='west germany';
2-18706598-4
How many golds have denmark as the nation, with a total less than 1?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("gold") FROM "medals_table" WHERE "nation"='denmark' AND "total"<1;
2-18706598-4
How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("total") FROM "medals_table" WHERE "gold"=1 AND "rank"='12' AND "silver">0;
2-18706598-4
What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("silver") FROM "medals_table" WHERE "bronze"=1 AND "total"=1 AND "rank"='17' AND "gold"<0;
2-18706598-4
What is the First Publisher prior to 1999?
CREATE TABLE "bibliography" ( "japanese_title" text, "english_title" text, "year" real, "first_publisher" text, "isbn" text );
SELECT "first_publisher" FROM "bibliography" WHERE "year"<1999;
2-18443854-1
What is the ISBN in 1999?
CREATE TABLE "bibliography" ( "japanese_title" text, "english_title" text, "year" real, "first_publisher" text, "isbn" text );
SELECT "isbn" FROM "bibliography" WHERE "year"=1999;
2-18443854-1
What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)?
CREATE TABLE "bibliography" ( "japanese_title" text, "english_title" text, "year" real, "first_publisher" text, "isbn" text );
SELECT "isbn" FROM "bibliography" WHERE "japanese_title"='霧の訪問者 (kiri no hōmonsha)';
2-18443854-1
What is the First Publisher in 2007?
CREATE TABLE "bibliography" ( "japanese_title" text, "english_title" text, "year" real, "first_publisher" text, "isbn" text );
SELECT "first_publisher" FROM "bibliography" WHERE "year"=2007;
2-18443854-1
What is the Year of Kodansha Novels' Tokyo Nightmare?
CREATE TABLE "bibliography" ( "japanese_title" text, "english_title" text, "year" real, "first_publisher" text, "isbn" text );
SELECT "year" FROM "bibliography" WHERE "first_publisher"='kodansha novels' AND "english_title"='tokyo nightmare';
2-18443854-1
What Year has an ISBN OF ISBN 4-06-182042-7?
CREATE TABLE "bibliography" ( "japanese_title" text, "english_title" text, "year" real, "first_publisher" text, "isbn" text );
SELECT AVG("year") FROM "bibliography" WHERE "isbn"='isbn 4-06-182042-7';
2-18443854-1
What is the bronze number for the nation with less than 0 gold?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("bronze") FROM "medal_table" WHERE "gold"<0;
2-18781865-4
What is the January climate figure for Eastman?
CREATE TABLE "climate" ( "city" text, "region" text, "july" text, "january" text, "annual_precipitation" text, "plant_hardiness_zone" text );
SELECT "january" FROM "climate" WHERE "region"='eastman';
2-18926-1
In what city is the July temperature 23/9°c (73/48°f)?
CREATE TABLE "climate" ( "city" text, "region" text, "july" text, "january" text, "annual_precipitation" text, "plant_hardiness_zone" text );
SELECT "city" FROM "climate" WHERE "july"='23/9°c (73/48°f)';
2-18926-1
What is the July temperature where the annual precipitation is 514mm (20.2in)?
CREATE TABLE "climate" ( "city" text, "region" text, "july" text, "january" text, "annual_precipitation" text, "plant_hardiness_zone" text );
SELECT "july" FROM "climate" WHERE "annual_precipitation"='514mm (20.2in)';
2-18926-1
What is the July temperature where plant hardiness zone is 2B and January figure is −12/−23°c (10-9°f)?
CREATE TABLE "climate" ( "city" text, "region" text, "july" text, "january" text, "annual_precipitation" text, "plant_hardiness_zone" text );
SELECT "july" FROM "climate" WHERE "plant_hardiness_zone"='2b' AND "january"='−12/−23°c (10-9°f)';
2-18926-1
What is the plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)?
CREATE TABLE "climate" ( "city" text, "region" text, "july" text, "january" text, "annual_precipitation" text, "plant_hardiness_zone" text );
SELECT "plant_hardiness_zone" FROM "climate" WHERE "region"='northern' AND "annual_precipitation"='443mm (17.4in)';
2-18926-1
In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)?
CREATE TABLE "climate" ( "city" text, "region" text, "july" text, "january" text, "annual_precipitation" text, "plant_hardiness_zone" text );
SELECT "city" FROM "climate" WHERE "plant_hardiness_zone"='2b' AND "january"='−12/−23°c (10/-9°f)';
2-18926-1
What is the Total Apps listing for Paul Wilson?
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" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT "total_apps" FROM "appearances_and_goals" WHERE "name"='paul wilson';
2-18435907-1
Who was the winner at Milan Circuit Race?
CREATE TABLE "route_and_stages" ( "date" text, "course" text, "distance" text, "type" text, "winner" text );
SELECT "winner" FROM "route_and_stages" WHERE "course"='milan circuit race';
2-18733814-1
Who was the winner at Rest Day course?
CREATE TABLE "route_and_stages" ( "date" text, "course" text, "distance" text, "type" text, "winner" text );
SELECT "winner" FROM "route_and_stages" WHERE "course"='rest day';
2-18733814-1
What's the type on Sestri Levante to Riomaggiore?
CREATE TABLE "route_and_stages" ( "date" text, "course" text, "distance" text, "type" text, "winner" text );
SELECT "type" FROM "route_and_stages" WHERE "course"='sestri levante to riomaggiore';
2-18733814-1
Which player competed in 12 events?
CREATE TABLE "regular_season_rankings" ( "player" text, "country" text, "points" real, "events" real, "reset_points" real );
SELECT "player" FROM "regular_season_rankings" WHERE "events"=12;
2-18888159-1
what is the highest finishes when the points is less than 337, the stage wins is 2 and the wins is more than 0?
CREATE TABLE "constructors" ( "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real );
SELECT MAX("finishes") FROM "constructors" WHERE "points"<337 AND "stage_wins"=2 AND "wins">0;
2-18812209-20
what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27?
CREATE TABLE "constructors" ( "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real );
SELECT AVG("starts") FROM "constructors" WHERE "chassis"='focus rs wrc 08' AND "finishes">27;
2-18812209-20
what is the finishes when points is more than 337 and starts is more than 26?
CREATE TABLE "constructors" ( "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real );
SELECT SUM("finishes") FROM "constructors" WHERE "points">337 AND "starts">26;
2-18812209-20
what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456?
CREATE TABLE "constructors" ( "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "points" real );
SELECT AVG("starts") FROM "constructors" WHERE "podiums">0 AND "stage_wins">39 AND "points">456;
2-18812209-20
Which School has a Mascot of squires?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "num_county" text );
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='squires';
2-18974097-12
Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "num_county" text );
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "num_county"='85 wabash' AND "ihsaa_football_class"='a' AND "mascot"='norsemen';
2-18974097-12
Which IHSAA Football Class has a School of whitko?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "num_county" text );
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='whitko';
2-18974097-12
Which IHSAA Football Class has a Location of wabash, and a School of wabash?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "num_county" text );
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "location"='wabash' AND "school"='wabash';
2-18974097-12
With a Total of more than 149, what is Davis Love III's To par?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_won" real, "total" real, "to_par" real );
SELECT AVG("to_par") FROM "missed_the_cut" WHERE "player"='davis love iii' AND "total">149;
2-18786347-2
What is the Total of the Player with a To par of 6 and Year won after 1993?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_won" real, "total" real, "to_par" real );
SELECT MIN("total") FROM "missed_the_cut" WHERE "year_won">1993 AND "to_par"=6;
2-18786347-2
What is the Year won of Davis Love III with a Total of less than 149?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_won" real, "total" real, "to_par" real );
SELECT COUNT("year_won") FROM "missed_the_cut" WHERE "player"='davis love iii' AND "total"<149;
2-18786347-2
What is the genre of the Mass Effect game?
CREATE TABLE "list_of_game_of_the_year_awards" ( "year" text, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT "genre" FROM "list_of_game_of_the_year_awards" WHERE "game"='mass effect';
2-1851722-58
What is the genre of the game from 2006?
CREATE TABLE "list_of_game_of_the_year_awards" ( "year" text, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT "genre" FROM "list_of_game_of_the_year_awards" WHERE "year"='2006';
2-1851722-58
What is the genre of the game developed by Nintendo EAD?
CREATE TABLE "list_of_game_of_the_year_awards" ( "year" text, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT "genre" FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='nintendo ead';
2-1851722-58
What is the platform of the game built in 2006?
CREATE TABLE "list_of_game_of_the_year_awards" ( "year" text, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT "platform_s" FROM "list_of_game_of_the_year_awards" WHERE "year"='2006';
2-1851722-58
What game was developed by Ubisoft Montreal?
CREATE TABLE "list_of_game_of_the_year_awards" ( "year" text, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT "game" FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='ubisoft montreal';
2-1851722-58
What is the genre for Portal 2?
CREATE TABLE "ign" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT "genre" FROM "ign" WHERE "game"='portal 2';
2-1851722-33
Which platforms can you play Portal 2 on?
CREATE TABLE "ign" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT "platform_s" FROM "ign" WHERE "game"='portal 2';
2-1851722-33
What event had the 1500m freestyle?
CREATE TABLE "men" ( "event" text, "time" text, "date" text, "meet" text, "location" text );
SELECT "meet" FROM "men" WHERE "event"='1500m freestyle';
2-18473886-1
Who is from italy has 0 giro wins, 0 young rider and less than 3 maglia rosa?
CREATE TABLE "individual_records" ( "rank" text, "name" text, "country" text, "maglia_rosa" real, "giro_wins" real, "points" real, "young_rider" real );
SELECT "name" FROM "individual_records" WHERE "country"='italy' AND "giro_wins"=0 AND "young_rider"=0 AND "maglia_rosa"<3;
2-18661024-2
what is the least maglia rosa when the rank is 108=, the country is united kingdom and young rider is less than 0?
CREATE TABLE "individual_records" ( "rank" text, "name" text, "country" text, "maglia_rosa" real, "giro_wins" real, "points" real, "young_rider" real );
SELECT MIN("maglia_rosa") FROM "individual_records" WHERE "rank"='108=' AND "country"='united kingdom' AND "young_rider"<0;
2-18661024-2
How many bronze medals for the United Kingdom when the silver was less than 0?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medals_table" WHERE "nation"='united kingdom' AND "silver"<0;
2-18715280-4