question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Which January is the lowest one that has an Opponent of florida panthers, and Points smaller than 59?
CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT MIN("january") FROM "regular_season" WHERE "opponent"='florida panthers' AND "points"<59;
2-14344807-5
Which Record has a Game of 41?
CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT "record" FROM "regular_season" WHERE "game"=41;
2-14344807-5
Which Score has a January larger than 21, and Points of 63?
CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT "score" FROM "regular_season" WHERE "january">21 AND "points"=63;
2-14344807-5
How many Points have a Record of 25–10–11, and a January larger than 28?
CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT COUNT("points") FROM "regular_season" WHERE "record"='25–10–11' AND "january">28;
2-14344807-5
what province was established in 1870
CREATE TABLE "former_medical_schools" ( "province" text, "school" text, "city" text, "degree" text, "established" real, "closed" text );
SELECT "province" FROM "former_medical_schools" WHERE "established"=1870;
2-14373444-2
Who is the Incumbent that has a District of ohio 13 in Democratic Party?
CREATE TABLE "ohio" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text );
SELECT "incumbent" FROM "ohio" WHERE "district"='ohio 13';
2-1434834-3
What is the score of champion Ken Rosewall in 1957?
CREATE TABLE "champions" ( "year" text, "champion" text, "runner_up" text, "score" text, "surface" text );
SELECT "score" FROM "champions" WHERE "champion"='ken rosewall' AND "year"='1957';
2-14840119-1
What is the surface of the match with Brian Gottfried as the runner-up?
CREATE TABLE "champions" ( "year" text, "champion" text, "runner_up" text, "score" text, "surface" text );
SELECT "surface" FROM "champions" WHERE "runner_up"='brian gottfried';
2-14840119-1
What is the score of the match with anders järryd as the runner-up?
CREATE TABLE "champions" ( "year" text, "champion" text, "runner_up" text, "score" text, "surface" text );
SELECT "score" FROM "champions" WHERE "runner_up"='anders järryd';
2-14840119-1
What is the low bronze total for the team with 4 total and under 1 gold?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("bronze") FROM "medal_table" WHERE "total"=4 AND "gold"<1;
2-14807244-1
What is the average total for teams with over 3 bronzes and over 8 golds?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("total") FROM "medal_table" WHERE "bronze">3 AND "gold">8;
2-14807244-1
What is the low silver total associated with under 1 total?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("silver") FROM "medal_table" WHERE "total"<1;
2-14807244-1
What is the number of points associated with the highest position under 9 and a current position of 22?
CREATE TABLE "top_singles_of_1959" ( "position" real, "artist" text, "song_title" text, "highest_position" real, "points" real );
SELECT "points" FROM "top_singles_of_1959" WHERE "highest_position"<9 AND "position"=22;
2-13804825-2
Performer 3 of paul merton, and a Performer 4 of sandi toksvig is which performer 1?
CREATE TABLE "series_2" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text );
SELECT "performer_1" FROM "series_2" WHERE "performer_3"='paul merton' AND "performer_4"='sandi toksvig';
2-14934885-3
Episode of 16 involves which performer 1?
CREATE TABLE "series_2" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text );
SELECT "performer_1" FROM "series_2" WHERE "episode"=16;
2-14934885-3
Performer 2 of compilation 1 had what performer 1?
CREATE TABLE "series_2" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text );
SELECT "performer_1" FROM "series_2" WHERE "performer_2"='compilation 1';
2-14934885-3
Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv seligenporten
CREATE TABLE "bavarian_cup_era" ( "season" real, "oberbayern" text, "niederbayern" text, "schwaben" text, "mittelfranken" text );
SELECT "schwaben" FROM "bavarian_cup_era" WHERE "oberbayern"='fc ingolstadt 04' AND "mittelfranken"='sv seligenporten';
2-14066180-3
Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii?
CREATE TABLE "bavarian_cup_era" ( "season" real, "oberbayern" text, "niederbayern" text, "schwaben" text, "mittelfranken" text );
SELECT "schwaben" FROM "bavarian_cup_era" WHERE "oberbayern"='fc bayern munich ii' AND "mittelfranken"='1. fc nuremberg ii';
2-14066180-3
Who was the incumbent for south carolina 3 district?
CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text );
SELECT "incumbent" FROM "south_carolina" WHERE "district"='south carolina 3';
2-1365829-4
When was the incumbent from the south carolina 1 district first elected?
CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text );
SELECT "first_elected" FROM "south_carolina" WHERE "district"='south carolina 1';
2-1365829-4
Who was the incumbent that was first elected in 1892 and retired to run for the senate democratic hold?
CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text );
SELECT "incumbent" FROM "south_carolina" WHERE "first_elected"='1892' AND "result"='retired to run for the senate democratic hold';
2-1365829-4
Who was the incumbent that retired to run for the senate democratic hold?
CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text );
SELECT "incumbent" FROM "south_carolina" WHERE "result"='retired to run for the senate democratic hold';
2-1365829-4
What was the result of W. Jasper Talbert who was first elected in 1892?
CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text );
SELECT "result" FROM "south_carolina" WHERE "first_elected"='1892' AND "incumbent"='w. jasper talbert';
2-1365829-4
Which Nationality has a 2.24 of xo, and a 2.20 of xo?
CREATE TABLE "final" ( "athlete" text, "nationality" text, "2_15" text, "2_20" text, "2_24" text, "2_27" text, "result" real );
SELECT "nationality" FROM "final" WHERE "2_24"='xo' AND "2_20"='xo';
2-14738028-4
Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o?
CREATE TABLE "final" ( "athlete" text, "nationality" text, "2_15" text, "2_20" text, "2_24" text, "2_27" text, "result" real );
SELECT "athlete" FROM "final" WHERE "2_24"='xo' AND "2_20"='o' AND "2_15"='o';
2-14738028-4
What is the earliest election with more than 7 candidates nominated, a percentage of the popular vote of 2.75%, and 0 seats won?
CREATE TABLE "election_results" ( "election" real, "num_of_candidates_nominated" real, "num_of_seats_won" real, "num_of_total_votes" real, "pct_of_popular_vote" text );
SELECT MIN("election") FROM "election_results" WHERE "num_of_candidates_nominated">7 AND "pct_of_popular_vote"='2.75%' AND "num_of_seats_won"<0;
2-14678185-1
How much Played has a Lost larger than 14, and Drawn of 8, and a Team of ipatinga?
CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT SUM("played") FROM "campeonato_brasileiro_s_rie_a" WHERE "lost">14 AND "drawn"=8 AND "team"='ipatinga';
2-15206839-1
How many Drawn have a Difference of 3, and Points smaller than 52?
CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT COUNT("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "difference"='3' AND "points"<52;
2-15206839-1
Which Points is the highest one that has a Position smaller than 4, and a Team of são paulo, and Drawn larger than 12?
CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT MAX("points") FROM "campeonato_brasileiro_s_rie_a" WHERE "position"<4 AND "team"='são paulo' AND "drawn">12;
2-15206839-1
How many Lost have Points larger than 40, and a Position of 11, and a Played smaller than 38?
CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT SUM("lost") FROM "campeonato_brasileiro_s_rie_a" WHERE "points">40 AND "position"=11 AND "played"<38;
2-15206839-1
What is the lowest number of games loss with a Points difference of 40 - 17, and over 6 games?
CREATE TABLE "world_championship_group_c_bulgaria" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real );
SELECT MIN("lost") FROM "world_championship_group_c_bulgaria" WHERE "points_difference"='40 - 17' AND "games">6;
2-14262243-3
How many games lost for teams with over 6 games?
CREATE TABLE "world_championship_group_c_bulgaria" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real );
SELECT MIN("lost") FROM "world_championship_group_c_bulgaria" WHERE "games">6;
2-14262243-3
What are the highest number of games drawn for games numbered under 6?
CREATE TABLE "world_championship_group_c_bulgaria" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real );
SELECT MAX("drawn") FROM "world_championship_group_c_bulgaria" WHERE "games"<6;
2-14262243-3
How many games drawn with a Points difference of 31 - 33, and under 4 games lost?
CREATE TABLE "world_championship_group_c_bulgaria" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real );
SELECT SUM("drawn") FROM "world_championship_group_c_bulgaria" WHERE "points_difference"='31 - 33' AND "lost"<4;
2-14262243-3
Which Outcome has a Surface of hard (i), and a Date of 28 january 2003?
CREATE TABLE "itf_singles_finals" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "outcome" FROM "itf_singles_finals" WHERE "surface"='hard (i)' AND "date"='28 january 2003';
2-15272585-8
Which Tournament has an Outcome of winner, and a Surface of hard (i)?
CREATE TABLE "itf_singles_finals" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "tournament" FROM "itf_singles_finals" WHERE "outcome"='winner' AND "surface"='hard (i)';
2-15272585-8
Which Date has a Score of 6–1, 6–2?
CREATE TABLE "itf_singles_finals" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "date" FROM "itf_singles_finals" WHERE "score"='6–1, 6–2';
2-15272585-8
Which Surface has an Opponent of oleksandra kravets?
CREATE TABLE "itf_singles_finals" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "itf_singles_finals" WHERE "opponent"='oleksandra kravets';
2-15272585-8
Which Surface has a Date of 3 october 2003?
CREATE TABLE "itf_singles_finals" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "itf_singles_finals" WHERE "date"='3 october 2003';
2-15272585-8
Which Surface has a Score of 6–4, 6–2?
CREATE TABLE "itf_singles_finals" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "itf_singles_finals" WHERE "score"='6–4, 6–2';
2-15272585-8
Which Rank is the lowest one that has a % Change of 3.3%, and a Total Cargo (Metric Tonnes) smaller than 2,456,724?
CREATE TABLE "2012_preliminary_statistics" ( "rank" real, "airport" text, "code_iata_icao" text, "total_cargo_metric_tonnes" real, "pct_change" text );
SELECT MIN("rank") FROM "2012_preliminary_statistics" WHERE "pct_change"='3.3%' AND "total_cargo_metric_tonnes"<'2,456,724';
2-1451581-1
How many ranks have a Code (IATA/ICAO) of ord/kord?
CREATE TABLE "2012_preliminary_statistics" ( "rank" real, "airport" text, "code_iata_icao" text, "total_cargo_metric_tonnes" real, "pct_change" text );
SELECT COUNT("rank") FROM "2012_preliminary_statistics" WHERE "code_iata_icao"='ord/kord';
2-1451581-1
Which Total Cargo (Metric Tonnes) is the highest one that has a Rank smaller than 4, and an Airport of shanghai pudong international airport?
CREATE TABLE "2012_preliminary_statistics" ( "rank" real, "airport" text, "code_iata_icao" text, "total_cargo_metric_tonnes" real, "pct_change" text );
SELECT MAX("total_cargo_metric_tonnes") FROM "2012_preliminary_statistics" WHERE "rank"<4 AND "airport"='shanghai pudong international airport';
2-1451581-1
Which Rank is the average one that has a % Change of 0.7%, and a Total Cargo (Metric Tonnes) smaller than 1,556,203?
CREATE TABLE "2012_preliminary_statistics" ( "rank" real, "airport" text, "code_iata_icao" text, "total_cargo_metric_tonnes" real, "pct_change" text );
SELECT AVG("rank") FROM "2012_preliminary_statistics" WHERE "pct_change"='0.7%' AND "total_cargo_metric_tonnes"<'1,556,203';
2-1451581-1
What is the Per capita income where Median family income is $72,288?
CREATE TABLE "louisiana_parishes_ranked_by_per_capita_" ( "parish" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT "per_capita_income" FROM "louisiana_parishes_ranked_by_per_capita_" WHERE "median_family_income"='$72,288';
2-1396791-1
What is the average grid for the +2.2 secs time/retired?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("grid") FROM "race" WHERE "time_retired"='+2.2 secs';
2-15162303-2
Which Facility ID has a City of license of springfield, ma, and a ERP / Power W smaller than 230?
CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text );
SELECT MAX("facility_id") FROM "stations" WHERE "city_of_license"='springfield, ma' AND "erp_power_w"<230;
2-14201926-1
Which Frequency has a Facility ID of 13598?
CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text );
SELECT "frequency" FROM "stations" WHERE "facility_id"=13598;
2-14201926-1
WHich Facility ID has a Call sign of wnpr?
CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text );
SELECT AVG("facility_id") FROM "stations" WHERE "call_sign"='wnpr';
2-14201926-1
Which Frequency has a Facility ID of 13598?
CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text );
SELECT "frequency" FROM "stations" WHERE "facility_id"=13598;
2-14201926-1
What is the rank that has a 1st less than 132.5 and a Fin nationality.
CREATE TABLE "bischofshofen_6_january" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text );
SELECT "overall_wc_points_rank" FROM "bischofshofen_6_january" WHERE "1st_m"<132.5 AND "nationality"='fin';
2-14407512-11
What is the highest number of points that has a 1st of 121.5?
CREATE TABLE "bischofshofen_6_january" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text );
SELECT MAX("points") FROM "bischofshofen_6_january" WHERE "1st_m"=121.5;
2-14407512-11
What is the total number of 1sts that Martin Schmitt had where he less than 235.7 points?
CREATE TABLE "bischofshofen_6_january" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text );
SELECT COUNT("1st_m") FROM "bischofshofen_6_january" WHERE "name"='martin schmitt' AND "points"<235.7;
2-14407512-11
What is the total number of attendance for games where buffalo was the home team?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT COUNT("attendance") FROM "playoffs" WHERE "home"='buffalo';
2-14159731-10
What was the score of the game on April 28 where Buffalo were the visiting team?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "score" FROM "playoffs" WHERE "visitor"='buffalo' AND "date"='april 28';
2-14159731-10
What date was the game where the visiting team was philadelphia?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "date" FROM "playoffs" WHERE "visitor"='philadelphia';
2-14159731-10
Who got the gold in seoul before 2002?
CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT "gold" FROM "individual" WHERE "year"<2002 AND "location"='seoul';
2-14781412-8
Where did sohn bong-gak win silver?
CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT "location" FROM "individual" WHERE "silver"='sohn bong-gak';
2-14781412-8
Who won the bronze when jin kanno won the gold?
CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT "bronze" FROM "individual" WHERE "gold"='jin kanno';
2-14781412-8
Which Score has an Outcome of runner-up, and a Tournament of johannesburg?
CREATE TABLE "singles_30_15_15" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "singles_30_15_15" WHERE "outcome"='runner-up' AND "tournament"='johannesburg';
2-15095718-6
Which Surface has an Opponent of kerry melville reid, and a Score of 6–3, 2–6, 3–6?
CREATE TABLE "singles_30_15_15" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "singles_30_15_15" WHERE "opponent"='kerry melville reid' AND "score"='6–3, 2–6, 3–6';
2-15095718-6
Which Outcome has an Opponent of wendy turnbull, and a Surface of grass?
CREATE TABLE "singles_30_15_15" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "outcome" FROM "singles_30_15_15" WHERE "opponent"='wendy turnbull' AND "surface"='grass';
2-15095718-6
Which Tournament has a Date of 22 january 1979?
CREATE TABLE "singles_30_15_15" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "tournament" FROM "singles_30_15_15" WHERE "date"='22 january 1979';
2-15095718-6
Which Outcome has a Score of 6–4, 2–6, 6–3?
CREATE TABLE "singles_30_15_15" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "outcome" FROM "singles_30_15_15" WHERE "score"='6–4, 2–6, 6–3';
2-15095718-6
Which nation has total medals under 63, less than 2 silver, more than 2 bronze, and a rank of 8?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "nation" FROM "medal_table" WHERE "total"<63 AND "silver"<2 AND "bronze">2 AND "rank"='8';
2-14163590-3
How many golds have bronze values of 4 and silver values over 2?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"=4 AND "silver">2;
2-14163590-3
What is the sum of silver values that have bronze values under 4, golds over 2, and a rank of 3?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("silver") FROM "medal_table" WHERE "bronze"<4 AND "rank"='3' AND "gold">2;
2-14163590-3
What is the sum of gold values that have bronze values over 0 and totals under 2?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("gold") FROM "medal_table" WHERE "bronze">0 AND "total"<2;
2-14163590-3
What is the smallest gold value that has a total over 15 and bronze values under 31?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "medal_table" WHERE "total">15 AND "bronze"<31;
2-14163590-3
What is the Equatorial diameter of the Body: Mars?
CREATE TABLE "other_celestial_bodies" ( "body" text, "equatorial_diameter" text, "polar_diameter" text, "equatorial_bulge" text, "flattening_ratio" text );
SELECT "equatorial_diameter" FROM "other_celestial_bodies" WHERE "body"='mars';
2-143023-1
What is the Equatorial diameter of the Body: ceres?
CREATE TABLE "other_celestial_bodies" ( "body" text, "equatorial_diameter" text, "polar_diameter" text, "equatorial_bulge" text, "flattening_ratio" text );
SELECT "equatorial_diameter" FROM "other_celestial_bodies" WHERE "body"='ceres';
2-143023-1
What is the Flattening ratio associated with the Equatorial diameter of 49,528km?
CREATE TABLE "other_celestial_bodies" ( "body" text, "equatorial_diameter" text, "polar_diameter" text, "equatorial_bulge" text, "flattening_ratio" text );
SELECT "flattening_ratio" FROM "other_celestial_bodies" WHERE "equatorial_diameter"='49,528km';
2-143023-1
What is the Equatorial bulge of the Body: Earth?
CREATE TABLE "other_celestial_bodies" ( "body" text, "equatorial_diameter" text, "polar_diameter" text, "equatorial_bulge" text, "flattening_ratio" text );
SELECT "equatorial_bulge" FROM "other_celestial_bodies" WHERE "body"='earth';
2-143023-1
What is the Flattening ratio associated with the Equatorial diameter of 120,536km?
CREATE TABLE "other_celestial_bodies" ( "body" text, "equatorial_diameter" text, "polar_diameter" text, "equatorial_bulge" text, "flattening_ratio" text );
SELECT "flattening_ratio" FROM "other_celestial_bodies" WHERE "equatorial_diameter"='120,536km';
2-143023-1
What is the Flattening ratio associated with the Equatorial diameter of 12,756.28km?
CREATE TABLE "other_celestial_bodies" ( "body" text, "equatorial_diameter" text, "polar_diameter" text, "equatorial_bulge" text, "flattening_ratio" text );
SELECT "flattening_ratio" FROM "other_celestial_bodies" WHERE "equatorial_diameter"='12,756.28km';
2-143023-1
What is the average Yards with an average of less than 4 and the long is 12 with less than 29 attempts?
CREATE TABLE "rushing" ( "player" text, "attempts" real, "yards" real, "average" real, "long" real, "touchdowns" real );
SELECT AVG("yards") FROM "rushing" WHERE "average"<4 AND "long"=12 AND "attempts"<29;
2-14609625-6
What is the least amount of yards when the average is less than 2.6?
CREATE TABLE "rushing" ( "player" text, "attempts" real, "yards" real, "average" real, "long" real, "touchdowns" real );
SELECT MIN("yards") FROM "rushing" WHERE "average"<2.6;
2-14609625-6
What is the lease amount of touchdowns with 1318 yards?
CREATE TABLE "rushing" ( "player" text, "attempts" real, "yards" real, "average" real, "long" real, "touchdowns" real );
SELECT MIN("touchdowns") FROM "rushing" WHERE "yards"=1318;
2-14609625-6
What is the number of touchdowns with the average is less than 2.6?
CREATE TABLE "rushing" ( "player" text, "attempts" real, "yards" real, "average" real, "long" real, "touchdowns" real );
SELECT COUNT("touchdowns") FROM "rushing" WHERE "average"<2.6;
2-14609625-6
What is the total number for long when there are 19 attempts?
CREATE TABLE "rushing" ( "player" text, "attempts" real, "yards" real, "average" real, "long" real, "touchdowns" real );
SELECT COUNT("long") FROM "rushing" WHERE "attempts"=19;
2-14609625-6
What was the margin of victory for Olazabal in the German Masters?
CREATE TABLE "european_tour_wins_23" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "margin_of_victory" FROM "european_tour_wins_23" WHERE "tournament"='german masters';
2-1519481-2
What was Olazabal's winning score in the event in which Phillip Price finished 2nd?
CREATE TABLE "european_tour_wins_23" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "winning_score" FROM "european_tour_wins_23" WHERE "runner_s_up"='phillip price';
2-1519481-2
What was Olazabal's winning score in the German Masters?
CREATE TABLE "european_tour_wins_23" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "winning_score" FROM "european_tour_wins_23" WHERE "tournament"='german masters';
2-1519481-2
What was Olazabal's margin of victory int he Ebel European Masters Swiss Open?
CREATE TABLE "european_tour_wins_23" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "margin_of_victory" FROM "european_tour_wins_23" WHERE "tournament"='ebel european masters swiss open';
2-1519481-2
Which Series Ep has a Netflix of s08e18?
CREATE TABLE "season_16_2010_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "series_ep" FROM "season_16_2010_2011" WHERE "netflix"='s08e18';
2-15187735-16
Which Segment B has a Segment D of stone wool insulation?
CREATE TABLE "season_16_2010_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "segment_b" FROM "season_16_2010_2011" WHERE "segment_d"='stone wool insulation';
2-15187735-16
Which Segment A has a Segment C of poster restoration?
CREATE TABLE "season_16_2010_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "segment_a" FROM "season_16_2010_2011" WHERE "segment_c"='poster restoration';
2-15187735-16
Which Segment C has a Segment B of fish food?
CREATE TABLE "season_16_2010_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "segment_c" FROM "season_16_2010_2011" WHERE "segment_b"='fish food';
2-15187735-16
Which Segment C has a Netflix of s08e16?
CREATE TABLE "season_16_2010_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "segment_c" FROM "season_16_2010_2011" WHERE "netflix"='s08e16';
2-15187735-16
What was the name of the competition that had Peterborough Phantoms as an opponent and a date of 2?
CREATE TABLE "december" ( "date" real, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text );
SELECT "competition" FROM "december" WHERE "opponent"='peterborough phantoms' AND "date"=2;
2-15213262-9
What is the Tally in Kerry County?
CREATE TABLE "single_game" ( "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real );
SELECT "tally" FROM "single_game" WHERE "county"='kerry';
2-13755408-1
With a Total of less than 29, what is Ian Ryan's most Matches?
CREATE TABLE "single_game" ( "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real );
SELECT MAX("matches") FROM "single_game" WHERE "player"='ian ryan' AND "total"<29;
2-13755408-1
Which LEMA/SUBLEMA that has Votes smaller than 218656, and a Ch of Deputies of 0?
CREATE TABLE "results" ( "lema_sublema" text, "candidates" text, "votes" real, "ch_of_senators" text, "ch_of_deputies" text );
SELECT "lema_sublema" FROM "results" WHERE "votes"<218656 AND "ch_of_deputies"='0';
2-14726562-1
Which LEMA/SUBLEMA has a Ch of Senators of 2?
CREATE TABLE "results" ( "lema_sublema" text, "candidates" text, "votes" real, "ch_of_senators" text, "ch_of_deputies" text );
SELECT "lema_sublema" FROM "results" WHERE "ch_of_senators"='2';
2-14726562-1
Which Ch of Senators has a LEMA/SUBLEMA of lema?
CREATE TABLE "results" ( "lema_sublema" text, "candidates" text, "votes" real, "ch_of_senators" text, "ch_of_deputies" text );
SELECT "ch_of_senators" FROM "results" WHERE "lema_sublema"='lema';
2-14726562-1
what tornament had the scores 6–7, 6–2, 6–4?
CREATE TABLE "wins_22" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "tournament" FROM "wins_22" WHERE "score_in_the_final"='6–7, 6–2, 6–4';
2-13833030-4
what partner made the scores 6–4, 6–1?
CREATE TABLE "wins_22" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "partner" FROM "wins_22" WHERE "score_in_the_final"='6–4, 6–1';
2-13833030-4
What year had 6.62 m in the notes?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );
SELECT "year" FROM "achievements" WHERE "notes"='6.62 m';
2-13721766-1
Which competition in Budapest, Hungary gave a result of 8th?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );
SELECT "competition" FROM "achievements" WHERE "position"='8th' AND "venue"='budapest, hungary';
2-13721766-1
Which year did the World indoor championships gave a position of 3rd?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );
SELECT SUM("year") FROM "achievements" WHERE "competition"='world indoor championships' AND "position"='3rd';
2-13721766-1