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 2nd leg of the 1st team in the 2007 uefa intertoto cup?
CREATE TABLE "belarusian_clubs_in_euporean_cups" ( "round" text, "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num1"='2007 uefa intertoto cup';
2-17335271-3
What is the 2nd leg of dinamo minsk team #2?
CREATE TABLE "belarusian_clubs_in_euporean_cups" ( "round" text, "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num2"='dinamo minsk';
2-17335271-3
What is the 2nd leg of the second team in the 2007 uefa intertoto cup?
CREATE TABLE "belarusian_clubs_in_euporean_cups" ( "round" text, "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num2"='2007 uefa intertoto cup';
2-17335271-3
What is the status of the 10 against?
CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "status" FROM "matches" WHERE "against"=10;
2-17020789-1
Who was the opposing team in the test match?
CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "opposing_team" FROM "matches" WHERE "status"='test match';
2-17020789-1
Where was the 05/09/1973 venue?
CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "venue" FROM "matches" WHERE "date"='05/09/1973';
2-17020789-1
Which Overall has a Position of te, and a Round larger than 5?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "position"='te' AND "round">5;
2-17100961-38
Which Position has a Round larger than 14, and an Overall smaller than 419?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "position" FROM "washington_redskins_draft_history" WHERE "round">14 AND "overall"<419;
2-17100961-38
Which Overall has a Round smaller than 2?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "overall" FROM "washington_redskins_draft_history" WHERE "round"<2;
2-17100961-38
Which Name has a Round larger than 4, an Overall smaller than 338, a Pick smaller than 11, and a College of virginia tech?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "name" FROM "washington_redskins_draft_history" WHERE "round">4 AND "overall"<338 AND "pick"<11 AND "college"='virginia tech';
2-17100961-38
Who has the event of 36 arrow finals?
CREATE TABLE "men_s_records" ( "event" text, "score" real, "name" text, "nation" text, "games" text, "date" text );
SELECT "name" FROM "men_s_records" WHERE "event"='36 arrow finals';
2-16610023-1
What is the total score for the 36 arrow finals event?
CREATE TABLE "men_s_records" ( "event" text, "score" real, "name" text, "nation" text, "games" text, "date" text );
SELECT COUNT("score") FROM "men_s_records" WHERE "event"='36 arrow finals';
2-16610023-1
Who is moving with the nationality of Tri?
CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text );
SELECT "moving_to" FROM "out" WHERE "nat"='tri';
2-1630649-2
What is the sSpec Number of the model with a 1ghz frequency?
CREATE TABLE "180_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text );
SELECT "s_spec_number" FROM "180_nm" WHERE "frequency"='1ghz';
2-16400024-3
What is the part number of the model that has a frequency of 933mhz?
CREATE TABLE "180_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text );
SELECT "part_number_s" FROM "180_nm" WHERE "frequency"='933mhz';
2-16400024-3
What date was part number rk80533pz933256 released?
CREATE TABLE "180_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text );
SELECT "release_date" FROM "180_nm" WHERE "part_number_s"='rk80533pz933256';
2-16400024-3
What is the frequency of the model with sSpec number sl5qj?
CREATE TABLE "180_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text );
SELECT "frequency" FROM "180_nm" WHERE "s_spec_number"='sl5qj';
2-16400024-3
How many years does coach Jim Berryman have?
CREATE TABLE "head_coaches" ( "tenure" text, "coach" text, "years" text, "record" text, "pct" real );
SELECT "years" FROM "head_coaches" WHERE "coach"='jim berryman';
2-16670875-1
Which Location has a Method of submission (rear naked choke), a Round of 1, and an Event of ufc 127?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "location" FROM "mixed_martial_arts_record" WHERE "method"='submission (rear naked choke)' AND "round"=1 AND "event"='ufc 127';
2-17441484-2
Which Record has a Time of n/a?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='n/a';
2-17441484-2
Which Opponent has a Location of gold coast , australia, and a Method of submission (punches)?
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 "location"='gold coast , australia' AND "method"='submission (punches)';
2-17441484-2
what is the location when the circuit is lowood circuit and the race is lowood trophy?
CREATE TABLE "calendar" ( "date" text, "race" text, "circuit" text, "location" text, "winner" text );
SELECT "location" FROM "calendar" WHERE "circuit"='lowood circuit' AND "race"='lowood trophy';
2-17599325-1
what is the race on 23 october?
CREATE TABLE "calendar" ( "date" text, "race" text, "circuit" text, "location" text, "winner" text );
SELECT "race" FROM "calendar" WHERE "date"='23 october';
2-17599325-1
what is the circuit when the winner is stan jones and the race is phillip island trophy race?
CREATE TABLE "calendar" ( "date" text, "race" text, "circuit" text, "location" text, "winner" text );
SELECT "circuit" FROM "calendar" WHERE "winner"='stan jones' AND "race"='phillip island trophy race';
2-17599325-1
What is the displacement and configuration with a max speed of km/h (mph) and the car model Panamera 4s?
CREATE TABLE "engines" ( "car_model" text, "displacement_configuration" text, "max_motive_power_rpm" text, "max_torque_rpm" text, "max_speed" text, "emissions_co2" text );
SELECT "displacement_configuration" FROM "engines" WHERE "max_speed"='km/h (mph)' AND "car_model"='panamera 4s';
2-1755878-2
What is the displacement & configuration with CO2 of 204 g/km emissions?
CREATE TABLE "engines" ( "car_model" text, "displacement_configuration" text, "max_motive_power_rpm" text, "max_torque_rpm" text, "max_speed" text, "emissions_co2" text );
SELECT "displacement_configuration" FROM "engines" WHERE "emissions_co2"='204 g/km';
2-1755878-2
What displacement & configuration does the car model Panamera 4s have?
CREATE TABLE "engines" ( "car_model" text, "displacement_configuration" text, "max_motive_power_rpm" text, "max_torque_rpm" text, "max_speed" text, "emissions_co2" text );
SELECT "displacement_configuration" FROM "engines" WHERE "car_model"='panamera 4s';
2-1755878-2
What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s?
CREATE TABLE "engines" ( "car_model" text, "displacement_configuration" text, "max_motive_power_rpm" text, "max_torque_rpm" text, "max_speed" text, "emissions_co2" text );
SELECT "emissions_co2" FROM "engines" WHERE "max_speed"='km/h (mph)' AND "car_model"='panamera 4s';
2-1755878-2
How many tickets were available at Halle Tony Garnier on June 15, 2009?
CREATE TABLE "tour_dates" ( "date" text, "city" text, "country" text, "venue" text, "tickets_available_since" text, "attendance" real, "comment" text );
SELECT "tickets_available_since" FROM "tour_dates" WHERE "venue"='halle tony garnier' AND "date"='june 15, 2009';
2-17384806-1
What city had tickets available since March 28, 2008 and went on sale on September 4, 2009?
CREATE TABLE "tour_dates" ( "date" text, "city" text, "country" text, "venue" text, "tickets_available_since" text, "attendance" real, "comment" text );
SELECT "city" FROM "tour_dates" WHERE "tickets_available_since"='march 28, 2008' AND "date"='september 4, 2009';
2-17384806-1
WHAT IS THE PICK FOR JOE DAY, ROUND LARGER THAN 1, AND OVERALL SMALLER THAN 150?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "round">1 AND "name"='joe day' AND "overall"<150;
2-17100961-12
WHAT IS THE SUM OF PICK WITH AN OVERALL LARGER THAN 250, AND FOR FLORIDA COLLEGE?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "overall">250 AND "college"='florida';
2-17100961-12
What is the loan club with bbc sport as the start source and ended in 3 February?
CREATE TABLE "loans_out" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text );
SELECT "loan_club" FROM "loans_out" WHERE "start_source"='bbc sport' AND "ended"='3 february';
2-17596418-7
When did the enews start source start?
CREATE TABLE "loans_out" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text );
SELECT "started" FROM "loans_out" WHERE "start_source"='enews';
2-17596418-7
What is the start source of the irl country, which ended on 13 April?
CREATE TABLE "loans_out" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text );
SELECT "start_source" FROM "loans_out" WHERE "country"='irl' AND "ended"='13 april';
2-17596418-7
What is the country named feeney with a bbc sport start source?
CREATE TABLE "loans_out" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text );
SELECT "country" FROM "loans_out" WHERE "start_source"='bbc sport' AND "name"='feeney';
2-17596418-7
What is the loan club named dennehy?
CREATE TABLE "loans_out" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text );
SELECT "loan_club" FROM "loans_out" WHERE "name"='dennehy';
2-17596418-7
What's the most races with less than 10 podiums and 1st position?
CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );
SELECT MAX("races") FROM "career_summary" WHERE "position"='1st' AND "podiums"<10;
2-16864452-1
How many runs did mahela jayawardene and thilan samaraweera have?
CREATE TABLE "test_record_partnerships_by_wicket" ( "wicket" text, "runs" real, "batting_partners" text, "batting_team" text, "fielding_team" text, "venue" text, "season" text );
SELECT SUM("runs") FROM "test_record_partnerships_by_wicket" WHERE "batting_partners"='mahela jayawardene and thilan samaraweera';
2-1670921-1
What venue did mahela jayawardene and thilan samaraweera play at?
CREATE TABLE "test_record_partnerships_by_wicket" ( "wicket" text, "runs" real, "batting_partners" text, "batting_team" text, "fielding_team" text, "venue" text, "season" text );
SELECT "venue" FROM "test_record_partnerships_by_wicket" WHERE "batting_partners"='mahela jayawardene and thilan samaraweera';
2-1670921-1
Who were the batting partners that played for India in 1997?
CREATE TABLE "test_record_partnerships_by_wicket" ( "wicket" text, "runs" real, "batting_partners" text, "batting_team" text, "fielding_team" text, "venue" text, "season" text );
SELECT "batting_partners" FROM "test_record_partnerships_by_wicket" WHERE "fielding_team"='india' AND "season"='1997';
2-1670921-1
What is the defending forces when Al-Murassas shows for name?
CREATE TABLE "other_arab_communities_in_baysan_distric" ( "name" text, "date" text, "defending_forces" text, "brigade" text, "population" text );
SELECT "defending_forces" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='al-murassas';
2-17504371-2
What is the brigade Tall Al-Shawk shows for the name?
CREATE TABLE "other_arab_communities_in_baysan_distric" ( "name" text, "date" text, "defending_forces" text, "brigade" text, "population" text );
SELECT "brigade" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='tall al-shawk';
2-17504371-2
What is the brigade when Al-Bira is the name?
CREATE TABLE "other_arab_communities_in_baysan_distric" ( "name" text, "date" text, "defending_forces" text, "brigade" text, "population" text );
SELECT "brigade" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='al-bira';
2-17504371-2
What is the brigade when Al-Hamra ('arab al-hamra) shows for name?
CREATE TABLE "other_arab_communities_in_baysan_distric" ( "name" text, "date" text, "defending_forces" text, "brigade" text, "population" text );
SELECT "brigade" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='al-hamra (''arab al-hamra)';
2-17504371-2
What is the Defending forces when the population was 120?
CREATE TABLE "other_arab_communities_in_baysan_distric" ( "name" text, "date" text, "defending_forces" text, "brigade" text, "population" text );
SELECT "defending_forces" FROM "other_arab_communities_in_baysan_distric" WHERE "population"='120';
2-17504371-2
What was the rank of the park that had a value of 5,040,000 in 2010?
CREATE TABLE "worldwide" ( "rank" real, "location" text, "2008" text, "2009" text, "2010" text, "2011" real, "2012" real );
SELECT "rank" FROM "worldwide" WHERE "2010"='5,040,000';
2-16578883-2
What was the overall pick number of the player selected before round 3?
CREATE TABLE "draft_picks" ( "round" real, "overall_pick" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT COUNT("overall_pick") FROM "draft_picks" WHERE "round"<3;
2-17371135-30
Which College/Junior/Club Team (League) did the player julien cayer who was selected before round 3 play for?
CREATE TABLE "draft_picks" ( "round" real, "overall_pick" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round">3 AND "player"='julien cayer';
2-17371135-30
what is the least bronze when the rank is 3 and silver is less than 2?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("bronze") FROM "medal_table" WHERE "rank"='3' AND "silver"<2;
2-16869142-1
what is the total when bronze is 0 and the nation is hungary?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("total") FROM "medal_table" WHERE "bronze"=0 AND "nation"='hungary';
2-16869142-1
what is the total when the rank is 7 and gold is more than 0?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("total") FROM "medal_table" WHERE "rank"='7' AND "gold">0;
2-16869142-1
what is the highest gold when the nation is total and the total is less than 24?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("gold") FROM "medal_table" WHERE "nation"='total' AND "total"<24;
2-16869142-1
Looking only at matches occurring after Game 51, who was the opponent for the game that ended with a score of 99-129?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "opponent" FROM "game_log" WHERE "game">51 AND "score"='99-129';
2-17344582-7
For the game against the Washington Bullets, what was the final score?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "score" FROM "game_log" WHERE "opponent"='washington bullets';
2-17344582-7
For the game where the opponent is listed as @ Indiana Pacers, what was the end record?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "record" FROM "game_log" WHERE "opponent"='@ indiana pacers';
2-17344582-7
Which game number was played at Chicago Stadium?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "game" FROM "game_log" WHERE "location"='chicago stadium';
2-17344582-7
What was the attendance of the match with motagua as the home team?
CREATE TABLE "round_8" ( "date" text, "home" text, "score" text, "away" text, "attendance" real );
SELECT AVG("attendance") FROM "round_8" WHERE "home"='motagua';
2-17026847-10
What is the score of the game where real espana was the home team?
CREATE TABLE "round_8" ( "date" text, "home" text, "score" text, "away" text, "attendance" real );
SELECT "score" FROM "round_8" WHERE "home"='real espana';
2-17026847-10
What team was the away team for the game with 916 in attendance?
CREATE TABLE "round_8" ( "date" text, "home" text, "score" text, "away" text, "attendance" real );
SELECT "away" FROM "round_8" WHERE "attendance"=916;
2-17026847-10
What was the score of the game wehre the deportes savio were the home team?
CREATE TABLE "round_8" ( "date" text, "home" text, "score" text, "away" text, "attendance" real );
SELECT "score" FROM "round_8" WHERE "home"='deportes savio';
2-17026847-10
In which championship did the winner have a score of −9 (66-69-73-71=279)?
CREATE TABLE "wins_7" ( "year" real, "championship" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "championship" FROM "wins_7" WHERE "winning_score"='−9 (66-69-73-71=279)';
2-1628607-4
During the championship where the winning score was −9 (66-69-73-71=279)?, who was the runner-up?
CREATE TABLE "wins_7" ( "year" real, "championship" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "runner_s_up" FROM "wins_7" WHERE "winning_score"='−9 (66-69-73-71=279)';
2-1628607-4
What was the winning score in the year 2002?
CREATE TABLE "wins_7" ( "year" real, "championship" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "winning_score" FROM "wins_7" WHERE "year"=2002;
2-1628607-4
What is the fewest goals of CD Alcoyano with more than 25 points?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MIN("goals_against") FROM "group_ii" WHERE "club"='cd alcoyano' AND "points">25;
2-17416195-4
What is the fewest number of wins that had fewer than 7 draws and more than 30 played?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MIN("wins") FROM "group_ii" WHERE "draws"<7 AND "played">30;
2-17416195-4
What is the fewest points that has more than 29 goals?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MIN("points") FROM "group_ii" WHERE "goal_difference">29;
2-17416195-4
What date have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754?
CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" real, "works_number" real );
SELECT MAX("date") FROM "locomotives" WHERE "type"='0-4-4 forney locomotive' AND "number">20 AND "works_number">23754;
2-1652509-1
What is the sum of number with type 0-4-4 forney locomotive, number smaller than 20 and works number of 1251?
CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" real, "works_number" real );
SELECT COUNT("date") FROM "locomotives" WHERE "type"='0-4-4 forney locomotive' AND "number"<20 AND "works_number"=1251;
2-1652509-1
What was the lowest attendance for the game that had a time of 3:31 and was before game 7?
CREATE TABLE "tampa_bay_rays_vs_boston_red_sox" ( "game" real, "date" text, "location" text, "time" text, "attendance" real );
SELECT MIN("attendance") FROM "tampa_bay_rays_vs_boston_red_sox" WHERE "time"='3:31' AND "game"<7;
2-17572569-1
What was the sum of attendance for games with a time of 3:23?
CREATE TABLE "tampa_bay_rays_vs_boston_red_sox" ( "game" real, "date" text, "location" text, "time" text, "attendance" real );
SELECT SUM("attendance") FROM "tampa_bay_rays_vs_boston_red_sox" WHERE "time"='3:23';
2-17572569-1
WHat is the lowest amount of bronze medals for teams with 9 silvers and less than 27 points?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("bronze") FROM "medal_table" WHERE "silver"=9 AND "total"<27;
2-16744545-5
What is the To par of the New Zealand Player?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "country"='new zealand';
2-17162199-4
What Player had a Score of 70-71=141?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "score"='70-71=141';
2-17162199-4
What is Ernie Els' Score?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "player"='ernie els';
2-17162199-4
What was the attendance when Bournemouth was the away team?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "attendance" FROM "second_round_proper" WHERE "away_team"='bournemouth';
2-16222274-3
Who was the away team when Lincoln City was the home team?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "away_team" FROM "second_round_proper" WHERE "home_team"='lincoln city';
2-16222274-3
What was the score when Walsall was the away team?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "score" FROM "second_round_proper" WHERE "away_team"='walsall';
2-16222274-3
Which wheels were built 1920?
CREATE TABLE "locomotives" ( "builder" text, "works_no" real, "built" real, "wheels" text, "notes" text );
SELECT "wheels" FROM "locomotives" WHERE "built"=1920;
2-16823824-1
Which builder has a Built smaller than 1880?
CREATE TABLE "locomotives" ( "builder" text, "works_no" real, "built" real, "wheels" text, "notes" text );
SELECT "builder" FROM "locomotives" WHERE "built"<1880;
2-16823824-1
What is Place, when Player is "Mike Souchak"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "second_round" WHERE "player"='mike souchak';
2-17290101-4
What is Country, when Place is "T9", and when Player is "Jay Hebert"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "place"='t9' AND "player"='jay hebert';
2-17290101-4
What is Player, when Place is "T9", and when Score is "73-70=143"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "place"='t9' AND "score"='73-70=143';
2-17290101-4
What is Country, when Player is "Dow Finsterwald"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "player"='dow finsterwald';
2-17290101-4
What is Score, when Country is "United States", when Place is "T9", and when Player is "Jay Hebert"?
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 "place"='t9' AND "player"='jay hebert';
2-17290101-4
What is Score, when To Par is "+1", and when Player is "Mike Souchak"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "to_par"='+1' AND "player"='mike souchak';
2-17290101-4
What is the Score when the Home team is Chicago Black Hawks and the Record is 3-3?
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "score" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "home"='chicago black hawks' AND "record"='3-3';
2-17323640-4
Which Visitor has a Score of 0-4?
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "visitor" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "score"='0-4';
2-17323640-4
What is the Record for April 22?
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "record" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "date"='april 22';
2-17323640-4
Which Date has a Record of 3-4?
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "date" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "record"='3-4';
2-17323640-4
Which Date has a Record of 3-4?
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "date" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "record"='3-4';
2-17323640-4
What is the record for opponent Anna Barone?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='anna barone';
2-17624340-2
What is the record for the Ko (head kick) method?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='ko (head kick)';
2-17624340-2
What is the time before round 2, and the ko (knee to the body) method?
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 "method"='ko (knee to the body)';
2-17624340-2
What is the average round for the TKO (punches and elbows) method?
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 "method"='tko (punches and elbows)';
2-17624340-2
Who was the opponent in UFC 19?
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"='ufc 19';
2-1715880-3
Who was the opponent in UFC 66 who lasted for more than 1 round?
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">1 AND "event"='ufc 66';
2-1715880-3
What was the 1989 result for the tournament with 1984 of a, 1985 of a, and 1990 of a?
CREATE TABLE "grand_prix_singles_tournament_timeline" ( "tournament" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "career_sr" text );
SELECT "1989" FROM "grand_prix_singles_tournament_timeline" WHERE "1984"='a' AND "1985"='a' AND "1990"='a';
2-1717109-6
What was the 1987 result for the tournament with 1986 result of 3R and 1989 of A?
CREATE TABLE "grand_prix_singles_tournament_timeline" ( "tournament" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "career_sr" text );
SELECT "1987" FROM "grand_prix_singles_tournament_timeline" WHERE "1989"='a' AND "1986"='3r';
2-1717109-6
What is the 1989 result of the tournament that had a 1987 result of 1R?
CREATE TABLE "grand_prix_singles_tournament_timeline" ( "tournament" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "career_sr" text );
SELECT "1989" FROM "grand_prix_singles_tournament_timeline" WHERE "1987"='1r';
2-1717109-6