question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Can you tell me the total number of Draw that has the Artist of de spelbrekers, and the Points smaller than 0?
CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "english_translation" text, "place" real, "points" real );
SELECT COUNT("draw") FROM "results" WHERE "artist"='de spelbrekers' AND "points"<0;
2-181142-1
Can you tell me the Artist that has the Draw smaller than 16, and the English translation of lullaby?
CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "english_translation" text, "place" real, "points" real );
SELECT "artist" FROM "results" WHERE "draw"<16 AND "english_translation"='lullaby';
2-181142-1
Can you tell me the English translation that has the Artist of camillo felgen?
CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "english_translation" text, "place" real, "points" real );
SELECT "english_translation" FROM "results" WHERE "artist"='camillo felgen';
2-181142-1
What is the population of the town with an area larger than 3.09?
CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );
SELECT AVG("population") FROM "communities" WHERE "area_km_2">3.09 AND "status"='town';
2-176524-1
What is the area of the community with a census ranking of 636 of 5,008?
CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );
SELECT AVG("area_km_2") FROM "communities" WHERE "census_ranking"='636 of 5,008';
2-176524-1
What is the area of drummond village?
CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );
SELECT MAX("area_km_2") FROM "communities" WHERE "status"='village' AND "official_name"='drummond';
2-176524-1
What is the status of the community with a census ranking of 2,418 of 5,008?
CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );
SELECT "status" FROM "communities" WHERE "census_ranking"='2,418 of 5,008';
2-176524-1
What is the area of the village with a census ranking of 1,442 of 5,008 and a population less than 1,778?
CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );
SELECT MAX("area_km_2") FROM "communities" WHERE "status"='village' AND "census_ranking"='1,442 of 5,008' AND "population"<'1,778';
2-176524-1
WHAT YEAR HAS A TO PAR SMALLER THAN 16, TOTAL 151?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT "year_s_won" FROM "missed_the_cut" WHERE "to_par"<16 AND "total"=151;
2-18059698-3
WHAT IS THE TOTAL WITH A TO PAR OF 10?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT MAX("total") FROM "missed_the_cut" WHERE "to_par"=10;
2-18059698-3
WHAT IS THE PLAYER WITH TOTAL LESS THAN 151, TO PAR OF 8?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT "player" FROM "missed_the_cut" WHERE "total"<151 AND "to_par"=8;
2-18059698-3
Who is the player who has a total less than 4, no scottish cups, and a league cup greater than 0?
CREATE TABLE "top_scorers" ( "player" text, "position" text, "league_cup" real, "scottish_cup" real, "uefa_champions_league" real, "total" real );
SELECT "player" FROM "top_scorers" WHERE "total"<4 AND "scottish_cup"=0 AND "league_cup">0;
2-18254488-2
What is the sum of the scottish cup of the forward player with less than 2 league cups and a total greater than 6?
CREATE TABLE "top_scorers" ( "player" text, "position" text, "league_cup" real, "scottish_cup" real, "uefa_champions_league" real, "total" real );
SELECT SUM("scottish_cup") FROM "top_scorers" WHERE "league_cup"<2 AND "total">6 AND "position"='forward';
2-18254488-2
What was Kilgore's percentage when Potts (I) had 4% and Kaine (D) 47%, in the poll from October 30, 2005?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "kaine_d" text, "kilgore_r" text, "potts_i" text );
SELECT "kilgore_r" FROM "opinion_polls" WHERE "potts_i"='4%' AND "kaine_d"='47%' AND "date"='october 30, 2005';
2-1775854-1
On which date did Potts (I) poll at 9%?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "kaine_d" text, "kilgore_r" text, "potts_i" text );
SELECT "date" FROM "opinion_polls" WHERE "potts_i"='9%';
2-1775854-1
What was Kaine's (D) percentage in the Rasmussen poll on October 24, 2005?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "kaine_d" text, "kilgore_r" text, "potts_i" text );
SELECT "kaine_d" FROM "opinion_polls" WHERE "source"='rasmussen' AND "date"='october 24, 2005';
2-1775854-1
What was Kaine's (D) percentage in the poll on October 30, 2005?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "kaine_d" text, "kilgore_r" text, "potts_i" text );
SELECT "kaine_d" FROM "opinion_polls" WHERE "date"='october 30, 2005';
2-1775854-1
What was Kilgore's (R) percentage when Potts (I) polled at 1%?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "kaine_d" text, "kilgore_r" text, "potts_i" text );
SELECT "kilgore_r" FROM "opinion_polls" WHERE "potts_i"='1%';
2-1775854-1
What was Kaine's (D) percentage in the poll on september 19, 2005?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "kaine_d" text, "kilgore_r" text, "potts_i" text );
SELECT "kaine_d" FROM "opinion_polls" WHERE "date"='september 19, 2005';
2-1775854-1
What is To par, when Country is "United States", and when Player is "Jay Haas"?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "to_par" FROM "final_round" WHERE "country"='united states' AND "player"='jay haas';
2-18036726-7
What is Player, when Score is "68-67-75-70=280"?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "player" FROM "final_round" WHERE "score"='68-67-75-70=280';
2-18036726-7
What is the result of the friendly competition on 23 January 2010?
CREATE TABLE "2010s" ( "date" text, "result" text, "score" text, "venue" text, "competition" text );
SELECT "result" FROM "2010s" WHERE "competition"='friendly' AND "date"='23 january 2010';
2-18045845-2
What is the venue of the match with a w result on 3 March 2010?
CREATE TABLE "2010s" ( "date" text, "result" text, "score" text, "venue" text, "competition" text );
SELECT "venue" FROM "2010s" WHERE "result"='w' AND "date"='3 march 2010';
2-18045845-2
What is the lowest Year, when Notes is "5.19km, 18controls"?
CREATE TABLE "women" ( "year" real, "gold" text, "silver" text, "bronze" text, "notes" text );
SELECT MIN("year") FROM "women" WHERE "notes"='5.19km, 18controls';
2-17760670-5
What is Notes, when Year is "2010"?
CREATE TABLE "women" ( "year" real, "gold" text, "silver" text, "bronze" text, "notes" text );
SELECT "notes" FROM "women" WHERE "year"=2010;
2-17760670-5
What winning score has in-kyung kim as the runner(s)-up?
CREATE TABLE "lpga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "winner_s_share" real );
SELECT "winning_score" FROM "lpga_tour_wins_9" WHERE "runner_s_up"='in-kyung kim';
2-18198579-2
What winning score has kraft nabisco championship as the tournament?
CREATE TABLE "lpga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "winner_s_share" real );
SELECT "winning_score" FROM "lpga_tour_wins_9" WHERE "tournament"='kraft nabisco championship';
2-18198579-2
What Winning constructor has a Name of grand prix de la marne?
CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );
SELECT "winning_constructor" FROM "other_grands_prix" WHERE "name"='grand prix de la marne';
2-18281746-2
What kind of the Winning driver has a Circuit of saint-raphaël?
CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );
SELECT "winning_driver" FROM "other_grands_prix" WHERE "circuit"='saint-raphaël';
2-18281746-2
Name the Report with Winning constructor of maserati, and a Name of monza grand prix?
CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );
SELECT "report" FROM "other_grands_prix" WHERE "winning_constructor"='maserati' AND "name"='monza grand prix';
2-18281746-2
Name the Report has a Name of lyon grand prix?
CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );
SELECT "report" FROM "other_grands_prix" WHERE "name"='lyon grand prix';
2-18281746-2
Name the Report which has heinrich-joachim von morgen?
CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );
SELECT "report" FROM "other_grands_prix" WHERE "winning_driver"='heinrich-joachim von morgen';
2-18281746-2
Which player had a draft before 1975 and before round 6?
CREATE TABLE "draft_picks" ( "draft" real, "round" real, "pick" real, "player" text, "nationality" text );
SELECT "player" FROM "draft_picks" WHERE "draft"<1975 AND "round"<6;
2-18256945-3
What is Score, when Opponent Team is Belgium, and when Opponent is Kirsten Flipkens?
CREATE TABLE "singles_7_4_3" ( "outcome" text, "edition" real, "round" text, "opponent_team" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "singles_7_4_3" WHERE "opponent_team"='belgium' AND "opponent"='kirsten flipkens';
2-18183850-12
What is Opponent, when Round is World Group?
CREATE TABLE "singles_7_4_3" ( "outcome" text, "edition" real, "round" text, "opponent_team" text, "surface" text, "opponent" text, "score" text );
SELECT "opponent" FROM "singles_7_4_3" WHERE "round"='world group';
2-18183850-12
What is Surface, when Edition is 2012, and when Outcome is Winner?
CREATE TABLE "singles_7_4_3" ( "outcome" text, "edition" real, "round" text, "opponent_team" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "singles_7_4_3" WHERE "edition"=2012 AND "outcome"='winner';
2-18183850-12
What is Score, when Outcome is Loser, and when Edition is 2011?
CREATE TABLE "singles_7_4_3" ( "outcome" text, "edition" real, "round" text, "opponent_team" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "singles_7_4_3" WHERE "outcome"='loser' AND "edition"=2011;
2-18183850-12
What is Score, when Edition is 2011, and when Surface is Hard (i)?
CREATE TABLE "singles_7_4_3" ( "outcome" text, "edition" real, "round" text, "opponent_team" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "singles_7_4_3" WHERE "edition"=2011 AND "surface"='hard (i)';
2-18183850-12
What is Round, when Opponent Team is Slovakia, when Outcome is Loser, and when Edition is greater than 2010?
CREATE TABLE "singles_7_4_3" ( "outcome" text, "edition" real, "round" text, "opponent_team" text, "surface" text, "opponent" text, "score" text );
SELECT "round" FROM "singles_7_4_3" WHERE "opponent_team"='slovakia' AND "outcome"='loser' AND "edition">2010;
2-18183850-12
In what Week was the Record 4–7–1?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text );
SELECT MIN("week") FROM "schedule" WHERE "record"='4–7–1';
2-17957014-2
On what Date was the Attendance 63,546?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "attendance"='63,546';
2-17957014-2
In what Week was the Attendance 17,737?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text );
SELECT COUNT("week") FROM "schedule" WHERE "attendance"='17,737';
2-17957014-2
What is the Result of the game after Week 10 against Philadelphia Eagles?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "week">10 AND "opponent"='philadelphia eagles';
2-17957014-2
What is the Opponent on Week 11?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "week"=11;
2-17957014-2
What is the largest WNBA game average with 9,290 (4th) is the average, and less than 157,934 is the total for the year?
CREATE TABLE "regular_season_attendance" ( "year" real, "average" text, "high" real, "sellouts" real, "total_for_year" real, "wnba_game_average" real );
SELECT MAX("wnba_game_average") FROM "regular_season_attendance" WHERE "average"='9,290 (4th)' AND "total_for_year"<'157,934';
2-179829-7
How many years in all was less than 105,005 the total for the year?
CREATE TABLE "regular_season_attendance" ( "year" real, "average" text, "high" real, "sellouts" real, "total_for_year" real, "wnba_game_average" real );
SELECT COUNT("year") FROM "regular_season_attendance" WHERE "total_for_year"<'105,005';
2-179829-7
What is the total for year average that less than 7,742 is the WNBA game average, and 7,625 (10th) is the average, and before the year 1999?
CREATE TABLE "regular_season_attendance" ( "year" real, "average" text, "high" real, "sellouts" real, "total_for_year" real, "wnba_game_average" real );
SELECT AVG("total_for_year") FROM "regular_season_attendance" WHERE "wnba_game_average"<'7,742' AND "average"='7,625 (10th)' AND "year"<1999;
2-179829-7
What is the total of the year that more than 13,142 is the high, and 10,387 (2nd) is the average, and there was less than 0 sellouts?
CREATE TABLE "regular_season_attendance" ( "year" real, "average" text, "high" real, "sellouts" real, "total_for_year" real, "wnba_game_average" real );
SELECT SUM("year") FROM "regular_season_attendance" WHERE "high">'13,142' AND "average"='10,387 (2nd)' AND "sellouts"<0;
2-179829-7
What is the maximum sellouts for the 2008 year, with less than 161,369 total for year?
CREATE TABLE "regular_season_attendance" ( "year" real, "average" text, "high" real, "sellouts" real, "total_for_year" real, "wnba_game_average" real );
SELECT MAX("sellouts") FROM "regular_season_attendance" WHERE "year"=2008 AND "total_for_year"<'161,369';
2-179829-7
What is the highest First Elected, when Party is "Republican", and when District is "Louisiana 7"?
CREATE TABLE "louisiana" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT MAX("first_elected") FROM "louisiana" WHERE "party"='republican' AND "district"='louisiana 7';
2-1805191-19
What is Party, when Results is "Re-Elected", and when District is "Louisiana 5"?
CREATE TABLE "louisiana" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT "party" FROM "louisiana" WHERE "results"='re-elected' AND "district"='louisiana 5';
2-1805191-19
What is Party, when Incumbent is "Rodney Alexander"?
CREATE TABLE "louisiana" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT "party" FROM "louisiana" WHERE "incumbent"='rodney alexander';
2-1805191-19
What is Results, when First Elected is less than 1988?
CREATE TABLE "louisiana" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT "results" FROM "louisiana" WHERE "first_elected"<1988;
2-1805191-19
What is Incumbent, when District is "Louisiana 4"?
CREATE TABLE "louisiana" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT "incumbent" FROM "louisiana" WHERE "district"='louisiana 4';
2-1805191-19
What's the finish for car number 6?
CREATE TABLE "indy_500_results" ( "year" text, "car_number" text, "start" text, "qual_speed" text, "speed_rank" text, "finish" text, "laps_completed" real, "laps_led" real );
SELECT "finish" FROM "indy_500_results" WHERE "car_number"='6';
2-181892-4
What's the speed rank in 1963?
CREATE TABLE "indy_500_results" ( "year" text, "car_number" text, "start" text, "qual_speed" text, "speed_rank" text, "finish" text, "laps_completed" real, "laps_led" real );
SELECT "speed_rank" FROM "indy_500_results" WHERE "year"='1963';
2-181892-4
What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006?
CREATE TABLE "concacaf_women_s_world_cup_qualifiers_re" ( "year" real, "result" text, "matches" real, "wins" real, "draws" real, "losses" real );
SELECT SUM("losses") FROM "concacaf_women_s_world_cup_qualifiers_re" WHERE "result"='runner-up' AND "wins"=1 AND "year"<2006;
2-1818918-3
What is the smallest Draws with a Result of runner-up, and Losses larger than 1?
CREATE TABLE "concacaf_women_s_world_cup_qualifiers_re" ( "year" real, "result" text, "matches" real, "wins" real, "draws" real, "losses" real );
SELECT MIN("draws") FROM "concacaf_women_s_world_cup_qualifiers_re" WHERE "result"='runner-up' AND "losses">1;
2-1818918-3
What is the number of Year with a Result of champions, and Matches larger than 5?
CREATE TABLE "concacaf_women_s_world_cup_qualifiers_re" ( "year" real, "result" text, "matches" real, "wins" real, "draws" real, "losses" real );
SELECT COUNT("year") FROM "concacaf_women_s_world_cup_qualifiers_re" WHERE "result"='champions' AND "matches">5;
2-1818918-3
What is the greatest Wins with Losses larger than 1?
CREATE TABLE "concacaf_women_s_world_cup_qualifiers_re" ( "year" real, "result" text, "matches" real, "wins" real, "draws" real, "losses" real );
SELECT MAX("wins") FROM "concacaf_women_s_world_cup_qualifiers_re" WHERE "losses">1;
2-1818918-3
What is the total number of Year with Wins of 1, and Losses smaller than 1?
CREATE TABLE "concacaf_women_s_world_cup_qualifiers_re" ( "year" real, "result" text, "matches" real, "wins" real, "draws" real, "losses" real );
SELECT SUM("year") FROM "concacaf_women_s_world_cup_qualifiers_re" WHERE "wins"=1 AND "losses"<1;
2-1818918-3
What is the greatest Wins with Matches smaller than 5, and a Year of 1994?
CREATE TABLE "concacaf_women_s_world_cup_qualifiers_re" ( "year" real, "result" text, "matches" real, "wins" real, "draws" real, "losses" real );
SELECT MAX("wins") FROM "concacaf_women_s_world_cup_qualifiers_re" WHERE "matches"<5 AND "year"=1994;
2-1818918-3
On what date was Motherwell the opponent at Fir Park?
CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT "date" FROM "scottish_cup" WHERE "opponent"='motherwell' AND "venue"='fir park';
2-17644259-4
What is the round at St. Mirren Park with more than 4,555 people attending?
CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT "round" FROM "scottish_cup" WHERE "venue"='st. mirren park' AND "attendance">'4,555';
2-17644259-4
What's the sum of attendance when banbury united is the away team and tie no is over 102?
CREATE TABLE "ties" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real );
SELECT SUM("attendance") FROM "ties" WHERE "away_team"='banbury united' AND "tie_no">102;
2-18054397-9
What's the sum of tie no for home team burgess hill town?
CREATE TABLE "ties" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real );
SELECT SUM("tie_no") FROM "ties" WHERE "home_team"='burgess hill town';
2-18054397-9
What is the highest population of Deuel county's 1,819 households?
CREATE TABLE "south_dakota_counties_by_per_capita_inco" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT MAX("population") FROM "south_dakota_counties_by_per_capita_inco" WHERE "county"='deuel' AND "number_of_households"<'1,819';
2-1777673-1
When the venue is away and the opponents are the bracknell bees, what is the competition?
CREATE TABLE "september" ( "date" text, "opponent" text, "venue" text, "result" text, "competition" text );
SELECT "competition" FROM "september" WHERE "venue"='away' AND "opponent"='bracknell bees';
2-17996547-2
What opponent played on the 28th with a venue of away?
CREATE TABLE "september" ( "date" text, "opponent" text, "venue" text, "result" text, "competition" text );
SELECT "opponent" FROM "september" WHERE "venue"='away' AND "date"='28th';
2-17996547-2
What was the venue on the 20th?
CREATE TABLE "september" ( "date" text, "opponent" text, "venue" text, "result" text, "competition" text );
SELECT "venue" FROM "september" WHERE "date"='20th';
2-17996547-2
When did the peterborough phantoms play at a venue of home?
CREATE TABLE "september" ( "date" text, "opponent" text, "venue" text, "result" text, "competition" text );
SELECT "date" FROM "september" WHERE "venue"='home' AND "opponent"='peterborough phantoms';
2-17996547-2
Which opponent has a result of 2-0 l?
CREATE TABLE "september" ( "date" text, "opponent" text, "venue" text, "result" text, "competition" text );
SELECT "opponent" FROM "september" WHERE "result"='2-0 l';
2-17996547-2
Which opponent completed a challenge competition with a result of 8-2 w?
CREATE TABLE "september" ( "date" text, "opponent" text, "venue" text, "result" text, "competition" text );
SELECT "opponent" FROM "september" WHERE "competition"='challenge' AND "result"='8-2 w';
2-17996547-2
What shows for round when the race was Int. Adac Preis Von Zweibrücken?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text );
SELECT "round" FROM "race_calendar_and_winners" WHERE "race"='int. adac preis von zweibrücken';
2-17701581-2
What is the round for the Norisring circuit?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text );
SELECT AVG("round") FROM "race_calendar_and_winners" WHERE "circuit"='norisring';
2-17701581-2
What race was a round smaller than 8, on 6 july?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text );
SELECT "race" FROM "race_calendar_and_winners" WHERE "round"<8 AND "date"='6 july';
2-17701581-2
What is the round for the Int. Adac-Preis Der Tourenwagen Von Sachsen-Anhalt?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text );
SELECT "round" FROM "race_calendar_and_winners" WHERE "race"='int. adac-preis der tourenwagen von sachsen-anhalt';
2-17701581-2
What week were there 56,023 people in attendance?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("week") FROM "schedule" WHERE "attendance"='56,023';
2-17643199-2
What is the attendance number later than week 9 on November 20, 1983?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("attendance") FROM "schedule" WHERE "week">9 AND "date"='november 20, 1983';
2-17643199-2
What is Surface, when Date is less than 1979, and when Opponent in the Final is "Bill Scanlon"?
CREATE TABLE "wins_3" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "surface" FROM "wins_3" WHERE "date"<1979 AND "opponent_in_the_final"='bill scanlon';
2-1834797-2
What is Score in The Final, when Opponent in The Final is "John McEnroe", and when Championship is "Los Angeles , U.S."?
CREATE TABLE "wins_3" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "score_in_the_final" FROM "wins_3" WHERE "opponent_in_the_final"='john mcenroe' AND "championship"='los angeles , u.s.';
2-1834797-2
What is Outcome, when Opponent in The Final is "Bill Scanlon"?
CREATE TABLE "wins_3" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "outcome" FROM "wins_3" WHERE "opponent_in_the_final"='bill scanlon';
2-1834797-2
Which To par has a Player of bernhard langer?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "third_round" WHERE "player"='bernhard langer';
2-18169093-5
Which Score has a Country of united states, and a Player of raymond floyd?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "third_round" WHERE "country"='united states' AND "player"='raymond floyd';
2-18169093-5
Which To par has a Place of t6, and a Player of nick faldo?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "third_round" WHERE "place"='t6' AND "player"='nick faldo';
2-18169093-5
Which To par has a Place of t2, and a Player of mark james?
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"='mark james';
2-18169093-5
Which Country has a Place of t10, and a Player of tony jacklin?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "third_round" WHERE "place"='t10' AND "player"='tony jacklin';
2-18169093-5
Which Country has a Score of 71-74-70=215?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "third_round" WHERE "score"='71-74-70=215';
2-18169093-5
How many losses for the team with less than 4 wins, more than 0 byes and 2510 against?
CREATE TABLE "2008_ladder" ( "mininera_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT AVG("losses") FROM "2008_ladder" WHERE "wins"<4 AND "against"=2510 AND "byes">0;
2-17732555-3
How many wins for team with 1800 Against and more than 0 byes?
CREATE TABLE "2008_ladder" ( "mininera_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MAX("wins") FROM "2008_ladder" WHERE "against"=1800 AND "draws">0;
2-17732555-3
What is the least wins for a team with against less than 814?
CREATE TABLE "2008_ladder" ( "mininera_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MIN("wins") FROM "2008_ladder" WHERE "against"<814;
2-17732555-3
How many losses for the team with 3 wins and more than 1919 against?
CREATE TABLE "2008_ladder" ( "mininera_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MIN("losses") FROM "2008_ladder" WHERE "wins"=3 AND "against">1919;
2-17732555-3
What is the 2002 result where 2011 and 2000 are 1R?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text );
SELECT "2002" FROM "singles_performance_timeline" WHERE "2011"='1r' AND "2000"='1r';
2-17629829-7
What is the 2008 result where 2003 is 325?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text );
SELECT "2008" FROM "singles_performance_timeline" WHERE "2003"='325';
2-17629829-7
What is the 2002 result when 2006 is A and 2010 is Q1?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text );
SELECT "2002" FROM "singles_performance_timeline" WHERE "2006"='a' AND "2010"='q1';
2-17629829-7
Which Year completed has a Dam type of concrete gravity, and an Impounded body of water of deep creek reservoir?
CREATE TABLE "major_dams_and_reservoirs" ( "dam_constructed" text, "year_completed" real, "impounded_body_of_water" text, "reservoir_capacity" text, "dam_wall_height" text, "dam_type" text );
SELECT MIN("year_completed") FROM "major_dams_and_reservoirs" WHERE "dam_type"='concrete gravity' AND "impounded_body_of_water"='deep creek reservoir';
2-177948-2
Which dam type was completed in 1961?
CREATE TABLE "major_dams_and_reservoirs" ( "dam_constructed" text, "year_completed" real, "impounded_body_of_water" text, "reservoir_capacity" text, "dam_wall_height" text, "dam_type" text );
SELECT "dam_type" FROM "major_dams_and_reservoirs" WHERE "year_completed"=1961;
2-177948-2
Which Year completed has a Dam type of earthfill embankment, and a Dam constructed of khancoban dam?
CREATE TABLE "major_dams_and_reservoirs" ( "dam_constructed" text, "year_completed" real, "impounded_body_of_water" text, "reservoir_capacity" text, "dam_wall_height" text, "dam_type" text );
SELECT MAX("year_completed") FROM "major_dams_and_reservoirs" WHERE "dam_type"='earthfill embankment' AND "dam_constructed"='khancoban dam';
2-177948-2
Which Reservoir capacity has an Impounded body of water of tumut two pondage?
CREATE TABLE "major_dams_and_reservoirs" ( "dam_constructed" text, "year_completed" real, "impounded_body_of_water" text, "reservoir_capacity" text, "dam_wall_height" text, "dam_type" text );
SELECT "reservoir_capacity" FROM "major_dams_and_reservoirs" WHERE "impounded_body_of_water"='tumut two pondage';
2-177948-2
What Companion (in order from star) has a Semimajor axis (AU) of 0.1886 +0.083 −0.0104?
CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text );
SELECT "companion_in_order_from_star" FROM "the_hd_40307_system" WHERE "semimajor_axis_au"='0.1886 +0.083 −0.0104';
2-17975363-1