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 lowest Year, when Finish is "29", and when Start is less than 24?
CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text );
SELECT MIN("year") FROM "daytona_500_results" WHERE "finish"=29 AND "start"<24;
2-1777959-1
What is the highest Year, when Finish is "51", and when Start is less than 64?
CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text );
SELECT MAX("year") FROM "daytona_500_results" WHERE "finish"=51 AND "start"<64;
2-1777959-1
What is Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is "1973"?
CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text );
SELECT "manufacturer" FROM "daytona_500_results" WHERE "finish">29 AND "start"<23 AND "year"=1973;
2-1777959-1
What is the opposing team with 11 against?
CREATE TABLE "2009" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "opposing_teams" FROM "2009" WHERE "against"=11;
2-18178551-10
What is the venue where Argentina was the opposing team in a test match?
CREATE TABLE "2009" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "venue" FROM "2009" WHERE "opposing_teams"='argentina' AND "status"='test match';
2-18178551-10
What is the status of the game against France with more than 16 against?
CREATE TABLE "1972" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "status" FROM "1972" WHERE "against">16 AND "opposing_teams"='france';
2-18178924-3
On what date is there a status of Five Nations and an against of 23?
CREATE TABLE "1972" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "date" FROM "1972" WHERE "status"='five nations' AND "against"=23;
2-18178924-3
What model has a number built smaller than 6.526, and the Chassis code w109.015?
CREATE TABLE "w109" ( "model" text, "chassis_code" text, "production_time" text, "number_built" real, "engine" text );
SELECT "model" FROM "w109" WHERE "number_built"<6.526 AND "chassis_code"='w109.015';
2-1825661-2
What was the record at Tiger Stadium?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "record" FROM "schedule" WHERE "game_site"='tiger stadium';
2-17869717-1
What was the attendance on September 19, 1971, after week 1?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT AVG("attendance") FROM "schedule" WHERE "date"='september 19, 1971' AND "week">1;
2-18207158-2
How many Bronze medals did the team ranked 1 win?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "bronze" FROM "medal_table" WHERE "rank"='1';
2-17691206-3
What is the name of the person who plays the GK position and is from the Wolverhampton Wanderers?
CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text );
SELECT "name" FROM "loan_in" WHERE "position"='gk' AND "from"='wolverhampton wanderers';
2-18021129-4
What is the date for Liverpool, and player Robbie Threlfall?
CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text );
SELECT "date_from" FROM "loan_in" WHERE "from"='liverpool' AND "name"='robbie threlfall';
2-18021129-4
What is the date for Watford and player Lionel Ainsworth?
CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text );
SELECT "date_to" FROM "loan_in" WHERE "from"='watford' AND "name"='lionel ainsworth';
2-18021129-4
What is the date for the MF position and player Jennison Myrie-Williams?
CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text );
SELECT "date_from" FROM "loan_in" WHERE "position"='mf' AND "name"='jennison myrie-williams';
2-18021129-4
What is the position of the player from Leicester City?
CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text );
SELECT "position" FROM "loan_in" WHERE "from"='leicester city';
2-18021129-4
What Goals has a Team of zamora, and Average larger than 0.89?
CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT AVG("goals") FROM "top_goalkeepers" WHERE "team"='zamora' AND "average">0.89;
2-18160020-4
What is the sum of Goals win an Average larger than 1?
CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT COUNT("goals") FROM "top_goalkeepers" WHERE "average">1;
2-18160020-4
What is the smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger than 18?
CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT MIN("matches") FROM "top_goalkeepers" WHERE "goalkeeper"='josé bermúdez' AND "goals">18;
2-18160020-4
What is the total of Matches with Goals of 18, and an Average larger than 0.55?
CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT SUM("matches") FROM "top_goalkeepers" WHERE "goals"=18 AND "average">0.55;
2-18160020-4
What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa?
CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT MAX("average") FROM "top_goalkeepers" WHERE "goals"<34 AND "matches">30 AND "team"='cultural leonesa';
2-18160020-4
Which To par has a Score of 78-74-71-75=298?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );
SELECT AVG("to_par") FROM "final_leaderboard" WHERE "score"='78-74-71-75=298';
2-18007045-1
How much To par has a Country of united states, and a Money ($) of 90?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );
SELECT COUNT("to_par") FROM "final_leaderboard" WHERE "country"='united states' AND "money"=90;
2-18007045-1
What is are the highest matches with £5,000 in prize money?
CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text );
SELECT MAX("matches") FROM "calendar" WHERE "prize_money"='£5,000';
2-17972198-1
What is the prize money amount after match 1, with 102 new entries to the round?
CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text );
SELECT "prize_money" FROM "calendar" WHERE "matches">1 AND "new_entries_this_round"='102';
2-17972198-1
In what place did Darren Clarke finish?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "player"='darren clarke';
2-18097219-6
What was Ernie Els's score?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "third_round" WHERE "player"='ernie els';
2-18097219-6
In what place did Tom Lehman finish?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "player"='tom lehman';
2-18097219-6
In what place did the golfer that scored 68-70-69=207 finish?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "score"='68-70-69=207';
2-18097219-6
What were the highest laps for glenn seton gregg hansford?
CREATE TABLE "results" ( "pos" text, "class" text, "entrant" text, "drivers" text, "laps" real );
SELECT MAX("laps") FROM "results" WHERE "drivers"='glenn seton gregg hansford';
2-18169240-1
What driver had 101 laps?
CREATE TABLE "results" ( "pos" text, "class" text, "entrant" text, "drivers" text, "laps" real );
SELECT "drivers" FROM "results" WHERE "laps"=101;
2-18169240-1
Gary Barnett who has been in 0 FA Cups plays what position?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT "position" FROM "appearances_and_goals" WHERE "fa_cup_apps"='0' AND "name"='gary barnett';
2-18076734-1
What is the maximum league cup goals when there has been 0 FA cup appearances, and MF is the position, with 1 league appearance, and smaller than 0 total goals?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT MAX("league_cup_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps"='0' AND "position"='mf' AND "league_apps"='1' AND "total_goals"<0;
2-18076734-1
How many FLT appearances for the player with less than 5 total goals, and 3 FA Cup appearances, 4 league goals, and plays MF?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT "flt_apps" FROM "appearances_and_goals" WHERE "total_goals"<5 AND "fa_cup_apps"='3' AND "position"='mf' AND "league_goals"=4;
2-18076734-1
Who was the opponent when the attendance was 87,453?
CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text );
SELECT "opponentnum" FROM "schedule" WHERE "attendance"='87,453';
2-17824926-1
What was the attendance when they had a ranking of #4?
CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "rank_num"='4';
2-17824926-1
What's the average Played for a draw of 5 and more than 43 points?
CREATE TABLE "final_table" ( "pos" real, "club" text, "points" real, "played" real, "wins" real, "draw" real, "lost" real );
SELECT AVG("played") FROM "final_table" WHERE "draw"=5 AND "points">43;
2-18314162-2
What is the government salary of the Undersecretary with a Romanised name of Chen Wei-On, Kenneth?
CREATE TABLE "undersecretaries" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "foreign_nationality" text, "portfolio_attachment" text, "govt_salary" text );
SELECT "govt_salary" FROM "undersecretaries" WHERE "romanised_name"='chen wei-on, kenneth';
2-17964087-1
What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀?
CREATE TABLE "undersecretaries" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "foreign_nationality" text, "portfolio_attachment" text, "govt_salary" text );
SELECT "portfolio_attachment" FROM "undersecretaries" WHERE "age_at_appointment"=48 AND "chinese_name"='梁鳳儀';
2-17964087-1
What is the Romanised name of the Undersecretary with an education portfolio attachment?
CREATE TABLE "undersecretaries" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "foreign_nationality" text, "portfolio_attachment" text, "govt_salary" text );
SELECT "romanised_name" FROM "undersecretaries" WHERE "portfolio_attachment"='education';
2-17964087-1
What is the best top 10 when there are fewer than 0 wins?
CREATE TABLE "lpga_tour_career_summary" ( "year" text, "tournaments_played" real, "cuts_made" real, "wins" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text, "scoring_average" text, "scoring_rank" text );
SELECT MAX("top_10s") FROM "lpga_tour_career_summary" WHERE "wins"<0;
2-18198579-6
Where did naylor move from?
CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );
SELECT "moving_from" FROM "in" WHERE "name"='naylor';
2-17634290-7
What type ends in 2011, has a free transfer fee, and is sourced in leeds united?
CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );
SELECT "type" FROM "in" WHERE "ends"='2011' AND "transfer_fee"='free' AND "source"='leeds united';
2-17634290-7
What is the type of sco country?
CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );
SELECT "type" FROM "in" WHERE "country"='sco';
2-17634290-7
What is the type that ends in 2009?
CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );
SELECT "type" FROM "in" WHERE "ends"='2009';
2-17634290-7
What is the transfer fee of assoumani, who has a summer transfer window?
CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );
SELECT "transfer_fee" FROM "in" WHERE "transfer_window"='summer' AND "name"='assoumani';
2-17634290-7
What is the ends with a free transfer fee and was moved from middlesbrough?
CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );
SELECT "ends" FROM "in" WHERE "transfer_fee"='free' AND "moving_from"='middlesbrough';
2-17634290-7
Which Week has Attendance of 51,558?
CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MIN("week") FROM "regular_season" WHERE "attendance"='51,558';
2-18207290-16
Which Attendance has a Result of w 24-14, and a Week smaller than 7?
CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT SUM("attendance") FROM "regular_season" WHERE "result"='w 24-14' AND "week"<7;
2-18207290-16
Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12?
CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MAX("attendance") FROM "regular_season" WHERE "opponent"='at los angeles rams' AND "week">12;
2-18207290-16
Which method has a record of 4-0?
CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text );
SELECT "method" FROM "kickboxing_record" WHERE "record"='4-0';
2-17998777-2
What is the record when the method is decision and the location is Martigues, France?
CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text );
SELECT "record" FROM "kickboxing_record" WHERE "method"='decision' AND "location"='martigues, france';
2-17998777-2
Which location has a method of decision and Nikos Tsoukalas for an opponent?
CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text );
SELECT "location" FROM "kickboxing_record" WHERE "method"='decision' AND "opponent"='nikos tsoukalas';
2-17998777-2
What is the method when the location is Auckland, New Zealand, Darren Berry as the opponent, and resulted in a win?
CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text );
SELECT "method" FROM "kickboxing_record" WHERE "location"='auckland, new zealand' AND "result"='win' AND "opponent"='darren berry';
2-17998777-2
What is the location when the record is 9-7?
CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text );
SELECT "location" FROM "kickboxing_record" WHERE "record"='9-7';
2-17998777-2
What is the location when KO is the method, the result is a win, and the record is 2-0?
CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text );
SELECT "location" FROM "kickboxing_record" WHERE "method"='ko' AND "result"='win' AND "record"='2-0';
2-17998777-2
What 1:00 pm has a 6:30 pm of local programs, and a 7:30 am of animaniacs?
CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "1_00_pm" FROM "fall_1998" WHERE "6_30_pm"='local programs' AND "7_30_am"='animaniacs';
2-17871255-1
What 8:00 am has a 3:00 pm of space goofs (mon) spider-man (tue-fri)?
CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "8_00_am" FROM "fall_1998" WHERE "3_00_pm"='space goofs (mon) spider-man (tue-fri)';
2-17871255-1
What 1:00 pm has an 11:00 am of the view?
CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "1_00_pm" FROM "fall_1998" WHERE "11_00_am"='the view';
2-17871255-1
What 1:30 pm has a 3:00 pm of local programs?
CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "1_30_pm" FROM "fall_1998" WHERE "3_00_pm"='local programs';
2-17871255-1
What 12:30 pm has an 8:00 am of the today show with katie couric & matt lauer?
CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "12_30_pm" FROM "fall_1998" WHERE "8_00_am"='the today show with katie couric & matt lauer';
2-17871255-1
What 1:00 pm has a 4:30 pm of local programs, and a 7:30 am of the today show with katie couric & matt lauer?
CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "1_00_pm" FROM "fall_1998" WHERE "4_30_pm"='local programs' AND "7_30_am"='the today show with katie couric & matt lauer';
2-17871255-1
What are the total deaths from the Battle of Tel Hai prior to Israel's independence?
CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualties" text );
SELECT "total_deaths" FROM "arab_violence" WHERE "conflicts_prior_to_israel_s_independence"='battle of tel hai';
2-17796039-1
What are the total casualties with 1,200+ military and/or civilian wounded?
CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualties" text );
SELECT "total_casualties" FROM "arab_violence" WHERE "military_and_or_civilian_wounded"='1,200+';
2-17796039-1
How many military deaths were there when there were 1,615 total casualties?
CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualties" text );
SELECT "military_deaths" FROM "arab_violence" WHERE "total_casualties"='1,615';
2-17796039-1
How many military deaths were there when there were 1,200+ military and/or civilian wounded?
CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualties" text );
SELECT "military_deaths" FROM "arab_violence" WHERE "military_and_or_civilian_wounded"='1,200+';
2-17796039-1
How many deaths were there when the total casualties were 6?
CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualties" text );
SELECT "total_deaths" FROM "arab_violence" WHERE "total_casualties"='6';
2-17796039-1
Which country scored 70-68-71-71=280?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "country" FROM "final_leaderboard" WHERE "score"='70-68-71-71=280';
2-18165870-3
What champions have 1 (2009) as the semi-finalists?
CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text );
SELECT "champions" FROM "performance_by_team" WHERE "semi_finalists"='1 (2009)';
2-17753051-1
What fourth-place has 2 (1999, 2005) as the runner(s)-up?
CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text );
SELECT "fourth_place" FROM "performance_by_team" WHERE "runners_up"='2 (1999, 2005)';
2-17753051-1
What semi-finalists has 2 (1993, 2003) as the fourth-place?
CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text );
SELECT "semi_finalists" FROM "performance_by_team" WHERE "fourth_place"='2 (1993, 2003)';
2-17753051-1
What runner(s)-up has 1 (2013) as the champions?
CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text );
SELECT "runners_up" FROM "performance_by_team" WHERE "champions"='1 (2013)';
2-17753051-1
What was the day of vacancy for vitória de guimarães?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text );
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='vitória de guimarães';
2-17933600-2
Who was the outgoing manager when the incoming manager was augusto inácio?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text );
SELECT "outgoing_manage" FROM "managerial_changes" WHERE "incoming_manager"='augusto inácio';
2-17933600-2
How many matches did Atlético Ciudad have with an average higher than 0.61?
CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT COUNT("matches") FROM "top_goalkeepers" WHERE "team"='atlético ciudad' AND "average">0.61;
2-18160020-8
Who is the goalkeeper with fewer than 24 goals?
CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT "goalkeeper" FROM "top_goalkeepers" WHERE "goals"<24;
2-18160020-8
What was the highest amount of losses when there were 45 goals and the play was smaller than 38?
CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MAX("losses") FROM "relegation_playoff" WHERE "goals_for"=45 AND "played"<38;
2-17838016-2
What were the lowest goals when there were mor than 15 wins and the goal difference was larger than 35?
CREATE TABLE "relegation_playoff" ( "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_for") FROM "relegation_playoff" WHERE "wins">15 AND "goal_difference">35;
2-17838016-2
What were the highest losses when the goal was smaller than 45 and the points was smaller than 18?
CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MAX("losses") FROM "relegation_playoff" WHERE "goals_for"<45 AND "points"<18;
2-17838016-2
What were the highest goals against when the position was larger than 19 and the goals smaller than 36?
CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MAX("goals_against") FROM "relegation_playoff" WHERE "position">19 AND "goals_for"<36;
2-17838016-2
What is the to par for the player with fewer than 148 total points?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT SUM("to_par") FROM "missed_the_cut" WHERE "total"<148;
2-18026889-3
What is 2:00 pm, when 3:30 pm is "Animaniacs (Mon-Thu) Pinky and The Brain (Fri)"?
CREATE TABLE "spring_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "2_00_pm" FROM "spring_1998" WHERE "3_30_pm"='animaniacs (mon-thu) pinky and the brain (fri)';
2-17871161-3
What is 7:30 am, when 11:00 am is "The View"?
CREATE TABLE "spring_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "7_30_am" FROM "spring_1998" WHERE "11_00_am"='the view';
2-17871161-3
What is 3:00 pm, when 1:00 pm is "Days of Our Lives"?
CREATE TABLE "spring_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "3_00_pm" FROM "spring_1998" WHERE "1_00_pm"='days of our lives';
2-17871161-3
What is Noon, when 3:00 pm is "General Hospital"?
CREATE TABLE "spring_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "noon" FROM "spring_1998" WHERE "3_00_pm"='general hospital';
2-17871161-3
What is 9:00 am, when 6:30 pm is "Local Programs"?
CREATE TABLE "spring_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "9_00_am" FROM "spring_1998" WHERE "6_30_pm"='local programs';
2-17871161-3
What school year is vaucluse public school?
CREATE TABLE "v" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text );
SELECT "years" FROM "v" WHERE "school"='vaucluse public school';
2-18155481-6
What are the websites of schools that were founded in 1872?
CREATE TABLE "v" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text );
SELECT "website" FROM "v" WHERE "founded"=1872;
2-18155481-6
On average, when were vineyard schools founded?
CREATE TABLE "v" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text );
SELECT AVG("founded") FROM "v" WHERE "suburb_town"='vineyard';
2-18155481-6
What was the surface later than 1979, for the Melbourne Indoor, Australia, and the score was 2–6, 6–2, 6–2?
CREATE TABLE "singles_55_25_30" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "singles_55_25_30" WHERE "date">1979 AND "championship"='melbourne indoor, australia' AND "score"='2–6, 6–2, 6–2';
2-1834704-3
What is the earliest date when the championship was Monterrey WCT, Mexico?
CREATE TABLE "singles_55_25_30" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT MIN("date") FROM "singles_55_25_30" WHERE "championship"='monterrey wct, mexico';
2-1834704-3
What is the score when the outcome was runner-up, earlier than 1975?
CREATE TABLE "singles_55_25_30" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "singles_55_25_30" WHERE "outcome"='runner-up' AND "date"<1975;
2-1834704-3
How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins?
CREATE TABLE "2011_ladder" ( "geelong_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT COUNT("losses") FROM "2011_ladder" WHERE "geelong_fl"='newtown & chilwell' AND "wins">11;
2-17982112-8
When were the shares 39.1%?
CREATE TABLE "ratings" ( "show" text, "date" text, "official_ratings_millions" real, "weekly_rank" text, "share" text );
SELECT "date" FROM "ratings" WHERE "share"='39.1%';
2-17655688-12
Which show aired on 19 april?
CREATE TABLE "ratings" ( "show" text, "date" text, "official_ratings_millions" real, "weekly_rank" text, "share" text );
SELECT "show" FROM "ratings" WHERE "date"='19 april';
2-17655688-12
What was the original title for the film used in nomination of street days?
CREATE TABLE "submissions" ( "year_e_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "main_language_s" text, "result" text );
SELECT "original_title" FROM "submissions" WHERE "film_title_used_in_nomination"='street days';
2-18069789-1
What was the original title for the film used in nomination of keep smiling?
CREATE TABLE "submissions" ( "year_e_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "main_language_s" text, "result" text );
SELECT "original_title" FROM "submissions" WHERE "film_title_used_in_nomination"='keep smiling';
2-18069789-1
How much were tickets for the show in Hartford, Connecticut?
CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text );
SELECT "ticket_price_s" FROM "not_all_data_are_listed_only_select_date" WHERE "city_state"='hartford, connecticut';
2-18277458-2
How many tickets were sold and how many were available for the shows that grossed $348,674?
CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text );
SELECT "ticket_sold_available" FROM "not_all_data_are_listed_only_select_date" WHERE "ticket_grossing"='$348,674';
2-18277458-2
How much were tickets for the show in Indianapolis, Indiana?
CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text );
SELECT "ticket_price_s" FROM "not_all_data_are_listed_only_select_date" WHERE "city_state"='indianapolis, indiana';
2-18277458-2