question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
I want the driver with Laps larger than 16 with a ferrari and grid less than 15
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "race" WHERE "laps">16 AND "constructor"='ferrari' AND "grid"<15;
2-1123299-2
What is the D 46 √ with a D 43 √ with r 3?
CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text );
SELECT "d_46" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_43"='r 3';
2-1178059-2
What is the D 43 √ with a D 49 √ with d 49 √?
CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text );
SELECT "d_43" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_49"='d 49 √';
2-1178059-2
What is the D 48 √ with a D 46 √ with r 33 o?
CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text );
SELECT "d_48" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_46"='r 33 o';
2-1178059-2
What is the D 48 √ with a D 49 √ with r 9?
CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text );
SELECT "d_48" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_49"='r 9';
2-1178059-2
What is the D 46 √ with a D 41 √ with d 38 √?
CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text );
SELECT "d_46" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_41"='d 38 √';
2-1178059-2
What is the D 45 √ with a D 46 √ with d 46 √?
CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text );
SELECT "d_45" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_46"='d 46 √';
2-1178059-2
Which constructor was there for the race with 25 laps?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "classification" WHERE "laps"=25;
2-1122398-1
Which driver had brm as a constructor and a time/retired of engine?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "classification" WHERE "constructor"='brm' AND "time_retired"='engine';
2-1122398-1
What is the call sign for a class of A?
CREATE TABLE "repeaters" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );
SELECT "call_sign" FROM "repeaters" WHERE "class"='a';
2-11551166-2
What is the average frequency MHz for license of eastville, virginia?
CREATE TABLE "repeaters" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );
SELECT AVG("frequency_m_hz") FROM "repeaters" WHERE "city_of_license"='eastville, virginia';
2-11551166-2
What is the average ERP W when the call sign is whre?
CREATE TABLE "repeaters" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );
SELECT AVG("erp_w") FROM "repeaters" WHERE "call_sign"='whre';
2-11551166-2
What is the name of the school in Hillcrest?
CREATE TABLE "kaipatiki_local_board" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );
SELECT "name" FROM "kaipatiki_local_board" WHERE "area"='hillcrest';
2-12017602-5
What are the years available at Bayview School, which has state authority and a roll number larger than 333?
CREATE TABLE "kaipatiki_local_board" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );
SELECT "years" FROM "kaipatiki_local_board" WHERE "authority"='state' AND "roll">333 AND "name"='bayview school';
2-12017602-5
When was Tomokazu Soma born who plays for the wild knights?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "date_of_birth_age" FROM "2007_rugby_world_cup_squads" WHERE "club_province"='wild knights' AND "player"='tomokazu soma';
2-11783766-11
On November 19, 2008 what was the score?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "score" FROM "international_goals" WHERE "date"='november 19, 2008';
2-11630069-1
What is the score on February 23, 2005?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "score" FROM "international_goals" WHERE "date"='february 23, 2005';
2-11630069-1
What is the result foe October 12, 2005?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "international_goals" WHERE "date"='october 12, 2005';
2-11630069-1
How many events for orville moody, ranking below 3?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real );
SELECT SUM("events") FROM "leaders" WHERE "rank">3 AND "player"='orville moody';
2-11622840-3
What is the rank for don january with over 2 wins and over 17 events?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real );
SELECT MIN("rank") FROM "leaders" WHERE "wins">2 AND "player"='don january' AND "events">17;
2-11622840-3
What is the score of the Home team of geelong?
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 "home_team_score" FROM "round_6" WHERE "home_team"='geelong';
2-10823950-6
Which Away team has a Home team of south melbourne?
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 "home_team"='south melbourne';
2-10823950-6
Which Away team has a Venue of arden street oval?
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"='arden street oval';
2-10823950-6
Which Away team score has a Venue of scg?
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_score" FROM "round_6" WHERE "venue"='scg';
2-10823950-6
What school has the player of mike rosario?
CREATE TABLE "2008_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "school" FROM "2008_boys_team" WHERE "player"='mike rosario';
2-11677760-21
What was the nba draft for al-farouq aminu?
CREATE TABLE "2008_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "nba_draft" FROM "2008_boys_team" WHERE "player"='al-farouq aminu';
2-11677760-21
What was the average attendance of a team with a 38–31–8 record?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT AVG("attendance") FROM "march" WHERE "record"='38–31–8';
2-11756731-8
What is the smallest grid for Bob Anderson?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MIN("grid") FROM "classification" WHERE "driver"='bob anderson';
2-1122356-1
What was the time when the score was 0–3?
CREATE TABLE "pool_j" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text );
SELECT "time" FROM "pool_j" WHERE "score"='0–3';
2-11823251-21
What was the first set with a third set of 25–21?
CREATE TABLE "pool_j" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text );
SELECT "set_1" FROM "pool_j" WHERE "set_3"='25–21';
2-11823251-21
How many total games associated with the Pac-12 of california and 117 years?
CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" ( "pac_12" text, "lost" real, "tied" real, "pct" real, "years" real, "total_games" real );
SELECT "total_games" FROM "ncaa_division_i_fbs_football_win_loss_re" WHERE "years"=117 AND "pac_12"='california';
2-11513625-11
How many games tied for the team with over 94 years in the conference, lost under 5,297 games, and a percentage higher than 0.6106?
CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" ( "pac_12" text, "lost" real, "tied" real, "pct" real, "years" real, "total_games" real );
SELECT "tied" FROM "ncaa_division_i_fbs_football_win_loss_re" WHERE "years">94 AND "lost"<'5,297' AND "pct">0.6106;
2-11513625-11
What is the average number of years associated with 51 games tied and over 1184 total games?
CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" ( "pac_12" text, "lost" real, "tied" real, "pct" real, "years" real, "total_games" real );
SELECT AVG("years") FROM "ncaa_division_i_fbs_football_win_loss_re" WHERE "tied"=51 AND "total_games">1184;
2-11513625-11
What is the highest number of games tied for teams with under 551 games and a percentage of under 0.5593?
CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" ( "pac_12" text, "lost" real, "tied" real, "pct" real, "years" real, "total_games" real );
SELECT MAX("tied") FROM "ncaa_division_i_fbs_football_win_loss_re" WHERE "pct"<0.5593 AND "lost"=551;
2-11513625-11
Name the country for airline of gol
CREATE TABLE "passengers_carried_in_2011" ( "rank" real, "airline" text, "country" text, "remarks" text, "alliance" text );
SELECT "country" FROM "passengers_carried_in_2011" WHERE "airline"='gol';
2-11898258-5
Name the airline for rank of 4
CREATE TABLE "passengers_carried_in_2011" ( "rank" real, "airline" text, "country" text, "remarks" text, "alliance" text );
SELECT "airline" FROM "passengers_carried_in_2011" WHERE "rank"=4;
2-11898258-5
What digital reaction has a hot 100 reaction of 4 (+4)?
CREATE TABLE "guest_performances" ( "week" text, "performer_s" text, "hot_100_reaction" text, "hot_digital_songs_reaction" text, "notes" text );
SELECT "hot_digital_songs_reaction" FROM "guest_performances" WHERE "hot_100_reaction"='4 (+4)';
2-11954383-18
What digital reaction has hot 100 reaction of 2 (+1)?
CREATE TABLE "guest_performances" ( "week" text, "performer_s" text, "hot_100_reaction" text, "hot_digital_songs_reaction" text, "notes" text );
SELECT "hot_digital_songs_reaction" FROM "guest_performances" WHERE "hot_100_reaction"='2 (+1)';
2-11954383-18
Which week has hot 100 reaction as did not debut for Natalie Cole?
CREATE TABLE "guest_performances" ( "week" text, "performer_s" text, "hot_100_reaction" text, "hot_digital_songs_reaction" text, "notes" text );
SELECT "week" FROM "guest_performances" WHERE "hot_100_reaction"='did not debut' AND "performer_s"='natalie cole';
2-11954383-18
What is the hot 100 reaction in week of top 13 for Kanye West?
CREATE TABLE "guest_performances" ( "week" text, "performer_s" text, "hot_100_reaction" text, "hot_digital_songs_reaction" text, "notes" text );
SELECT "hot_100_reaction" FROM "guest_performances" WHERE "week"='top 13' AND "performer_s"='kanye west';
2-11954383-18
What is the digital reaction for week of top 5 for Taylor Hicks?
CREATE TABLE "guest_performances" ( "week" text, "performer_s" text, "hot_100_reaction" text, "hot_digital_songs_reaction" text, "notes" text );
SELECT "hot_digital_songs_reaction" FROM "guest_performances" WHERE "week"='top 5' AND "performer_s"='taylor hicks';
2-11954383-18
Which Time/Retired had a grid number bigger than 1 and whose driver was Damon Hill?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "time_retired" FROM "classification" WHERE "grid">1 AND "driver"='damon hill';
2-1123331-1
Which lap number had Olivier Panis as a driver?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "laps" FROM "classification" WHERE "driver"='olivier panis';
2-1123331-1
what is the grid when the time/retired is oil pressure and the laps are more than 50?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("grid") FROM "classification" WHERE "time_retired"='oil pressure' AND "laps">50;
2-1122492-1
what is the grid when the time/retired is 1:46:42.3?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT SUM("grid") FROM "classification" WHERE "time_retired"='1:46:42.3';
2-1122492-1
What was the attendance when Fitzroy played as the away team?
CREATE TABLE "round_12" ( "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_12" WHERE "away_team"='fitzroy';
2-10790099-12
What did the home team score at Western Oval?
CREATE TABLE "round_12" ( "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_12" WHERE "venue"='western oval';
2-10790099-12
Who was the home team when the attendance was more than 20,283?
CREATE TABLE "round_12" ( "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_12" WHERE "crowd">'20,283';
2-10790099-12
On April 29, with a game larger than 2, what is the high points?
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 "high_points" FROM "playoffs" WHERE "game">2 AND "date"='april 29';
2-11963601-10
What was the score for Game 3?
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 "score" FROM "playoffs" WHERE "game"=3;
2-11963601-10
What is the grid total for cars that went 17 laps?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT SUM("grid") FROM "classification" WHERE "laps"=17;
2-1122902-1
How many golds for the nation ranked below 5 and over 1 bronze medals?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("gold") FROM "medal_table" WHERE "rank">5 AND "bronze"<1;
2-11566142-1
During footscray's home match, who was the away team?
CREATE TABLE "round_12" ( "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_12" WHERE "home_team"='footscray';
2-10807253-12
On which date did an away team score 9.16 (70)?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_12" WHERE "away_team_score"='9.16 (70)';
2-10807253-12
Which format had a United States region and a date of August 11, 2009?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "format" FROM "release_history" WHERE "region"='united states' AND "date"='august 11, 2009';
2-1097180-5
Which date had a Japan region?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "date" FROM "release_history" WHERE "region"='japan';
2-1097180-5
Which region had a catalogue number of 9362482872?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "region" FROM "release_history" WHERE "catalogue"='9362482872';
2-1097180-5
Which region had the date of November 18, 2002?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "region" FROM "release_history" WHERE "date"='november 18, 2002';
2-1097180-5
Which label had a Japan region and a date of November 3, 2004?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "label" FROM "release_history" WHERE "region"='japan' AND "date"='november 3, 2004';
2-1097180-5
Which label had a CD format and a date of June 25, 2002?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "label" FROM "release_history" WHERE "format"='cd' AND "date"='june 25, 2002';
2-1097180-5
What award was nominated in 2007?
CREATE TABLE "awards_and_recognition" ( "year" real, "result" text, "award" text, "film_or_series" text, "character" text );
SELECT "award" FROM "awards_and_recognition" WHERE "result"='nominated' AND "year"=2007;
2-1110019-1
What year did was the Inside Soap Awards won?
CREATE TABLE "awards_and_recognition" ( "year" real, "result" text, "award" text, "film_or_series" text, "character" text );
SELECT AVG("year") FROM "awards_and_recognition" WHERE "result"='won' AND "award"='inside soap awards';
2-1110019-1
What was the record for the game on April 9, 2008?
CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "record" FROM "april" WHERE "date"='april 9, 2008';
2-11962021-10
Who was the leading scorer on April 9, 2008?
CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "leading_scorer" FROM "april" WHERE "date"='april 9, 2008';
2-11962021-10
in a game against st kilda, what was the away team's score?
CREATE TABLE "round_4" ( "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_4" WHERE "home_team"='st kilda';
2-1164217-4
In the match where geelong was the away team, who 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 "home_team" FROM "round_19" WHERE "away_team"='geelong';
2-10826072-19
What did the away team score when the home team scored 12.11 (83)?
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 "away_team_score" FROM "round_9" WHERE "home_team_score"='12.11 (83)';
2-10809529-9
Who was the home team in the game where the away team scored 14.19 (103)?
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 "home_team" FROM "round_9" WHERE "away_team_score"='14.19 (103)';
2-10809529-9
What is the number of votes for the party which got more than 28 seats?
CREATE TABLE "result_of_the_24th_election_to_the_new_z" ( "party" text, "leader" text, "votes" real, "percentage" text, "seats" real );
SELECT COUNT("votes") FROM "result_of_the_24th_election_to_the_new_z" WHERE "seats">28;
2-1189910-1
What is the number of votes for the Party of Labour?
CREATE TABLE "result_of_the_24th_election_to_the_new_z" ( "party" text, "leader" text, "votes" real, "percentage" text, "seats" real );
SELECT MIN("votes") FROM "result_of_the_24th_election_to_the_new_z" WHERE "party"='labour';
2-1189910-1
What is the percentage of votes for the party that has Seats of 80?
CREATE TABLE "result_of_the_24th_election_to_the_new_z" ( "party" text, "leader" text, "votes" real, "percentage" text, "seats" real );
SELECT "percentage" FROM "result_of_the_24th_election_to_the_new_z" WHERE "seats"=80;
2-1189910-1
Who is the leader of the party which has Seats less than 28, a percentage of votes 54.03, and more votes than 120,801?
CREATE TABLE "result_of_the_24th_election_to_the_new_z" ( "party" text, "leader" text, "votes" real, "percentage" text, "seats" real );
SELECT "leader" FROM "result_of_the_24th_election_to_the_new_z" WHERE "seats"<28 AND "percentage"='54.03' AND "votes">'120,801';
2-1189910-1
Which highest number of Seats has votes of 244,867?
CREATE TABLE "result_of_the_24th_election_to_the_new_z" ( "party" text, "leader" text, "votes" real, "percentage" text, "seats" real );
SELECT MAX("seats") FROM "result_of_the_24th_election_to_the_new_z" WHERE "votes"='244,867';
2-1189910-1
What was the Away team score when the Home team had a score of 13.12 (90)?
CREATE TABLE "round_1" ( "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_1" WHERE "home_team_score"='13.12 (90)';
2-10807673-1
What was the lowest Crowd of the game that had an Away team score of 13.17 (95)?
CREATE TABLE "round_1" ( "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_1" WHERE "away_team_score"='13.17 (95)';
2-10807673-1
What was the Date of the game of the Home team of melbourne?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_1" WHERE "home_team"='melbourne';
2-10807673-1
What was the score of the Home team in the game that had the Away team of south melbourne?
CREATE TABLE "round_1" ( "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_1" WHERE "away_team"='south melbourne';
2-10807673-1
what was the away team for the north melbourne home team?
CREATE TABLE "round_2" ( "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_2" WHERE "home_team"='north melbourne';
2-1164217-2
what was the away team score in a game with north melbourne as home team?
CREATE TABLE "round_2" ( "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_2" WHERE "home_team"='melbourne';
2-1164217-2
what was the away team with st kilda as the away team?
CREATE TABLE "round_2" ( "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_2" WHERE "away_team"='st kilda';
2-1164217-2
How many yards for the player with 20 solo tackles and under 0 TDs?
CREATE TABLE "defense" ( "player" text, "tackles" real, "solo" real, "assisted" real, "sack" real, "yards" real, "td_s" real );
SELECT SUM("yards") FROM "defense" WHERE "solo"=20 AND "td_s"<0;
2-11938965-7
How many yards for the player with 1 solo tackle and over 0 sacks?
CREATE TABLE "defense" ( "player" text, "tackles" real, "solo" real, "assisted" real, "sack" real, "yards" real, "td_s" real );
SELECT MAX("yards") FROM "defense" WHERE "solo"=1 AND "sack">0;
2-11938965-7
What does a hand of Theoretical return have as a 3 credit?
CREATE TABLE "see_also" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text );
SELECT "3_credits" FROM "see_also" WHERE "hand"='theoretical return';
2-11200856-1
Which hand results in a 2 credits of 16?
CREATE TABLE "see_also" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text );
SELECT "hand" FROM "see_also" WHERE "2_credits"='16';
2-11200856-1
What does full house have as a 5 credits?
CREATE TABLE "see_also" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text );
SELECT "5_credits" FROM "see_also" WHERE "hand"='full house';
2-11200856-1
What is the 2 credits of a hand that has a 3 credits of 180?
CREATE TABLE "see_also" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text );
SELECT "2_credits" FROM "see_also" WHERE "3_credits"='180';
2-11200856-1
What would be the 4 credits result of a straight?
CREATE TABLE "see_also" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text );
SELECT "4_credits" FROM "see_also" WHERE "hand"='straight';
2-11200856-1
What team did the away team play against when they scored 11.9 (75)?
CREATE TABLE "round_12" ( "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_12" WHERE "away_team_score"='11.9 (75)';
2-10826385-12
Who was the home team at the game that had a score of 2 – 2?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "game_log" WHERE "score"='2 – 2';
2-11945691-3
What was the date of the game when Colorado was the visiting team and Chicago was the home team?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "date" FROM "game_log" WHERE "visitor"='colorado' AND "home"='chicago';
2-11945691-3
What was the date of the game when the Avalanche had a record of 8–3–1?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "date" FROM "game_log" WHERE "record"='8–3–1';
2-11945691-3
Who was the opponents of the 5th Wicket Partnership?
CREATE TABLE "partnership_records" ( "wicket_partnership" text, "runs" text, "batsmen" text, "opponents" text, "venue" text, "season" text );
SELECT "opponents" FROM "partnership_records" WHERE "wicket_partnership"='5th';
2-11337751-4
In which season was there a competition in the Champions League?
CREATE TABLE "fc_alania_in_europe" ( "season" text, "competition" text, "round" text, "club" text, "score" text );
SELECT "season" FROM "fc_alania_in_europe" WHERE "competition"='champions league';
2-1167720-1
What scores did the RSC Anderlecht club have?
CREATE TABLE "fc_alania_in_europe" ( "season" text, "competition" text, "round" text, "club" text, "score" text );
SELECT "score" FROM "fc_alania_in_europe" WHERE "club"='rsc anderlecht';
2-1167720-1
What is the average rank of the movie with an opening week net gross more than 81,77,00,000 after 2012?
CREATE TABLE "biggest_opening_week_nett_gross_first_7_" ( "rank" real, "movie" text, "year" real, "studio_s" text, "opening_week_nett_gross" real );
SELECT AVG("rank") FROM "biggest_opening_week_nett_gross_first_7_" WHERE "opening_week_nett_gross">'81,77,00,000' AND "year">2012;
2-11872185-8
What is the highest opening week net gross of the movie ranked higher than 5 from Reliance Entertainment?
CREATE TABLE "biggest_opening_week_nett_gross_first_7_" ( "rank" real, "movie" text, "year" real, "studio_s" text, "opening_week_nett_gross" real );
SELECT MAX("opening_week_nett_gross") FROM "biggest_opening_week_nett_gross_first_7_" WHERE "rank"<5 AND "studio_s"='reliance entertainment';
2-11872185-8
What is the highest rank of Jab Tak Hai Jaan, which has an opening week net gross less than 99,00,00,000 and was after 2012?
CREATE TABLE "biggest_opening_week_nett_gross_first_7_" ( "rank" real, "movie" text, "year" real, "studio_s" text, "opening_week_nett_gross" real );
SELECT MAX("rank") FROM "biggest_opening_week_nett_gross_first_7_" WHERE "opening_week_nett_gross"<'99,00,00,000' AND "movie"='jab tak hai jaan' AND "year">2012;
2-11872185-8
What is the highest rank of the movie with an opening week net gross less than 80,87,00,000 before 2011?
CREATE TABLE "biggest_opening_week_nett_gross_first_7_" ( "rank" real, "movie" text, "year" real, "studio_s" text, "opening_week_nett_gross" real );
SELECT MAX("rank") FROM "biggest_opening_week_nett_gross_first_7_" WHERE "year"<2011 AND "opening_week_nett_gross"<'80,87,00,000';
2-11872185-8
Tell me the total number of Grid for Bob Evans and Laps less than 68
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("grid") FROM "classification" WHERE "driver"='bob evans' AND "laps"<68;
2-1122641-1
Tell me constructor for Laps less than 17 and Grid more than 11 for alan jones
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "classification" WHERE "laps"<17 AND "grid">11 AND "driver"='alan jones';
2-1122641-1