question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is Winner, when City / State is "Mallala , South Australia", and when Team is "Elfin Sports Cars"?
CREATE TABLE "race_calendar" ( "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );
SELECT "winner" FROM "race_calendar" WHERE "city_state"='mallala , south australia' AND "team"='elfin sports cars';
2-17677697-2
What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"?
CREATE TABLE "race_calendar" ( "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );
SELECT "circuit" FROM "race_calendar" WHERE "team"='r.j.macarthur onslow' AND "city_state"='sydney , new south wales';
2-17677697-2
What is Winner, when Team is "R.J.MacArthur Onslow", and when Circuit is "Oran Park Raceway"?
CREATE TABLE "race_calendar" ( "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );
SELECT "winner" FROM "race_calendar" WHERE "team"='r.j.macarthur onslow' AND "circuit"='oran park raceway';
2-17677697-2
What is Date, when City / State is "Mallala , South Australia", and when Team is "R.J.MacArthur Onslow"?
CREATE TABLE "race_calendar" ( "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );
SELECT "date" FROM "race_calendar" WHERE "city_state"='mallala , south australia' AND "team"='r.j.macarthur onslow';
2-17677697-2
What is Winner, when Date is "20 August"?
CREATE TABLE "race_calendar" ( "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );
SELECT "winner" FROM "race_calendar" WHERE "date"='20 august';
2-17677697-2
What is the total number of points with less than 49 points in 2008-09, and 46 points in 2006-07?
CREATE TABLE "relegation" ( "team" text, "2006_07_pts" text, "2007_08_pts" text, "2008_09_pts" real, "total_pts" real, "total_pld" real );
SELECT COUNT("total_pts") FROM "relegation" WHERE "2008_09_pts"<49 AND "2006_07_pts"='46';
2-18226336-10
What is the total pld that has 36 points in 2007-08, and less than 55 points in 2008-09?
CREATE TABLE "relegation" ( "team" text, "2006_07_pts" text, "2007_08_pts" text, "2008_09_pts" real, "total_pts" real, "total_pld" real );
SELECT SUM("total_pld") FROM "relegation" WHERE "2007_08_pts"='36' AND "2008_09_pts"<55;
2-18226336-10
What is the lowest total pld with 57 points in 2006-07, and more than 39 points in 2008-09
CREATE TABLE "relegation" ( "team" text, "2006_07_pts" text, "2007_08_pts" text, "2008_09_pts" real, "total_pts" real, "total_pld" real );
SELECT MIN("total_pld") FROM "relegation" WHERE "2006_07_pts"='57' AND "2008_09_pts">39;
2-18226336-10
What actor was nominated for best actress?
CREATE TABLE "for_actors_in_woody_allen_films" ( "year" real, "film" text, "result" text, "category" text, "actor" text );
SELECT "actor" FROM "for_actors_in_woody_allen_films" WHERE "result"='nominated' AND "category"='best actress';
2-18141883-3
What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category?
CREATE TABLE "for_actors_in_woody_allen_films" ( "year" real, "film" text, "result" text, "category" text, "actor" text );
SELECT "year" FROM "for_actors_in_woody_allen_films" WHERE "film"='bullets over broadway' AND "category"='best supporting actress' AND "actor"='jennifer tilly';
2-18141883-3
What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?
CREATE TABLE "for_actors_in_woody_allen_films" ( "year" real, "film" text, "result" text, "category" text, "actor" text );
SELECT "result" FROM "for_actors_in_woody_allen_films" WHERE "year">1989 AND "category"='best supporting actress' AND "actor"='samantha morton';
2-18141883-3
What film was Dianne Wiest in?
CREATE TABLE "for_actors_in_woody_allen_films" ( "year" real, "film" text, "result" text, "category" text, "actor" text );
SELECT "film" FROM "for_actors_in_woody_allen_films" WHERE "actor"='dianne wiest';
2-18141883-3
Which class has fewer than 10 and number(s) names?
CREATE TABLE "tank_locomotives" ( "class" text, "number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text );
SELECT "class" FROM "tank_locomotives" WHERE "quantity"<10 AND "number_s"='names';
2-17941795-5
What is the type with a quantity of fewer than 6 and number(s) 5201?
CREATE TABLE "tank_locomotives" ( "class" text, "number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text );
SELECT "type" FROM "tank_locomotives" WHERE "quantity"<6 AND "number_s"='5201';
2-17941795-5
How many byes were then when there were less than 737 against?
CREATE TABLE "1969_as_three_leagues_come_together" ( "glenelg_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT SUM("byes") FROM "1969_as_three_leagues_come_together" WHERE "against"<737;
2-17746037-5
How many wins were there when the byes were more than 3?
CREATE TABLE "1969_as_three_leagues_come_together" ( "glenelg_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT COUNT("wins") FROM "1969_as_three_leagues_come_together" WHERE "byes">3;
2-17746037-5
How many wins were there when draws were more than 0?
CREATE TABLE "1969_as_three_leagues_come_together" ( "glenelg_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MIN("wins") FROM "1969_as_three_leagues_come_together" WHERE "draws">0;
2-17746037-5
How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?
CREATE TABLE "1969_as_three_leagues_come_together" ( "glenelg_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT COUNT("wins") FROM "1969_as_three_leagues_come_together" WHERE "glenelg_fl"='bahgallah' AND "byes">3;
2-17746037-5
What is Date, when Opponent in Final is "Guy Forget"?
CREATE TABLE "wins_15" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text );
SELECT "date" FROM "wins_15" WHERE "opponent_in_final"='guy forget';
2-1800323-5
What is Opponent in Final, when Date is "13 January 1992"?
CREATE TABLE "wins_15" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text );
SELECT "opponent_in_final" FROM "wins_15" WHERE "date"='13 january 1992';
2-1800323-5
What is Opponent in Final, when Surface is "Hard", and when Date is "13 January 1992"?
CREATE TABLE "wins_15" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text );
SELECT "opponent_in_final" FROM "wins_15" WHERE "surface"='hard' AND "date"='13 january 1992';
2-1800323-5
What is the Height of the Player with a Date of Birth of 1979-06-12?
CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "height" FROM "australia" WHERE "date_of_birth"='1979-06-12';
2-17774593-2
What is the Height of the Player with a Date of Birth of 1982-07-05?
CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "height" FROM "australia" WHERE "date_of_birth"='1982-07-05';
2-17774593-2
What is the Height of the Player with a Date of Birth of 1982-07-05?
CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "height" FROM "australia" WHERE "date_of_birth"='1982-07-05';
2-17774593-2
What is the Weight of the Player with a Date of Birth of 1979-09-26?
CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "weight" FROM "australia" WHERE "date_of_birth"='1979-09-26';
2-17774593-2
What is Elise Norwood's Pos.?
CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "pos" FROM "australia" WHERE "name"='elise norwood';
2-17774593-2
What is the Club of the Player with a Date of Birth of 1977-02-03?
CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "club" FROM "australia" WHERE "date_of_birth"='1977-02-03';
2-17774593-2
What home has 1-5 as the away?
CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "home" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "away"='1-5';
2-17918213-13
What league has 2-3 as the away?
CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "league" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "away"='2-3';
2-17918213-13
What away has 1-4 as the home?
CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "away" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "home"='1-4';
2-17918213-13
What teams has 1-5 as the away?
CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "teams" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "away"='1-5';
2-17918213-13
What Date had a Series of ATCC Round 6?
CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text );
SELECT "date" FROM "race_calendar" WHERE "series"='atcc round 6';
2-17670122-1
Who was the Winner in the AMC Round 4 at Lakeside International Raceway?
CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text );
SELECT "winner" FROM "race_calendar" WHERE "circuit"='lakeside international raceway' AND "series"='amc round 4';
2-17670122-1
What is the week 15 result for the team that had a week 9 result of Washington (6-1)?
CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text );
SELECT "week_15_final_dec_9" FROM "bcs_standings" WHERE "week_9_oct_29"='washington (6-1)';
2-17909403-3
What is the week 10 result for the tean when the week 15 result is Illinois (10-1)?
CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text );
SELECT "week_10_nov_5" FROM "bcs_standings" WHERE "week_15_final_dec_9"='illinois (10-1)';
2-17909403-3
What is the week 10 result where the week 9 result was Dropped: Maryland South Carolina?
CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text );
SELECT "week_10_nov_5" FROM "bcs_standings" WHERE "week_9_oct_29"='dropped: maryland south carolina';
2-17909403-3
What is the week 13 result where the week 14 resulted in Maryland (10-1)?
CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text );
SELECT "week_13_nov_26" FROM "bcs_standings" WHERE "week_14_dec_3"='maryland (10-1)';
2-17909403-3
What happened in week 14 when week 11's result was Michigan (7-2)?
CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text );
SELECT "week_14_dec_3" FROM "bcs_standings" WHERE "week_11_nov_12"='michigan (7-2)';
2-17909403-3
What happened in week 12 when week 13 resulted in Tennessee (9-1)?
CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text );
SELECT "week_12_nov_19" FROM "bcs_standings" WHERE "week_13_nov_26"='tennessee (9-1)';
2-17909403-3
What is the fewest bronze medals when the total medals is less than 10, and the gold medals less than 0?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("bronze") FROM "medal_table" WHERE "total"<10 AND "gold"<0;
2-177520-1
With 8 as the rank, and a total of more than 2 medals what is the average bronze medals?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "rank"='8' AND "total">2;
2-177520-1
What is the maximum total medals when the rank is 8?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("total") FROM "medal_table" WHERE "rank"='8';
2-177520-1
What is the largest number of gold medals when the bronze medals is less than 49, and there is 22 silver medals, and the total is less than 60?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("gold") FROM "medal_table" WHERE "bronze"<49 AND "silver"=22 AND "total"<60;
2-177520-1
When the number of gold medals is greater than 59, and the rank is total, what is the average bronze medals?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "rank"='total' AND "gold">59;
2-177520-1
What is the smallest number of medals a country with more than 14 silver has?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("total") FROM "performances_by_nation" WHERE "silver">14;
2-17828741-2
What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("rank") FROM "performances_by_nation" WHERE "gold">2 AND "total"<31 AND "silver"<5;
2-17828741-2
WHat was the score for Phil Mickelson when he placed t3?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "place"='t3' AND "player"='phil mickelson';
2-18017347-5
What place did the golfer take whose country is South Africa?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "second_round" WHERE "country"='south africa';
2-18017347-5
What was the result of the game played at Jeppesen Stadium?
CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "result" FROM "regular_season" WHERE "game_site"='jeppesen stadium';
2-17765888-1
What week was the game played on November 12, 1961, with an attendance of 7,859 played?
CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT MIN("week") FROM "regular_season" WHERE "date"='november 12, 1961' AND "attendance"<'7,859';
2-17765888-1
What decade is the artist the replacements?
CREATE TABLE "track_listing" ( "song_title" text, "artist" text, "decade" text, "genre" text, "exportable" text );
SELECT "decade" FROM "track_listing" WHERE "artist"='the replacements';
2-18207222-1
What is the number of households in the county with median income of $65,240 and population greater than 744,344?
CREATE TABLE "new_york_counties_ranked_by_per_capita_i" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT SUM("number_of_households") FROM "new_york_counties_ranked_by_per_capita_i" WHERE "median_family_income"='$65,240' AND "population">'744,344';
2-1828102-1
What is the population of Tioga county?
CREATE TABLE "new_york_counties_ranked_by_per_capita_i" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT "population" FROM "new_york_counties_ranked_by_per_capita_i" WHERE "county"='tioga';
2-1828102-1
Which Constructor has Laps larger than 9, and a Grid smaller than 2?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "race" WHERE "laps">9 AND "grid"<2;
2-1790368-3
What's filiberto rivera's height?
CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text );
SELECT COUNT("height") FROM "fiba_world_olympic_qualifying_tournament" WHERE "player"='filiberto rivera';
2-18228282-11
Who has a position of sg?
CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text );
SELECT "player" FROM "fiba_world_olympic_qualifying_tournament" WHERE "position"='sg';
2-18228282-11
Who has a height of 2.16?
CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text );
SELECT "player" FROM "fiba_world_olympic_qualifying_tournament" WHERE "height"=2.16;
2-18228282-11
What's the tallest height for c position in current club unicaja malaga?
CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text );
SELECT MAX("height") FROM "fiba_world_olympic_qualifying_tournament" WHERE "position"='c' AND "current_club"='unicaja malaga';
2-18228282-11
What was the attendance when the Southend United was the home team?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "attendance" FROM "first_round_proper" WHERE "home_team"='southend united';
2-17814838-3
Who was the away team that played Northampton Town at home with a tie number of replay?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='replay' AND "home_team"='northampton town';
2-17814838-3
Which Outcome has an Opponent in the final of simone colombo?
CREATE TABLE "singles_titles_2" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "outcome" FROM "singles_titles_2" WHERE "opponent_in_the_final"='simone colombo';
2-1828666-1
What is the sum of the glyph with a binary less than 111001, an octal less than 65, and a hexadecimal less than 30?
CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real );
SELECT SUM("glyph") FROM "evolution_of_symbols" WHERE "binary"<111001 AND "octal"<65 AND "hexadecimal"<30;
2-1786-1
What is the average hexadecimal with a decimal less than 53, an octal less than 61, and a glyph greater than 0?
CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real );
SELECT AVG("hexadecimal") FROM "evolution_of_symbols" WHERE "decimal"<53 AND "octal"<61 AND "glyph">0;
2-1786-1
What is the lowest octal with a 30 hexadecimal and less than 0 glyphs?
CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real );
SELECT MIN("octal") FROM "evolution_of_symbols" WHERE "hexadecimal"=30 AND "glyph"<0;
2-1786-1
What is the average hexadecimal with a decimal greater than 57?
CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real );
SELECT AVG("hexadecimal") FROM "evolution_of_symbols" WHERE "decimal">57;
2-1786-1
What is the average decimal with a 110010 binary and a glyph greater than 2?
CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real );
SELECT AVG("decimal") FROM "evolution_of_symbols" WHERE "binary"=110010 AND "glyph">2;
2-1786-1
What is the sum of the glyph with a 38 hexadecimal and a binary less than 111000?
CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real );
SELECT SUM("glyph") FROM "evolution_of_symbols" WHERE "hexadecimal"=38 AND "binary"<111000;
2-1786-1
What was the record in the game where the opponent wasd the atlanta falcons?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "record" FROM "schedule" WHERE "opponent"='atlanta falcons';
2-17794610-1
What was the highest attendance at a game that was played in tulane stadium?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT MAX("attendance") FROM "schedule" WHERE "game_site"='tulane stadium';
2-17794610-1
What is the category for the year when Brioude started and the stage is less than 7?
CREATE TABLE "appearances_in_the_tour_de_france" ( "year" real, "stage" real, "category" real, "start" text, "finish" text, "leader_at_the_summit" text );
SELECT COUNT("category") FROM "appearances_in_the_tour_de_france" WHERE "start"='brioude' AND "stage"<7;
2-18369222-1
What is the stage number when the category is less than 1?
CREATE TABLE "appearances_in_the_tour_de_france" ( "year" real, "stage" real, "category" real, "start" text, "finish" text, "leader_at_the_summit" text );
SELECT COUNT("stage") FROM "appearances_in_the_tour_de_france" WHERE "category"<1;
2-18369222-1
For the 1948-49 season, what was the At Home record?
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "home" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "season"='1948-49';
2-17918213-2
In which season was the Away record 2-2 and At Home record 1-0?
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "season" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "away"='2-2' AND "home"='1-0';
2-17918213-2
In the 1958-59 season, what league did the team play in?
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "league" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "season"='1958-59';
2-17918213-2
What team played in the Bundesliga league with an Away record of 2-1?
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "teams" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "league"='bundesliga' AND "away"='2-1';
2-17918213-2
What team(s) played in the 1995-96 season?
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "teams" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "season"='1995-96';
2-17918213-2
Playing in the Bundesliga league, what was the Away record for the team with an At Home record of 1-2?
CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "away" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "home"='1-2' AND "league"='bundesliga';
2-17918213-2
Which Date performed has a Main contestant of karanvir bohra?
CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );
SELECT "date_performed" FROM "week_5_august_6_and_7_2008" WHERE "main_contestant"='karanvir bohra';
2-18278508-5
Which Date performed has a Position of bottom 3, and Scores by each individual judge of 5 + 5 + 4 = 14?
CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );
SELECT "date_performed" FROM "week_5_august_6_and_7_2008" WHERE "position"='bottom 3' AND "scores_by_each_individual_judge"='5 + 5 + 4 = 14';
2-18278508-5
Which Status has a Co-contestant (Yaar vs. Pyaar) of tina sachdev?
CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );
SELECT "status" FROM "week_5_august_6_and_7_2008" WHERE "co_contestant_yaar_vs_pyaar"='tina sachdev';
2-18278508-5
Which Status has a Co-contestant (Yaar vs. Pyaar) of tina parekh?
CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );
SELECT "status" FROM "week_5_august_6_and_7_2008" WHERE "co_contestant_yaar_vs_pyaar"='tina parekh';
2-18278508-5
Which Total score/week has a Status of eliminated, and Scores by each individual judge of 5 + 5 + 4 = 14?
CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );
SELECT "total_score_week" FROM "week_5_august_6_and_7_2008" WHERE "status"='eliminated' AND "scores_by_each_individual_judge"='5 + 5 + 4 = 14';
2-18278508-5
Which Scores by each individual judge has a Date performed of august 7, and a Main contestant of karanvir bohra?
CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );
SELECT "scores_by_each_individual_judge" FROM "week_5_august_6_and_7_2008" WHERE "date_performed"='august 7' AND "main_contestant"='karanvir bohra';
2-18278508-5
Who is moving to Triestina?
CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text );
SELECT "name" FROM "out" WHERE "moving_to"='triestina';
2-17634886-3
What is the transfer window of the player moving to Panionios?
CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text );
SELECT "transfer_window" FROM "out" WHERE "moving_to"='panionios';
2-17634886-3
What is the type for the Panionios moving to?
CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text );
SELECT "type" FROM "out" WHERE "moving_to"='panionios';
2-17634886-3
Where is the nationality of Arg Esp moving to?
CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text );
SELECT "moving_to" FROM "out" WHERE "nat"='arg esp';
2-17634886-3
Who is moving to Chelsea on loan?
CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text );
SELECT "name" FROM "out" WHERE "type"='loan' AND "moving_to"='chelsea';
2-17634886-3
What is the digital of Virgin [analogue]?
CREATE TABLE "closed_and_aborted_television_providers" ( "provider" text, "years" text, "free_or_pay" text, "no_of_channels" text, "colour" text, "digital" text, "transmission" text );
SELECT "digital" FROM "closed_and_aborted_television_providers" WHERE "provider"='virgin [analogue]';
2-182410-22
Which provider is pay with analogue cable?
CREATE TABLE "closed_and_aborted_television_providers" ( "provider" text, "years" text, "free_or_pay" text, "no_of_channels" text, "colour" text, "digital" text, "transmission" text );
SELECT "provider" FROM "closed_and_aborted_television_providers" WHERE "free_or_pay"='pay' AND "transmission"='analogue cable';
2-182410-22
How many analogue satellite channels does Sky [Analogue] have?
CREATE TABLE "closed_and_aborted_television_providers" ( "provider" text, "years" text, "free_or_pay" text, "no_of_channels" text, "colour" text, "digital" text, "transmission" text );
SELECT "no_of_channels" FROM "closed_and_aborted_television_providers" WHERE "transmission"='analogue satellite' AND "provider"='sky [analogue]';
2-182410-22
What years are listed for analogue cable with 35 channels?
CREATE TABLE "closed_and_aborted_television_providers" ( "provider" text, "years" text, "free_or_pay" text, "no_of_channels" text, "colour" text, "digital" text, "transmission" text );
SELECT "years" FROM "closed_and_aborted_television_providers" WHERE "transmission"='analogue cable' AND "no_of_channels"='35';
2-182410-22
What was Week 14 when Week 13 was Nebraska (8-2)?
CREATE TABLE "bcs_standings" ( "week_9_oct_23" text, "week_10_oct_30" text, "week_11_nov_6" text, "week_12_nov_13" text, "week_13_nov_20" text, "week_14_nov_27" text, "week_15_final_dec_3" text );
SELECT "week_14_nov_27" FROM "bcs_standings" WHERE "week_13_nov_20"='nebraska (8-2)';
2-17899020-3
What was Week 15 when Week 12 was Notre Dame (7-2)?
CREATE TABLE "bcs_standings" ( "week_9_oct_23" text, "week_10_oct_30" text, "week_11_nov_6" text, "week_12_nov_13" text, "week_13_nov_20" text, "week_14_nov_27" text, "week_15_final_dec_3" text );
SELECT "week_15_final_dec_3" FROM "bcs_standings" WHERE "week_12_nov_13"='notre dame (7-2)';
2-17899020-3
What was Week 11 when Week 10 had Nebraska (7-1)?
CREATE TABLE "bcs_standings" ( "week_9_oct_23" text, "week_10_oct_30" text, "week_11_nov_6" text, "week_12_nov_13" text, "week_13_nov_20" text, "week_14_nov_27" text, "week_15_final_dec_3" text );
SELECT "week_11_nov_6" FROM "bcs_standings" WHERE "week_10_oct_30"='nebraska (7-1)';
2-17899020-3
What was Week 15 when Week 12 was Washington (9-1)?
CREATE TABLE "bcs_standings" ( "week_9_oct_23" text, "week_10_oct_30" text, "week_11_nov_6" text, "week_12_nov_13" text, "week_13_nov_20" text, "week_14_nov_27" text, "week_15_final_dec_3" text );
SELECT "week_15_final_dec_3" FROM "bcs_standings" WHERE "week_12_nov_13"='washington (9-1)';
2-17899020-3
What Surface has a Date of 15 february 1988?
CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "surface" FROM "singles_5_3_2" WHERE "date"='15 february 1988';
2-1828774-4
What Date has a Score in the final of 3–6, 2–6, 4–6?
CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "date" FROM "singles_5_3_2" WHERE "score_in_the_final"='3–6, 2–6, 4–6';
2-1828774-4
What Opponent in the final has a Date of 19 september 1988?
CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "opponent_in_the_final" FROM "singles_5_3_2" WHERE "date"='19 september 1988';
2-1828774-4
What Championship has a Date of 26 may 1986?
CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "championship" FROM "singles_5_3_2" WHERE "date"='26 may 1986';
2-1828774-4