question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
How many bronze medals for West Germany having a total more than 2?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("bronze") FROM "medals_table" WHERE "total">2 AND "nation"='west germany';
2-18715280-4
What is the amount of silver for rank 11 having less than 0 gold?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("silver") FROM "medals_table" WHERE "rank"='11' AND "gold"<0;
2-18715280-4
What rank is Bulgaria with less than 3 silver and more than 1 bronze?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "rank" FROM "medals_table" WHERE "silver"<3 AND "bronze">1 AND "nation"='bulgaria';
2-18715280-4
What is the mountains classification when stage is 17?
CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text );
SELECT "mountains_classification" FROM "classification_leadership_by_stage" WHERE "stage"='17';
2-1859805-2
Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Rujano?
CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text );
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='robbie mcewen' AND "mountains_classification"='josé rujano';
2-1859805-2
What is the Trofeo Fast Team when stage is 19?
CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text );
SELECT "trofeo_fast_team" FROM "classification_leadership_by_stage" WHERE "stage"='19';
2-1859805-2
What is the points classification when the Intergiro classification is Sven Krauß, and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9?
CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text );
SELECT "points_classification" FROM "classification_leadership_by_stage" WHERE "intergiro_classification"='sven krauß' AND "mountains_classification"='koldo gil' AND "trofeo_super_team"='liquigas-bianchi' AND "stage"='9';
2-1859805-2
What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano?
CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text );
SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "points_classification"='paolo bettini' AND "trofeo_super_team"='davitamon-lotto' AND "mountains_classification"='josé rujano';
2-1859805-2
What is the Stage when the points classification is Danilo Di Luca, Mountains classification is José Rujano, and general classification is Danilo Di Luca?
CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "intergiro_classification" text, "trofeo_fast_team" text, "trofeo_super_team" text );
SELECT "stage" FROM "classification_leadership_by_stage" WHERE "points_classification"='danilo di luca' AND "mountains_classification"='josé rujano' AND "general_classification"='danilo di luca';
2-1859805-2
What is the average GEO ID with a latitude less than 46.57958, a latitude of -102.109898 and more than 35.99 square miles of land?
CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real );
SELECT AVG("geo_id") FROM "c" WHERE "latitude"<46.57958 AND "longitude"=-102.109898 AND "land_sqmi">35.99;
2-18600760-3
What GEO ID has a longitude of -102.693028?
CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real );
SELECT "geo_id" FROM "c" WHERE "longitude"=-102.693028;
2-18600760-3
What is the highest latitude when there are more than 0.518 square miles of water, a longitude less than -99.830606, and a population of 18?
CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real );
SELECT MAX("latitude") FROM "c" WHERE "water_sqmi">0.518 AND "longitude"<-99.830606 AND "pop_2010"=18;
2-18600760-3
What is the average lane for Australia?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT AVG("lane") FROM "semifinal_1" WHERE "nationality"='australia';
2-18625252-4
What is the highest rank for Josefin Lillhage?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT MAX("rank") FROM "semifinal_1" WHERE "name"='josefin lillhage';
2-18625252-4
What was the attendance for the final quarter (1)?
CREATE TABLE "fixtures" ( "final" text, "date" text, "home_team" text, "score" text, "away_team" text, "attendance" real, "stadium" text );
SELECT "attendance" FROM "fixtures" WHERE "final"='quarter (1)';
2-18484319-15
What stadium had the score 1 - 1 dodd 38'?
CREATE TABLE "fixtures" ( "final" text, "date" text, "home_team" text, "score" text, "away_team" text, "attendance" real, "stadium" text );
SELECT "stadium" FROM "fixtures" WHERE "score"='1 - 1 dodd 38''';
2-18484319-15
What method was used in the Pride 17 event?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='pride 17';
2-18581626-2
What is the Rank of the building that has a Highest floor larger than 50?
CREATE TABLE "list_of_tallest_buildings" ( "rank" real, "name" text, "height" text, "highest_floor" real, "city" text, "primary_use" text );
SELECT "rank" FROM "list_of_tallest_buildings" WHERE "highest_floor">50;
2-18991501-1
what is the most free when the total is 81.167 and the rank is higher than 23?
CREATE TABLE "preliminary" ( "rank" real, "country" text, "athlete" text, "technical" real, "free" real, "total" real );
SELECT MAX("free") FROM "preliminary" WHERE "total"=81.167 AND "rank">23;
2-18789596-1
How many tracks have an unformatted capacity per side of 2000kb?
CREATE TABLE "floppy_disk_physical_characteristics_cap" ( "size" text, "density" text, "tracks" real, "coercivity" text, "unformatted_capacity_per_side" text );
SELECT COUNT("tracks") FROM "floppy_disk_physical_characteristics_cap" WHERE "unformatted_capacity_per_side"='2000kb';
2-18428401-4
What is the unformatted capacity per side if the size is 8in?
CREATE TABLE "floppy_disk_physical_characteristics_cap" ( "size" text, "density" text, "tracks" real, "coercivity" text, "unformatted_capacity_per_side" text );
SELECT "unformatted_capacity_per_side" FROM "floppy_disk_physical_characteristics_cap" WHERE "size"='8in';
2-18428401-4
How many tracks have a single density?
CREATE TABLE "floppy_disk_physical_characteristics_cap" ( "size" text, "density" text, "tracks" real, "coercivity" text, "unformatted_capacity_per_side" text );
SELECT COUNT("tracks") FROM "floppy_disk_physical_characteristics_cap" WHERE "density"='single';
2-18428401-4
What's listed for Elevatated that has Cardinalatial title of Priest of SS. XII Apostoli?
CREATE TABLE "absentee_cardinals" ( "elector" text, "place_of_birth" text, "cardinalatial_title" text, "elevated" text, "elevator" text );
SELECT "elevated" FROM "absentee_cardinals" WHERE "cardinalatial_title"='priest of ss. xii apostoli';
2-18890652-2
What Elector has the Place of birth of San Severino?
CREATE TABLE "absentee_cardinals" ( "elector" text, "place_of_birth" text, "cardinalatial_title" text, "elevated" text, "elevator" text );
SELECT "elector" FROM "absentee_cardinals" WHERE "place_of_birth"='san severino';
2-18890652-2
What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo?
CREATE TABLE "absentee_cardinals" ( "elector" text, "place_of_birth" text, "cardinalatial_title" text, "elevated" text, "elevator" text );
SELECT "cardinalatial_title" FROM "absentee_cardinals" WHERE "elevated"='december 18, 1182' AND "place_of_birth"='lucca' AND "elector"='pandolfo';
2-18890652-2
What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?
CREATE TABLE "absentee_cardinals" ( "elector" text, "place_of_birth" text, "cardinalatial_title" text, "elevated" text, "elevator" text );
SELECT "elevated" FROM "absentee_cardinals" WHERE "cardinalatial_title"='priest of s. eusebio and archbishop of benevento';
2-18890652-2
What Elector has the Place of Birth listed as Bavaria?
CREATE TABLE "absentee_cardinals" ( "elector" text, "place_of_birth" text, "cardinalatial_title" text, "elevated" text, "elevator" text );
SELECT "elector" FROM "absentee_cardinals" WHERE "place_of_birth"='bavaria';
2-18890652-2
What are the total apps that have 41 as the League apps, with total goals greater than 1?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT "total_apps" FROM "appearances_and_goals" WHERE "league_apps"='41' AND "total_goals">1;
2-18865249-1
What are the average league goals that have 2 (1) as the total apps?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT AVG("league_goals") FROM "appearances_and_goals" WHERE "total_apps"='2 (1)';
2-18865249-1
What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT MAX("league_goals") FROM "appearances_and_goals" WHERE "name"='barry endean' AND "fa_cup_apps">0;
2-18865249-1
Which school left in 1968 and has the team name of Panthers?
CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text );
SELECT "school" FROM "former_members" WHERE "team_name"='panthers' AND "year_left"='1968';
2-18773999-3
What year did a team from North Dearborn leave?
CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text );
SELECT "year_left" FROM "former_members" WHERE "school"='north dearborn';
2-18773999-3
Which city has a school of North Vernon and a county of 40 Jennings?
CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text );
SELECT "city" FROM "former_members" WHERE "county"='40 jennings' AND "school"='north vernon';
2-18773999-3
What year did a school from Jennings County join?
CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text );
SELECT "year_joined" FROM "former_members" WHERE "school"='jennings county';
2-18773999-3
Which school are the Red Devils from?
CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text );
SELECT "school" FROM "former_members" WHERE "team_name"='red devils';
2-18773999-3
Which school comes from Brookville?
CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text );
SELECT "school" FROM "former_members" WHERE "city"='brookville';
2-18773999-3
What's the lowest rank of Lane 3?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT MIN("rank") FROM "semifinal_1" WHERE "lane"=3;
2-18625234-4
What's the highest lane of rank 4 with a time less than 24.72?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT MAX("lane") FROM "semifinal_1" WHERE "time"<24.72 AND "rank"=4;
2-18625234-4
What's the time of Britta Steffen in a lane less than 4?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT SUM("time") FROM "semifinal_1" WHERE "lane"<4 AND "name"='britta steffen';
2-18625234-4
What's the lowest rank of the United States with a time less than 24.63?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT MIN("rank") FROM "semifinal_1" WHERE "nationality"='united states' AND "time"<24.63;
2-18625234-4
What's the duration of the Archers with Norman Painting as an actor?
CREATE TABLE "radio" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );
SELECT "duration" FROM "radio" WHERE "soap_opera"='the archers' AND "actor"='norman painting';
2-18772558-15
What's the duration of the Archers with Pauline Seville acting?
CREATE TABLE "radio" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );
SELECT "duration" FROM "radio" WHERE "soap_opera"='the archers' AND "actor"='pauline seville';
2-18772558-15
Who's the actor for the Archers having a character of Martha Woodford?
CREATE TABLE "radio" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );
SELECT "actor" FROM "radio" WHERE "soap_opera"='the archers' AND "character"='martha woodford';
2-18772558-15
Who's the character when Margot Boyd was acting?
CREATE TABLE "radio" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );
SELECT "character" FROM "radio" WHERE "actor"='margot boyd';
2-18772558-15
What were the notes for the time of 6:34.51?
CREATE TABLE "heat_4" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "notes" FROM "heat_4" WHERE "time"='6:34.51';
2-18662685-6
What is the rank for the rowers with the time of 6:24.35?
CREATE TABLE "heat_4" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "rank" FROM "heat_4" WHERE "time"='6:24.35';
2-18662685-6
Which rowers represented portugal and had notes of r?
CREATE TABLE "heat_4" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "rowers" FROM "heat_4" WHERE "notes"='r' AND "country"='portugal';
2-18662685-6
Which rowers represented the country of portugal?
CREATE TABLE "heat_4" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "rowers" FROM "heat_4" WHERE "country"='portugal';
2-18662685-6
what is the average races when points is 9 and poles is less than 0?
CREATE TABLE "career_statistics" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" text, "position" text );
SELECT AVG("races") FROM "career_statistics" WHERE "points"='9' AND "poles"<0;
2-18503756-1
what is the series when wins is less than 3, points is 9 and podiums is 1?
CREATE TABLE "career_statistics" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" text, "position" text );
SELECT "series" FROM "career_statistics" WHERE "wins"<3 AND "points"='9' AND "podiums"=1;
2-18503756-1
how many times is races more than 14, position is 9th and wins less than 0?
CREATE TABLE "career_statistics" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" text, "position" text );
SELECT COUNT("season") FROM "career_statistics" WHERE "races">14 AND "position"='9th' AND "wins"<0;
2-18503756-1
Who was the runner-up during the Mac Ice Classic?
CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text );
SELECT "runner_up_skip" FROM "winners" WHERE "event"='mac ice classic';
2-18776133-3
What's the date when Stu Harris was the Runner-up?
CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text );
SELECT "date" FROM "winners" WHERE "runner_up_skip"='stu harris';
2-18776133-3
What's the location of the Ramada Perth Masters event?
CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text );
SELECT "location" FROM "winners" WHERE "event"='ramada perth masters';
2-18776133-3
What's the location of the National event with Kevin Martin winning?
CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text );
SELECT "location" FROM "winners" WHERE "winning_skip"='kevin martin' AND "event"='the national';
2-18776133-3
What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up?
CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text );
SELECT "event" FROM "winners" WHERE "runner_up_skip"='randy ferbey' AND "location"='gander, newfoundland and labrador';
2-18776133-3
What's the location of the National event?
CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text );
SELECT "location" FROM "winners" WHERE "event"='the national';
2-18776133-3
Which Arena has a Date of october 10?
CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );
SELECT "arena" FROM "regular_season" WHERE "date"='october 10';
2-18987966-3
Which Attendance has a Score of 4–3, and Points smaller than 5?
CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );
SELECT MAX("attendance") FROM "regular_season" WHERE "score"='4–3' AND "points"<5;
2-18987966-3
Which Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5?
CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );
SELECT "attendance" FROM "regular_season" WHERE "arena"='arrowhead pond of anaheim' AND "points"<5;
2-18987966-3
How much Attendance has an Arena of arrowhead pond of anaheim, and Points of 5?
CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );
SELECT SUM("attendance") FROM "regular_season" WHERE "arena"='arrowhead pond of anaheim' AND "points"=5;
2-18987966-3
How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07?
CREATE TABLE "1960s" ( "country" text, "1960" real, "1961" real, "1962" real, "1963" real, "1964" real, "1965" real, "1966" real, "1967" real, "1968" real, "1969" real );
SELECT COUNT("1969") FROM "1960s" WHERE "1967"<0.73 AND "1964">0.07;
2-18940307-7
Which 1964 has a Country of united states, and a 1969 smaller than 7.3?
CREATE TABLE "1960s" ( "country" text, "1960" real, "1961" real, "1962" real, "1963" real, "1964" real, "1965" real, "1966" real, "1967" real, "1968" real, "1969" real );
SELECT MIN("1964") FROM "1960s" WHERE "country"='united states' AND "1969"<7.3;
2-18940307-7
Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53?
CREATE TABLE "1960s" ( "country" text, "1960" real, "1961" real, "1962" real, "1963" real, "1964" real, "1965" real, "1966" real, "1967" real, "1968" real, "1969" real );
SELECT MIN("1965") FROM "1960s" WHERE "1962"=0.35000000000000003 AND "1967"<0.53;
2-18940307-7
What is Bev Risman's Cross Code Debut?
CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text );
SELECT "cross_code_debut" FROM "england" WHERE "player"='bev risman';
2-18860278-2
What is the Date of RL Test v Wales Int'l Debut?
CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text );
SELECT "date" FROM "england" WHERE "int_l_debut"='rl test v wales';
2-18860278-2
What is the Player with a Cross Code Debut of RL Test GB v France?
CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text );
SELECT "player" FROM "england" WHERE "cross_code_debut"='rl test gb v france';
2-18860278-2
In what Year is Keith Smith's Cross Code Debut RL Test v Wales?
CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text );
SELECT "year" FROM "england" WHERE "cross_code_debut"='rl test v wales' AND "player"='keith smith';
2-18860278-2
What is the Date of the Int'l Debut of 1967?
CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text );
SELECT "date" FROM "england" WHERE "year"='1967';
2-18860278-2
What is the Player in the Int'l Debut of 1974?
CREATE TABLE "england" ( "player" text, "int_l_debut" text, "year" text, "cross_code_debut" text, "date" text );
SELECT "player" FROM "england" WHERE "year"='1974';
2-18860278-2
What lane has a time of 24.83 and a heat less than 11?
CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );
SELECT SUM("lane") FROM "heats" WHERE "time"='24.83' AND "heat"<11;
2-18625234-3
What is the total number of heat for Chinyere Pigot?
CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );
SELECT COUNT("heat") FROM "heats" WHERE "name"='chinyere pigot';
2-18625234-3
What is the name for lane 1, from Mauritius?
CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );
SELECT "name" FROM "heats" WHERE "lane"=1 AND "nationality"='mauritius';
2-18625234-3
Who won in 1988 with a total less than 287?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "player" FROM "made_the_cut" WHERE "total"<287 AND "year_s_won"='1988';
2-18812411-3
What country is Larry Mize from?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "country" FROM "made_the_cut" WHERE "player"='larry mize';
2-18812411-3
What is the lowest number of bronze medals for a nation with fewer than 1 total medal?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("bronze") FROM "medal_table" WHERE "total"<1;
2-1846235-1
What team is Frank Hulbert on?
CREATE TABLE "single_cylinder_race" ( "rank" text, "rider" text, "team" text, "speed" text, "time" text );
SELECT "team" FROM "single_cylinder_race" WHERE "rider"='frank hulbert';
2-184455-1
What was Martin Geiger's rank?
CREATE TABLE "single_cylinder_race" ( "rank" text, "rider" text, "team" text, "speed" text, "time" text );
SELECT "rank" FROM "single_cylinder_race" WHERE "rider"='martin geiger';
2-184455-1
What was Tom Silver's rank?
CREATE TABLE "single_cylinder_race" ( "rank" text, "rider" text, "team" text, "speed" text, "time" text );
SELECT "rank" FROM "single_cylinder_race" WHERE "rider"='tom silver';
2-184455-1
Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth?
CREATE TABLE "academy_graduates_2000_present" ( "player" text, "current_club" text, "born" text, "debut" text, "manager" text );
SELECT "player" FROM "academy_graduates_2000_present" WHERE "debut"='age 18 v plymouth , 14 august 2012' AND "born"='portsmouth';
2-18802788-1
Where was the player whose Current Club Elfsborg born?
CREATE TABLE "academy_graduates_2000_present" ( "player" text, "current_club" text, "born" text, "debut" text, "manager" text );
SELECT "born" FROM "academy_graduates_2000_present" WHERE "current_club"='elfsborg';
2-18802788-1
What is the debut for the person born in Poole?
CREATE TABLE "academy_graduates_2000_present" ( "player" text, "current_club" text, "born" text, "debut" text, "manager" text );
SELECT "debut" FROM "academy_graduates_2000_present" WHERE "born"='poole';
2-18802788-1
What is the club for Sam Magri?
CREATE TABLE "academy_graduates_2000_present" ( "player" text, "current_club" text, "born" text, "debut" text, "manager" text );
SELECT "current_club" FROM "academy_graduates_2000_present" WHERE "player"='sam magri';
2-18802788-1
What is the name of the manager of the Atlético Baleares?
CREATE TABLE "academy_graduates_2000_present" ( "player" text, "current_club" text, "born" text, "debut" text, "manager" text );
SELECT "manager" FROM "academy_graduates_2000_present" WHERE "current_club"='atlético baleares';
2-18802788-1
Who was the best blocker for the year that has a League Champion of queens of pain, and a C.A.N.T.S.L.E.E.P. Award of chassis crass (brooklyn)?
CREATE TABLE "league_champions_and_major_awards" ( "year" real, "league_champion" text, "best_blocker" text, "rookie_of_the_year" text, "c_a_n_t_s_l_e_e_p_award" text );
SELECT "best_blocker" FROM "league_champions_and_major_awards" WHERE "league_champion"='queens of pain' AND "c_a_n_t_s_l_e_e_p_award"='chassis crass (brooklyn)';
2-18736454-2
Who was the rookie of the year for the year that had the Brooklyn Bombshells as the league champion?
CREATE TABLE "league_champions_and_major_awards" ( "year" real, "league_champion" text, "best_blocker" text, "rookie_of_the_year" text, "c_a_n_t_s_l_e_e_p_award" text );
SELECT "rookie_of_the_year" FROM "league_champions_and_major_awards" WHERE "league_champion"='brooklyn bombshells';
2-18736454-2
What was the latest year that has a Rookie of the Year of omg wtf (brooklyn) and League Champion of bronx gridlock?
CREATE TABLE "league_champions_and_major_awards" ( "year" real, "league_champion" text, "best_blocker" text, "rookie_of_the_year" text, "c_a_n_t_s_l_e_e_p_award" text );
SELECT MAX("year") FROM "league_champions_and_major_awards" WHERE "league_champion"='bronx gridlock' AND "rookie_of_the_year"='omg wtf (brooklyn)';
2-18736454-2
Which Arena has Points larger than 28, and a Date of december 14?
CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );
SELECT "arena" FROM "regular_season" WHERE "points">28 AND "date"='december 14';
2-18987966-5
How many Points have an Arena of bell centre?
CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );
SELECT COUNT("points") FROM "regular_season" WHERE "arena"='bell centre';
2-18987966-5
How much Attendance has a Loss of divis (0–3–0), and Points smaller than 38?
CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );
SELECT SUM("attendance") FROM "regular_season" WHERE "loss"='divis (0–3–0)' AND "points"<38;
2-18987966-5
With a 1st run of 53.300 (7), and greater than 21 total, what is the average rank?
CREATE TABLE "heat_1" ( "rank" real, "name" text, "1st_run" text, "2nd_run" text, "3rd_run" text, "total" real );
SELECT AVG("rank") FROM "heat_1" WHERE "1st_run"='53.300 (7)' AND "total">21;
2-18603914-3
What 2nd run has a less than 6 rank, and 3 as the total?
CREATE TABLE "heat_1" ( "rank" real, "name" text, "1st_run" text, "2nd_run" text, "3rd_run" text, "total" real );
SELECT "2nd_run" FROM "heat_1" WHERE "rank"<6 AND "total"=3;
2-18603914-3
When the 3rd run is 36.490 (3) what is the 2nd run?
CREATE TABLE "heat_1" ( "rank" real, "name" text, "1st_run" text, "2nd_run" text, "3rd_run" text, "total" real );
SELECT "2nd_run" FROM "heat_1" WHERE "3rd_run"='36.490 (3)';
2-18603914-3
What is the sum number of year when Call of Duty 4: Modern Warfare was the game?
CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT COUNT("year") FROM "list_of_game_of_the_year_awards" WHERE "game"='call of duty 4: modern warfare';
2-1851722-8
What is the earliest year when action was the genre?
CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT MIN("year") FROM "list_of_game_of_the_year_awards" WHERE "genre"='action';
2-1851722-8
What is the smallest year when Ubisoft Montreal was the developer (s)?
CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT MIN("year") FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='ubisoft montreal';
2-1851722-8
What is the latest year when Call of Duty 4: Modern Warfare was the game?
CREATE TABLE "list_of_game_of_the_year_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );
SELECT MAX("year") FROM "list_of_game_of_the_year_awards" WHERE "game"='call of duty 4: modern warfare';
2-1851722-8
Who was Lieutenant Governor to the governor that left office on January 14, 1929?
CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text );
SELECT "lieutenant_governor" FROM "governors_of_missouri" WHERE "left_office"='january 14, 1929';
2-187803-5
Which governor took office on January 8, 1877?
CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text );
SELECT "governor" FROM "governors_of_missouri" WHERE "took_office"='january 8, 1877';
2-187803-5
Who was lieutenant governor to the governor that left office on October 16, 2000?
CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text );
SELECT "lieutenant_governor" FROM "governors_of_missouri" WHERE "left_office"='october 16, 2000';
2-187803-5