question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
When did the home team score 20.16 (136)?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_9" WHERE "home_team_score"='20.16 (136)';
2-10823950-9
Which Grid has a Driver of johnny dumfries?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "grid" FROM "classification" WHERE "driver"='johnny dumfries';
2-1122973-1
What is the score on 22 September 1972?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "score" FROM "international_goals" WHERE "date"='22 september 1972';
2-11732849-1
What is the venue on 3 September 1972?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "date"='3 september 1972';
2-11732849-1
Name the series for april 30
CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );
SELECT "series" FROM "playoffs" WHERE "date"='april 30';
2-11960713-7
Name the highest game for west (8) high assists
CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );
SELECT MAX("game") FROM "playoffs" WHERE "high_assists"='west (8)';
2-11960713-7
Which Year has a Date of 14 February?
CREATE TABLE "singles" ( "year" real, "date" text, "album" text, "label" text, "format_s" text );
SELECT MIN("year") FROM "singles" WHERE "date"='14 february';
2-11816737-3
Which Label has a Date of 20 July?
CREATE TABLE "singles" ( "year" real, "date" text, "album" text, "label" text, "format_s" text );
SELECT "label" FROM "singles" WHERE "date"='20 july';
2-11816737-3
Which Label has a Date of 14 February?
CREATE TABLE "singles" ( "year" real, "date" text, "album" text, "label" text, "format_s" text );
SELECT "label" FROM "singles" WHERE "date"='14 february';
2-11816737-3
Who choreographed the smooth waltz with lacey schwimmer?
CREATE TABLE "season_3" ( "week" real, "partner" text, "style" text, "choreographer_s" text, "results" text );
SELECT "choreographer_s" FROM "season_3" WHERE "style"='smooth waltz' AND "partner"='lacey schwimmer';
2-12051129-1
Who was the partner for the jazz piece in the bottom three?
CREATE TABLE "season_3" ( "week" real, "partner" text, "style" text, "choreographer_s" text, "results" text );
SELECT "partner" FROM "season_3" WHERE "style"='jazz' AND "results"='bottom three';
2-12051129-1
In which venue did a home team score 15.5 (95)?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_14" WHERE "home_team_score"='15.5 (95)';
2-10883333-14
For Venue vfl park, what was the home team score?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_14" WHERE "venue"='vfl park';
2-10883333-14
On which date was the venue of vfl park used?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_14" WHERE "venue"='vfl park';
2-10883333-14
What was the Average crowd when the away team was north melbourne?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT AVG("crowd") FROM "round_14" WHERE "away_team"='north melbourne';
2-10883333-14
What is the maximum torque at rpm for the engine coded BJB/BKC/BXE/BLS?
CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_code_s" text, "valvetrain" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text );
SELECT "max_torque_at_rpm" FROM "engine_specifications" WHERE "engine_code_s"='bjb/bkc/bxe/bls';
2-1176162-5
What is the maximum power at rpm for the engine named 2.0 TDI that has a 1968cc displacement?
CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_code_s" text, "valvetrain" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text );
SELECT "max_power_at_rpm" FROM "engine_specifications" WHERE "displacement"='1968cc' AND "engine_name"='2.0 tdi';
2-1176162-5
What is the maximum torque at rpm for the engine with code BMM?
CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_code_s" text, "valvetrain" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text );
SELECT "max_torque_at_rpm" FROM "engine_specifications" WHERE "engine_code_s"='bmm';
2-1176162-5
What is the maximum torque at rpm for the engine with code BMM?
CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_code_s" text, "valvetrain" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text );
SELECT "max_torque_at_rpm" FROM "engine_specifications" WHERE "engine_code_s"='bmm';
2-1176162-5
What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3,800?
CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_code_s" text, "valvetrain" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text );
SELECT "engine_name" FROM "engine_specifications" WHERE "max_torque_at_rpm"='n·m ( lbf·ft ) @ 3,800';
2-1176162-5
What was the result of t.u.f.f. puppy?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "work" text, "result" text );
SELECT "result" FROM "awards_and_nominations" WHERE "work"='t.u.f.f. puppy';
2-11735769-3
what is the score for the 2010 world cup qualifying?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "score" FROM "international_goals" WHERE "competition"='2010 world cup qualifying';
2-11914827-2
Which home has a Date of november 7?
CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "home" FROM "november" WHERE "date"='november 7';
2-11786815-4
What is the lowest attendance on November 18?
CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT MIN("attendance") FROM "november" WHERE "date"='november 18';
2-11786815-4
What is the date of the game where Dipietro earned a decision and Carolina was the visiting team?
CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "date" FROM "october" WHERE "decision"='dipietro' AND "visitor"='carolina';
2-11902440-3
Who is the visiting team when Dipietro received a decision on October 27?
CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "visitor" FROM "october" WHERE "decision"='dipietro' AND "date"='october 27';
2-11902440-3
What was the record when the home team is Washington?
CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "record" FROM "october" WHERE "home"='washington';
2-11902440-3
What was the score of the game on October 20 when the home team is the NY Islanders?
CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "october" WHERE "home"='ny islanders' AND "date"='october 20';
2-11902440-3
In the Endangered Wildlife Series from the Royal Canadian Mint numismatic coins printed in the 2000s, what theme had a mintage of 700?
CREATE TABLE "endangered_wildlife_series" ( "year" real, "theme" text, "face_values" text, "artist" text, "issue_price" text, "mintage" real, "finish" text );
SELECT "theme" FROM "endangered_wildlife_series" WHERE "mintage"=700;
2-11916083-75
What year had an issue price of $2,995.95, and a theme of grizzly bear?
CREATE TABLE "endangered_wildlife_series" ( "year" real, "theme" text, "face_values" text, "artist" text, "issue_price" text, "mintage" real, "finish" text );
SELECT MAX("year") FROM "endangered_wildlife_series" WHERE "issue_price"='$2,995.95' AND "theme"='grizzly bear';
2-11916083-75
Tell me the total for silver more than 0 for italy with gold less than 29
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("total") FROM "medal_table" WHERE "silver">0 AND "nation"='italy' AND "gold"<29;
2-10910853-5
Tell me the average bronze for total less than 4 and silver more than 0
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "total"<4 AND "silver">0;
2-10910853-5
I want to know the total for silver more than 0 with bronze more than 21 and gold more than 29
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("total") FROM "medal_table" WHERE "silver">0 AND "bronze">21 AND "gold">29;
2-10910853-5
How many carries for jeff smoker?
CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" text, "avg" text, "td_s" real, "long" text );
SELECT SUM("car") FROM "running_backs" WHERE "player"='jeff smoker';
2-11786160-3
How many average carries for the player with 3 as a long?
CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" text, "avg" text, "td_s" real, "long" text );
SELECT AVG("car") FROM "running_backs" WHERE "long"='3';
2-11786160-3
who is the home team when tie no is less than 7 and the away team is havant & waterlooville?
CREATE TABLE "fourth_round_proper" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real );
SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"<7 AND "away_team"='havant & waterlooville';
2-11647944-5
What is the Score in the final with an Outcome with runner-up, and a Date with 1970?
CREATE TABLE "doubles_titles_12" ( "outcome" text, "date" real, "tournament" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "score_in_the_final" FROM "doubles_titles_12" WHERE "outcome"='runner-up' AND "date"=1970;
2-11623598-1
What is the Tournament with a Opponents in the final with rod laver fred stolle?
CREATE TABLE "doubles_titles_12" ( "outcome" text, "date" real, "tournament" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "tournament" FROM "doubles_titles_12" WHERE "opponents_in_the_final"='rod laver fred stolle';
2-11623598-1
What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart?
CREATE TABLE "doubles_titles_12" ( "outcome" text, "date" real, "tournament" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "tournament" FROM "doubles_titles_12" WHERE "date">1973 AND "opponents_in_the_final"='hank pfister sherwood stewart';
2-11623598-1
What is the Partner with Opponents in the final with roy emerson rod laver, with Date smaller than 1975?
CREATE TABLE "doubles_titles_12" ( "outcome" text, "date" real, "tournament" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "partner" FROM "doubles_titles_12" WHERE "opponents_in_the_final"='roy emerson rod laver' AND "date"<1975;
2-11623598-1
Which driver has 45 laps?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "race" WHERE "laps"=45;
2-1123439-2
Which Time/Retired has a grid smaller than 9, a Ferrari construct, and is driven by Rubens Barrichello?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "time_retired" FROM "race" WHERE "grid"<9 AND "constructor"='ferrari' AND "driver"='rubens barrichello';
2-1123439-2
What was the away team's score when the home team scored 11.9 (75)?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_14" WHERE "home_team_score"='11.9 (75)';
2-10807673-14
Who was the home team when the away team was Footscray?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_14" WHERE "away_team"='footscray';
2-10807673-14
What was the date of the game when the home team scored 7.13 (55)?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_14" WHERE "home_team_score"='7.13 (55)';
2-10807673-14
Who was the home team at the game where the crowd was larger than 10,000 and the home team scored 7.13 (55)?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_14" WHERE "crowd">'10,000' AND "home_team_score"='7.13 (55)';
2-10807673-14
What was the date of the game where North Melbourne was the home team?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_14" WHERE "home_team"='north melbourne';
2-10807673-14
Which away team played at Kardinia Park?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_6" WHERE "venue"='kardinia park';
2-10824095-6
Namem the number of cities that contains Voivodeship of elbląg voivodeship
CREATE TABLE "polish_voivodeships_and_separate_cities_" ( "abbreviation" text, "voivodeship" text, "capital" text, "area_km_1998" text, "population_1980" text, "no_of_cities" real, "no_of_communes" real );
SELECT "no_of_cities" FROM "polish_voivodeships_and_separate_cities_" WHERE "voivodeship"='elbląg voivodeship';
2-11656578-2
How many people in 1991 have a Village (German) of rupertiberg?
CREATE TABLE "references" ( "village_german" text, "village_slovene" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text );
SELECT COUNT("number_of_people_1991") FROM "references" WHERE "village_german"='rupertiberg';
2-10797636-1
What was the score on October 30?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "game_log" WHERE "date"='october 30';
2-11739153-3
What was the attendance on October 6?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "attendance" FROM "game_log" WHERE "date"='october 6';
2-11739153-3
What was the record on October 24?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='october 24';
2-11739153-3
Who was the visitor on October 20?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "visitor" FROM "game_log" WHERE "date"='october 20';
2-11739153-3
Name the smoke point for monosaturated fat of 30g
CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text );
SELECT "smoke_point" FROM "comparative_properties_of_common_cooking" WHERE "monounsaturated_fat"='30g';
2-1195910-1
Name the polyunsaturated fat with total fat of 100g and monounsaturated fat of 20g (84g in high oleic variety)
CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text );
SELECT "polyunsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "total_fat"='100g' AND "monounsaturated_fat"='20g (84g in high oleic variety)';
2-1195910-1
Name the polyunsaturated fat with total fat of 100g and saturated fat of 7g
CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text );
SELECT "polyunsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "total_fat"='100g' AND "saturated_fat"='7g';
2-1195910-1
Name the polyunsaturated fat with a saturated fat of 25g
CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text );
SELECT "polyunsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "saturated_fat"='25g';
2-1195910-1
Name the total fat which has a polyunsaturated fat of 11g and monounsaturated fat of 45g
CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text );
SELECT "total_fat" FROM "comparative_properties_of_common_cooking" WHERE "polyunsaturated_fat"='11g' AND "monounsaturated_fat"='45g';
2-1195910-1
Name the result for friendly competition on 9 october 2010
CREATE TABLE "walter_pery_martinez_international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "walter_pery_martinez_international_goals" WHERE "competition"='friendly' AND "date"='9 october 2010';
2-11982701-2
Name the result for uncaf nations cup 2009 and 6 goal
CREATE TABLE "walter_pery_martinez_international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "walter_pery_martinez_international_goals" WHERE "competition"='uncaf nations cup 2009' AND "goal"=6;
2-11982701-2
Which team was team 1 that had a team 2 that was la nuova piovese (veneto a)?
CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_1" FROM "first_round" WHERE "team_2"='la nuova piovese (veneto a)';
2-10882589-57
What was the 2nd leg where the team 2 was budoni (sardinia)?
CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "first_round" WHERE "team_2"='budoni (sardinia)';
2-10882589-57
Which was the team 1 that had a team 2 which was avigliano (basilicata)?
CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_1" FROM "first_round" WHERE "team_2"='avigliano (basilicata)';
2-10882589-57
How much cash was on hand after debt of $82,741?
CREATE TABLE "republicans" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "total_debt" text, "after_debt" text );
SELECT "cash_on_hand" FROM "republicans" WHERE "after_debt"='$82,741';
2-12030247-7
What was the amount of loans received with a total debt of $169,256?
CREATE TABLE "republicans" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "total_debt" text, "after_debt" text );
SELECT "loans_received_3_q" FROM "republicans" WHERE "total_debt"='$169,256';
2-12030247-7
What was the amount of total receipts when $925,745 was raised?
CREATE TABLE "republicans" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "total_debt" text, "after_debt" text );
SELECT "total_receipts" FROM "republicans" WHERE "money_raised_3_q"='$925,745';
2-12030247-7
How much money was spent when the amount after debt was $1,757,936?
CREATE TABLE "republicans" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "total_debt" text, "after_debt" text );
SELECT "money_spent_3_q" FROM "republicans" WHERE "after_debt"='$1,757,936';
2-12030247-7
How much is after debt when cash on hand is $651,300?
CREATE TABLE "republicans" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "total_debt" text, "after_debt" text );
SELECT "after_debt" FROM "republicans" WHERE "cash_on_hand"='$651,300';
2-12030247-7
What is the lowest total when the Bronze metals are larger than 0 and the nation is France (fra)?
CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("total") FROM "medal_table" WHERE "bronze">0 AND "nation"='france (fra)';
2-11456932-2
What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal?
CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("silver") FROM "medal_table" WHERE "bronze"=1 AND "gold"=1;
2-11456932-2
What is the total number of medals when the Bronze, Silver, and Gold medals are smaller than 1?
CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("total") FROM "medal_table" WHERE "bronze"<1 AND "silver"<1 AND "gold"<1;
2-11456932-2
What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1?
CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("bronze") FROM "medal_table" WHERE "gold">0 AND "silver"<1 AND "total"<1;
2-11456932-2
what is the result for 11 august 2010?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "international_goals" WHERE "date"='11 august 2010';
2-11272552-1
what is the result when the competition is friendly on 8 october 2009?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "international_goals" WHERE "competition"='friendly' AND "date"='8 october 2009';
2-11272552-1
On the date of 20 July 1999 what is the English abbr.?
CREATE TABLE "national_conservatives" ( "group_name" text, "english_abbr" text, "french_abbr" text, "formal_european_parliament_name" text, "from" text );
SELECT "english_abbr" FROM "national_conservatives" WHERE "from"='20 july 1999';
2-1142023-6
What is the date for the group union for Europe?
CREATE TABLE "national_conservatives" ( "group_name" text, "english_abbr" text, "french_abbr" text, "formal_european_parliament_name" text, "from" text );
SELECT "from" FROM "national_conservatives" WHERE "group_name"='group union for europe';
2-1142023-6
What is the group name on the date of 20 July 1999?
CREATE TABLE "national_conservatives" ( "group_name" text, "english_abbr" text, "french_abbr" text, "formal_european_parliament_name" text, "from" text );
SELECT "group_name" FROM "national_conservatives" WHERE "from"='20 july 1999';
2-1142023-6
For the group name European Progressive Democrats what is the French abbr?
CREATE TABLE "national_conservatives" ( "group_name" text, "english_abbr" text, "french_abbr" text, "formal_european_parliament_name" text, "from" text );
SELECT "french_abbr" FROM "national_conservatives" WHERE "group_name"='european progressive democrats';
2-1142023-6
Which Livery has a Description of 20t tanker, with a date later than 1941?
CREATE TABLE "tanker_wagons" ( "number_name" text, "description" text, "current_status" text, "livery" text, "date" real );
SELECT "livery" FROM "tanker_wagons" WHERE "description"='20t tanker' AND "date">1941;
2-1174877-18
What's the Description for Scottish Tar Distillers No. 78, that's Livery is black, and a date prior to 1897?
CREATE TABLE "tanker_wagons" ( "number_name" text, "description" text, "current_status" text, "livery" text, "date" real );
SELECT "description" FROM "tanker_wagons" WHERE "livery"='black' AND "date"<1897 AND "number_name"='scottish tar distillers no. 78';
2-1174877-18
What was the score of the game that Washington played at home against Florida?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "january" WHERE "home"='washington' AND "visitor"='florida';
2-11772462-6
What driver has BRM as a constructor and had more than 30 laps?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "classification" WHERE "constructor"='brm' AND "laps">30;
2-1122600-1
How many lost when the number managed is over 2 and the period is from 12 november 2012 – 27 november 2012?
CREATE TABLE "club_official" ( "name" text, "period" text, "managed" real, "drawn" real, "lost" real, "win_pct" text );
SELECT COUNT("lost") FROM "club_official" WHERE "period"='12 november 2012 – 27 november 2012' AND "managed">2;
2-1113940-4
What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) – 13.10 (88)?
CREATE TABLE "back_to_back_night_pre_season_winners" ( "season" real, "premier" text, "runner_up" text, "score" text, "venue" text, "attendance" real, "margin" real );
SELECT AVG("attendance") FROM "back_to_back_night_pre_season_winners" WHERE "season"<1986 AND "margin"=6 AND "score"='13.16 (94) – 13.10 (88)';
2-1139835-8
When is the earliest season at waverley park, a Score of 15.12 (102) – 9.14 (68), and a Margin larger than 34?
CREATE TABLE "back_to_back_night_pre_season_winners" ( "season" real, "premier" text, "runner_up" text, "score" text, "venue" text, "attendance" real, "margin" real );
SELECT MIN("season") FROM "back_to_back_night_pre_season_winners" WHERE "venue"='waverley park' AND "score"='15.12 (102) – 9.14 (68)' AND "margin">34;
2-1139835-8
How many seasons feature essendon, and a Score of 15.12 (102) – 9.14 (68)?
CREATE TABLE "back_to_back_night_pre_season_winners" ( "season" real, "premier" text, "runner_up" text, "score" text, "venue" text, "attendance" real, "margin" real );
SELECT COUNT("season") FROM "back_to_back_night_pre_season_winners" WHERE "premier"='essendon' AND "score"='15.12 (102) – 9.14 (68)';
2-1139835-8
How low was the attendance at the game that ended with a home team score of 16.13 (109)?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MIN("crowd") FROM "round_14" WHERE "home_team_score"='16.13 (109)';
2-10790651-14
What was the date of the game at MCG?
CREATE TABLE "round_19" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_19" WHERE "venue"='mcg';
2-10823950-19
What was the date of the game where Geelong was the home team?
CREATE TABLE "round_19" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_19" WHERE "home_team"='geelong';
2-10823950-19
What was the crowd size for the game where Footscray was the away team?
CREATE TABLE "round_19" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT COUNT("crowd") FROM "round_19" WHERE "away_team"='footscray';
2-10823950-19
How many total wins do the Texas Tech Red Raiders have including the 7 regular season wins?
CREATE TABLE "membership" ( "team" text, "season" text, "regular_season" real, "postseason" real, "total" real );
SELECT MAX("total") FROM "membership" WHERE "team"='texas tech red raiders' AND "regular_season">7;
2-11789730-1
What is the total round with an overall of 199 with sweden?
CREATE TABLE "2008_draft_picks" ( "round" real, "overall" real, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT SUM("round") FROM "2008_draft_picks" WHERE "nationality"='sweden' AND "overall"=199;
2-11803648-17
What is the total for Canada during round 2?
CREATE TABLE "2008_draft_picks" ( "round" real, "overall" real, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT "overall" FROM "2008_draft_picks" WHERE "nationality"='canada' AND "round"=2;
2-11803648-17
Which team scores 119 in round 4?
CREATE TABLE "2008_draft_picks" ( "round" real, "overall" real, "player" text, "position" text, "nationality" text, "club_team" text );
SELECT "club_team" FROM "2008_draft_picks" WHERE "round"=4 AND "overall"=119;
2-11803648-17
What was the attendance at the Kings game when Anaheim was the visiting team?
CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "attendance" FROM "november" WHERE "visitor"='anaheim';
2-11821711-5
What was the score of the Kings game when they had a record of 8–11–1?
CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "november" WHERE "record"='8–11–1';
2-11821711-5
Name the high points for charlotte
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_points" FROM "game_log" WHERE "team"='charlotte';
2-11959669-6
Name the team on february 12
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "team" FROM "game_log" WHERE "date"='february 12';
2-11959669-6
Name the location attendance for game more than 54 on february 25
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "location_attendance" FROM "game_log" WHERE "game">54 AND "date"='february 25';
2-11959669-6