question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is Score, when Leading Scorer is Tyrone Hill , 20 Points?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text );
SELECT "score" FROM "january" WHERE "leading_scorer"='tyrone hill , 20 points';
2-16188254-5
What is Home, when Score is 103-93?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text );
SELECT "home" FROM "january" WHERE "score"='103-93';
2-16188254-5
What is Attendance, when Home is Cleveland, and when Date is January 30?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text );
SELECT "attendance" FROM "january" WHERE "home"='cleveland' AND "date"='january 30';
2-16188254-5
What is Leading Scorer, when Attendance is Gund Arena 20,562, and when Record is 20-10?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text );
SELECT "leading_scorer" FROM "january" WHERE "attendance"='gund arena 20,562' AND "record"='20-10';
2-16188254-5
What is Score, when Date is January 12?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text );
SELECT "score" FROM "january" WHERE "date"='january 12';
2-16188254-5
What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text );
SELECT "score" FROM "january" WHERE "attendance"='gund arena 20,562' AND "date"='january 27';
2-16188254-5
What is the sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT SUM("top_10") FROM "summary" WHERE "cuts_made"<10 AND "top_5"<0;
2-1615980-8
What is the lowest Top-25, when Events is 10, and when Wins is greater than 0?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MIN("top_25") FROM "summary" WHERE "events"=10 AND "wins">0;
2-1615980-8
What is the lowest Top-5, when Top-25 is less than 4, and when Cuts made is less than 7?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MIN("top_5") FROM "summary" WHERE "top_25"<4 AND "cuts_made"<7;
2-1615980-8
What is the Height of Junior Meghan Austin?
CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text );
SELECT "height" FROM "roster" WHERE "year"='junior' AND "name"='meghan austin';
2-16182461-1
What is Martina Wood's Position?
CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text );
SELECT "position" FROM "roster" WHERE "name"='martina wood';
2-16182461-1
What is the Name of the Player from Charlotte, NC?
CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text );
SELECT "name" FROM "roster" WHERE "home_town"='charlotte, nc';
2-16182461-1
What is 6-2 Martina Wood's Position?
CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text );
SELECT "position" FROM "roster" WHERE "height"='6-2' AND "name"='martina wood';
2-16182461-1
What is the Position of the Player from Temple Hills, MD?
CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text );
SELECT "position" FROM "roster" WHERE "home_town"='temple hills, md';
2-16182461-1
What is the Name of the Junior from Fayetteville, NC?
CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text );
SELECT "name" FROM "roster" WHERE "year"='junior' AND "home_town"='fayetteville, nc';
2-16182461-1
What rank has jo angel (wa) as the player?
CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text );
SELECT "rank" FROM "most_career_wickets" WHERE "player"='jo angel (wa)';
2-1585656-18
What average has 1 as rhe rank?
CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text );
SELECT "average" FROM "most_career_wickets" WHERE "rank"='1';
2-1585656-18
What rank has andy bichel (qld) as the player?
CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text );
SELECT "rank" FROM "most_career_wickets" WHERE "player"='andy bichel (qld)';
2-1585656-18
What is the average that has 2 for the rank?
CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text );
SELECT "average" FROM "most_career_wickets" WHERE "rank"='2';
2-1585656-18
What playee has 24.21 as the average?
CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text );
SELECT "player" FROM "most_career_wickets" WHERE "average"='24.21';
2-1585656-18
What is the average that has 441 as wicket?
CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text );
SELECT "average" FROM "most_career_wickets" WHERE "s_wicket"='441';
2-1585656-18
What was the year Elected of Republican Incumbent Dave Reichert?
CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text );
SELECT "elected" FROM "races_and_results" WHERE "party"='republican' AND "incumbent"='dave reichert';
2-16185956-1
What were the Results in the Washington 2 District?
CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text );
SELECT "results" FROM "races_and_results" WHERE "district"='washington 2';
2-16185956-1
What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott?
CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text );
SELECT "2008_candidates" FROM "races_and_results" WHERE "elected"<1994 AND "incumbent"='jim mcdermott';
2-16185956-1
Who is the Incumbent with Results of 68% 32%?
CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text );
SELECT "incumbent" FROM "races_and_results" WHERE "results"='68% 32%';
2-16185956-1
What District had Republican Incumbent Cathy McMorris?
CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text );
SELECT "district" FROM "races_and_results" WHERE "party"='republican' AND "incumbent"='cathy mcmorris';
2-16185956-1
What was Italy's highest total when there were less than 4 bronze and 1 gold?
CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("total") FROM "medals_table" WHERE "bronze"<4 AND "gold"=1 AND "nation"='italy';
2-15826103-2
How many totals had more than 4 bronze?
CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("total") FROM "medals_table" WHERE "bronze">4;
2-15826103-2
What was Austria's lowest total when the gold was more than 3?
CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("total") FROM "medals_table" WHERE "nation"='austria' AND "gold">3;
2-15826103-2
What are the years won when the to par is +5?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "year_s_won" FROM "made_the_cut" WHERE "to_par"='+5';
2-16147528-2
What is the average total for Tiger Woods?
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 "player"='tiger woods';
2-16147528-2
Which country had a total of 295?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "country" FROM "made_the_cut" WHERE "total"=295;
2-16147528-2
What is the finish when the to par is +18?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "finish" FROM "made_the_cut" WHERE "to_par"='+18';
2-16147528-2
How many total No Results occured when the team had less than 46 wins and more than 16 matches?
CREATE TABLE "summary_of_results" ( "matches" real, "wins" real, "losses" real, "no_result" real, "success_rate" text );
SELECT SUM("no_result") FROM "summary_of_results" WHERE "matches">16 AND "wins"<46;
2-15868127-4
When the team had more than 46 wins, what were the average losses?
CREATE TABLE "summary_of_results" ( "matches" real, "wins" real, "losses" real, "no_result" real, "success_rate" text );
SELECT AVG("losses") FROM "summary_of_results" WHERE "wins">46;
2-15868127-4
How many total No Results are recorded for less than 6 wins?
CREATE TABLE "summary_of_results" ( "matches" real, "wins" real, "losses" real, "no_result" real, "success_rate" text );
SELECT COUNT("no_result") FROM "summary_of_results" WHERE "wins"<6;
2-15868127-4
What Interview subject was on a Date that is 11-92?
CREATE TABLE "1992" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text );
SELECT "interview_subject" FROM "1992" WHERE "date"='11-92';
2-1566850-3
What is the lowest game number with Aris Thessaloniki with points smaller than 120?
CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real );
SELECT MIN("games") FROM "points" WHERE "team"='aris thessaloniki' AND "points"<120;
2-16050349-4
What is the game average that has a rank larger than 2 with team Olympiacos and points larger than 113?
CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real );
SELECT AVG("games") FROM "points" WHERE "rank">2 AND "team"='olympiacos' AND "points">113;
2-16050349-4
Which result was there when the opponents were the Buffalo Bills?
CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "result" FROM "season_schedule" WHERE "opponent"='buffalo bills';
2-15412835-1
What was the Purse ($) total for Iowa?
CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text );
SELECT COUNT("purse") FROM "tournament_results" WHERE "location"='iowa';
2-15346009-1
When did the Score of 195 (-21) happen?
CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text );
SELECT "date" FROM "tournament_results" WHERE "score"='195 (-21)';
2-15346009-1
When did Scott Hoch (2) win?
CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text );
SELECT "date" FROM "tournament_results" WHERE "winner"='scott hoch (2)';
2-15346009-1
What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth?
CREATE TABLE "2000_01_to_date" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text );
SELECT "second" FROM "2000_01_to_date" WHERE "fifth"='western australia' AND "sixth"='south australia' AND "fourth"='tasmania';
2-1592290-6
What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?
CREATE TABLE "2000_01_to_date" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text );
SELECT "sixth" FROM "2000_01_to_date" WHERE "fourth"='western australia' AND "first"='tasmania';
2-1592290-6
What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth?
CREATE TABLE "2000_01_to_date" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text );
SELECT "sixth" FROM "2000_01_to_date" WHERE "second"='tasmania' AND "fourth"='western australia';
2-1592290-6
What team placed fifth during the season where Victoria placed second, Tasmania placed first, and South Australia placed sixth?
CREATE TABLE "2000_01_to_date" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text );
SELECT "fifth" FROM "2000_01_to_date" WHERE "second"='victoria' AND "first"='tasmania' AND "sixth"='south australia';
2-1592290-6
What is the smallest number of losses for a position greater than 2 with 4 points and more than 2 draws?
CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT MIN("lost") FROM "campeonato_paulista" WHERE "position">2 AND "points"=4 AND "drawn">2;
2-15419242-1
How many points occurred with a difference of 2 for position less than 4?
CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT COUNT("points") FROM "campeonato_paulista" WHERE "difference"='2' AND "position"<4;
2-15419242-1
What is the highest number of points for a position less than 3 and less than 1 loss?
CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT MAX("points") FROM "campeonato_paulista" WHERE "position"<3 AND "lost"<1;
2-15419242-1
Which date's attendance was more than 39,058 with an opponent of Motherwell?
CREATE TABLE "premier_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT "date" FROM "premier_division" WHERE "attendance">'39,058' AND "opponent"='motherwell';
2-15588239-2
In the round that had a 2nd leg score of 0-2, what did they score for the 1st leg?
CREATE TABLE "preliminary_round_ii" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "preliminary_round_ii" WHERE "2nd_leg"='0-2';
2-15822113-2
When Estudiantes was team #2, what was their agg. value?
CREATE TABLE "preliminary_round_ii" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "agg" FROM "preliminary_round_ii" WHERE "team_num2"='estudiantes';
2-15822113-2
Who played against TSV bayer 04 leverkusen when they were team #1?
CREATE TABLE "preliminary_round_ii" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "preliminary_round_ii" WHERE "team_num1"='tsv bayer 04 leverkusen';
2-15822113-2
Who played against Hapoel tel aviv when they were team #1?
CREATE TABLE "preliminary_round_ii" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_num2" FROM "preliminary_round_ii" WHERE "team_num1"='hapoel tel aviv';
2-15822113-2
what is the division in the western conference that finished 2nd in their division under rick adelman?
CREATE TABLE "seasons" ( "season" text, "team" text, "conf" text, "conf_finish" text, "div" text, "div_finish" text, "awards" text, "head_coach" text );
SELECT "div" FROM "seasons" WHERE "conf"='western' AND "div_finish"='2nd' AND "head_coach"='rick adelman';
2-15679690-3
What is the 2013 BAFA adult flag division in Aylesbury?
CREATE TABLE "bafa_national_leagues" ( "team" text, "location" text, "years_in_senior_adult_league" text, "2013_bafa_adult_division" text, "2013_bafa_adult_flag_division" text, "2013_bafa_junior_division" text, "other_teams" text );
SELECT "2013_bafa_adult_flag_division" FROM "bafa_national_leagues" WHERE "location"='aylesbury';
2-16135522-3
What is the 2013 BAFA junior division with a 2013 BAFA adult division in national central in the Birkenhead location?
CREATE TABLE "bafa_national_leagues" ( "team" text, "location" text, "years_in_senior_adult_league" text, "2013_bafa_adult_division" text, "2013_bafa_adult_flag_division" text, "2013_bafa_junior_division" text, "other_teams" text );
SELECT "2013_bafa_junior_division" FROM "bafa_national_leagues" WHERE "2013_bafa_adult_division"='national central' AND "location"='birkenhead';
2-16135522-3
Records from Kontor Records from the catalog of Kontor446 was released in what format?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "format" FROM "release_history" WHERE "label"='kontor records' AND "catalog"='kontor446';
2-15471981-2
What date was the release that was Wrongun as the label?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "label"='wrongun';
2-15471981-2
Catalog Nebdj068 was released when?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "catalog"='nebdj068';
2-15471981-2
In what format was the release from the Nebt068 catalog on April 11, 2005 in?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "format" FROM "release_history" WHERE "date"='april 11, 2005' AND "catalog"='nebt068';
2-15471981-2
What region has the date of 2005 and Playground Music Scandinavia as a label?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "region" FROM "release_history" WHERE "date"='2005' AND "label"='playground music scandinavia';
2-15471981-2
What is the Result with a Venue that is filbert street?
CREATE TABLE "first_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT "result" FROM "first_division" WHERE "venue"='filbert street';
2-15745614-1
When did the Texans play BYE?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "opponent"='bye';
2-15405000-2
Who did the Texans play when there were 70,724 people in attendance?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "attendance"='70,724';
2-15405000-2
Who has the status of jr synonym of protosialis casca?
CREATE TABLE "new_taxa" ( "name" text, "novelty" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text );
SELECT "novelty" FROM "new_taxa" WHERE "status"='jr synonym of protosialis casca';
2-15577886-3
Which writer is named mongolbittacus?
CREATE TABLE "new_taxa" ( "name" text, "novelty" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text );
SELECT "authors" FROM "new_taxa" WHERE "name"='mongolbittacus';
2-15577886-3
What is the score of the game that had 359 people in attendance?
CREATE TABLE "second_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "score" FROM "second_round" WHERE "attendance"='359';
2-15994215-3
What is the home team of the game that ended with a score of 0-1?
CREATE TABLE "second_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "home_team" FROM "second_round" WHERE "score"='0-1';
2-15994215-3
How many people attended Match No. 31?
CREATE TABLE "second_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "attendance" FROM "second_round" WHERE "match_no"='31';
2-15994215-3
Who is the Home Team for Match No. 23?
CREATE TABLE "second_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "home_team" FROM "second_round" WHERE "match_no"='23';
2-15994215-3
What is the score of the game with 1,125 people in attendance?
CREATE TABLE "second_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "score" FROM "second_round" WHERE "attendance"='1,125';
2-15994215-3
What is the Country with a Launched that is april 3, 1990?
CREATE TABLE "tv_channels" ( "channel" text, "country" text, "type" text, "launched" text, "description" text );
SELECT "country" FROM "tv_channels" WHERE "launched"='april 3, 1990';
2-1579765-1
What is the Launched from a Country that is spain?
CREATE TABLE "tv_channels" ( "channel" text, "country" text, "type" text, "launched" text, "description" text );
SELECT "launched" FROM "tv_channels" WHERE "country"='spain';
2-1579765-1
What is the lowest order with a Minister that is joe hockey?
CREATE TABLE "list_of_ministers_for_small_business" ( "order" real, "minister" text, "party_affiliation" text, "prime_minister" text, "term_start" text, "term_end" text, "term_in_office" text );
SELECT MIN("order") FROM "list_of_ministers_for_small_business" WHERE "minister"='joe hockey';
2-15424583-1
Which Years in Orlando has a Nationality of united states, and a Player of doug overton?
CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );
SELECT "years_in_orlando" FROM "o" WHERE "nationality"='united states' AND "player"='doug overton';
2-15621965-14
Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham?
CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );
SELECT "years_in_orlando" FROM "o" WHERE "nationality"='united states' AND "position"='center' AND "player"='jawann oldham';
2-15621965-14
Which Years in Orlando has a Player of bo outlaw?
CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );
SELECT "years_in_orlando" FROM "o" WHERE "player"='bo outlaw';
2-15621965-14
Which Years in Orlando has a School/Club Team of seattle?
CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );
SELECT "years_in_orlando" FROM "o" WHERE "school_club_team"='seattle';
2-15621965-14
Which Nationality has a Position of center, and a Years in Orlando of 2010–2012?
CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );
SELECT "nationality" FROM "o" WHERE "position"='center' AND "years_in_orlando"='2010–2012';
2-15621965-14
Which Nationality has a School/Club Team of seattle?
CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );
SELECT "nationality" FROM "o" WHERE "school_club_team"='seattle';
2-15621965-14
When did they play at Candlestick Park?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real );
SELECT "date" FROM "schedule" WHERE "game_site"='candlestick park';
2-16028499-2
What is the average number of top-10s for events under 57 and 0 top-5s?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT AVG("top_10") FROM "summary" WHERE "events"<57 AND "top_5"<0;
2-1569625-4
What is the average number of top-10s for events with more than 12 cuts made and 0 wins?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT AVG("top_10") FROM "summary" WHERE "cuts_made">12 AND "wins"<0;
2-1569625-4
What is the average number of top-25s for events with less than 2 top-10s?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT AVG("top_25") FROM "summary" WHERE "top_10"<2;
2-1569625-4
Which Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3?
CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" text, "works_number" text );
SELECT "works_number" FROM "locomotives" WHERE "builder"='canadian engine & machinery company' AND "number"<3;
2-15339242-1
Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871?
CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" text, "works_number" text );
SELECT "works_number" FROM "locomotives" WHERE "builder"='avonside engine company' AND "type"='4-6-0' AND "number"<12 AND "date"='december 1871';
2-15339242-1
Which Type has a Builder of avonside engine company, and a Number of 9?
CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" text, "works_number" text );
SELECT "type" FROM "locomotives" WHERE "builder"='avonside engine company' AND "number"=9;
2-15339242-1
Which Date has a Type of 4-6-0, and a Number larger than 11?
CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" text, "works_number" text );
SELECT "date" FROM "locomotives" WHERE "type"='4-6-0' AND "number">11;
2-15339242-1
Which Builder has a Date of early 1871?
CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" text, "works_number" text );
SELECT "builder" FROM "locomotives" WHERE "date"='early 1871';
2-15339242-1
What ist he Home with a Score that is 42-64?
CREATE TABLE "round_four" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );
SELECT "home" FROM "round_four" WHERE "score"='42-64';
2-15764352-4
What is the Home with a Time that is 12:00?
CREATE TABLE "round_four" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );
SELECT "home" FROM "round_four" WHERE "time"='12:00';
2-15764352-4
What is the Ground with a Score that is 49-80?
CREATE TABLE "round_four" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );
SELECT "ground" FROM "round_four" WHERE "score"='49-80';
2-15764352-4
What's the smallest March when the record is 22-12-6?
CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text );
SELECT MIN("march") FROM "schedule_and_results" WHERE "record"='22-12-6';
2-15950317-6
Which record's march was 26?
CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text );
SELECT "record" FROM "schedule_and_results" WHERE "march"=26;
2-15950317-6
What is the Lost with a Losing Bonus that is 4?
CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );
SELECT "lost" FROM "league_table" WHERE "losing_bonus"='4';
2-15467476-3
What is the Points with a Tries For that is 21?
CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );
SELECT "points" FROM "league_table" WHERE "tries_for"='21';
2-15467476-3
What is the Lost with a Try Bonus that is try bonus?
CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );
SELECT "lost" FROM "league_table" WHERE "try_bonus"='try bonus';
2-15467476-3
What is the highest Total for the rank 12, and gold less than 0?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("total") FROM "medal_table" WHERE "rank"='12' AND "gold"<0;
2-16001962-1