answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT SUM(date) FROM table_name_68 WHERE score = "7–6(3), 4–6, 6–2"
Which Date has a Score of 7–6(3), 4–6, 6–2?
CREATE TABLE table_name_68 (date INTEGER, score VARCHAR)
SELECT venue FROM table_name_69 WHERE away_team = "essendon"
Where did Essendon play as the away team?
CREATE TABLE table_name_69 (venue VARCHAR, away_team VARCHAR)
SELECT district FROM table_name_52 WHERE incumbent = "benjamin eggleston"
What district has benjamin eggleston for incumbent?
CREATE TABLE table_name_52 (district VARCHAR, incumbent VARCHAR)
SELECT MAX(world_rank) FROM table_2249029_1 WHERE asian_rank = 31
Name the most world rank for asian rank being 31
CREATE TABLE table_2249029_1 (world_rank INTEGER, asian_rank VARCHAR)
SELECT home_team AS score FROM table_name_76 WHERE home_team = "st kilda"
How much did the home team st kilda score?
CREATE TABLE table_name_76 (home_team VARCHAR)
SELECT street_names FROM table_10568553_1 WHERE milepost = "12.2"
Which street is 12.2 miles long?
CREATE TABLE table_10568553_1 (street_names VARCHAR, milepost VARCHAR)
SELECT AVG(total) FROM table_name_41 WHERE player = "corey pavin" AND to_par > 5
Player of corey pavin, and a To par larger than 5 has what average total?
CREATE TABLE table_name_41 (total INTEGER, player VARCHAR, to_par VARCHAR)
SELECT location FROM table_name_73 WHERE date = "march 30, 2008"
What is the Location of the Event on March 30, 2008?
CREATE TABLE table_name_73 (location VARCHAR, date VARCHAR)
SELECT MAX(draws) FROM table_name_63 WHERE season > 1926 AND wins < 0
What is the highest Draws for a season later than 1926 with less than 0 wins?
CREATE TABLE table_name_63 (draws INTEGER, season VARCHAR, wins VARCHAR)
SELECT COUNT(entered) FROM table_29692554_2 WHERE time = "21:09"
How many entries are shown for entered at 21:09?
CREATE TABLE table_29692554_2 (entered VARCHAR, time VARCHAR)
SELECT rank FROM table_name_76 WHERE time = "7:16.13"
What was the rank of the team who raced at a time of 7:16.13?
CREATE TABLE table_name_76 (rank VARCHAR, time VARCHAR)
SELECT AVG(year_began_making_autos) FROM table_name_30 WHERE year_joined_gm = 1917
What is the average year to begin making autos for a brand that joined GM in 1917?
CREATE TABLE table_name_30 (year_began_making_autos INTEGER, year_joined_gm VARCHAR)
SELECT COUNT(no_votes) FROM table_256286_45 WHERE description = "Forest Rehabilitation Debt Limit Amendment"
How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment?
CREATE TABLE table_256286_45 (no_votes VARCHAR, description VARCHAR)
SELECT year FROM table_name_26 WHERE position = "1st" AND venue = "paris"
what is the year that the position was 1st in paris?
CREATE TABLE table_name_26 (year VARCHAR, position VARCHAR, venue VARCHAR)
SELECT host FROM table_name_29 WHERE ratings = "9.4/27"
Who was the host that garnered ratings of 9.4/27?
CREATE TABLE table_name_29 (host VARCHAR, ratings VARCHAR)
SELECT length FROM table_22669816_1 WHERE winning_driver = "Roger McCluskey"
What length was won by Roger McCluskey?
CREATE TABLE table_22669816_1 (length VARCHAR, winning_driver VARCHAR)
SELECT dept_name FROM course GROUP BY dept_name ORDER BY SUM(credits) DESC LIMIT 1
Find the name of the department that offers the highest total credits?
CREATE TABLE course (dept_name VARCHAR, credits INTEGER)
SELECT home_team FROM table_name_53 WHERE away_team = "fitzroy"
What is the name of the Home team that played Fitzroy as the Away team?
CREATE TABLE table_name_53 (home_team VARCHAR, away_team VARCHAR)
SELECT round FROM table_name_28 WHERE opponent = "sergiy stakhovsky"
What round was the opponent Sergiy Stakhovsky?
CREATE TABLE table_name_28 (round VARCHAR, opponent VARCHAR)
SELECT COUNT(version) FROM table_28540539_2 WHERE release = "1.0.9"
What's the number of the 1.0.9 release version?
CREATE TABLE table_28540539_2 (version VARCHAR, release VARCHAR)
SELECT platform_s_ FROM table_name_45 WHERE year > 2006 AND director = "bryan walker"
What platform was used for the game directed by Bryan Walker after 2006?
CREATE TABLE table_name_45 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR)
SELECT nat FROM table_name_99 WHERE transfer_fee = "£400k"
What is the nationality of the player with a transfer fee of £400k?
CREATE TABLE table_name_99 (nat VARCHAR, transfer_fee VARCHAR)
SELECT COUNT(pick__number) FROM table_2508633_2 WHERE player = "Henry Ellard"
Name the total number of pick number being henry ellard
CREATE TABLE table_2508633_2 (pick__number VARCHAR, player VARCHAR)
SELECT SUM(glyph) FROM table_name_96 WHERE binary < 111001 AND octal < 65 AND hexadecimal < 30
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 table_name_96 (glyph INTEGER, hexadecimal VARCHAR, binary VARCHAR, octal VARCHAR)
SELECT COUNT(standard) FROM table_2780146_6 WHERE pm__g_kwh_ = "0.02"
How many different standards have a PM of 0.02 g/kWh?
CREATE TABLE table_2780146_6 (standard VARCHAR, pm__g_kwh_ VARCHAR)
SELECT Character FROM actor ORDER BY age DESC
What are the characters of actors in descending order of age?
CREATE TABLE actor (Character VARCHAR, age VARCHAR)
SELECT MAX(number_of_households) FROM table_name_88 WHERE median_family_income = "$52,106" AND population < 21 OFFSET 403
What is the largest number of households with median family income of $52,106 with less than 21,403 in population?
CREATE TABLE table_name_88 (number_of_households INTEGER, median_family_income VARCHAR, population VARCHAR)
SELECT genre FROM table_name_49 WHERE developer = "microvision"
In what genre did Microvision develop a game?
CREATE TABLE table_name_49 (genre VARCHAR, developer VARCHAR)
SELECT 2002 AS _commission FROM table_136027_2 WHERE district = "district 3"
Who is on the 2002 commission from district 3?
CREATE TABLE table_136027_2 (district VARCHAR)
SELECT driver FROM table_name_4 WHERE constructor = "renault" AND q1_pos > 2
Who is the driver whose car was constructed by Renault and whose Q1 pos is greater than 2?
CREATE TABLE table_name_4 (driver VARCHAR, constructor VARCHAR, q1_pos VARCHAR)
SELECT SUM(field_goals) FROM table_name_45 WHERE touchdowns < 3 AND player = "willis ward" AND extra_points < 0
How many Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0?
CREATE TABLE table_name_45 (field_goals INTEGER, extra_points VARCHAR, touchdowns VARCHAR, player VARCHAR)
SELECT winner FROM table_name_5 WHERE mountains_classification = "franco pellizotti" AND combativity_award = "martijn maaskant"
Name the winner with mountains classification of franco pellizotti and combativity award of martijn maaskant
CREATE TABLE table_name_5 (winner VARCHAR, mountains_classification VARCHAR, combativity_award VARCHAR)
SELECT chassis FROM table_name_7 WHERE year = 1951
What chassis has a year of 1951?
CREATE TABLE table_name_7 (chassis VARCHAR, year VARCHAR)
SELECT date FROM table_name_30 WHERE outcome = "runner up" AND partner = "tyra calderwood"
What Date has an Outcome of runner up, and a Partner of tyra calderwood?
CREATE TABLE table_name_30 (date VARCHAR, outcome VARCHAR, partner VARCHAR)
SELECT COUNT(episode) AS Summary FROM table_2140071_10 WHERE coach = "Jesse Csincsak"
Name the number of episode summary for jesse csincsak
CREATE TABLE table_2140071_10 (episode VARCHAR, coach VARCHAR)
SELECT 2008 FROM table_name_39 WHERE 2009 = "a" AND tournament = "cincinnati masters"
Which 2008 has a 2009 of A, and a Tournament of cincinnati masters?
CREATE TABLE table_name_39 (tournament VARCHAR)
SELECT enrollment FROM table_261931_2 WHERE location = "New London, Connecticut"
What is the enrollment at the institution in New London, Connecticut?
CREATE TABLE table_261931_2 (enrollment VARCHAR, location VARCHAR)
SELECT tie_no FROM table_name_21 WHERE away_team = "lincoln city"
When Lincoln City was the away team what is the tie number?
CREATE TABLE table_name_21 (tie_no VARCHAR, away_team VARCHAR)
SELECT film FROM table_name_10 WHERE award = "troisième prix" AND year < 2010 AND director = "jan komasa"
Award of troisième prix, and a Year smaller than 2010, and a Director of jan komasa is what film?
CREATE TABLE table_name_10 (film VARCHAR, director VARCHAR, award VARCHAR, year VARCHAR)
SELECT AVG(year_joined) FROM table_name_43 WHERE county = 277
What is the average year joined of the 277 county?
CREATE TABLE table_name_43 (year_joined INTEGER, county VARCHAR)
SELECT largest_metropolitan_area FROM table_name_99 WHERE name = "central-west"
What is the largest metropolitan area of the Central-West?
CREATE TABLE table_name_99 (largest_metropolitan_area VARCHAR, name VARCHAR)
SELECT f_laps FROM table_25740774_1 WHERE races = 14
What are the f/laps for race 14?
CREATE TABLE table_25740774_1 (f_laps VARCHAR, races VARCHAR)
SELECT mwehl_team FROM table_name_49 WHERE round = "2" AND player = "nicolas kerdiles"
What is the MWEHL Team on Round 2, with player Nicolas Kerdiles?
CREATE TABLE table_name_49 (mwehl_team VARCHAR, round VARCHAR, player VARCHAR)
SELECT title FROM table_17355933_1 WHERE directed_by = "Laura Innes"
Which season titles were directed by Laura Innes?
CREATE TABLE table_17355933_1 (title VARCHAR, directed_by VARCHAR)
SELECT nickname FROM table_name_93 WHERE institution = "university of wisconsin-platteville"
What is the team nickname of university of wisconsin-platteville?
CREATE TABLE table_name_93 (nickname VARCHAR, institution VARCHAR)
SELECT result FROM table_name_66 WHERE opponent = "new england patriots"
What was the final of the New England Patriots game?
CREATE TABLE table_name_66 (result VARCHAR, opponent VARCHAR)
SELECT traditional FROM table_name_28 WHERE area = "35"
What is the Traditional for area 35?
CREATE TABLE table_name_28 (traditional VARCHAR, area VARCHAR)
SELECT COUNT(no_in_season) FROM table_19897294_11 WHERE no_in_series = "US17"
What episode in the season was episode us17 in the series?
CREATE TABLE table_19897294_11 (no_in_season VARCHAR, no_in_series VARCHAR)
SELECT MIN(year) FROM table_name_47 WHERE player = "serena williams" AND sets > 2
what's the earliest year that serena williams had more than 2 sets?
CREATE TABLE table_name_47 (year INTEGER, player VARCHAR, sets VARCHAR)
SELECT COUNT(against) FROM table_name_63 WHERE date = "30/05/1981"
Which Against has a Date of 30/05/1981?
CREATE TABLE table_name_63 (against VARCHAR, date VARCHAR)
SELECT party FROM table_27050336_7 WHERE delegate = "Feldman, Brian J. Brian J. Feldman"
Where delegate is feldman, brian j. brian j. feldman, please specify all the party
CREATE TABLE table_27050336_7 (party VARCHAR, delegate VARCHAR)
SELECT venue FROM table_name_58 WHERE home_team = "hawthorn"
What is Home team Venue for the hawthorn team?
CREATE TABLE table_name_58 (venue VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_37 WHERE opponent = "rafael nadal"
On what Date was Rafael Nadal the Opponent?
CREATE TABLE table_name_37 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(played) FROM table_name_84 WHERE points > 14 AND drawn > 1
What is the total number of played values for teams with more than 14 points and more than 1 draw?
CREATE TABLE table_name_84 (played VARCHAR, points VARCHAR, drawn VARCHAR)
SELECT MIN(wins) FROM table_19741316_1
What is the lowest number of wins of a team?
CREATE TABLE table_19741316_1 (wins INTEGER)
SELECT written_by FROM table_name_36 WHERE no_in_series = 24
Who was the number 24 series written by?
CREATE TABLE table_name_36 (written_by VARCHAR, no_in_series VARCHAR)
SELECT average FROM table_10621256_1 WHERE high_score = 120
what's the average where high score is 120
CREATE TABLE table_10621256_1 (average VARCHAR, high_score VARCHAR)
SELECT chassis FROM table_name_31 WHERE year < 1988
which chassis were in use prior to 1988?
CREATE TABLE table_name_31 (chassis VARCHAR, year INTEGER)
SELECT version FROM table_28540539_2 WHERE release = "1.0.4"
What's the version in the 1.0.4 release?
CREATE TABLE table_28540539_2 (version VARCHAR, release VARCHAR)
SELECT dates FROM table_name_6 WHERE tournament_location = "ibaraki country club" AND champion = "masahiro kawamura"
What dates was champion masahiro kawamura at the ibaraki country club tournament?
CREATE TABLE table_name_6 (dates VARCHAR, tournament_location VARCHAR, champion VARCHAR)
SELECT class FROM table_name_14 WHERE part_2 = "halp warþ"
Which class has a part 2 of halp warþ?
CREATE TABLE table_name_14 (class VARCHAR, part_2 VARCHAR)
SELECT race_name FROM table_22669375_1 WHERE date = "June 6"
Name the race name for june 6
CREATE TABLE table_22669375_1 (race_name VARCHAR, date VARCHAR)
SELECT player FROM table_name_15 WHERE position = "f" AND college = "depauw"
Who plays f position for depauw?
CREATE TABLE table_name_15 (player VARCHAR, position VARCHAR, college VARCHAR)
SELECT team FROM table_name_29 WHERE location_attendance = "staples center 18,997" AND series = "1–0"
Which Team has a Location Attendance of staples center 18,997, and a Series of 1–0?
CREATE TABLE table_name_29 (team VARCHAR, location_attendance VARCHAR, series VARCHAR)
SELECT home_team FROM table_name_6 WHERE venue = "princes park"
Who is Princes Park's home team?
CREATE TABLE table_name_6 (home_team VARCHAR, venue VARCHAR)
SELECT SUM(wins) FROM table_name_36 WHERE points > 19 AND position < 12 AND played < 30
How many wins when there are more than 19 points, place smaller than 12, and fewer than 30 played?
CREATE TABLE table_name_36 (wins INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)
SELECT driver FROM table_name_45 WHERE grid = 13
Who was driving with a Grid of 13?
CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR)
SELECT laps FROM table_2226343_1 WHERE average_speed__mph_ = "141.911"
How many laps have an average speed of 141.911?
CREATE TABLE table_2226343_1 (laps VARCHAR, average_speed__mph_ VARCHAR)
SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841)
Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.
CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR)
SELECT Maker, Model FROM MODEL_LIST
What are all the makers and models?
CREATE TABLE MODEL_LIST (Maker VARCHAR, Model VARCHAR)
SELECT leading_scorer FROM table_name_56 WHERE visitor = "villa de los barrios"
Who is the leading scorer of the Villa De Los Barrios visitor?
CREATE TABLE table_name_56 (leading_scorer VARCHAR, visitor VARCHAR)
SELECT year_s__retired FROM table_name_5 WHERE quantity_made = "25"
What is the year retired of the locomotive which had the quantity made of 25?
CREATE TABLE table_name_5 (year_s__retired VARCHAR, quantity_made VARCHAR)
SELECT score FROM table_name_81 WHERE player = "frank moore"
What was Frank Moore's score?
CREATE TABLE table_name_81 (score VARCHAR, player VARCHAR)
SELECT nationality FROM table_2897457_2 WHERE nhl_team = "Washington Capitals"
What is the nationality of the player picked to go to Washington Capitals?
CREATE TABLE table_2897457_2 (nationality VARCHAR, nhl_team VARCHAR)
SELECT MAX(evening_gown) FROM table_name_8 WHERE average = 9.531 AND swimsuit < 9.449
What is the highest evening gown with an average of 9.531 and swimsuit smaller than 9.449?
CREATE TABLE table_name_8 (evening_gown INTEGER, average VARCHAR, swimsuit VARCHAR)
SELECT time FROM table_name_62 WHERE location = "moscow, russia"
What is the time for Moscow, Russia?
CREATE TABLE table_name_62 (time VARCHAR, location VARCHAR)
SELECT overs FROM table_name_66 WHERE mdns = "4"
Tell me the overs for mdns of 4
CREATE TABLE table_name_66 (overs VARCHAR, mdns VARCHAR)
SELECT opponent FROM table_name_33 WHERE week < 11 AND tv_time = "fox 10:00 am mt" AND result = "w 20-17"
Can you tell me the Opponent that has the Week smaller than 11, and the TV Time of fox 10:00 am mt, and the Result of w 20-17?
CREATE TABLE table_name_33 (opponent VARCHAR, result VARCHAR, week VARCHAR, tv_time VARCHAR)
SELECT name FROM table_name_20 WHERE games > 37 AND assists = 202
Who played over 37 games and had 202 assists?
CREATE TABLE table_name_20 (name VARCHAR, games VARCHAR, assists VARCHAR)
SELECT record FROM table_name_89 WHERE date = "september 15, 1968"
What was the record on the date of september 15, 1968?
CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR)
SELECT Name FROM county_public_safety ORDER BY Population DESC
List the names of counties in descending order of population.
CREATE TABLE county_public_safety (Name VARCHAR, Population VARCHAR)
SELECT network FROM table_name_83 WHERE year > 1990 AND colour_commentator_s_ = "chris walby"
For which network was Chris Walby the color commentator after 1990?
CREATE TABLE table_name_83 (network VARCHAR, year VARCHAR, colour_commentator_s_ VARCHAR)
SELECT venue FROM table_name_63 WHERE year < 2003 AND notes = "57.73 m"
What is the Venue before 2003 with Notes of 57.73 m?
CREATE TABLE table_name_63 (venue VARCHAR, year VARCHAR, notes VARCHAR)
SELECT location FROM table_name_31 WHERE score = "3–2" AND record = "3–2–3"
Which location has a Score of 3–2, and a Record of 3–2–3?
CREATE TABLE table_name_31 (location VARCHAR, score VARCHAR, record VARCHAR)
SELECT pick__number FROM table_10975034_5 WHERE college = "Regina"
What is the pick number of regina?
CREATE TABLE table_10975034_5 (pick__number VARCHAR, college VARCHAR)
SELECT winner FROM table_name_60 WHERE general_classification = "danilo di luca" AND stage = "9"
Who was the winner of Stage 9 when then general classification was Danilo Di Luca?
CREATE TABLE table_name_60 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR)
SELECT MAX(rank) FROM table_name_6 WHERE bronze = 0 AND total < 3 AND nation = "austria"
What kind of Rank has a Bronze of 0 and a Total smaller than 3 and a Nation of austria?
CREATE TABLE table_name_6 (rank INTEGER, nation VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT place FROM table_name_88 WHERE country = "united states" AND player = "craig wood"
Which place has United States as the country and Craig Wood as the player?
CREATE TABLE table_name_88 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT prize_fund FROM table_18828487_1 WHERE venue = "RWE-Sporthalle, Mülheim"
How much was the prize money for rwe-sporthalle, mülheim ?
CREATE TABLE table_18828487_1 (prize_fund VARCHAR, venue VARCHAR)
SELECT 18 AS _49 FROM table_name_45 WHERE weekly_winner = "youth counselor justin meece"
What is 18-49, when Weekly Winner is "Youth Counselor Justin Meece"?
CREATE TABLE table_name_45 (weekly_winner VARCHAR)
SELECT MIN(round) FROM table_name_94 WHERE position = "tight end"
What was the lowest round for a tight end position?
CREATE TABLE table_name_94 (round INTEGER, position VARCHAR)
SELECT name FROM table_name_86 WHERE bullet = "10.57 (.416)" AND base = "14.96 (.589)"
Which Name has a Bullett of 10.57 (.416) and a Base of 14.96 (.589)?
CREATE TABLE table_name_86 (name VARCHAR, bullet VARCHAR, base VARCHAR)
SELECT time_retired FROM table_name_78 WHERE laps < 14 AND rider = "darren barton"
Which Time/Retired has Laps smaller than 14, and a Rider of darren barton?
CREATE TABLE table_name_78 (time_retired VARCHAR, laps VARCHAR, rider VARCHAR)
SELECT COUNT(DISTINCT scientist) FROM assignedto
How many different scientists are assigned to any project?
CREATE TABLE assignedto (scientist VARCHAR)
SELECT MIN(crowd) FROM table_name_93 WHERE home_team = "carlton"
What was the smallest crowd at a home game of carlton?
CREATE TABLE table_name_93 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(peroutka) FROM table_name_69 WHERE others = 46 AND electors < 15
What is the highest Peroutka with 46 others, and less than 15 electors?
CREATE TABLE table_name_69 (peroutka INTEGER, others VARCHAR, electors VARCHAR)
SELECT MAX(ine_code) FROM table_300283_1 WHERE official_name = "Berantevilla"
What is the INE code of the municipality whose official name is Berantevilla?
CREATE TABLE table_300283_1 (ine_code INTEGER, official_name VARCHAR)
SELECT english FROM table_name_26 WHERE german = "leben"
Which English has German of leben?
CREATE TABLE table_name_26 (english VARCHAR, german VARCHAR)
SELECT first_aired FROM table_name_30 WHERE role = "professor hubert whitehead"
What's the first aired date when Professor Hubert Whitehead was the role?
CREATE TABLE table_name_30 (first_aired VARCHAR, role VARCHAR)
SELECT score FROM table_11214772_1 WHERE year = "2007"
what's the score where year is 2007
CREATE TABLE table_11214772_1 (score VARCHAR, year VARCHAR)