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 goal difference where the goals against is less than 54, goals for is greater than 51 and points 1 is 63?
CREATE TABLE "division_one_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );
SELECT "goal_difference" FROM "division_one_final_table" WHERE "goals_against"<54 AND "goals_for">51 AND "points_1"='63';
2-17606104-2
What is the number of games lost when goal difference is +13 and draws are more than 12?
CREATE TABLE "division_one_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );
SELECT COUNT("lost") FROM "division_one_final_table" WHERE "goal_difference"='+13' AND "drawn">12;
2-17606104-2
What was the finishing position for the car that started in grid 6?
CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );
SELECT "fin_pos" FROM "classification" WHERE "grid"='6';
2-17271495-1
What team started in grid 11?
CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );
SELECT "team" FROM "classification" WHERE "grid"='11';
2-17271495-1
What was the time/retired of car number 6.
CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );
SELECT "time_retired" FROM "classification" WHERE "car_no"='6';
2-17271495-1
What was the grid number of the team and driver with 14 points?
CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );
SELECT "grid" FROM "classification" WHERE "points"='14';
2-17271495-1
Who did Thomaz Bellucci play against when he became runner-up on a clay surface?
CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "opponent" FROM "singles_5_3_2" WHERE "outcome"='runner-up' AND "surface"='clay';
2-17436425-4
What tournament did Thomaz Bellucci become runner-up on a clay surface?
CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "tournament" FROM "singles_5_3_2" WHERE "outcome"='runner-up' AND "surface"='clay';
2-17436425-4
What type of surface did Thomaz Bellucci play against tommy robredo?
CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "singles_5_3_2" WHERE "opponent"='tommy robredo';
2-17436425-4
What is the result of the match against Ryan Schultz?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text );
SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='ryan schultz';
2-17445364-2
What round was the game against Cedric Marks?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text );
SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='cedric marks';
2-17445364-2
What was the record of the match against Chris Mounce?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text );
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='chris mounce';
2-17445364-2
What is the method in the round 2 win over Nick Gilardi?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text );
SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"='2' AND "res"='win' AND "opponent"='nick gilardi';
2-17445364-2
Who is number 7 when Sophia is number 3 and Abigail is number 10?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_7" FROM "female_names" WHERE "no_3"='sophia' AND "no_10"='abigail';
2-16304563-10
Which region (year) has Abigail at number 7, Sophia at number 1 and Aaliyah at number 5?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "region_year" FROM "female_names" WHERE "no_7"='abigail' AND "no_1"='sophia' AND "no_5"='aaliyah';
2-16304563-10
Who is number 4 when Harper is number 10 and Abigail is number 5?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_4" FROM "female_names" WHERE "no_10"='harper' AND "no_5"='abigail';
2-16304563-10
What is Player, when To Par is "+1", and when Score is "75-68=143"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "to_par"='+1' AND "score"='75-68=143';
2-17231302-5
What is Score, when Player is "Andy North"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "player"='andy north';
2-17231302-5
What is To Par, when Score is "69-72=141"
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "score"='69-72=141';
2-17231302-5
What is Place, when Score is "73-71=144", and when Player is "Scott Simpson"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "second_round" WHERE "score"='73-71=144' AND "player"='scott simpson';
2-17231302-5
What is Score, when Country is "United States", and when Player is "John Mahaffey"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "country"='united states' AND "player"='john mahaffey';
2-17231302-5
What is To Par, when Place is "T1", and when Player is "Joey Rassett"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "place"='t1' AND "player"='joey rassett';
2-17231302-5
What was the score when the away team was brighton & hove albion?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "fourth_round_proper" WHERE "away_team"='brighton & hove albion';
2-16312746-4
When was the away team burnley?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='burnley';
2-16312746-4
Which home team had an away team of Reading?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='reading';
2-16312746-4
What year was the accolade for Scottish albums of the decade?
CREATE TABLE "accolades" ( "publication" text, "country" text, "nominated_work" text, "accolade" text, "year" real, "rank" real );
SELECT "year" FROM "accolades" WHERE "accolade"='scottish albums of the decade';
2-17435032-2
What country had the publication, Drowned in Sound?
CREATE TABLE "accolades" ( "publication" text, "country" text, "nominated_work" text, "accolade" text, "year" real, "rank" real );
SELECT "country" FROM "accolades" WHERE "publication"='drowned in sound';
2-17435032-2
What is the name of the home stadium of Brisbane Lions?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );
SELECT "ground" FROM "round_2" WHERE "home_team"='brisbane lions';
2-16388478-3
How much is the crowd attending at colonial stadium where Hawthorn plays?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );
SELECT "crowd" FROM "round_2" WHERE "ground"='colonial stadium' AND "home_team"='hawthorn';
2-16388478-3
How many people attended as the score ended 13.10 (88)?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );
SELECT "crowd" FROM "round_2" WHERE "home_team_score"='13.10 (88)';
2-16388478-3
what is the least 60-64 when 30-34 is 1,403 and 20-24 is less than 378?
CREATE TABLE "4_tatars" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real );
SELECT MIN("60_to_64") FROM "4_tatars" WHERE "30_to_34"='1,403' AND "20_to_24"<378;
2-16457934-4
what is the 2nd leg when team #2 is žalgiris kaunas?
CREATE TABLE "top_16" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text, "3rd_leg" text );
SELECT "2nd_leg" FROM "top_16" WHERE "team_num2"='žalgiris kaunas';
2-16359952-6
what is the 2nd leg when team #2 is žalgiris kaunas?
CREATE TABLE "top_16" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text, "3rd_leg" text );
SELECT "2nd_leg" FROM "top_16" WHERE "team_num2"='žalgiris kaunas';
2-16359952-6
Who was the opponent in week 6?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "week"=6;
2-16780011-2
Which week had an attendance of 55,158?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text );
SELECT SUM("week") FROM "schedule" WHERE "attendance"='55,158';
2-16780011-2
What is the lowest game on February 10?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "record" text );
SELECT MIN("game") FROM "game_log" WHERE "date"='february 10';
2-17311812-8
Which Player has a Round larger than 5, and a Position of (g)?
CREATE TABLE "draft_picks" ( "round" real, "pick" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT "player" FROM "draft_picks" WHERE "round">5 AND "position"='(g)';
2-16864968-21
Which Round has a Nationality of united states, and a Player of jimmy hayes?
CREATE TABLE "draft_picks" ( "round" real, "pick" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT MAX("round") FROM "draft_picks" WHERE "nationality"='united states' AND "player"='jimmy hayes';
2-16864968-21
Which Pick has a Nationality of canada, and a Round of 5?
CREATE TABLE "draft_picks" ( "round" real, "pick" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT "pick" FROM "draft_picks" WHERE "nationality"='canada' AND "round"=5;
2-16864968-21
Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam?
CREATE TABLE "draft_picks" ( "round" real, "pick" text, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT "club_team" FROM "draft_picks" WHERE "position"='(d)' AND "nationality"='canada' AND "player"='andrew macwilliam';
2-16864968-21
How much money did jodie mudd get?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "money" FROM "final_leaderboard" WHERE "player"='jodie mudd';
2-16514311-1
What score did Australia get?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "score" FROM "final_leaderboard" WHERE "country"='australia';
2-16514311-1
What is the sort value that had deaths of 71?
CREATE TABLE "puerperal_fever_mortality_rates_for_birt" ( "month" text, "births" text, "deaths" text, "rate_pct" text, "sort_restore" real );
SELECT "sort_restore" FROM "puerperal_fever_mortality_rates_for_birt" WHERE "deaths"='71';
2-16951645-1
Which month had a sort value under 39 and 2 deaths?
CREATE TABLE "puerperal_fever_mortality_rates_for_birt" ( "month" text, "births" text, "deaths" text, "rate_pct" text, "sort_restore" real );
SELECT "month" FROM "puerperal_fever_mortality_rates_for_birt" WHERE "sort_restore"<39 AND "deaths"='2';
2-16951645-1
What is the number of sort values associated with 389 births?
CREATE TABLE "puerperal_fever_mortality_rates_for_birt" ( "month" text, "births" text, "deaths" text, "rate_pct" text, "sort_restore" real );
SELECT COUNT("sort_restore") FROM "puerperal_fever_mortality_rates_for_birt" WHERE "births"='389';
2-16951645-1
Who was the Manufacturer for the Rider Colin Edwards?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT "manufacturer" FROM "moto_gp_classification" WHERE "rider"='colin edwards';
2-16270492-1
With a Grid less than 15, and a Time of +52.833, what is the highest number of Laps?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT MAX("laps") FROM "moto_gp_classification" WHERE "grid"<15 AND "time"='+52.833';
2-16270492-1
What is the average Grid for the Rider Toni Elias with Laps more than 30?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT AVG("grid") FROM "moto_gp_classification" WHERE "rider"='toni elias' AND "laps">30;
2-16270492-1
With a Time of +1:37.055, which has the lowest Grid?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT MIN("grid") FROM "moto_gp_classification" WHERE "time"='+1:37.055';
2-16270492-1
Which Silver is the highest one that has a Rank of 19, and a Gold larger than 0?
CREATE TABLE "invitational_sports" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("silver") FROM "invitational_sports" WHERE "rank"='19' AND "gold">0;
2-16488920-4
Which Bronze is the highest one that has a Rank of 26, and a Total larger than 1?
CREATE TABLE "invitational_sports" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("bronze") FROM "invitational_sports" WHERE "rank"='26' AND "total">1;
2-16488920-4
Which Gold has a Nation of india, and a Bronze smaller than 0?
CREATE TABLE "invitational_sports" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("gold") FROM "invitational_sports" WHERE "nation"='india' AND "bronze"<0;
2-16488920-4
Which Nation has a Gold larger than 0, and a Bronze smaller than 2, and a Total larger than 3, and a Silver larger than 1?
CREATE TABLE "invitational_sports" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "nation" FROM "invitational_sports" WHERE "gold">0 AND "bronze"<2 AND "total">3 AND "silver">1;
2-16488920-4
What is the round number when the record is 15–7–1?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "record"='15–7–1';
2-17441442-2
What is the method when the time is 5:00, and the record is 14–6–1?
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 "time"='5:00' AND "record"='14–6–1';
2-17441442-2
What is the home team of the game with a price decision and the new jersey devils as the visitor team?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real );
SELECT "home" FROM "game_log" WHERE "decision"='price' AND "visitor"='new jersey devils';
2-17206737-6
What was the record on November 7, when the opponent score was less than 99?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "nets_points" real, "opponent_score" real, "record" text, "streak" text );
SELECT "record" FROM "schedule" WHERE "opponent_score"<99 AND "date"='november 7';
2-17323346-3
When the opponent scored 96 points after game 61, what was the streak?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "nets_points" real, "opponent_score" real, "record" text, "streak" text );
SELECT "streak" FROM "schedule" WHERE "game">61 AND "opponent_score"=96;
2-17323346-3
What transfer fee did Birmingham City get on 30 June 2010?
CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text );
SELECT "transfer_fee" FROM "in" WHERE "ends"='30 june 2010' AND "moving_from"='birmingham city';
2-16549823-6
What type of move was Elding from ENG?
CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text );
SELECT "type" FROM "in" WHERE "country"='eng' AND "name"='elding';
2-16549823-6
When does Donaldson's move end?
CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text );
SELECT "ends" FROM "in" WHERE "name"='donaldson';
2-16549823-6
Which Silver has a Total of 7, and a Gold larger than 1?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("silver") FROM "medal_table" WHERE "total"=7 AND "gold">1;
2-17124622-3
Which Bronze has a Gold smaller than 16, a Rank of 10, and a Nation of italy?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "gold"<16 AND "rank"='10' AND "nation"='italy';
2-17124622-3
Which Total has a Bronze larger than 2, a Gold smaller than 16, a Silver of 0, and a Rank of 13?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("total") FROM "medal_table" WHERE "bronze">2 AND "gold"<16 AND "silver"=0 AND "rank"='13';
2-17124622-3
Which Gold has a Nation of malaysia, and a Silver smaller than 0?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "medal_table" WHERE "nation"='malaysia' AND "silver"<0;
2-17124622-3
Which Population (2005) has a Literacy (2003) of 90%, and an Infant Mortality (2002) of 18.3‰?
CREATE TABLE "states_of_brazil" ( "state" text, "abbreviation" text, "capital" text, "area_km" real, "population_2005" real, "density_2005" real, "gdp_pct_total_2004" text, "gdp_per_capita_us_2004" real, "hdi_2005" real, "literacy_2003" text, "infant_mortality_2002" text, "life_expectancy_2004" real );
SELECT SUM("population_2005") FROM "states_of_brazil" WHERE "literacy_2003"='90%' AND "infant_mortality_2002"='18.3‰';
2-16278495-1
Which Density (2005) has an Area (km²) of 340086.7, and a Population (2005) smaller than 5926300?
CREATE TABLE "states_of_brazil" ( "state" text, "abbreviation" text, "capital" text, "area_km" real, "population_2005" real, "density_2005" real, "gdp_pct_total_2004" text, "gdp_per_capita_us_2004" real, "hdi_2005" real, "literacy_2003" text, "infant_mortality_2002" text, "life_expectancy_2004" real );
SELECT SUM("density_2005") FROM "states_of_brazil" WHERE "area_km"=340086.7 AND "population_2005"<5926300;
2-16278495-1
Which GDP per capita (US$) (2004) is the highest one that has an Area (km²) larger than 148825.6, and a State of roraima?
CREATE TABLE "states_of_brazil" ( "state" text, "abbreviation" text, "capital" text, "area_km" real, "population_2005" real, "density_2005" real, "gdp_pct_total_2004" text, "gdp_per_capita_us_2004" real, "hdi_2005" real, "literacy_2003" text, "infant_mortality_2002" text, "life_expectancy_2004" real );
SELECT MAX("gdp_per_capita_us_2004") FROM "states_of_brazil" WHERE "area_km">148825.6 AND "state"='roraima';
2-16278495-1
Which Literacy (2003) has an HDI (2005) smaller than 0.718, and a GDP per capita (US$) (2004) smaller than 3877, and a State of maranhão?
CREATE TABLE "states_of_brazil" ( "state" text, "abbreviation" text, "capital" text, "area_km" real, "population_2005" real, "density_2005" real, "gdp_pct_total_2004" text, "gdp_per_capita_us_2004" real, "hdi_2005" real, "literacy_2003" text, "infant_mortality_2002" text, "life_expectancy_2004" real );
SELECT "literacy_2003" FROM "states_of_brazil" WHERE "hdi_2005"<0.718 AND "gdp_per_capita_us_2004"<3877 AND "state"='maranhão';
2-16278495-1
Which GDP per capita (US$) (2004) has a Literacy (2003) of 90%, and an Area (km²) of 1247689.5?
CREATE TABLE "states_of_brazil" ( "state" text, "abbreviation" text, "capital" text, "area_km" real, "population_2005" real, "density_2005" real, "gdp_pct_total_2004" text, "gdp_per_capita_us_2004" real, "hdi_2005" real, "literacy_2003" text, "infant_mortality_2002" text, "life_expectancy_2004" real );
SELECT AVG("gdp_per_capita_us_2004") FROM "states_of_brazil" WHERE "literacy_2003"='90%' AND "area_km"=1247689.5;
2-16278495-1
Name the Date and an Opponent which has a f Position and Career Games of 123 games?
CREATE TABLE "career_points_leaders" ( "total_points" real, "name" text, "career_games" text, "position" text, "years_played" text, "scored_1_500_points" text, "date_and_opponent" text );
SELECT "date_and_opponent" FROM "career_points_leaders" WHERE "position"='f' AND "career_games"='123 games';
2-16796096-2
Which Name has a Years Played of 2004–2008, and a Date and Opponent of 2/17/07 vs. purdue?
CREATE TABLE "career_points_leaders" ( "total_points" real, "name" text, "career_games" text, "position" text, "years_played" text, "scored_1_500_points" text, "date_and_opponent" text );
SELECT "name" FROM "career_points_leaders" WHERE "years_played"='2004–2008' AND "date_and_opponent"='2/17/07 vs. purdue';
2-16796096-2
Which Career Games has a Scored 1,500 Points of sr./92nd game?
CREATE TABLE "career_points_leaders" ( "total_points" real, "name" text, "career_games" text, "position" text, "years_played" text, "scored_1_500_points" text, "date_and_opponent" text );
SELECT "career_games" FROM "career_points_leaders" WHERE "scored_1_500_points"='sr./92nd game';
2-16796096-2
Which Career Games has a Date and Opponent of 12/15/92 vs. uw–milwaukee?
CREATE TABLE "career_points_leaders" ( "total_points" real, "name" text, "career_games" text, "position" text, "years_played" text, "scored_1_500_points" text, "date_and_opponent" text );
SELECT "career_games" FROM "career_points_leaders" WHERE "date_and_opponent"='12/15/92 vs. uw–milwaukee';
2-16796096-2
WHich Scored 1,500 Points has a Years Played of 2004–2008 and a Name of jolene anderson?
CREATE TABLE "career_points_leaders" ( "total_points" real, "name" text, "career_games" text, "position" text, "years_played" text, "scored_1_500_points" text, "date_and_opponent" text );
SELECT "scored_1_500_points" FROM "career_points_leaders" WHERE "years_played"='2004–2008' AND "name"='jolene anderson';
2-16796096-2
Which Time has a Round smaller than 3, and an Opponent of bao quach?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "opponent"='bao quach';
2-17440697-2
Which Round has a Record of 10-6?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "record"='10-6';
2-17440697-2
Which Opponent has a Round smaller than 3, and a Time of 1:09?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "time"='1:09';
2-17440697-2
Which Time has an Opponent of josh branham?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='josh branham';
2-17440697-2
Which Time has a Round larger than 2, and an Opponent of jesse brock?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "time" FROM "mixed_martial_arts_record" WHERE "round">2 AND "opponent"='jesse brock';
2-17440697-2
Which Round has an Event of nle - capital city carnage?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text );
SELECT "round" FROM "mixed_martial_arts_record" WHERE "event"='nle - capital city carnage';
2-17440217-2
Which Round has an Opponent of ryan bixler?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text );
SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='ryan bixler';
2-17440217-2
Which Event has a Record of 19-9?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='19-9';
2-17440217-2
Which Method has a Round of 1, and a Record of 4–2?
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 "round"=1 AND "record"='4–2';
2-1725416-2
Which Opponent has a Time of 4:51?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='4:51';
2-1725416-2
Which Round has an Opponent of jorge magalhaes?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "opponent"='jorge magalhaes';
2-1725416-2
Which Round has a Location of bahia, brazil?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "location"='bahia, brazil';
2-1725416-2
Which Opponent has an Event of jungle fight 5?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='jungle fight 5';
2-1725416-2
Tiger Woods with a total less than 293 had what To par?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "to_par" FROM "made_the_cut" WHERE "total"<293 AND "player"='tiger woods';
2-16514630-2
Bernhard Langer maximum total was what?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT MAX("total") FROM "made_the_cut" WHERE "player"='bernhard langer';
2-16514630-2
What is the average of the total when t11 is the finish?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT AVG("total") FROM "made_the_cut" WHERE "finish"='t11';
2-16514630-2
Which Rider has Laps smaller than 24, and a Grid smaller than 12, and a Manufacturer of aprilia?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT "rider" FROM "125cc_classification" WHERE "laps"<24 AND "grid"<12 AND "manufacturer"='aprilia';
2-17036702-3
What were grid 7's laps?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT MIN("laps") FROM "125cc_classification" WHERE "grid"=7;
2-17036702-3
Which Time/Retired has Laps smaller than 24, and a Manufacturer of aprilia, and a Grid smaller than 12, and a Rider of ángel rodríguez?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT "time_retired" FROM "125cc_classification" WHERE "laps"<24 AND "manufacturer"='aprilia' AND "grid"<12 AND "rider"='ángel rodríguez';
2-17036702-3
How many Laps have a Time/Retired of +1:42.517, and a Grid larger than 33?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("laps") FROM "125cc_classification" WHERE "time_retired"='+1:42.517' AND "grid">33;
2-17036702-3
Which chassis-engine had 77 laps?
CREATE TABLE "official_results" ( "class" text, "team" text, "driver" text, "chassis_engine" text, "laps" real );
SELECT "chassis_engine" FROM "official_results" WHERE "laps"=77;
2-16874249-1
What is the class of team liqui moly equipe, which has less than 71 laps?
CREATE TABLE "official_results" ( "class" text, "team" text, "driver" text, "chassis_engine" text, "laps" real );
SELECT "class" FROM "official_results" WHERE "laps"<71 AND "team"='liqui moly equipe';
2-16874249-1
What is the team of driver klaus ludwig, who is class c1 and has more than 77 laps?
CREATE TABLE "official_results" ( "class" text, "team" text, "driver" text, "chassis_engine" text, "laps" real );
SELECT "team" FROM "official_results" WHERE "class"='c1' AND "laps">77 AND "driver"='klaus ludwig';
2-16874249-1
Who is the driver of the chassis-engine porsche 956 gti?
CREATE TABLE "official_results" ( "class" text, "team" text, "driver" text, "chassis_engine" text, "laps" real );
SELECT "driver" FROM "official_results" WHERE "chassis_engine"='porsche 956 gti';
2-16874249-1
What team has a porsche 956 b chassis-engine with less than 79 laps?
CREATE TABLE "official_results" ( "class" text, "team" text, "driver" text, "chassis_engine" text, "laps" real );
SELECT "team" FROM "official_results" WHERE "chassis_engine"='porsche 956 b' AND "laps"<79;
2-16874249-1