question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
From which country is the player that won in 1998?
CREATE TABLE table_name_78 (country VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_78 WHERE year_s__won = "1998"
What season began on december 5, 1953?
CREATE TABLE table_15824796_3 (season__number INTEGER, original_air_date VARCHAR)
SELECT MAX(season__number) FROM table_15824796_3 WHERE original_air_date = "December 5, 1953"
Name the 2010 for tournament of us open
CREATE TABLE table_name_95 (tournament VARCHAR)
SELECT 2010 FROM table_name_95 WHERE tournament = "us open"
What is the party where the incumbent is overton brooks?
CREATE TABLE table_1342198_18 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1342198_18 WHERE incumbent = "Overton Brooks"
Name the athelte for enkhzorig ( mgl ) l 1–10
CREATE TABLE table_17417383_6 (athlete VARCHAR, round_of_32 VARCHAR)
SELECT athlete FROM table_17417383_6 WHERE round_of_32 = "Enkhzorig ( MGL ) L 1–10"
I want the Grid for Laps of 35
CREATE TABLE table_name_97 (grid VARCHAR, laps VARCHAR)
SELECT grid FROM table_name_97 WHERE laps = 35
What is the total number of electorates (2009) for Katol?
CREATE TABLE table_name_57 (number_of_electorates__2009_ VARCHAR, name VARCHAR)
SELECT COUNT(number_of_electorates__2009_) FROM table_name_57 WHERE name = "katol"
What is the Time/Retired with over 56 laps and a grid of 5?
CREATE TABLE table_name_6 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_6 WHERE laps > 56 AND grid = 5
Which Grid has a Rider of loic napoleone?
CREATE TABLE table_name_14 (grid INTEGER, rider VARCHAR)
SELECT AVG(grid) FROM table_name_14 WHERE rider = "loic napoleone"
Score of 119-115 (ot) involved what location?
CREATE TABLE table_name_16 (location VARCHAR, score VARCHAR)
SELECT location FROM table_name_16 WHERE score = "119-115 (ot)"
What's the most flags that had 473 wins and less than 633 losses?
CREATE TABLE table_name_90 (flags INTEGER, wins VARCHAR, losses VARCHAR)
SELECT MAX(flags) FROM table_name_90 WHERE wins = 473 AND losses < 633
Which Date has a Location/Attendance of verizon center 7,448?
CREATE TABLE table_name_15 (date VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_name_15 WHERE location_attendance = "verizon center 7,448"
What is the Albedo name for Neruda?
CREATE TABLE table_name_65 (albedo_feature_name VARCHAR, name VARCHAR)
SELECT albedo_feature_name FROM table_name_65 WHERE name = "neruda"
What is the production code for the episode that had 18.07 million viewers?
CREATE TABLE table_26198709_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT production_code FROM table_26198709_1 WHERE us_viewers__million_ = "18.07"
Name the runner-up for janice yan (閻奕格)
CREATE TABLE table_name_35 (runner_up VARCHAR, winner VARCHAR)
SELECT runner_up FROM table_name_35 WHERE winner = "janice yan (閻奕格)"
Which Game is the lowest one that has a Score of 2–3 ot, and Points larger than 76?
CREATE TABLE table_name_46 (game INTEGER, score VARCHAR, points VARCHAR)
SELECT MIN(game) FROM table_name_46 WHERE score = "2–3 ot" AND points > 76
In what place is the golfer with a score of 68-69-73-70=280?
CREATE TABLE table_name_24 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_24 WHERE score = 68 - 69 - 73 - 70 = 280
What is the total number of years that Scuderia Guastalla was an entrant?
CREATE TABLE table_name_24 (year VARCHAR, entrant VARCHAR)
SELECT COUNT(year) FROM table_name_24 WHERE entrant = "scuderia guastalla"
What Game Site has a Week smaller than 11, and a Date of october 21, 1973?
CREATE TABLE table_name_85 (game_site VARCHAR, week VARCHAR, date VARCHAR)
SELECT game_site FROM table_name_85 WHERE week < 11 AND date = "october 21, 1973"
What school location had an enrollment of 12400?
CREATE TABLE table_16432543_3 (location VARCHAR, enrollment VARCHAR)
SELECT location FROM table_16432543_3 WHERE enrollment = 12400
What is the name of the home team that played against Collingwood?
CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_17 WHERE away_team = "collingwood"
What country placed t8 and scored 71-71-71=213?
CREATE TABLE table_name_18 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT country FROM table_name_18 WHERE place = "t8" AND score = 71 - 71 - 71 = 213
What was the score when the total was 75–53?
CREATE TABLE table_name_89 (score VARCHAR, total VARCHAR)
SELECT score FROM table_name_89 WHERE total = "75–53"
What's the result when the kickoff was 4:00 and the record was 4-8?
CREATE TABLE table_name_78 (result VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
SELECT result FROM table_name_78 WHERE kickoff_[a_] = "4:00" AND record = "4-8"
What is the total number of weeks that the Seahawks had a record of 5-5?
CREATE TABLE table_name_73 (week VARCHAR, record VARCHAR)
SELECT COUNT(week) FROM table_name_73 WHERE record = "5-5"
What is the 0–100km/h (62mph) acceleration of the model with a top speed of 208km/h (129mph)?
CREATE TABLE table_name_68 (top_speed VARCHAR)
SELECT 0 AS _100km_h__62mph_ FROM table_name_68 WHERE top_speed = "208km/h (129mph)"
Name the surface for nathalie tauziat
CREATE TABLE table_24638867_6 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_24638867_6 WHERE partner = "Nathalie Tauziat"
What is the player who is lb and cfl team is saskatchewan roughriders?
CREATE TABLE table_10975034_5 (player VARCHAR, position VARCHAR, cfl_team VARCHAR)
SELECT player FROM table_10975034_5 WHERE position = "LB" AND cfl_team = "Saskatchewan Roughriders"
What is the call sign for a class of A?
CREATE TABLE table_name_69 (call_sign VARCHAR, class VARCHAR)
SELECT call_sign FROM table_name_69 WHERE class = "a"
What was the total attendance during the home game against the Swindon Wildcats?
CREATE TABLE table_17120964_6 (attendance VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT attendance FROM table_17120964_6 WHERE opponent = "Swindon Wildcats" AND venue = "Home"
Which Year has Playoffs which did not qualify?
CREATE TABLE table_name_94 (year INTEGER, playoffs VARCHAR)
SELECT AVG(year) FROM table_name_94 WHERE playoffs = "did not qualify"
what is the winter olympics year when the fis nordic world ski championships is 1976?
CREATE TABLE table_name_45 (winter_olympics VARCHAR, fis_nordic_world_ski_championships VARCHAR)
SELECT winter_olympics FROM table_name_45 WHERE fis_nordic_world_ski_championships = "1976"
How many incumbents was first elected in the Anti-Masonic party?
CREATE TABLE table_2668173_4 (first_elected VARCHAR, party VARCHAR)
SELECT COUNT(first_elected) FROM table_2668173_4 WHERE party = "Anti-Masonic"
Which coaster is located in sandusky, Ohio?
CREATE TABLE table_name_87 (coaster_name VARCHAR, location VARCHAR)
SELECT coaster_name FROM table_name_87 WHERE location = "sandusky, ohio"
What is the highest score in round 4 and total of 284 in a year more recent than 1998?
CREATE TABLE table_name_56 (round_4 INTEGER, score VARCHAR, year VARCHAR)
SELECT MAX(round_4) FROM table_name_56 WHERE score = 284 AND year > 1998
What is the total number of Years that has the Group, Method Fest Independent Film Festival?
CREATE TABLE table_name_45 (year VARCHAR, group VARCHAR)
SELECT COUNT(year) FROM table_name_45 WHERE group = "method fest independent film festival"
Who is the winner in the week listed as 26 June 2 weeks, when the runner-up is Arantxa Sánchez Vicario?
CREATE TABLE table_name_71 (winner VARCHAR, week_of VARCHAR, runner_up VARCHAR)
SELECT winner FROM table_name_71 WHERE week_of = "26 june 2 weeks" AND runner_up = "arantxa sánchez vicario"
When was there a score of 7-1?
CREATE TABLE table_name_71 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_71 WHERE score = "7-1"
Which opponent has a loss of trout (7-4)?
CREATE TABLE table_name_53 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_53 WHERE loss = "trout (7-4)"
Which race Leader has a Stage of 7?
CREATE TABLE table_name_33 (race_leader VARCHAR, stage VARCHAR)
SELECT race_leader FROM table_name_33 WHERE stage = "7"
Record of 19–16 occurred on what date?
CREATE TABLE table_name_78 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_78 WHERE record = "19–16"
Which Date had an Outcome of runner-up, and a Surface of carpet?
CREATE TABLE table_name_85 (date VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT date FROM table_name_85 WHERE outcome = "runner-up" AND surface = "carpet"
What competition did Lineth Chepkurui place 5th?
CREATE TABLE table_name_27 (competition VARCHAR, position VARCHAR)
SELECT competition FROM table_name_27 WHERE position = "5th"
What Results has a Seed #12 and a Year that's smaller than 1996
CREATE TABLE table_name_36 (results VARCHAR, seed VARCHAR, year VARCHAR)
SELECT results FROM table_name_36 WHERE seed = "#12" AND year < 1996
Which Player has a Draft of 1994, a Pick larger than 8, a Round of 10, and a Nationality of canada?
CREATE TABLE table_name_89 (player VARCHAR, nationality VARCHAR, round VARCHAR, draft VARCHAR, pick VARCHAR)
SELECT player FROM table_name_89 WHERE draft = 1994 AND pick > 8 AND round = "10" AND nationality = "canada"
What is the name of the episode written by Sheila Lawrence & Henry Alonso Myers?
CREATE TABLE table_12146637_1 (episode_title VARCHAR, writer_s_ VARCHAR)
SELECT episode_title FROM table_12146637_1 WHERE writer_s_ = "Sheila Lawrence & Henry Alonso Myers"
With the game that was less than 16 what was the high assists?
CREATE TABLE table_name_60 (high_assists VARCHAR, game INTEGER)
SELECT high_assists FROM table_name_60 WHERE game < 16
What is the id and detail of the vehicle used in lessons for most of the times?
CREATE TABLE Lessons (vehicle_id VARCHAR); CREATE TABLE Vehicles (vehicle_id VARCHAR, vehicle_details VARCHAR)
SELECT T1.vehicle_id, T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY COUNT(*) DESC LIMIT 1
What Rider had a Time of 1:01.50.57?
CREATE TABLE table_name_46 (rider VARCHAR, time VARCHAR)
SELECT rider FROM table_name_46 WHERE time = "1:01.50.57"
What team set a 3:15:43 winning time?
CREATE TABLE table_2241841_1 (team VARCHAR, race_time VARCHAR)
SELECT team FROM table_2241841_1 WHERE race_time = "3:15:43"
where is the naghsh jahan stadium?
CREATE TABLE table_name_84 (city VARCHAR, stadium VARCHAR)
SELECT city FROM table_name_84 WHERE stadium = "naghsh jahan"
What date was the episode originally aired that was directed by James Widdoes and the production code is 320?
CREATE TABLE table_2221374_3 (original_air_date VARCHAR, directed_by VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_2221374_3 WHERE directed_by = "James Widdoes" AND production_code = 320
Who are the finals opponents for the match with partner Ricardo Hocevar?
CREATE TABLE table_name_44 (opponents_in_the_final VARCHAR, partnering VARCHAR)
SELECT opponents_in_the_final FROM table_name_44 WHERE partnering = "ricardo hocevar"
When pronoun is the subject what is the episode title?
CREATE TABLE table_191105_2 (episode_title VARCHAR, subject VARCHAR)
SELECT episode_title FROM table_191105_2 WHERE subject = "pronoun"
What is the original air date for episode graeme clifford directed and lindsay sturman wrote?
CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_28859177_3 WHERE directed_by = "Graeme Clifford" AND written_by = "Lindsay Sturman"
name the date where score time is w 74-63
CREATE TABLE table_17186229_4 (date VARCHAR, score_time VARCHAR)
SELECT date FROM table_17186229_4 WHERE score_time = "W 74-63"
How many episodes did the actor David Faustino appear in?
CREATE TABLE table_name_37 (episodes VARCHAR, actor VARCHAR)
SELECT episodes FROM table_name_37 WHERE actor = "david faustino"
List the service id and details for the events.
CREATE TABLE EVENTS (service_id VARCHAR, event_details VARCHAR)
SELECT service_id, event_details FROM EVENTS
Name the maximum discs
CREATE TABLE table_14562722_2 (discs INTEGER)
SELECT MAX(discs) FROM table_14562722_2
What are the fewest number of podiums associated with a Series of formula renault 2000 brazil, and under 1 pole?
CREATE TABLE table_name_23 (podiums INTEGER, series VARCHAR, poles VARCHAR)
SELECT MIN(podiums) FROM table_name_23 WHERE series = "formula renault 2000 brazil" AND poles < 1
When was Gala released?
CREATE TABLE table_name_70 (release VARCHAR, title VARCHAR)
SELECT release FROM table_name_70 WHERE title = "gala"
Who is the manager 1 with Puma as the kit manufacturer and Puma as the shirt sponsor?
CREATE TABLE table_name_29 (manager_1 VARCHAR, kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)
SELECT manager_1 FROM table_name_29 WHERE kit_manufacturer = "puma" AND shirt_sponsor = "puma"
What is the title of the episode with production code 3x5402?
CREATE TABLE table_24938621_2 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_24938621_2 WHERE production_code = "3X5402"
Who was the TO winning team when the TU winning team was Joe Richardson?
CREATE TABLE table_13642023_2 (to_winning_team VARCHAR, tu_winning_team VARCHAR)
SELECT to_winning_team FROM table_13642023_2 WHERE tu_winning_team = "Joe Richardson"
What was the result in the Arkansas 5 district election?
CREATE TABLE table_1341897_6 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341897_6 WHERE district = "Arkansas 5"
What is the 2012 value with 479 in 2008?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT 2012 FROM table_name_22 WHERE 2008 = "479"
How long was the fight 'adrenaline mma 3'?
CREATE TABLE table_name_72 (time VARCHAR, event VARCHAR)
SELECT time FROM table_name_72 WHERE event = "adrenaline mma 3"
What Brazil scorers have a 1-1 Score?
CREATE TABLE table_name_93 (brazil_scorers VARCHAR, score VARCHAR)
SELECT brazil_scorers FROM table_name_93 WHERE score = "1-1"
Which class has an identifier of CBUA-FM?
CREATE TABLE table_name_50 (class VARCHAR, identifier VARCHAR)
SELECT class FROM table_name_50 WHERE identifier = "cbua-fm"
How many states or District of Columbia have 65.4% overweight or obese adults?
CREATE TABLE table_18958648_1 (state_and_district_of_columbia VARCHAR, overweight__incl_obese__adults VARCHAR)
SELECT COUNT(state_and_district_of_columbia) FROM table_18958648_1 WHERE overweight__incl_obese__adults = "65.4%"
List all player names who have an overall rating higher than the average.
CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (overall_rating INTEGER); CREATE TABLE Player_Attributes (player_api_id VARCHAR, overall_rating INTEGER)
SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > (SELECT AVG(overall_rating) FROM Player_Attributes)
What was the TO par for the player who scored 68-71=139?
CREATE TABLE table_name_73 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_73 WHERE score = 68 - 71 = 139
What was the date of the race that lasted 6 hours?
CREATE TABLE table_name_54 (date VARCHAR, length_duration VARCHAR)
SELECT date FROM table_name_54 WHERE length_duration = "6 hours"
What is the date of the game with the Rockets as the visitor team?
CREATE TABLE table_name_3 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_3 WHERE visitor = "rockets"
What is 1987, when 1986 is "1R"?
CREATE TABLE table_name_15 (Id VARCHAR)
SELECT 1987 FROM table_name_15 WHERE 1986 = "1r"
Who did the Lightning play at the Mellon Arena?
CREATE TABLE table_name_97 (opponent VARCHAR, location VARCHAR)
SELECT opponent FROM table_name_97 WHERE location = "mellon arena"
Can you tell me the sum of Grid that has the Laps of 30, and the Rider of toni elias?
CREATE TABLE table_name_54 (grid INTEGER, laps VARCHAR, rider VARCHAR)
SELECT SUM(grid) FROM table_name_54 WHERE laps = 30 AND rider = "toni elias"
What is the name of the movie produced after 2000 and directed by James Cameron?
CREATE TABLE Movie (title VARCHAR, director VARCHAR, YEAR VARCHAR)
SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000
Which rd. occurred on 22 October?
CREATE TABLE table_1137718_2 (rd INTEGER, date VARCHAR)
SELECT MIN(rd) FROM table_1137718_2 WHERE date = "22 October"
Who were the candidates in the election in the Tennessee 9 district?
CREATE TABLE table_1342370_41 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1342370_41 WHERE district = "Tennessee 9"
Which Played has a Lost of 3, and an Against of 23?
CREATE TABLE table_name_63 (played INTEGER, lost VARCHAR, against VARCHAR)
SELECT AVG(played) FROM table_name_63 WHERE lost = 3 AND against = 23
Which university is in Los Angeles county and opened after 1950?
CREATE TABLE campuses (campus VARCHAR, county VARCHAR, YEAR VARCHAR)
SELECT campus FROM campuses WHERE county = "Los Angeles" AND YEAR > 1950
Name the location of ufc 98
CREATE TABLE table_name_51 (location VARCHAR, event VARCHAR)
SELECT location FROM table_name_51 WHERE event = "ufc 98"
What is the Name of the person with a Total of 3 (15), and Rank of more than 3?
CREATE TABLE table_name_87 (name VARCHAR, total VARCHAR, rank VARCHAR)
SELECT name FROM table_name_87 WHERE total = "3 (15)" AND rank > 3
WHAT IS THE APPOINTMENT DATE FOR AC HORSENS?
CREATE TABLE table_name_33 (date_of_appointment VARCHAR, team VARCHAR)
SELECT date_of_appointment FROM table_name_33 WHERE team = "ac horsens"
What is the year when the course is sunset ridge cc?
CREATE TABLE table_name_43 (year INTEGER, course VARCHAR)
SELECT SUM(year) FROM table_name_43 WHERE course = "sunset ridge cc"
During which round was the first defensive end with an overall rank larger than 186 drafted?
CREATE TABLE table_name_65 (round INTEGER, overall VARCHAR, position VARCHAR)
SELECT MIN(round) FROM table_name_65 WHERE overall > 186 AND position = "defensive end"
Who was the Runner-up for the merrill lynch/golf digest commemorative pro-am tournament?
CREATE TABLE table_name_21 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT runner_s__up FROM table_name_21 WHERE tournament = "merrill lynch/golf digest commemorative pro-am"
What Nominating festival was party of the adjustment film?
CREATE TABLE table_name_69 (nominating_festival VARCHAR, film VARCHAR)
SELECT nominating_festival FROM table_name_69 WHERE film = "adjustment"
Which opponent has a date 21 jul 2007?
CREATE TABLE table_name_3 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_3 WHERE date = "21 jul 2007"
Name the number of other builders for nant, visual studio
CREATE TABLE table_22903426_1 (other_builders VARCHAR, windows_builders VARCHAR)
SELECT COUNT(other_builders) FROM table_22903426_1 WHERE windows_builders = "NAnt, Visual Studio"
What is the Set 3 on 30 may, and a Set 1 is 20–25?
CREATE TABLE table_name_79 (set_3 VARCHAR, date VARCHAR, set_1 VARCHAR)
SELECT set_3 FROM table_name_79 WHERE date = "30 may" AND set_1 = "20–25"
What is the reward for the elimination of Peterson?
CREATE TABLE table_24122653_2 (reward VARCHAR, eliminated VARCHAR)
SELECT reward FROM table_24122653_2 WHERE eliminated = "Peterson"
What genre is revolving doors of vengeance 酒店風雲?
CREATE TABLE table_name_30 (genre VARCHAR, english_title__chinese_title_ VARCHAR)
SELECT genre FROM table_name_30 WHERE english_title__chinese_title_ = "revolving doors of vengeance 酒店風雲"
What is the total number of the established club of Lehigh Valley Storm?
CREATE TABLE table_name_86 (established VARCHAR, club VARCHAR)
SELECT COUNT(established) FROM table_name_86 WHERE club = "lehigh valley storm"
When there are more than 1 winners and the team playing is pachuca, what's the lowest runners-up found?
CREATE TABLE table_name_44 (runners_up INTEGER, team VARCHAR, winners VARCHAR)
SELECT MIN(runners_up) FROM table_name_44 WHERE team = "pachuca" AND winners > 1
What is the largest village that had 103279 houses affected?
CREATE TABLE table_20403667_2 (village INTEGER, house_affected VARCHAR)
SELECT MAX(village) FROM table_20403667_2 WHERE house_affected = 103279
How many aircrafts are there?
CREATE TABLE aircraft (Id VARCHAR)
SELECT COUNT(*) FROM aircraft
What is the loaction attendance that has a game greater than 35, with January 30 as the date?
CREATE TABLE table_name_24 (location_attendance VARCHAR, game VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_24 WHERE game > 35 AND date = "january 30"
What is the sum of Top-5, when Tournament is Totals, and when Events is greater than 86?
CREATE TABLE table_name_68 (top_5 INTEGER, tournament VARCHAR, events VARCHAR)
SELECT SUM(top_5) FROM table_name_68 WHERE tournament = "totals" AND events > 86