question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What were the notes in Toronto, Canada?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );
SELECT "notes" FROM "achievements" WHERE "venue"='toronto, canada';
2-13721766-1
Name the most points for class of 125cc and team of mv agusta with year more than 1957
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT MAX("points") FROM "motorcycle_grand_prix_results" WHERE "class"='125cc' AND "team"='mv agusta' AND "year">1957;
2-15194757-2
Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy?
CREATE TABLE "titles_by_beyond_software" ( "title" text, "genre" text, "c_64" text, "zx_spectrum" text, "others" text, "year" real, "format" text );
SELECT "zx_spectrum" FROM "titles_by_beyond_software" WHERE "year">1984 AND "genre"='arcade/strategy';
2-15168206-1
How many years have a Title of kriegspiel?
CREATE TABLE "titles_by_beyond_software" ( "title" text, "genre" text, "c_64" text, "zx_spectrum" text, "others" text, "year" real, "format" text );
SELECT COUNT("year") FROM "titles_by_beyond_software" WHERE "title"='kriegspiel';
2-15168206-1
Which ZX Spectrum has a C=64 of c64, and a Title of ankh?
CREATE TABLE "titles_by_beyond_software" ( "title" text, "genre" text, "c_64" text, "zx_spectrum" text, "others" text, "year" real, "format" text );
SELECT "zx_spectrum" FROM "titles_by_beyond_software" WHERE "c_64"='c64' AND "title"='ankh';
2-15168206-1
Which Title has Others of amstrad cpc, and a Genre of arcade?
CREATE TABLE "titles_by_beyond_software" ( "title" text, "genre" text, "c_64" text, "zx_spectrum" text, "others" text, "year" real, "format" text );
SELECT "title" FROM "titles_by_beyond_software" WHERE "others"='amstrad cpc' AND "genre"='arcade';
2-15168206-1
What was the result when the attendance was 12,000?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" text, "record" text );
SELECT "result" FROM "schedule" WHERE "attendance"='12,000';
2-15272203-1
What was the attendance for weeks prior to 5 when there was no game scheduled?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" text, "record" text );
SELECT "attendance" FROM "schedule" WHERE "week"<5 AND "date"='no game scheduled';
2-15272203-1
What was the attendance number for the venue of Lakeside Park?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" text, "record" text );
SELECT "attendance" FROM "schedule" WHERE "venue"='lakeside park';
2-15272203-1
What is the largest week number for the venue of League Park for the date of November 25, 1920?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" text, "record" text );
SELECT MAX("week") FROM "schedule" WHERE "venue"='league park' AND "date"='november 25, 1920';
2-15272203-1
What is Michael's surname?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "surname" FROM "player_roster" WHERE "first"='michael';
2-15273269-2
Which First has Bats of r, and Throws of l, and a DOB of 12 october 1977?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "first" FROM "player_roster" WHERE "bats"='r' AND "throws"='l' AND "d_o_b"='12 october 1977';
2-15273269-2
When was Maat born?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "d_o_b" FROM "player_roster" WHERE "surname"='maat';
2-15273269-2
How many bats does Todd have?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "bats" FROM "player_roster" WHERE "first"='todd';
2-15273269-2
Which Position has a DOB of 13 may 1987?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "position" FROM "player_roster" WHERE "d_o_b"='13 may 1987';
2-15273269-2
Which Bats have Throws of r, and a DOB of 22 may 1973?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "bats" FROM "player_roster" WHERE "throws"='r' AND "d_o_b"='22 may 1973';
2-15273269-2
Which Croatia has a Friendly of world cup 2006 qualifier, and a 149 of 152?
CREATE TABLE "2005" ( "149" real, "9_february" text, "friendly" text, "israel" text, "croatia" text );
SELECT "croatia" FROM "2005" WHERE "friendly"='world cup 2006 qualifier' AND "149"=152;
2-14282690-16
For which production company did Sam Mccarthy produce?
CREATE TABLE "2006" ( "rank" text, "film" text, "director_s" text, "producer_s" text, "writer_s" text, "production_company" text );
SELECT "production_company" FROM "2006" WHERE "producer_s"='sam mccarthy';
2-13755721-2
Who was the director that worked with Dana Dorian as the writer?
CREATE TABLE "2006" ( "rank" text, "film" text, "director_s" text, "producer_s" text, "writer_s" text, "production_company" text );
SELECT "director_s" FROM "2006" WHERE "writer_s"='dana dorian';
2-13755721-2
Which film, directed by Dana Dorian, was nominated?
CREATE TABLE "2006" ( "rank" text, "film" text, "director_s" text, "producer_s" text, "writer_s" text, "production_company" text );
SELECT "film" FROM "2006" WHERE "rank"='nominated' AND "director_s"='dana dorian';
2-13755721-2
What is the sum for December against the vancouver canucks earlier than game 33?
CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text );
SELECT SUM("december") FROM "schedule_and_results" WHERE "opponent"='vancouver canucks' AND "game"<33;
2-14383093-5
What is the sum for December when the record was 22-12-5?
CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text );
SELECT SUM("december") FROM "schedule_and_results" WHERE "record"='22-12-5';
2-14383093-5
When is the earliest year associated with team norton and 0 wins?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "team"='norton' AND "wins"<0;
2-14921394-2
What is the year that there were 0 wins, team AJS, and under 12 points?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT COUNT("year") FROM "motorcycle_grand_prix_results" WHERE "wins"=0 AND "team"='ajs' AND "points"<12;
2-14921394-2
What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?
CREATE TABLE "awards_and_nominations" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text );
SELECT AVG("year") FROM "awards_and_nominations" WHERE "award_ceremony"='drama desk award' AND "category"='outstanding featured actress in a musical';
2-14779860-1
What is the average Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751?
CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "loss" real, "long" real, "avg_g" text );
SELECT AVG("loss") FROM "rushing" WHERE "long">12 AND "name"='opponents' AND "gain">1751;
2-14749376-17
Who was the winner/2nd place finisher in the Caulfield Guineas?
CREATE TABLE "2001_02_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "time" text, "jockey" text, "winner_2nd" text );
SELECT "winner_2nd" FROM "2001_02_season_as_a_three_year_old" WHERE "race"='caulfield guineas';
2-1360997-2
Which jockey had a group of G3?
CREATE TABLE "2001_02_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "time" text, "jockey" text, "winner_2nd" text );
SELECT "jockey" FROM "2001_02_season_as_a_three_year_old" WHERE "group"='g3';
2-1360997-2
What was the time for the G2 group at the Hobartville Stakes?
CREATE TABLE "2001_02_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "time" text, "jockey" text, "winner_2nd" text );
SELECT "time" FROM "2001_02_season_as_a_three_year_old" WHERE "group"='g2' AND "race"='hobartville stakes';
2-1360997-2
Which airport has perth as the city?
CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text );
SELECT "airport" FROM "destinations" WHERE "city"='perth';
2-14030338-2
Which city has tasmania as the state/territory and a ICAO of ymhb?
CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text );
SELECT "city" FROM "destinations" WHERE "state_territory"='tasmania' AND "icao"='ymhb';
2-14030338-2
Which airport has an ICAO of ybcg?
CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text );
SELECT "airport" FROM "destinations" WHERE "icao"='ybcg';
2-14030338-2
What is the IATA that has new south wales as the state/territory beginning on july 2009?
CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text );
SELECT "iata" FROM "destinations" WHERE "state_territory"='new south wales' AND "begin"='july 2009';
2-14030338-2
What IATA has queensland as the state/territory and an ICAO of ybrk?
CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text );
SELECT "iata" FROM "destinations" WHERE "state_territory"='queensland' AND "icao"='ybrk';
2-14030338-2
What begin has victoria as the state/territory and a ICA0 of ymml?
CREATE TABLE "destinations" ( "city" text, "state_territory" text, "iata" text, "icao" text, "airport" text, "begin" text );
SELECT "begin" FROM "destinations" WHERE "state_territory"='victoria' AND "icao"='ymml';
2-14030338-2
Who was the visitor on March 27?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "visitor" FROM "march" WHERE "date"='march 27';
2-13761074-11
What was the record on March 14?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "record" FROM "march" WHERE "date"='march 14';
2-13761074-11
What format is at frequency 99.5 FM?
CREATE TABLE "fm_stations" ( "frequency" text, "name" text, "format" text, "call_sign" text, "covered_location" text );
SELECT "format" FROM "fm_stations" WHERE "frequency"='99.5 fm';
2-13589741-2
What format has the call sign DZFE?
CREATE TABLE "fm_stations" ( "frequency" text, "name" text, "format" text, "call_sign" text, "covered_location" text );
SELECT "format" FROM "fm_stations" WHERE "call_sign"='dzfe';
2-13589741-2
What covered location has a frequency of 90.7 FM
CREATE TABLE "fm_stations" ( "frequency" text, "name" text, "format" text, "call_sign" text, "covered_location" text );
SELECT "covered_location" FROM "fm_stations" WHERE "frequency"='90.7 fm';
2-13589741-2
What is the frequency of 104.3 business radio?
CREATE TABLE "fm_stations" ( "frequency" text, "name" text, "format" text, "call_sign" text, "covered_location" text );
SELECT "frequency" FROM "fm_stations" WHERE "name"='104.3 business radio';
2-13589741-2
What name has the call sign DWYS?
CREATE TABLE "fm_stations" ( "frequency" text, "name" text, "format" text, "call_sign" text, "covered_location" text );
SELECT "name" FROM "fm_stations" WHERE "call_sign"='dwys';
2-13589741-2
Who has a DCSF number of 3373?
CREATE TABLE "villages" ( "name" text, "faith" text, "type" text, "intake" real, "dcsf_number" real, "ofsted_number" real );
SELECT "name" FROM "villages" WHERE "dcsf_number"=3373;
2-15089329-6
What is the average primary intake with an Ofsted number of 117433 and a DCSF number greater than 3335?
CREATE TABLE "villages" ( "name" text, "faith" text, "type" text, "intake" real, "dcsf_number" real, "ofsted_number" real );
SELECT AVG("intake") FROM "villages" WHERE "type"='primary' AND "ofsted_number"=117433 AND "dcsf_number">3335;
2-15089329-6
What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?
CREATE TABLE "villages" ( "name" text, "faith" text, "type" text, "intake" real, "dcsf_number" real, "ofsted_number" real );
SELECT MIN("ofsted_number") FROM "villages" WHERE "type"='primary' AND "faith"='ce' AND "intake"=30 AND "dcsf_number"<3349;
2-15089329-6
Can you tell me the Opponent that has the Result of w 37-14?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real );
SELECT "opponent" FROM "schedule" WHERE "result"='w 37-14';
2-14656212-2
Can you tell me the Opponent that has the Date of october 11, 1953?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real );
SELECT "opponent" FROM "schedule" WHERE "date"='october 11, 1953';
2-14656212-2
What year was the West Coast League established than the championships are greater than 0?
CREATE TABLE "professional_sports" ( "club" text, "sport" text, "league" text, "venue" text, "established" real, "championships" real );
SELECT "established" FROM "professional_sports" WHERE "championships">0 AND "league"='west coast league';
2-137842-2
During the Apple Bowl having 0 championships, what was the established year?
CREATE TABLE "professional_sports" ( "club" text, "sport" text, "league" text, "venue" text, "established" real, "championships" real );
SELECT MAX("established") FROM "professional_sports" WHERE "championships"=0 AND "venue"='apple bowl';
2-137842-2
What sport happened at Wildcat Stadium?
CREATE TABLE "professional_sports" ( "club" text, "sport" text, "league" text, "venue" text, "established" real, "championships" real );
SELECT "sport" FROM "professional_sports" WHERE "venue"='wildcat stadium';
2-137842-2
How many championships does Evergreen Premier League have?
CREATE TABLE "professional_sports" ( "club" text, "sport" text, "league" text, "venue" text, "established" real, "championships" real );
SELECT MAX("championships") FROM "professional_sports" WHERE "league"='evergreen premier league';
2-137842-2
Which Position has a Round larger than 10, and a Name of shawn mccarthy?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "position" FROM "atlanta_falcons_draft_history" WHERE "round">10 AND "name"='shawn mccarthy';
2-15198842-25
How many Pick #s have a Name of tory epps, and a Round larger than 8?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "name"='tory epps' AND "round">8;
2-15198842-25
Which team was the visitor with a record of 5-2-0?
CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real );
SELECT "visitor" FROM "schedule" WHERE "record"='5-2-0';
2-15123198-2
What is the score for the November 3 game?
CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real );
SELECT "score" FROM "schedule" WHERE "date"='november 3';
2-15123198-2
What percent of others did ogm/news count when MARTIN had 9%?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "martin" text, "gr_ne" text, "others" text, "undecided" text );
SELECT "others" FROM "opinion_polls" WHERE "martin"='9%' AND "source"='ogm/news';
2-15124982-1
What is the Undecided the others was 4%?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "martin" text, "gr_ne" text, "others" text, "undecided" text );
SELECT "undecided" FROM "opinion_polls" WHERE "others"='4%';
2-15124982-1
What is the Undecided on 2009-05-24?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "martin" text, "gr_ne" text, "others" text, "undecided" text );
SELECT "undecided" FROM "opinion_polls" WHERE "date"='2009-05-24';
2-15124982-1
What is the Date that has MARTIN of 7–9% and no Undecided?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "martin" text, "gr_ne" text, "others" text, "undecided" text );
SELECT "date" FROM "opinion_polls" WHERE "undecided"='–' AND "martin"='7–9%';
2-15124982-1
What is the Date when MARTIN had 8%?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "martin" text, "gr_ne" text, "others" text, "undecided" text );
SELECT "date" FROM "opinion_polls" WHERE "martin"='8%';
2-15124982-1
Which Attendance has a Game smaller than 3, and a Date of october 31?
CREATE TABLE "summary" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real );
SELECT COUNT("attendance") FROM "summary" WHERE "game"<3 AND "date"='october 31';
2-14013181-1
What is rank of player Charles Eady and a Bowling of 12/63?
CREATE TABLE "best_figures_in_a_match" ( "rank" text, "bowling" text, "player" text, "opponent" text, "venue" text, "season" text );
SELECT "rank" FROM "best_figures_in_a_match" WHERE "player"='charles eady' AND "bowling"='12/63';
2-14412861-20
Who was the Opponent partnering with Jordan Kerr, on a hard surface that was the winner?
CREATE TABLE "doubles_37_17_20" ( "outcome" text, "date" text, "surface" text, "partnering" text, "opponent" text, "score" text );
SELECT "opponent" FROM "doubles_37_17_20" WHERE "surface"='hard' AND "outcome"='winner' AND "partnering"='jordan kerr';
2-15081782-5
What's the Year Average that has a Power of BHP (KW) and Trim of LS/2LT?
CREATE TABLE "engines" ( "year" real, "trim" text, "engine" text, "power" text, "torque" text, "epa_2008_city" text );
SELECT AVG("year") FROM "engines" WHERE "power"='bhp (kw)' AND "trim"='ls/2lt';
2-1361602-1
Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)?
CREATE TABLE "engines" ( "year" real, "trim" text, "engine" text, "power" text, "torque" text, "epa_2008_city" text );
SELECT "engine" FROM "engines" WHERE "year">2006 AND "power"='bhp (kw)';
2-1361602-1
What Torque has a Power of HP (KW)?
CREATE TABLE "engines" ( "year" real, "trim" text, "engine" text, "power" text, "torque" text, "epa_2008_city" text );
SELECT "torque" FROM "engines" WHERE "power"='hp (kw)';
2-1361602-1
What's the Year average that's got Trim of LS/LT and Power of HP (KW)?
CREATE TABLE "engines" ( "year" real, "trim" text, "engine" text, "power" text, "torque" text, "epa_2008_city" text );
SELECT AVG("year") FROM "engines" WHERE "trim"='ls/lt' AND "power"='hp (kw)';
2-1361602-1
Name the college with overall of 17
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "college" FROM "atlanta_falcons_draft_history" WHERE "overall"=17;
2-15198842-21
Name the least overall for tony baker
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("overall") FROM "atlanta_falcons_draft_history" WHERE "name"='tony baker';
2-15198842-21
Who was the visiting team when Winnipeg was the home team?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "visitor" FROM "regular_season" WHERE "home"='winnipeg';
2-14208862-5
What was the score of the game with a decision of Peeters and a record of 29–3–11?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "regular_season" WHERE "decision"='peeters' AND "record"='29–3–11';
2-14208862-5
What is the Label of Catalogue # HVNLP26CD from United Kingdom?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text );
SELECT "label" FROM "release_history" WHERE "country"='united kingdom' AND "catalogue_num"='hvnlp26cd';
2-1523661-2
What Country is Catalogue # ASW 50248 (724385024825) from?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text );
SELECT "country" FROM "release_history" WHERE "catalogue_num"='asw 50248 (724385024825)';
2-1523661-2
Who is the winning team of the South Pacific Trophy?
CREATE TABLE "races" ( "round" text, "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_car" text, "winning_team" text, "report" text );
SELECT "winning_team" FROM "races" WHERE "name"='south pacific trophy';
2-13729095-1
Loss of gonzález (0–3) had what attendance?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "attendance" FROM "game_log" WHERE "loss"='gonzález (0–3)';
2-13810690-10
Record of 92–70 had what date?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "record"='92–70';
2-13810690-10
Loss of kendrick (11–8) had what record?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "loss"='kendrick (11–8)';
2-13810690-10
Date of september 28 had what record?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='september 28';
2-13810690-10
Attendance of 23,150 had what opponent?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "opponent" FROM "game_log" WHERE "attendance"='23,150';
2-13810690-10
Attendance of 36,796 had what score?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "attendance"='36,796';
2-13810690-10
What is the sum of Long for derrick locke?
CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "loss" real, "long" real, "avg_g" real );
SELECT SUM("long") FROM "rushing" WHERE "name"='derrick locke';
2-14624447-50
What is the lowest Loss with Gain larger than 319 for derrick locke?
CREATE TABLE "rushing" ( "name" text, "gp_gs" text, "gain" real, "loss" real, "long" real, "avg_g" real );
SELECT MIN("loss") FROM "rushing" WHERE "name"='derrick locke' AND "gain">319;
2-14624447-50
Head Coach of wojciech kamiński is what club?
CREATE TABLE "overview" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text, "head_coach" text );
SELECT "club" FROM "overview" WHERE "head_coach"='wojciech kamiński';
2-1403724-1
Sport of football, and a Venue of stadion polonii is what league?
CREATE TABLE "overview" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text, "head_coach" text );
SELECT "league" FROM "overview" WHERE "sport"='football' AND "venue"='stadion polonii';
2-1403724-1
Sport of gaelic football and hurling is what league?
CREATE TABLE "overview" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text, "head_coach" text );
SELECT "league" FROM "overview" WHERE "sport"='gaelic football and hurling';
2-1403724-1
Venue of Pepsi arena involved what club?
CREATE TABLE "overview" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text, "head_coach" text );
SELECT "club" FROM "overview" WHERE "venue"='pepsi arena';
2-1403724-1
What is the highest earnings for Tom watson who had a ranking larger than 2?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );
SELECT MAX("earnings") FROM "leaders" WHERE "player"='tom watson' AND "rank">2;
2-14639984-4
What is the highest rank for the player who earns $4,263,133?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );
SELECT MAX("rank") FROM "leaders" WHERE "earnings"='4,263,133';
2-14639984-4
What is the average number of wins for the player with a rank larger than 3 and earnings of $3,707,586?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );
SELECT AVG("wins") FROM "leaders" WHERE "rank">3 AND "earnings"='3,707,586';
2-14639984-4
What is the highest number of wins for Tom Watson who earns less than $4,974,845?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );
SELECT MAX("wins") FROM "leaders" WHERE "player"='tom watson' AND "earnings"<'4,974,845';
2-14639984-4
What is the highest earnings for curtis strange?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );
SELECT MAX("earnings") FROM "leaders" WHERE "player"='curtis strange';
2-14639984-4
What is the average year with an average start smaller than 6.3 and fewer than 0 wins?
CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text );
SELECT AVG("year") FROM "nascar_nationwide_series" WHERE "avg_start"<6.3 AND "wins"<0;
2-1507423-5
Which Second has a Skip of barbora vojtusova?
CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "second" FROM "group_b2" WHERE "skip"='barbora vojtusova';
2-15295737-110
Which Skip did marju velga lead?
CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "skip" FROM "group_b2" WHERE "lead"='marju velga';
2-15295737-110
Which Lead has a Second of katrin kuusk?
CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "lead" FROM "group_b2" WHERE "second"='katrin kuusk';
2-15295737-110
Which Third has a Skip of ellen vogt?
CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "third" FROM "group_b2" WHERE "skip"='ellen vogt';
2-15295737-110
Which Third has a Second of agnieszka ogrodniczek?
CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "third" FROM "group_b2" WHERE "second"='agnieszka ogrodniczek';
2-15295737-110
What is Spain's skip?
CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "skip" FROM "group_b2" WHERE "nation"='spain';
2-15295737-110
What is the Per capita income associated with over 116,716,292 households and a Median household income of $42,706?
CREATE TABLE "vermont_counties_ranked_by_per_capita_in" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT "per_capita_income" FROM "vermont_counties_ranked_by_per_capita_in" WHERE "number_of_households">'116,716,292' AND "median_household_income"='$42,706';
2-1419154-1
What is the Per capita income associated with a Median household income of $55,800?
CREATE TABLE "vermont_counties_ranked_by_per_capita_in" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT "per_capita_income" FROM "vermont_counties_ranked_by_per_capita_in" WHERE "median_household_income"='$55,800';
2-1419154-1