question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Find the first names of all the authors ordered in alphabetical order.
CREATE TABLE authors (fname VARCHAR)
SELECT fname FROM authors ORDER BY fname
What is the English name of the country whose official native language is Dutch Papiamento?
CREATE TABLE table_1008653_1 (country___exonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR)
SELECT country___exonym__ FROM table_1008653_1 WHERE official_or_native_language_s___alphabet_script_ = "Dutch Papiamento"
Who is the player with an average of 35.42?
CREATE TABLE table_28846752_13 (player VARCHAR, average VARCHAR)
SELECT player FROM table_28846752_13 WHERE average = "35.42"
What was the outcome for the match that ended in a score of 5–7, 6–4, [10–7]?
CREATE TABLE table_name_84 (outcome VARCHAR, score_in_final VARCHAR)
SELECT outcome FROM table_name_84 WHERE score_in_final = "5–7, 6–4, [10–7]"
What is the Height of the Player with a Date of Birth of 1978-02-16?
CREATE TABLE table_name_58 (height VARCHAR, date_of_birth VARCHAR)
SELECT height FROM table_name_58 WHERE date_of_birth = "1978-02-16"
when were helena suková todd woodbridge the opponents in the final
CREATE TABLE table_1918850_2 (year VARCHAR, opponents_in_the_final VARCHAR)
SELECT year FROM table_1918850_2 WHERE opponents_in_the_final = "Helena Suková Todd Woodbridge"
Show the cinema name and location for cinemas with capacity above average.
CREATE TABLE cinema (name VARCHAR, LOCATION VARCHAR, capacity INTEGER)
SELECT name, LOCATION FROM cinema WHERE capacity > (SELECT AVG(capacity) FROM cinema)
In round 3 what was the position?
CREATE TABLE table_name_83 (position VARCHAR, round VARCHAR)
SELECT position FROM table_name_83 WHERE round = "3"
Which Original Team has a Hometown of Brooklyn, New York and a Background of Comedienne?
CREATE TABLE table_name_22 (original_team VARCHAR, hometown VARCHAR, background VARCHAR)
SELECT original_team FROM table_name_22 WHERE hometown = "brooklyn, new york" AND background = "comedienne"
How many points did the away team from Melbourne score?
CREATE TABLE table_name_40 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_40 WHERE away_team = "melbourne"
Who was the runner-up with the margin of victory of 8 strokes?
CREATE TABLE table_name_6 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT runner_s__up FROM table_name_6 WHERE margin_of_victory = "8 strokes"
What is the Name with an Average that is 16.4?
CREATE TABLE table_name_10 (name VARCHAR, average VARCHAR)
SELECT name FROM table_name_10 WHERE average = 16.4
Name the tournament for 2009 2r
CREATE TABLE table_name_32 (tournament VARCHAR)
SELECT tournament FROM table_name_32 WHERE 2009 = "2r"
What's Manchu (Möllendorff) with the Wi Xing Correltation of 南 South, along with Wuu Wuupin of ting44?
CREATE TABLE table_name_48 (manchu___möllendorff__ VARCHAR, wu_xing_correlations VARCHAR, wuu_wuupin VARCHAR)
SELECT manchu___möllendorff__ FROM table_name_48 WHERE wu_xing_correlations = "南 south" AND wuu_wuupin = "ting44"
Where did the Gould Rex Mays Classic 150 occur?
CREATE TABLE table_name_38 (city_location VARCHAR, race_name VARCHAR)
SELECT city_location FROM table_name_38 WHERE race_name = "gould rex mays classic 150"
I want the lead for others being 5%
CREATE TABLE table_name_58 (lead VARCHAR, others VARCHAR)
SELECT lead FROM table_name_58 WHERE others = "5%"
What is the average gold medals Uzbekistan, which has less than 24 total medals, has?
CREATE TABLE table_name_65 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT AVG(gold) FROM table_name_65 WHERE nation = "uzbekistan" AND total < 24
Which week 1 had a week 2 of Mandy Lynn?
CREATE TABLE table_name_64 (week_1 VARCHAR, week_2 VARCHAR)
SELECT week_1 FROM table_name_64 WHERE week_2 = "mandy lynn"
Name the Gross-to-date which has a Date of august 23–25?
CREATE TABLE table_name_53 (gross_to_date VARCHAR, date VARCHAR)
SELECT gross_to_date FROM table_name_53 WHERE date = "august 23–25"
Name the club team for overall of 188 for canada
CREATE TABLE table_name_72 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR)
SELECT club_team FROM table_name_72 WHERE nationality = "canada" AND overall = 188
what is the production code of the episode viewed by 5.36 million u.s. people?
CREATE TABLE table_26409328_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT production_code FROM table_26409328_1 WHERE us_viewers__millions_ = "5.36"
What date was moena to aprica the course?
CREATE TABLE table_name_13 (date VARCHAR, course VARCHAR)
SELECT date FROM table_name_13 WHERE course = "moena to aprica"
When did Charles III die?
CREATE TABLE table_name_4 (date_of_death VARCHAR, name VARCHAR)
SELECT date_of_death FROM table_name_4 WHERE name = "charles iii"
What was the res for the game against Payam?
CREATE TABLE table_2015453_1 (res VARCHAR, team__number2 VARCHAR)
SELECT res FROM table_2015453_1 WHERE team__number2 = "Payam"
What rank has 1 silver, more than 2 gold, and a total larger than 3?
CREATE TABLE table_name_61 (rank VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT COUNT(rank) FROM table_name_61 WHERE silver = 1 AND total > 3 AND gold > 2
Who had the most points in game 4?
CREATE TABLE table_17190012_12 (high_points VARCHAR, game VARCHAR)
SELECT high_points FROM table_17190012_12 WHERE game = 4
Which Wednesday has a Monday of 月曜日 getsuyōbi?
CREATE TABLE table_name_46 (wednesday VARCHAR, monday VARCHAR)
SELECT wednesday FROM table_name_46 WHERE monday = "月曜日 getsuyōbi"
Which Points have Touchdowns of 1, and a Field goals smaller than 0?
CREATE TABLE table_name_9 (points INTEGER, touchdowns VARCHAR, field_goals VARCHAR)
SELECT AVG(points) FROM table_name_9 WHERE touchdowns = 1 AND field_goals < 0
Which Total has a Set 1 of 25–22?
CREATE TABLE table_name_12 (total VARCHAR, set_1 VARCHAR)
SELECT total FROM table_name_12 WHERE set_1 = "25–22"
Who got the loss for the game ending in a record of 55-41?
CREATE TABLE table_name_74 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_74 WHERE record = "55-41"
In 1983, what was the RAtt?
CREATE TABLE table_name_85 (ratt VARCHAR, year VARCHAR)
SELECT ratt FROM table_name_85 WHERE year = "1983"
What's amount of L2 Cache on a device that has a Frequency of 1500mhz?
CREATE TABLE table_name_78 (l2_cache VARCHAR, frequency VARCHAR)
SELECT l2_cache FROM table_name_78 WHERE frequency = "1500mhz"
what is the total sack when totaltk is 1 and asst. is more than 0?
CREATE TABLE table_name_86 (sack INTEGER, totaltk VARCHAR, asst VARCHAR)
SELECT SUM(sack) FROM table_name_86 WHERE totaltk = 1 AND asst > 0
What is the canadian air date when the US air date is 24 august 2012?
CREATE TABLE table_30012404_4 (canadian_air_date VARCHAR, us_air_date VARCHAR)
SELECT canadian_air_date FROM table_30012404_4 WHERE us_air_date = "24 August 2012"
What Mascot has an Enrollment greater than 2,464?
CREATE TABLE table_name_23 (mascot VARCHAR, enrollment INTEGER)
SELECT mascot FROM table_name_23 WHERE enrollment > 2 OFFSET 464
Which Away has a Season of 2007–08?
CREATE TABLE table_name_99 (away VARCHAR, season VARCHAR)
SELECT away FROM table_name_99 WHERE season = "2007–08"
What 2009 has 3r as the 1999, and w as 2002?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT 2009 FROM table_name_40 WHERE 1999 = "3r" AND 2002 = "w"
What ended up happening in the district Virginia 22?
CREATE TABLE table_2668329_25 (result VARCHAR, district VARCHAR)
SELECT result FROM table_2668329_25 WHERE district = "Virginia 22"
What was the purpose of the Quay test blast?
CREATE TABLE table_name_54 (purpose VARCHAR, name VARCHAR)
SELECT purpose FROM table_name_54 WHERE name = "quay"
What label released a CD in 1988?
CREATE TABLE table_name_37 (label VARCHAR, date VARCHAR, format VARCHAR)
SELECT label FROM table_name_37 WHERE date = "1988" AND format = "cd"
If the player is Maake Kemoeatu, what is the int maximum?
CREATE TABLE table_25773915_11 (int INTEGER, player VARCHAR)
SELECT MAX(int) FROM table_25773915_11 WHERE player = "Maake Kemoeatu"
What number was the person eliminated at 22:50?
CREATE TABLE table_29692554_2 (eliminated VARCHAR, time VARCHAR)
SELECT eliminated FROM table_29692554_2 WHERE time = "22:50"
What is Mark Henry's brand?
CREATE TABLE table_name_28 (brand VARCHAR, entrant VARCHAR)
SELECT brand FROM table_name_28 WHERE entrant = "mark henry"
What is the player from Illinois?
CREATE TABLE table_name_33 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_33 WHERE college = "illinois"
Which Shooter has Score points of olympic silver medalist?
CREATE TABLE table_name_40 (shooter VARCHAR, score_points VARCHAR)
SELECT shooter FROM table_name_40 WHERE score_points = "olympic silver medalist"
What type had a beginning term of December 8, 1980
CREATE TABLE table_1602620_1 (type VARCHAR, term_began VARCHAR)
SELECT type FROM table_1602620_1 WHERE term_began = "December 8, 1980"
How many golds for west germany with over 8 total?
CREATE TABLE table_name_11 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT MIN(gold) FROM table_name_11 WHERE nation = "west germany" AND total > 8
How many rides did it take to get less than 3 bonus pts in no more than 7 matches?
CREATE TABLE table_name_92 (rides INTEGER, bonus_pts VARCHAR, matches VARCHAR)
SELECT MIN(rides) FROM table_name_92 WHERE bonus_pts < 3 AND matches < 7
What is the country of the Representative that left office as incumbent?
CREATE TABLE table_name_29 (country VARCHAR, left_office VARCHAR)
SELECT country FROM table_name_29 WHERE left_office = "incumbent"
What's the total attendance for H/A of A and opponents of wolverhampton wanderers?
CREATE TABLE table_name_42 (attendance VARCHAR, h___a VARCHAR, opponents VARCHAR)
SELECT COUNT(attendance) FROM table_name_42 WHERE h___a = "a" AND opponents = "wolverhampton wanderers"
What position did Dave Johnson play?
CREATE TABLE table_1473672_5 (position VARCHAR, player VARCHAR)
SELECT position FROM table_1473672_5 WHERE player = "Dave Johnson"
What is the highest Feb value having an opponent of the Philadelphia Flyers and is after game 63?
CREATE TABLE table_name_43 (february INTEGER, opponent VARCHAR, game VARCHAR)
SELECT MAX(february) FROM table_name_43 WHERE opponent = "philadelphia flyers" AND game > 63
What club had a loss of 15?
CREATE TABLE table_name_90 (club VARCHAR, lost VARCHAR)
SELECT club FROM table_name_90 WHERE lost = "15"
What is the launch date odds of winning 1 in 4.23 with a top prize of $15,000?
CREATE TABLE table_name_30 (launch_date VARCHAR, odds_of_winning VARCHAR, top_prize VARCHAR)
SELECT launch_date FROM table_name_30 WHERE odds_of_winning = "1 in 4.23" AND top_prize = "$15,000"
What is the highest value for SF round for the country of England?
CREATE TABLE table_23293785_2 (sf_round INTEGER, country VARCHAR)
SELECT MAX(sf_round) FROM table_23293785_2 WHERE country = "England"
What kind of Manufacturer has a Laps smaller than 20 and a Grid of 21
CREATE TABLE table_name_54 (manufacturer VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT manufacturer FROM table_name_54 WHERE laps < 20 AND grid = 21
Which height has a College of wyoming, and a Name of guy frazier?
CREATE TABLE table_name_72 (height VARCHAR, college VARCHAR, name VARCHAR)
SELECT height FROM table_name_72 WHERE college = "wyoming" AND name = "guy frazier"
When did the ship commissioned in November 1975 with a bow number of ps-18 launch?
CREATE TABLE table_name_33 (launched VARCHAR, commissioned VARCHAR, bow_number VARCHAR)
SELECT launched FROM table_name_33 WHERE commissioned = "november 1975" AND bow_number = "ps-18"
With order number 7 and the theme is Motown, who were the original artists?
CREATE TABLE table_21501565_1 (original_artist VARCHAR, order__number VARCHAR, theme VARCHAR)
SELECT original_artist FROM table_21501565_1 WHERE order__number = "7" AND theme = "Motown"
What is the sum of Asian or Amerindian (%), when State is Sergipe, and when Brown (%) is greater than 61,3?
CREATE TABLE table_name_44 (asian_or_amerindian___percentage_ INTEGER, state VARCHAR, brown___percentage_ VARCHAR)
SELECT SUM(asian_or_amerindian___percentage_) FROM table_name_44 WHERE state = "sergipe" AND brown___percentage_ > 61 OFFSET 3
Who left a seat open for the district of connecticut at-large
CREATE TABLE table_224844_4 (vacator VARCHAR, district VARCHAR)
SELECT vacator FROM table_224844_4 WHERE district = "Connecticut At-large"
Which Player has a Date of Birth (Age When Delisted) of 13 February 1987 (aged 24)?
CREATE TABLE table_name_85 (player VARCHAR, date_of_birth__age_when_delisted_ VARCHAR)
SELECT player FROM table_name_85 WHERE date_of_birth__age_when_delisted_ = "13 february 1987 (aged 24)"
What velodrome took place earlier than 1950 with a winner from France in tandem paced over a distance of 951.750 km?
CREATE TABLE table_name_6 (velodrome VARCHAR, distance VARCHAR, pacing VARCHAR, year VARCHAR, country VARCHAR)
SELECT velodrome FROM table_name_6 WHERE year < 1950 AND country = "france" AND pacing = "tandem paced" AND distance = "951.750 km"
With yes under writer and in 2014, what is the director?
CREATE TABLE table_name_77 (director VARCHAR, year VARCHAR, writer VARCHAR)
SELECT director FROM table_name_77 WHERE year = 2014 AND writer = "yes"
What is the change number with fewer than 4.7% votes and more than 0 seats?
CREATE TABLE table_name_89 (change INTEGER, _percentage_votes VARCHAR, seats VARCHAR)
SELECT SUM(change) FROM table_name_89 WHERE _percentage_votes < 4.7 AND seats > 0
What is the Venue of the WCQ5 Competition?
CREATE TABLE table_name_49 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_49 WHERE competition = "wcq5"
Who wrote the episode that was directed by Kevin Inch?
CREATE TABLE table_29391888_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT written_by FROM table_29391888_1 WHERE directed_by = "Kevin Inch"
What day did he play on hard with tom mercer?
CREATE TABLE table_name_69 (date VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT date FROM table_name_69 WHERE surface = "hard" AND partner = "tom mercer"
What is the smallest number of goals when the goals against are more than 58 and played number is more than 30?
CREATE TABLE table_name_37 (goals_for INTEGER, goals_against VARCHAR, played VARCHAR)
SELECT MIN(goals_for) FROM table_name_37 WHERE goals_against > 58 AND played > 30
Name the title with termination of mission of april 10, 1939
CREATE TABLE table_name_24 (title VARCHAR, termination_of_mission VARCHAR)
SELECT title FROM table_name_24 WHERE termination_of_mission = "april 10, 1939"
What is Date (Opening), when Year is less than 2010, and when Date (Closing) is "September 28"?
CREATE TABLE table_name_5 (date__opening_ VARCHAR, year VARCHAR, date__closing_ VARCHAR)
SELECT date__opening_ FROM table_name_5 WHERE year < 2010 AND date__closing_ = "september 28"
How many Assists for the Player with more than 25 Games?
CREATE TABLE table_name_45 (assists INTEGER, games INTEGER)
SELECT SUM(assists) FROM table_name_45 WHERE games > 25
Name the place for score of 67-70=137 and stuart appleby
CREATE TABLE table_name_55 (place VARCHAR, player VARCHAR, score VARCHAR)
SELECT place FROM table_name_55 WHERE score = 67 - 70 = 137 AND player = "stuart appleby"
What Haydon had a 33 Ben-Tahir?
CREATE TABLE table_name_68 (haydon VARCHAR, ben_tahir VARCHAR)
SELECT haydon FROM table_name_68 WHERE ben_tahir = "33"
What were the final time for the swimmer on lane 4?
CREATE TABLE table_name_1 (final VARCHAR, lane VARCHAR)
SELECT final FROM table_name_1 WHERE lane = 4
Name the total number of games for lost being 41
CREATE TABLE table_2509505_1 (games VARCHAR, lost VARCHAR)
SELECT COUNT(games) FROM table_2509505_1 WHERE lost = 41
Marty Riessen played as a partner during a match with what kind of surface?
CREATE TABLE table_name_84 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_name_84 WHERE partner = "marty riessen"
What is the total number of loses of the club with a 4 position and less than 23 goals conceded?
CREATE TABLE table_name_96 (loses VARCHAR, position VARCHAR, goals_conceded VARCHAR)
SELECT COUNT(loses) FROM table_name_96 WHERE position = 4 AND goals_conceded < 23
What is the qual for rank 18 in 1964?
CREATE TABLE table_name_44 (qual VARCHAR, rank VARCHAR, year VARCHAR)
SELECT qual FROM table_name_44 WHERE rank = "18" AND year = "1964"
What is Opposing Teams, when Status is "Test Match", and when Date is "25/11/2000"?
CREATE TABLE table_name_96 (opposing_teams VARCHAR, status VARCHAR, date VARCHAR)
SELECT opposing_teams FROM table_name_96 WHERE status = "test match" AND date = "25/11/2000"
What was the result of the Best Actor in a Musical category?
CREATE TABLE table_name_81 (result VARCHAR, category VARCHAR)
SELECT result FROM table_name_81 WHERE category = "best actor in a musical"
Which country had a total of 295?
CREATE TABLE table_name_49 (country VARCHAR, total VARCHAR)
SELECT country FROM table_name_49 WHERE total = 295
How many laps by Jorge Lorenzo on the Aprilia with a grid bigger than 1?
CREATE TABLE table_name_34 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, rider VARCHAR)
SELECT SUM(laps) FROM table_name_34 WHERE manufacturer = "aprilia" AND rider = "jorge lorenzo" AND grid > 1
Which date did South Melbourne play as the away team?
CREATE TABLE table_name_74 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_74 WHERE away_team = "south melbourne"
What was the score of the game that had a record of 52–103?
CREATE TABLE table_name_14 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_14 WHERE record = "52–103"
Which method was used in a round greater than 3?
CREATE TABLE table_name_15 (method VARCHAR, round INTEGER)
SELECT method FROM table_name_15 WHERE round > 3
What are the names and id of courses having at most 2 sections?
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Sections (course_id VARCHAR)
SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2
What is the Song by Artist Robert Cogoi?
CREATE TABLE table_name_69 (song VARCHAR, artist VARCHAR)
SELECT song FROM table_name_69 WHERE artist = "robert cogoi"
What's the code of the district in which 312520 people lived in 2011?
CREATE TABLE table_2801442_1 (code VARCHAR, population__2011_census_ VARCHAR)
SELECT code FROM table_2801442_1 WHERE population__2011_census_ = 312520
Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9?
CREATE TABLE table_name_93 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_93 WHERE game > 72 AND record = "39-27-9"
what was the number of candidates when Leon Sacks was incumbent?
CREATE TABLE table_1342256_38 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(candidates) FROM table_1342256_38 WHERE incumbent = "Leon Sacks"
What was the average round for john markham draft pick?
CREATE TABLE table_name_36 (round INTEGER, player VARCHAR)
SELECT AVG(round) FROM table_name_36 WHERE player = "john markham"
What is KK - 5 if KK - 1 is 1,067?
CREATE TABLE table_name_42 (kk___5 VARCHAR, kk___1 VARCHAR)
SELECT kk___5 FROM table_name_42 WHERE kk___1 = "1,067"
Which number is 國殤?
CREATE TABLE table_name_69 (standard_order VARCHAR, traditional_chinese VARCHAR)
SELECT standard_order FROM table_name_69 WHERE traditional_chinese = "國殤"
How many silver medalist was won?
CREATE TABLE table_22355_71 (silver INTEGER)
SELECT MAX(silver) FROM table_22355_71
How many figures are there for wheels for LMS numbers 16377-9?
CREATE TABLE table_15412381_5 (wheels VARCHAR, lms_nos VARCHAR)
SELECT COUNT(wheels) FROM table_15412381_5 WHERE lms_nos = "16377-9"
When is it has 15,557 Attendances?
CREATE TABLE table_name_35 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_35 WHERE attendance = "15,557"
what is the pick when the overall is less than 297 and the college is alabama?
CREATE TABLE table_name_16 (pick VARCHAR, overall VARCHAR, college VARCHAR)
SELECT pick FROM table_name_16 WHERE overall < 297 AND college = "alabama"
Name the to par with money of 200,000 for australia
CREATE TABLE table_name_30 (to_par VARCHAR, money___£__ VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_30 WHERE money___£__ = "200,000" AND country = "australia"
What is the value for lowest Sacks, when the Team is New Orleans Saints, and when the value for Tackles is 132?
CREATE TABLE table_name_22 (sacks INTEGER, team VARCHAR, tackles VARCHAR)
SELECT MIN(sacks) FROM table_name_22 WHERE team = "new orleans saints" AND tackles = "132"