question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
A major third of C has what listed for the Minor seventh?
CREATE TABLE "augmented_seventh_chord_table" ( "chord" text, "root" text, "major_third" text, "augmented_fifth" text, "minor_seventh" text );
SELECT "minor_seventh" FROM "augmented_seventh_chord_table" WHERE "major_third"='c';
2-18538586-1
What is the listed chord for a Minor seventh of F?
CREATE TABLE "augmented_seventh_chord_table" ( "chord" text, "root" text, "major_third" text, "augmented_fifth" text, "minor_seventh" text );
SELECT "chord" FROM "augmented_seventh_chord_table" WHERE "minor_seventh"='f';
2-18538586-1
Which Rank has a Show of alcatraz, and a Number of Viewers larger than 1,229,000?
CREATE TABLE "most_watched_programmes" ( "rank" real, "show" text, "episode" text, "number_of_viewers" real, "date" text );
SELECT MIN("rank") FROM "most_watched_programmes" WHERE "show"='alcatraz' AND "number_of_viewers">'1,229,000';
2-18383702-1
Which Episode has a Rank of 1?
CREATE TABLE "most_watched_programmes" ( "rank" real, "show" text, "episode" text, "number_of_viewers" real, "date" text );
SELECT "episode" FROM "most_watched_programmes" WHERE "rank"=1;
2-18383702-1
Where was adac rally deutschland's rally HQ?
CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text );
SELECT "rally_hq" FROM "calendar" WHERE "rally_name"='adac rally deutschland';
2-18812209-2
Where was the Rally HQ for Round 1?
CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text );
SELECT "rally_hq" FROM "calendar" WHERE "round"=1;
2-18812209-2
Which Support Category had a Round score of 9?
CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text );
SELECT "support_category" FROM "calendar" WHERE "round"=9;
2-18812209-2
What Surface had a Rally HQ of salou?
CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text );
SELECT "surface" FROM "calendar" WHERE "rally_hq"='salou';
2-18812209-2
What is the lowest lane in the Czech Republic and a time larger than 21.05?
CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );
SELECT MIN("lane") FROM "heat_1" WHERE "nationality"='czech republic' AND "time">21.05;
2-18569011-3
What is the highest lane with a rank larger than 2 in Guyana?
CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );
SELECT MAX("lane") FROM "heat_1" WHERE "rank">2 AND "nationality"='guyana';
2-18569011-3
What is the sum rank of Solomon Bayoh when his time was smaller than 22.16?
CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );
SELECT SUM("rank") FROM "heat_1" WHERE "athlete"='solomon bayoh' AND "time"<22.16;
2-18569011-3
Who is the artist of the album Soul?
CREATE TABLE "top_5_british_albums" ( "rank" real, "artist" text, "album" text, "peak_position" text, "sales" real, "certification" text );
SELECT "artist" FROM "top_5_british_albums" WHERE "album"='soul';
2-18382316-3
who is the athlete when the time is less than 11.13 and the country is belgium?
CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real );
SELECT "athlete" FROM "round_2" WHERE "time"<11.13 AND "country"='belgium';
2-18568955-3
who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2?
CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real );
SELECT "athlete" FROM "round_2" WHERE "rank"<13 AND "time">11.13 AND "country"='bahamas' AND "heat">2;
2-18568955-3
what is the heat when the athlete is anita pistone?
CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real );
SELECT SUM("heat") FROM "round_2" WHERE "athlete"='anita pistone';
2-18568955-3
how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5?
CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real );
SELECT COUNT("time") FROM "round_2" WHERE "rank">29 AND "athlete"='barbara pierre' AND "heat"<5;
2-18568955-3
Which IHSAA Class has a Location of linton?
CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text );
SELECT "ihsaa_class" FROM "membership" WHERE "location"='linton';
2-18957111-1
What is the sum of matches played for teams with more than 10 losses and under 5 points?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT SUM("played") FROM "first_round" WHERE "lost">10 AND "points"<5;
2-18771190-12
What is the total number of positions for teams with more than 5 points, 3 draws, and under 2 losses?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT COUNT("position") FROM "first_round" WHERE "points">5 AND "drawn"=3 AND "lost"<2;
2-18771190-12
What is the average number of losses for teams with under 4 losses and under 21 points?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT AVG("drawn") FROM "first_round" WHERE "lost"<4 AND "points"<21;
2-18771190-12
What is the home team at the game with an Attendance of 2,029?
CREATE TABLE "southern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "home_team" FROM "southern_section" WHERE "attendance"='2,029';
2-18720697-4
What is the away team at the game with an Attendance of 1,730?
CREATE TABLE "southern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "away_team" FROM "southern_section" WHERE "attendance"='1,730';
2-18720697-4
What is the away team at the game with a Tie no of 2?
CREATE TABLE "southern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "away_team" FROM "southern_section" WHERE "tie_no"='2';
2-18720697-4
What F/Laps listing has entries of n/a Points, 1 Poles, and 0 Wins?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );
SELECT "f_laps" FROM "career_summary" WHERE "points"='n/a' AND "poles"='1' AND "wins"='0';
2-1841727-1
What Series has a season that is older than 2003 with a Podiums entry of 1 and a Points entry that is n/a?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );
SELECT "series" FROM "career_summary" WHERE "season"<2003 AND "podiums"='1' AND "points"='n/a';
2-1841727-1
What Podiums listing has a World Rally Championship series entry?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );
SELECT "podiums" FROM "career_summary" WHERE "series"='world rally championship';
2-1841727-1
What races have n/a Points, 0 Wins, and 6th Position entries?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );
SELECT "races" FROM "career_summary" WHERE "points"='n/a' AND "wins"='0' AND "position"='6th';
2-1841727-1
What is the most recent season for the Prema Powerteam with a Masters of Formula Three series?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );
SELECT MAX("season") FROM "career_summary" WHERE "team"='prema powerteam' AND "series"='masters of formula three';
2-1841727-1
What listing for Podiums has 0 F/laps and 39 points?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );
SELECT "podiums" FROM "career_summary" WHERE "f_laps"='0' AND "points"='39';
2-1841727-1
Which Date has an Attendance larger than 16,186, and Points smaller than 52, and a Record of 21–16–9?
CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );
SELECT "date" FROM "regular_season" WHERE "attendance">'16,186' AND "points"<52 AND "record"='21–16–9';
2-18987966-6
Which Loss has a Record of 20–16–9?
CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );
SELECT "loss" FROM "regular_season" WHERE "record"='20–16–9';
2-18987966-6
Which Date has a Record of 19–16–8?
CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );
SELECT "date" FROM "regular_season" WHERE "record"='19–16–8';
2-18987966-6
Can you tell me the Time that has the Lane of 8?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );
SELECT "time" FROM "semifinal_1" WHERE "lane"=8;
2-18625509-4
Can you tell me the Total number of Rankthat has the Lane of 4?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );
SELECT COUNT("rank") FROM "semifinal_1" WHERE "lane"=4;
2-18625509-4
Can you tell me the lowest Rank that has the Nationality of australia, and the Name of leisel jones, and the Lane larger than 4?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );
SELECT MIN("rank") FROM "semifinal_1" WHERE "nationality"='australia' AND "name"='leisel jones' AND "lane">4;
2-18625509-4
Can you tell me the Name that has the Rank of 4?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );
SELECT "name" FROM "semifinal_1" WHERE "rank"=4;
2-18625509-4
What is the highest Against for a game against Bristol City?
CREATE TABLE "anglo_italian_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text );
SELECT MAX("against") FROM "anglo_italian_cup" WHERE "opposing_team"='bristol city';
2-18493143-5
What was the date of the game against Oxford United?
CREATE TABLE "anglo_italian_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text );
SELECT "date" FROM "anglo_italian_cup" WHERE "opposing_team"='oxford united';
2-18493143-5
What country is ranked number 4?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );
SELECT "country" FROM "semifinal_a_b_2" WHERE "rank"=4;
2-18662686-7
What are the notes from the rank of 1?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );
SELECT "notes" FROM "semifinal_a_b_2" WHERE "rank"=1;
2-18662686-7
What rowers have FA as the notes?
CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "rowers" FROM "heat_1" WHERE "notes"='fa';
2-18662700-3
What is the lowest rank has 7:09.06 as the time?
CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT MIN("rank") FROM "heat_1" WHERE "time"='7:09.06';
2-18662700-3
What notes have 2 as the rank?
CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "notes" FROM "heat_1" WHERE "rank"=2;
2-18662700-3
What was the match that happened in Bishop's Stortford?
CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text );
SELECT "match" FROM "stats" WHERE "opponent"='bishop''s stortford';
2-18539546-27
What was the final score for the Thurrock?
CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text );
SELECT "score1" FROM "stats" WHERE "opponent"='thurrock';
2-18539546-27
Which IHSAA class has a mascot of the Raiders?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text );
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='raiders';
2-18942405-12
Which school has a mascot of the Panthers?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text );
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='panthers';
2-18942405-12
What's Italy's time when the notes were SA/B?
CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "time" FROM "heat_1" WHERE "notes"='sa/b' AND "country"='italy';
2-18662689-2
What is Italy's rank?
CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "rank" FROM "heat_1" WHERE "country"='italy';
2-18662689-2
How many appearances did the player for the Rayo Vallecano club that scored more than 37 goals make?
CREATE TABLE "alumni" ( "name" text, "nationality" text, "position" text, "year_of_birth" real, "career" text, "appearances" real, "goals" real, "club" text );
SELECT COUNT("appearances") FROM "alumni" WHERE "club"='rayo vallecano' AND "goals">37;
2-18967450-2
Who's the player that was eliminated on episode 4?
CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text );
SELECT "player" FROM "cast" WHERE "eliminated"='episode 4';
2-18974269-1
Who is the player in 20th place?
CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text );
SELECT "player" FROM "cast" WHERE "placing"='20th place';
2-18974269-1
What's the original season in 11th place?
CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text );
SELECT "original_season" FROM "cast" WHERE "placing"='11th place';
2-18974269-1
Who's the player eliminated on episode 5?
CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text );
SELECT "player" FROM "cast" WHERE "eliminated"='episode 5';
2-18974269-1
Who's the player that's male and on the original season of RW: Key West?
CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text );
SELECT "player" FROM "cast" WHERE "gender"='male' AND "original_season"='rw: key west';
2-18974269-1
Who's the player eliminated on episode 8 of Fresh Meat?
CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text );
SELECT "player" FROM "cast" WHERE "original_season"='fresh meat' AND "eliminated"='episode 8';
2-18974269-1
The boat named Agamemnon has what status?
CREATE TABLE "boats_of_the_class" ( "name" text, "hull" real, "pennant_number" text, "status" text, "date_of_commission" text );
SELECT "status" FROM "boats_of_the_class" WHERE "name"='agamemnon';
2-186252-1
What status does the boat Ajax have?
CREATE TABLE "boats_of_the_class" ( "name" text, "hull" real, "pennant_number" text, "status" text, "date_of_commission" text );
SELECT "status" FROM "boats_of_the_class" WHERE "name"='ajax';
2-186252-1
What is the average upper index MJ/Nm 3 for the upper index Kcal/Nm 3 entry of 19,376?
CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real );
SELECT AVG("upper_index_mj_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_kcal_nm_3"='19,376';
2-1868929-1
What is the Upper index Kcal/ Nm 3 of iso-butane, and a Lower index MJ/ Nm 3 smaller than 84.71?
CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real );
SELECT COUNT("upper_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "fuel_gas"='iso-butane' AND "lower_index_mj_nm_3"<84.71;
2-1868929-1
What is the Lower index Kcal/ Nm 3 entry, for the row with entries of an Upper index Kcal/ Nm 3 smaller than 19,376, and a Lower index MJ/ Nm 3 of 74.54?
CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real );
SELECT AVG("lower_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3"=74.54 AND "upper_index_kcal_nm_3"<'19,376';
2-1868929-1
What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 of 47.91, and an Upper index MJ/ Nm 3 larger than 53.28?
CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real );
SELECT SUM("upper_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3"=47.91 AND "upper_index_mj_nm_3">53.28;
2-1868929-1
What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 larger than 47.91, for propylene, and an Upper index MJ/ Nm 3 larger than 77.04?
CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real );
SELECT SUM("upper_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3">47.91 AND "fuel_gas"='propylene' AND "upper_index_mj_nm_3">77.04;
2-1868929-1
What is the entry for Lower index MJ/ Nm 3 for the row that has an Upper index Kcal/ Nm 3 larger than 19,376, for lpg, and an Upper index MJ/ Nm 3 smaller than 86.84?
CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real );
SELECT AVG("lower_index_mj_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_kcal_nm_3">'19,376' AND "fuel_gas"='lpg' AND "upper_index_mj_nm_3"<86.84;
2-1868929-1
What match number has a ground of H and the opponent Chelsea under 18s?
CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text );
SELECT AVG("match") FROM "stats" WHERE "ground"='h' AND "opponent"='chelsea under 18s';
2-18539546-21
On what date is there a match lower than 14 with a ground of H and the opponent Aston Villa under 18s?
CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text );
SELECT "date" FROM "stats" WHERE "match"<14 AND "ground"='h' AND "opponent"='aston villa under 18s';
2-18539546-21
On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s?
CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text );
SELECT "date" FROM "stats" WHERE "score1"='2 - 4' AND "opponent"='chelsea under 18s';
2-18539546-21
What is the ticket price at Canadian National Exhibition Stadium?
CREATE TABLE "not_all_data_are_listed" ( "date_s" text, "venue" text, "city" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text );
SELECT "ticket_price_s" FROM "not_all_data_are_listed" WHERE "venue"='canadian national exhibition stadium';
2-18403275-3
What was the ticket price at Red Rocks Amphitheatre?
CREATE TABLE "not_all_data_are_listed" ( "date_s" text, "venue" text, "city" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text );
SELECT "ticket_price_s" FROM "not_all_data_are_listed" WHERE "venue"='red rocks amphitheatre';
2-18403275-3
What was the ticket price on September 16, 1986?
CREATE TABLE "not_all_data_are_listed" ( "date_s" text, "venue" text, "city" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text );
SELECT "ticket_price_s" FROM "not_all_data_are_listed" WHERE "date_s"='september 16, 1986';
2-18403275-3
Who was the opposition for the player who has a total of 10 points?
CREATE TABLE "single_game" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "opposition" text );
SELECT "opposition" FROM "single_game" WHERE "total"=10;
2-18936933-2
Which player is from County Dublin?
CREATE TABLE "single_game" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "opposition" text );
SELECT "player" FROM "single_game" WHERE "county"='dublin';
2-18936933-2
What is the average 2006 metropolitan population of Lima with a GDP per capita over $13,100?
CREATE TABLE "population_and_economy_size_for_latin_am" ( "rank" real, "metropolitan_area" text, "country" text, "gdp_ppp_2008_billions_of_us" real, "metropolitan_population_2006_millions" real, "gdp_ppp_us_per_capita" real );
SELECT AVG("metropolitan_population_2006_millions") FROM "population_and_economy_size_for_latin_am" WHERE "metropolitan_area"='lima' AND "gdp_ppp_us_per_capita">'13,100';
2-18524-5
What is the lowest 2006 metropolitan population for a Mexico City, Mexico with a GDP per capita of less than 20,300?
CREATE TABLE "population_and_economy_size_for_latin_am" ( "rank" real, "metropolitan_area" text, "country" text, "gdp_ppp_2008_billions_of_us" real, "metropolitan_population_2006_millions" real, "gdp_ppp_us_per_capita" real );
SELECT MIN("metropolitan_population_2006_millions") FROM "population_and_economy_size_for_latin_am" WHERE "country"='mexico' AND "metropolitan_area"='mexico city' AND "gdp_ppp_us_per_capita"<'20,300';
2-18524-5
Who placed highest with a time of 1:47.70?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );
SELECT MIN("rank") FROM "semifinal_1" WHERE "time"='1:47.70';
2-18624643-4
How much Col (m) has an Elevation (m) smaller than 3,187, and a Prominence (m) smaller than 1,570?
CREATE TABLE "surrounding" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real );
SELECT COUNT("col_m") FROM "surrounding" WHERE "elevation_m"<'3,187' AND "prominence_m"<'1,570';
2-18947170-8
Which Elevation (m) has a Prominence (m) larger than 2,120, and a Peak of mount karisimbi, and a Col (m) larger than 1195?
CREATE TABLE "surrounding" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real );
SELECT MIN("elevation_m") FROM "surrounding" WHERE "prominence_m">'2,120' AND "peak"='mount karisimbi' AND "col_m">1195;
2-18947170-8
Which Prominence (m) has an Elevation (m) of 3,095?
CREATE TABLE "surrounding" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real );
SELECT MIN("prominence_m") FROM "surrounding" WHERE "elevation_m"='3,095';
2-18947170-8
How long did Witold Latoszek character lasted?
CREATE TABLE "poland" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );
SELECT "duration" FROM "poland" WHERE "character"='witold latoszek';
2-18772558-11
Which episode was the last written by chris hawkshaw this season?
CREATE TABLE "episodes" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );
SELECT MAX("no_in_season") FROM "episodes" WHERE "written_by"='chris hawkshaw';
2-18427887-1
What is the highest col for the prominence of 1,834 meters and elevation higher than 1,834 meters?
CREATE TABLE "and_neighbouring_islands" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real );
SELECT MAX("col_m") FROM "and_neighbouring_islands" WHERE "prominence_m"='1,834' AND "elevation_m">'1,834';
2-18918776-6
What is the greatest 2007 when the change 06-07 was 14.7%?
CREATE TABLE "patronage_ridership" ( "type_of_service" text, "2006" real, "2007" real, "2008" real, "change_06_07" text, "change_07_08" text );
SELECT MAX("2007") FROM "patronage_ridership" WHERE "change_06_07"='14.7%';
2-18744040-1
when was the ship completed when laid down is 21 august 1925?
CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text );
SELECT "completed" FROM "list_of_ships" WHERE "laid_down"='21 august 1925';
2-18756696-1
When was satsuki dd-27 completed?
CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text );
SELECT "completed" FROM "list_of_ships" WHERE "name"='satsuki dd-27';
2-18756696-1
when was the ship launched when it was laid down 20 october 1924 and built by fujinagata shipyards, japan?
CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text );
SELECT "launched" FROM "list_of_ships" WHERE "builder"='fujinagata shipyards, japan' AND "laid_down"='20 october 1924';
2-18756696-1
when was the ship completed that was laid down on 23 march 1926?
CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text );
SELECT "completed" FROM "list_of_ships" WHERE "laid_down"='23 march 1926';
2-18756696-1
when was the ship laid down when it was completed on 3 july 1926?
CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text );
SELECT "laid_down" FROM "list_of_ships" WHERE "completed"='3 july 1926';
2-18756696-1
What was the score of the game at the Chicago Stadium?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "location_attendance"='chicago stadium';
2-18409087-8
What was the date of the game when the record was 46-31?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "record"='46-31';
2-18409087-8
What was the score of the game at the Chicago Stadium?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "location_attendance"='chicago stadium';
2-18409087-8
What is the Rank of the Swimmer in Lane 5?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT AVG("rank") FROM "semifinal_1" WHERE "lane"=5;
2-18624623-4
What is the Rank of the swimmer with a Time of 49 in Lane 7 or larger?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT COUNT("rank") FROM "semifinal_1" WHERE "time"=49 AND "lane">7;
2-18624623-4
What is the Lane of the swimmer with a Rank of 8?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT MAX("lane") FROM "semifinal_1" WHERE "rank"=8;
2-18624623-4
What Level has a Season larger than 2010?
CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text );
SELECT "level" FROM "season_to_season" WHERE "season">2010;
2-18731663-1
What Adminstration has a Season of 2000?
CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text );
SELECT "administration" FROM "season_to_season" WHERE "season"=2000;
2-18731663-1
What Position has a Season larger than 2000 with a Level of Tier 3?
CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text );
SELECT "position" FROM "season_to_season" WHERE "season">2000 AND "level"='tier 3';
2-18731663-1
What Position has a Level of tier 4 with a Season smaller than 2003?
CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text );
SELECT "position" FROM "season_to_season" WHERE "level"='tier 4' AND "season"<2003;
2-18731663-1
Who had the most rebounds in the game against New York?
CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text );
SELECT "high_rebounds" FROM "regular_season" WHERE "opponent"='new york';
2-18904831-7
Who was the opponent for game 30?
CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text );
SELECT "opponent" FROM "regular_season" WHERE "game"=30;
2-18904831-7
Who had the most rebounds in the game at the Mohegan Sun Arena that led to a 24-7 record?
CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text );
SELECT "high_rebounds" FROM "regular_season" WHERE "location"='mohegan sun arena' AND "record"='24-7';
2-18904831-7