question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
WHAT WEEK HAS A TV TIME OF BYE?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text );
SELECT "week" FROM "schedule" WHERE "tv_time"='bye';
2-16882018-12
WHAT WAS THE ATTENDANCE FOR WEEK 15?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "week"=15;
2-16882018-12
WHAT WAS THE RESULT FOR NOVEMBER 29, 2001?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "date"='november 29, 2001';
2-16882018-12
In what year was the bridge in Clarkdale built?
CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text );
SELECT "built" FROM "references" WHERE "location"='clarkdale';
2-17238008-1
In what year was the Gila Bend Overpass built?
CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text );
SELECT "built" FROM "references" WHERE "name"='gila bend overpass';
2-17238008-1
In what county is the Canyon Padre Bridge?
CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text );
SELECT "county" FROM "references" WHERE "name"='canyon padre bridge';
2-17238008-1
Who won the ABA Championship in 1971?
CREATE TABLE "results_by_teams" ( "teams" text, "finals_appearances" real, "championships" real, "runners_up" real, "years_won" text, "years_runners_up" text );
SELECT MIN("championships") FROM "results_by_teams" WHERE "years_won"='1971';
2-17506363-4
What was the average amount of losses for teams with played less than 14?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT AVG("lost") FROM "first_round" WHERE "played"<14;
2-16566850-12
What was the total number of games played by se freising when their points were larger than 13?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT COUNT("played") FROM "first_round" WHERE "name"='se freising' AND "points">13;
2-16566850-12
What was the average losses for team with points larger than 3 and played larger thna 14?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT AVG("lost") FROM "first_round" WHERE "points">3 AND "played">14;
2-16566850-12
How many losses did ev bruckberg have when the drawn was more than 1?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT SUM("lost") FROM "first_round" WHERE "name"='ev bruckberg' AND "drawn">1;
2-16566850-12
What is the poll source when Jeff Sessions is at 58% and the date administered is July 31, 2008?
CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text, "democrat_vivian_davis_figures" text, "republican_jeff_sessions" text, "lead_margin" real );
SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "republican_jeff_sessions"='58%' AND "dates_administered"='july 31, 2008';
2-16751596-12
What was the date administered from a source of Rasmussen Reports and a lead margin over 32?
CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text, "democrat_vivian_davis_figures" text, "republican_jeff_sessions" text, "lead_margin" real );
SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "poll_source"='rasmussen reports' AND "lead_margin">32;
2-16751596-12
What is the date administered when Vivian Davis Figures was at 37%?
CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text, "democrat_vivian_davis_figures" text, "republican_jeff_sessions" text, "lead_margin" real );
SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "democrat_vivian_davis_figures"='37%';
2-16751596-12
What is the date administered when Vivian Davis Figures was at 36%?
CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text, "democrat_vivian_davis_figures" text, "republican_jeff_sessions" text, "lead_margin" real );
SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "democrat_vivian_davis_figures"='36%';
2-16751596-12
What is the poll source for Vivian Davis Figures at 29% and a lead margin greater than 27?
CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text, "democrat_vivian_davis_figures" text, "republican_jeff_sessions" text, "lead_margin" real );
SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin">27 AND "democrat_vivian_davis_figures"='29%';
2-16751596-12
What is the Score of the Chicago Black Hawks Home game on March 28?
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "score" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "home"='chicago black hawks' AND "date"='march 28';
2-17308750-3
What is the Visitor of the game on April 2?
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "visitor" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "date"='april 2';
2-17308750-3
What is the Home team on April 4?
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "date"='april 4';
2-17308750-3
What is the Visitor on March 31?
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "visitor" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "date"='march 31';
2-17308750-3
What is the Home team on April 2?
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "date"='april 2';
2-17308750-3
What is the Date of the game with a Record of 2-3?
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "date" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "record"='2-3';
2-17308750-3
What year did Freddie Frith win the 350cc and Enrico Lorenzetti win the 500cc?
CREATE TABLE "by_year" ( "year" text, "designated_grand_prix" text, "track" text, "250_cc" text, "350_cc" text, "500_cc" text, "report" text );
SELECT "year" FROM "by_year" WHERE "350_cc"='freddie frith' AND "500_cc"='enrico lorenzetti';
2-16661710-4
What track was used in 1926?
CREATE TABLE "by_year" ( "year" text, "designated_grand_prix" text, "track" text, "250_cc" text, "350_cc" text, "500_cc" text, "report" text );
SELECT "track" FROM "by_year" WHERE "year"='1926';
2-16661710-4
Who won the 250cc in 1927?
CREATE TABLE "by_year" ( "year" text, "designated_grand_prix" text, "track" text, "250_cc" text, "350_cc" text, "500_cc" text, "report" text );
SELECT "250_cc" FROM "by_year" WHERE "year"='1927';
2-16661710-4
What grand prix was held at Granollers?
CREATE TABLE "by_year" ( "year" text, "designated_grand_prix" text, "track" text, "250_cc" text, "350_cc" text, "500_cc" text, "report" text );
SELECT "designated_grand_prix" FROM "by_year" WHERE "track"='granollers';
2-16661710-4
Who won the 350cc at Sachsenring?
CREATE TABLE "by_year" ( "year" text, "designated_grand_prix" text, "track" text, "250_cc" text, "350_cc" text, "500_cc" text, "report" text );
SELECT "350_cc" FROM "by_year" WHERE "track"='sachsenring';
2-16661710-4
Which fleet numbers has quanitity of 13?
CREATE TABLE "class_l_2_8_2" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text );
SELECT "fleet_number_s" FROM "class_l_2_8_2" WHERE "quantity_made"='13';
2-17248696-11
Which wheel arrangement made in year 1900?
CREATE TABLE "class_l_2_8_2" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text );
SELECT "wheel_arrangement" FROM "class_l_2_8_2" WHERE "year_made"='1900';
2-17248696-11
Which fleet numbers has quantity of 1?
CREATE TABLE "class_l_2_8_2" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text );
SELECT "fleet_number_s" FROM "class_l_2_8_2" WHERE "quantity_made"='1';
2-17248696-11
what is the score when the partner is florencia labat, the surface is clay, the opponents is laura golarsa ann grossman?
CREATE TABLE "doubles_11_6_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "score" FROM "doubles_11_6_5" WHERE "partner"='florencia labat' AND "surface"='clay' AND "opponents"='laura golarsa ann grossman';
2-16570128-5
who is the opponents when the surface is clay and the date is 12 july 1992?
CREATE TABLE "doubles_11_6_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "opponents" FROM "doubles_11_6_5" WHERE "surface"='clay' AND "date"='12 july 1992';
2-16570128-5
what is the tournament when the outcome is winner and the opponents is kerry-anne guse corina morariu?
CREATE TABLE "doubles_11_6_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "tournament" FROM "doubles_11_6_5" WHERE "outcome"='winner' AND "opponents"='kerry-anne guse corina morariu';
2-16570128-5
what is the score when the partner is alexandra fusai?
CREATE TABLE "doubles_11_6_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "score" FROM "doubles_11_6_5" WHERE "partner"='alexandra fusai';
2-16570128-5
what is the surface when the opponents are louise field nathalie herreman?
CREATE TABLE "doubles_11_6_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "surface" FROM "doubles_11_6_5" WHERE "opponents"='louise field nathalie herreman';
2-16570128-5
what is the score when the surface is clay and the tournament is san marino?
CREATE TABLE "doubles_11_6_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "score" FROM "doubles_11_6_5" WHERE "surface"='clay' AND "tournament"='san marino';
2-16570128-5
If the manufacturer is Yamaha, and the laps driven were under 32, what's the average of all grid sizes with that criteria?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT AVG("grid") FROM "moto_gp_classification" WHERE "laps"<32 AND "manufacturer"='yamaha';
2-16194339-1
What's the smallest amount of laps that suzuki ran with a grid value of 8?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT MIN("laps") FROM "moto_gp_classification" WHERE "manufacturer"='suzuki' AND "grid"=8;
2-16194339-1
Who were the opponents when the score of the game was 101-105 and the H/A/N was H?
CREATE TABLE "march" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text );
SELECT "opponent" FROM "march" WHERE "h_a_n"='h' AND "score"='101-105';
2-16946097-8
What was the date of the game against the Baltimore Bullets when the H/A/N was H?
CREATE TABLE "march" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text );
SELECT "date" FROM "march" WHERE "opponent"='baltimore bullets' AND "h_a_n"='h';
2-16946097-8
What is the score of the game against the baltimore bullets on March 14?
CREATE TABLE "march" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text );
SELECT "score" FROM "march" WHERE "opponent"='baltimore bullets' AND "date"='march 14';
2-16946097-8
Who were the opponents when the score was 122-135 and the H/A/N was H?
CREATE TABLE "march" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text );
SELECT "opponent" FROM "march" WHERE "h_a_n"='h' AND "score"='122-135';
2-16946097-8
What is the score of the game where the record was 22-55?
CREATE TABLE "march" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text );
SELECT "score" FROM "march" WHERE "record"='22-55';
2-16946097-8
What is the average games that were drawn with ERSC Amberg as name and less than 14 points?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT AVG("drawn") FROM "first_round" WHERE "name"='ersc amberg' AND "points"<14;
2-16501954-11
What is the total position with a drawn of 0 and greater than 22 points and a greater than 14 played?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT COUNT("position") FROM "first_round" WHERE "drawn"=0 AND "points">22 AND "played">14;
2-16501954-11
Which Issue date(s) has a Weeks at number one of 5, and a Volume:Issue of 61:17-21?
CREATE TABLE "notes" ( "volume_issue" text, "issue_date_s" text, "weeks_at_number_one" real, "song" text, "artist_s" text );
SELECT "issue_date_s" FROM "notes" WHERE "weeks_at_number_one"=5 AND "volume_issue"='61:17-21';
2-16919459-1
Which Song has a Weeks at number one larger than 2, and an Issue date(s) of 17 april - 8 may?
CREATE TABLE "notes" ( "volume_issue" text, "issue_date_s" text, "weeks_at_number_one" real, "song" text, "artist_s" text );
SELECT "song" FROM "notes" WHERE "weeks_at_number_one">2 AND "issue_date_s"='17 april - 8 may';
2-16919459-1
Which Weeks at number one has a Volume:Issue of 61:22-23?
CREATE TABLE "notes" ( "volume_issue" text, "issue_date_s" text, "weeks_at_number_one" real, "song" text, "artist_s" text );
SELECT MAX("weeks_at_number_one") FROM "notes" WHERE "volume_issue"='61:22-23';
2-16919459-1
Which Song has an Issue date(s) of 29 may - 26 june?
CREATE TABLE "notes" ( "volume_issue" text, "issue_date_s" text, "weeks_at_number_one" real, "song" text, "artist_s" text );
SELECT "song" FROM "notes" WHERE "issue_date_s"='29 may - 26 june';
2-16919459-1
what is the report when the home team is new zealand breakers?
CREATE TABLE "round_1" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );
SELECT "report" FROM "round_1" WHERE "home_team"='new zealand breakers';
2-16653153-8
what is the score when the home team is cairns taipans?
CREATE TABLE "round_1" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );
SELECT "score" FROM "round_1" WHERE "home_team"='cairns taipans';
2-16653153-8
Who is the away team when the venue is cairns convention centre?
CREATE TABLE "round_1" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );
SELECT "away_team" FROM "round_1" WHERE "venue"='cairns convention centre';
2-16653153-8
who is the away team when the home team is sydney spirit?
CREATE TABLE "round_1" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );
SELECT "away_team" FROM "round_1" WHERE "home_team"='sydney spirit';
2-16653153-8
what is the box score when the home team is melbourne tigers?
CREATE TABLE "round_1" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );
SELECT "box_score" FROM "round_1" WHERE "home_team"='melbourne tigers';
2-16653153-8
who is the away team on 21 september?
CREATE TABLE "round_1" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );
SELECT "away_team" FROM "round_1" WHERE "date"='21 september';
2-16653153-8
When Ernie Els placed t2, what was his To par?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "third_round" WHERE "place"='t2' AND "player"='ernie els';
2-17162179-5
Where did Jay Haas place?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "player"='jay haas';
2-17162179-5
Where did Jim Furyk place?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "player"='jim furyk';
2-17162179-5
What was Jim Furyk's score?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "third_round" WHERE "player"='jim furyk';
2-17162179-5
What was the score for the To par of +1?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "third_round" WHERE "to_par"='+1';
2-17162179-5
Who placed in t5 and scored 73-69-68=210?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "place"='t5' AND "score"='73-69-68=210';
2-17162179-5
Who was the opponent when the record was 11-6-2?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "location" text );
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='11-6-2';
2-17446702-2
What is the home team of the match with an attendance greater than 202?
CREATE TABLE "fourth_round" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real );
SELECT "home_team" FROM "fourth_round" WHERE "attendance">202;
2-17494040-8
What is the average attendance of the match with arlesey town as the home team?
CREATE TABLE "fourth_round" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real );
SELECT AVG("attendance") FROM "fourth_round" WHERE "home_team"='arlesey town';
2-17494040-8
When was the Lakeside race where Paul Morris won?
CREATE TABLE "race_calendar" ( "race" real, "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );
SELECT "date" FROM "race_calendar" WHERE "race_title"='lakeside' AND "winner"='paul morris';
2-16640814-2
What was the score of the game against the phoenix suns?
CREATE TABLE "november" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text );
SELECT "score" FROM "november" WHERE "opponent"='phoenix suns';
2-16275352-5
What was the opponent of the game when the reocrd was 0-12?
CREATE TABLE "november" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text );
SELECT "opponent" FROM "november" WHERE "record"='0-12';
2-16275352-5
How many years had a location at Forest Hills and a score of 6–3, 6–3 for John McEnroe?
CREATE TABLE "singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );
SELECT COUNT("year") FROM "singles" WHERE "location"='forest hills' AND "runner_up"='john mcenroe' AND "score"='6–3, 6–3';
2-16236714-1
Who is the champion with a score of 7–6, 6–0?
CREATE TABLE "singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );
SELECT "champion" FROM "singles" WHERE "score"='7–6, 6–0';
2-16236714-1
Who is the runner-up in 1990?
CREATE TABLE "singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );
SELECT "runner_up" FROM "singles" WHERE "year"=1990;
2-16236714-1
When was the earliest year that Guillermo Vilas was the runner-up?
CREATE TABLE "singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );
SELECT MIN("year") FROM "singles" WHERE "runner_up"='guillermo vilas';
2-16236714-1
What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april?
CREATE TABLE "2013" ( "date" text, "place" text, "race_winners" text, "gp_winner" text, "source" text );
SELECT "source" FROM "2013" WHERE "race_winners"='ben adriaenssen / ben van den bogaart' AND "gp_winner"='ben adriaenssen / ben van den bogaart' AND "date"='1 april';
2-16729457-2
What is the GP winner for the Race winners valentin giraud / nicolas musset, and a place genk?
CREATE TABLE "2013" ( "date" text, "place" text, "race_winners" text, "gp_winner" text, "source" text );
SELECT "gp_winner" FROM "2013" WHERE "race_winners"='valentin giraud / nicolas musset' AND "place"='genk';
2-16729457-2
What is the date for a source of result and a place of iffendic?
CREATE TABLE "2013" ( "date" text, "place" text, "race_winners" text, "gp_winner" text, "source" text );
SELECT "date" FROM "2013" WHERE "source"='result' AND "place"='iffendic';
2-16729457-2
What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? What
CREATE TABLE "2013" ( "date" text, "place" text, "race_winners" text, "gp_winner" text, "source" text );
SELECT "date" FROM "2013" WHERE "place"='chernivtsi' AND "race_winners"='etienne bax / kaspars stupelis';
2-16729457-2
What is the GP winner with a place of genk, with race winners ben adriaenssen / ben van den bogaart?
CREATE TABLE "2013" ( "date" text, "place" text, "race_winners" text, "gp_winner" text, "source" text );
SELECT "gp_winner" FROM "2013" WHERE "place"='genk' AND "race_winners"='ben adriaenssen / ben van den bogaart';
2-16729457-2
What is the race winners for the date of 23 june?
CREATE TABLE "2013" ( "date" text, "place" text, "race_winners" text, "gp_winner" text, "source" text );
SELECT "race_winners" FROM "2013" WHERE "date"='23 june';
2-16729457-2
What date was the opponent in the final Barbara Paulus?
CREATE TABLE "wins_5" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "date" FROM "wins_5" WHERE "opponent_in_the_final"='barbara paulus';
2-17086086-2
What was the surface that Laura Golarsa and her opponent played on in the final?
CREATE TABLE "wins_5" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "surface" FROM "wins_5" WHERE "opponent_in_the_final"='laura golarsa';
2-17086086-2
What was the score for the opponent against Katerina Maleeva in the final?
CREATE TABLE "wins_5" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "score" FROM "wins_5" WHERE "opponent_in_the_final"='katerina maleeva';
2-17086086-2
What's the name that had a moving to Anorthosis Famagusta and a transfer window of winter?
CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "name" FROM "squad_changes" WHERE "transfer_window"='winter' AND "moving_to"='anorthosis famagusta';
2-17486851-2
What is the Nat with a mutual consent loan return and has a free transfer fee?
CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "nat" FROM "squad_changes" WHERE "transfer_fee"='free' AND "type"='mutual consent loan return';
2-17486851-2
What is the type of POR?
CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "type" FROM "squad_changes" WHERE "nat"='por';
2-17486851-2
What's the name of MKD?
CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "name" FROM "squad_changes" WHERE "nat"='mkd';
2-17486851-2
What is the sum of the attendance on November 24?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real );
SELECT SUM("attendance") FROM "game_log" WHERE "date"='november 24';
2-17301013-3
What team did the Flames play against when 526 people attended the game?
CREATE TABLE "october" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "competition" text, "man_of_the_match" text );
SELECT "opponent" FROM "october" WHERE "attendance"=526;
2-17120964-5
Rick Plant was the man of the match in what competition?
CREATE TABLE "october" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "competition" text, "man_of_the_match" text );
SELECT "competition" FROM "october" WHERE "man_of_the_match"='rick plant';
2-17120964-5
Who did the Flames play against when Stephen Lee was the man of the match?
CREATE TABLE "october" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "competition" text, "man_of_the_match" text );
SELECT "opponent" FROM "october" WHERE "man_of_the_match"='stephen lee';
2-17120964-5
How many people attended the game when the game was won 4-2?
CREATE TABLE "october" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "competition" text, "man_of_the_match" text );
SELECT COUNT("attendance") FROM "october" WHERE "result"='won 4-2';
2-17120964-5
For what competition was the venue away the n/a the man of the match?
CREATE TABLE "october" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "competition" text, "man_of_the_match" text );
SELECT "competition" FROM "october" WHERE "venue"='away' AND "man_of_the_match"='n/a';
2-17120964-5
What is BP's lowest sales?
CREATE TABLE "2005_list" ( "rank" real, "company" text, "country" text, "industry" text, "sales_billion" real, "profits_billion" real, "assets_billion" real, "market_value_billion" real );
SELECT MIN("sales_billion") FROM "2005_list" WHERE "company"='bp';
2-1682026-9
What was the record of the Denver Broncos when they play at Mile High Stadium against the Minnesota Vikings and 38,494 fans were in attendance?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "record" FROM "schedule" WHERE "attendance">'38,494' AND "game_site"='mile high stadium' AND "opponent"='minnesota vikings';
2-16729063-2
What was the final game result that was played on December 2?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "result" FROM "schedule" WHERE "date"='december 2';
2-16729063-2
What week was the game played at Rich Stadium?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "week" FROM "schedule" WHERE "game_site"='rich stadium';
2-16729063-2
What is the sum of FA Cup goals when there are 19 league goals?
CREATE TABLE "third_division" ( "scorer" text, "club" text, "league_goals" text, "fa_cup_goals" real, "league_cup_goals" text, "total" real );
SELECT SUM("fa_cup_goals") FROM "third_division" WHERE "league_goals"='19';
2-16454477-14
Which club has 16 league goals for a total of 20?
CREATE TABLE "third_division" ( "scorer" text, "club" text, "league_goals" text, "fa_cup_goals" real, "league_cup_goals" text, "total" real );
SELECT "club" FROM "third_division" WHERE "league_goals"='16' AND "total"=20;
2-16454477-14
How many League Cup goals correspond to 3 FA Cup Goals and a total over 15 for Chesterfield?
CREATE TABLE "third_division" ( "scorer" text, "club" text, "league_goals" text, "fa_cup_goals" real, "league_cup_goals" text, "total" real );
SELECT "league_cup_goals" FROM "third_division" WHERE "total">15 AND "fa_cup_goals"=3 AND "club"='chesterfield';
2-16454477-14
What was the result of the april 6, 2002 game against the greensboro prowlers?
CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text );
SELECT "result" FROM "regular_season" WHERE "opponent"='greensboro prowlers' AND "date"='april 6, 2002';
2-17285395-1
Which Location has Floors smaller than 27, and a Building of 150 elgin?
CREATE TABLE "projects_as_of_march_2013" ( "building" text, "location" text, "height" text, "floors" real, "status" text );
SELECT "location" FROM "projects_as_of_march_2013" WHERE "floors"<27 AND "building"='150 elgin';
2-1722347-2
Which Status has a Building of the rhombus?
CREATE TABLE "projects_as_of_march_2013" ( "building" text, "location" text, "height" text, "floors" real, "status" text );
SELECT "status" FROM "projects_as_of_march_2013" WHERE "building"='the rhombus';
2-1722347-2