answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT surface FROM table_name_91 WHERE date = "may 10, 2009"
What was the surface for the May 10, 2009 tournament?
CREATE TABLE table_name_91 (surface VARCHAR, date VARCHAR)
SELECT rank FROM table_name_25 WHERE silver > 1 AND gold > 1 AND bronze > 4
Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze?
CREATE TABLE table_name_25 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT name FROM table_14962287_2 WHERE league = 142
What name is associated with League 142?
CREATE TABLE table_14962287_2 (name VARCHAR, league VARCHAR)
SELECT MIN(year_born) FROM table_12962773_13 WHERE current_club = "Strasbourg"
What is the minimum year born for strasbourg?
CREATE TABLE table_12962773_13 (year_born INTEGER, current_club VARCHAR)
SELECT episode FROM table_23292220_3 WHERE seans_team = "Krishnan Guru-Murthy and Vic Reeves"
In which episode is Sean's team made up of Krishnan Guru-Murthy and Vic Reeves?
CREATE TABLE table_23292220_3 (episode VARCHAR, seans_team VARCHAR)
SELECT MAX(crowd) FROM table_name_37 WHERE away_team = "melbourne"
What was the largest crowd when Melbourne was the away team?
CREATE TABLE table_name_37 (crowd INTEGER, away_team VARCHAR)
SELECT 1997 FROM table_name_93 WHERE 1998 = "a" AND tournament = "hamburg masters"
During the Hamburg Masters Tournament, during which Jiří Novák was absent(A) in 1998, how did he do in 1997?
CREATE TABLE table_name_93 (tournament VARCHAR)
SELECT record FROM table_27539535_4 WHERE game = 13
What is every record for game 13?
CREATE TABLE table_27539535_4 (record VARCHAR, game VARCHAR)
SELECT name FROM Aircraft ORDER BY distance LIMIT 3
Show the name of aircrafts with top three lowest distances.
CREATE TABLE Aircraft (name VARCHAR, distance VARCHAR)
SELECT nationality FROM table_name_91 WHERE pick__number = "117"
What Nationality had a Pick # of 117?
CREATE TABLE table_name_91 (nationality VARCHAR, pick__number VARCHAR)
SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = "Dayana Robel"
What are all the policy types of the customer named "Dayana Robel"?
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE available_policies (policy_type_code VARCHAR, policy_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR, policy_id VARCHAR)
SELECT english FROM table_name_37 WHERE dutch = "maken"
Which English has Dutch of maken?
CREATE TABLE table_name_37 (english VARCHAR, dutch VARCHAR)
SELECT MIN(total__kg_) FROM table_name_48 WHERE clean_ & _jerk < 153 AND snatch < 100
Which Total (kg) has a Clean & Jerk smaller than 153, and a Snatch smaller than 100?
CREATE TABLE table_name_48 (total__kg_ INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT away_team FROM table_name_73 WHERE score = "63-69"
What was the away team that scored 63-69?
CREATE TABLE table_name_73 (away_team VARCHAR, score VARCHAR)
SELECT position FROM table_name_35 WHERE pick = 50
Which position had a pick of 50?
CREATE TABLE table_name_35 (position VARCHAR, pick VARCHAR)
SELECT captain FROM table_18461635_1 WHERE location = "Southampton"
Who is the captain of the team in Southampton?
CREATE TABLE table_18461635_1 (captain VARCHAR, location VARCHAR)
SELECT digital_channel FROM table_2857352_3 WHERE virtual_channel = "23.2"
What digital channel corresponds to virtual channel 23.2?
CREATE TABLE table_2857352_3 (digital_channel VARCHAR, virtual_channel VARCHAR)
SELECT date FROM table_name_73 WHERE catalogue_number = "warpcdd333"
What is the date for the release with a catalogue number of WARPCDD333?
CREATE TABLE table_name_73 (date VARCHAR, catalogue_number VARCHAR)
SELECT venue FROM table_name_66 WHERE home_team = "footscray"
What is the venue for the Footscray home team?
CREATE TABLE table_name_66 (venue VARCHAR, home_team VARCHAR)
SELECT senator FROM table_20803065_1 WHERE religion = "Presbyterian"
List the presbyterian members of the senate.
CREATE TABLE table_20803065_1 (senator VARCHAR, religion VARCHAR)
SELECT AVG(game) FROM table_name_51 WHERE date = "may 2"
What is the game number held on May 2?
CREATE TABLE table_name_51 (game INTEGER, date VARCHAR)
SELECT age_groups FROM table_name_26 WHERE competition_name = "big league world series"
What are the age groups for the Big League World Series?
CREATE TABLE table_name_26 (age_groups VARCHAR, competition_name VARCHAR)
SELECT COUNT(points) FROM table_name_99 WHERE loses > 16 AND goals_scored > 44 AND position < 13
How many points are there with more losses than 16, more goals than 44, and a smaller position than 13?
CREATE TABLE table_name_99 (points VARCHAR, position VARCHAR, loses VARCHAR, goals_scored VARCHAR)
SELECT MAX(silver) FROM table_name_43 WHERE nation = "south korea" AND gold > 2
HOW MANY SILVER METALS DOES SOUTH KOREA HAVE WITH 2 GOLD METALS?
CREATE TABLE table_name_43 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT opponent FROM table_name_7 WHERE score = "1–6, 6–4, 6–4"
Name the opponent with score of 1–6, 6–4, 6–4
CREATE TABLE table_name_7 (opponent VARCHAR, score VARCHAR)
SELECT COUNT(title) FROM table_25740548_2 WHERE written_by = "Brett Conrad"
How many episode were written by Brett Conrad?
CREATE TABLE table_25740548_2 (title VARCHAR, written_by VARCHAR)
SELECT MAX(top_10) FROM table_name_40 WHERE cuts_made = 8 AND events < 11
What is the most top-10 of the team with 8 cuts made and less than 11 events?
CREATE TABLE table_name_40 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR)
SELECT venue FROM table_1139835_1 WHERE margin = 4
what is the venue where the margin is 4?
CREATE TABLE table_1139835_1 (venue VARCHAR, margin VARCHAR)
SELECT tournament FROM table_name_59 WHERE opponent = "jade curtis"
What is the name of the Tournament with Jade Curtis as the opponent?
CREATE TABLE table_name_59 (tournament VARCHAR, opponent VARCHAR)
SELECT framed_size FROM table_15070195_1 WHERE date_completed = "02/91"
the date complted is 02/91, what framed size was used
CREATE TABLE table_15070195_1 (framed_size VARCHAR, date_completed VARCHAR)
SELECT SUM(enr) FROM College
What is the total enrollment number of all colleges?
CREATE TABLE College (enr INTEGER)
SELECT scores FROM table_29141354_7 WHERE andrew_and_jacks_guest = "Matt Smith"
What was the score for the episode with Matt Smith as Andrew and Jack's guest?
CREATE TABLE table_29141354_7 (scores VARCHAR, andrew_and_jacks_guest VARCHAR)
SELECT draft_details FROM Document_Drafts WHERE document_id = 7
What is draft detail of the document with id 7?
CREATE TABLE Document_Drafts (draft_details VARCHAR, document_id VARCHAR)
SELECT first_aligned_day FROM table_name_67 WHERE date = "1614"
What is the First Aligned date in 1614?
CREATE TABLE table_name_67 (first_aligned_day VARCHAR, date VARCHAR)
SELECT composition FROM table_name_67 WHERE €_equiv = "0.30"
What is the coin with a € equivalency of 0.30 made of?
CREATE TABLE table_name_67 (composition VARCHAR, €_equiv VARCHAR)
SELECT home_team AS score FROM table_name_44 WHERE crowd > 25 OFFSET 603
What is the home score with a crowd larger than 25,603?
CREATE TABLE table_name_44 (home_team VARCHAR, crowd INTEGER)
SELECT POSITION FROM pilot WHERE Join_Year < 2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year > 2005
Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000.
CREATE TABLE pilot (POSITION VARCHAR, Join_Year INTEGER)
SELECT AVG(silver) FROM table_name_64 WHERE total = 1 AND gold = 1
What is the silver when the Total is 1, and Gold is 1?
CREATE TABLE table_name_64 (silver INTEGER, total VARCHAR, gold VARCHAR)
SELECT status FROM table_name_54 WHERE builder = "orenstein and koppel"
Name the status with builder of orenstein and koppel
CREATE TABLE table_name_54 (status VARCHAR, builder VARCHAR)
SELECT livery FROM table_name_57 WHERE date = "1919"
Which livery is from 1919?
CREATE TABLE table_name_57 (livery VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_8 WHERE tournament = "phuket , thailand"
What is Opponent, when Tournament is "Phuket , Thailand"?
CREATE TABLE table_name_8 (opponent VARCHAR, tournament VARCHAR)
SELECT home_team AS score FROM table_name_22 WHERE home_team = "footscray"
What is the home team score for Footscray?
CREATE TABLE table_name_22 (home_team VARCHAR)
SELECT event_2 FROM table_name_32 WHERE air_date = "8 june 2008"
What was the 2nd event aired on 8 June 2008?
CREATE TABLE table_name_32 (event_2 VARCHAR, air_date VARCHAR)
SELECT time FROM table_name_27 WHERE opponent = "stephanie palmer"
What is the time when the opponent is stephanie palmer?
CREATE TABLE table_name_27 (time VARCHAR, opponent VARCHAR)
SELECT loss FROM table_name_71 WHERE record = "46-59"
What was the loss when the record was 46-59?
CREATE TABLE table_name_71 (loss VARCHAR, record VARCHAR)
SELECT COUNT(episode) FROM table_23292220_6 WHERE seans_team = "Vanessa Feltz and Lee Mack"
In how many episodes were Vanessa Feltz and Lee Mack the team for Sean?
CREATE TABLE table_23292220_6 (episode VARCHAR, seans_team VARCHAR)
SELECT rider FROM table_29218221_2 WHERE fri_3_june = "18' 19.68 123.516mph"
Who was the rider with a Fri 3 June time of 18' 19.68 123.516mph?
CREATE TABLE table_29218221_2 (rider VARCHAR, fri_3_june VARCHAR)
SELECT MAX(gold) FROM table_name_70 WHERE bronze > 0 AND rank > 5 AND total > 2
Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2
CREATE TABLE table_name_70 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT _percentage_yes FROM table_256286_43 WHERE type = "Ref"
What is every value for %yes when type is ref?
CREATE TABLE table_256286_43 (_percentage_yes VARCHAR, type VARCHAR)
SELECT COUNT(*) FROM Person WHERE gender = 'female'
How many females does this network has?
CREATE TABLE Person (gender VARCHAR)
SELECT score FROM table_name_43 WHERE record = "80-64"
What is the score for the team that has a record of 80-64?
CREATE TABLE table_name_43 (score VARCHAR, record VARCHAR)
SELECT MAX(points) FROM table_name_88 WHERE winnings = "$127,541" AND car__number > 31
How many points did the driver who won $127,541 driving car #31 get?
CREATE TABLE table_name_88 (points INTEGER, winnings VARCHAR, car__number VARCHAR)
SELECT away_team FROM table_name_97 WHERE tie_no = "5"
What away team has a Tie no of 5?
CREATE TABLE table_name_97 (away_team VARCHAR, tie_no VARCHAR)
SELECT place FROM table_name_43 WHERE player = "celestino tugot"
Where did Celestino Tugot place?
CREATE TABLE table_name_43 (place VARCHAR, player VARCHAR)
SELECT label FROM table_name_74 WHERE year = "1990"
Which label's year was 1990?
CREATE TABLE table_name_74 (label VARCHAR, year VARCHAR)
SELECT shirt_sponsor FROM table_name_54 WHERE kit_manufacturer = "nike"
Who is the shirt sponsor for the manufacturer Nike?
CREATE TABLE table_name_54 (shirt_sponsor VARCHAR, kit_manufacturer VARCHAR)
SELECT date FROM table_name_44 WHERE attendance = "1,804"
What date was the attendance 1,804?
CREATE TABLE table_name_44 (date VARCHAR, attendance VARCHAR)
SELECT label FROM table_name_45 WHERE catalog = "mhcl-20017"
What is the Label with a Catalog that is mhcl-20017?
CREATE TABLE table_name_45 (label VARCHAR, catalog VARCHAR)
SELECT COUNT(pick__number) FROM table_name_39 WHERE player = "sawyer hannay"
What's sawyer hannay's total pick number?
CREATE TABLE table_name_39 (pick__number VARCHAR, player VARCHAR)
SELECT korean FROM table_name_89 WHERE city = "pohang"
What's the Korean word for Pohang?
CREATE TABLE table_name_89 (korean VARCHAR, city VARCHAR)
SELECT place FROM table_name_60 WHERE score = 70 - 72 - 69 = 211
What was the place for the score 70-72-69=211?
CREATE TABLE table_name_60 (place VARCHAR, score VARCHAR)
SELECT common FROM table_1449169_1 WHERE area__km_2__ = "103.02"
Which common has an area (km2) of 103.02?
CREATE TABLE table_1449169_1 (common VARCHAR, area__km_2__ VARCHAR)
SELECT COUNT(villains) FROM table_23170118_2 WHERE episode_number = "3 (13)"
How many villains were in episode 3 (13)?
CREATE TABLE table_23170118_2 (villains VARCHAR, episode_number VARCHAR)
SELECT SUM(to_par) FROM table_name_35 WHERE year_s__won = "1978 , 1985"
What is the sum of To Par, when Year(s) Won is "1978 , 1985"?
CREATE TABLE table_name_35 (to_par INTEGER, year_s__won VARCHAR)
SELECT score FROM table_name_5 WHERE opponents = "colin fleming scott lipsky"
What is the score for the game that Colin Fleming Scott Lipsky played in?
CREATE TABLE table_name_5 (score VARCHAR, opponents VARCHAR)
SELECT winner FROM table_name_50 WHERE tournament = "majorca"
Name the winner for majorca
CREATE TABLE table_name_50 (winner VARCHAR, tournament VARCHAR)
SELECT length__ft_ FROM table_2665085_1 WHERE speed__mph_ = "unknown"
What is the length of the coaster with the unknown speed
CREATE TABLE table_2665085_1 (length__ft_ VARCHAR, speed__mph_ VARCHAR)
SELECT course FROM table_name_15 WHERE type = "km (mi)"
Which course has km (mi) as a type?
CREATE TABLE table_name_15 (course VARCHAR, type VARCHAR)
SELECT COUNT(attendance) FROM table_name_16 WHERE date = "october 30, 1977" AND week > 7
How many attendances have October 30, 1977 as the date, with a week greater than 7?
CREATE TABLE table_name_16 (attendance VARCHAR, date VARCHAR, week VARCHAR)
SELECT airline FROM table_name_98 WHERE rank = 4
Name the airline for rank of 4
CREATE TABLE table_name_98 (airline VARCHAR, rank VARCHAR)
SELECT MIN(first_elected) FROM table_1341598_22 WHERE incumbent = "Ed Markey"
What is the minimum first elected for ed markey?
CREATE TABLE table_1341598_22 (first_elected INTEGER, incumbent VARCHAR)
SELECT SUM(year) FROM table_name_91 WHERE post = "designer"
In what year has a Post of designer?
CREATE TABLE table_name_91 (year INTEGER, post VARCHAR)
SELECT COUNT(points_classification) FROM table_12262008_2 WHERE stage = 17
what is total number of points where the stage is 17?
CREATE TABLE table_12262008_2 (points_classification VARCHAR, stage VARCHAR)
SELECT name FROM Reviewer UNION SELECT title FROM Movie
Return all reviewer names and movie names together in a single list.
CREATE TABLE Reviewer (name VARCHAR, title VARCHAR); CREATE TABLE Movie (name VARCHAR, title VARCHAR)
SELECT width FROM table_1251878_1 WHERE frame_size = "4.5K"
what's the width with frame size being 4.5k
CREATE TABLE table_1251878_1 (width VARCHAR, frame_size VARCHAR)
SELECT period FROM table_name_2 WHERE model = "cessna 208"
In what time period was the Cessna 208 built?
CREATE TABLE table_name_2 (period VARCHAR, model VARCHAR)
SELECT type FROM table_name_65 WHERE turbines < 17 AND location = "county laois"
What is the type of turbine having fewer than 17 units and located in County Laois?
CREATE TABLE table_name_65 (type VARCHAR, turbines VARCHAR, location VARCHAR)
SELECT segment_b FROM table_15187735_8 WHERE segment_c = "Graphite s Fly Rod"
Name the segment b for graphite s fly rod
CREATE TABLE table_15187735_8 (segment_b VARCHAR, segment_c VARCHAR)
SELECT date FROM table_24887326_7 WHERE away_team = "Birmingham City"
What is the date of the game played with Birmingham City as the away team?
CREATE TABLE table_24887326_7 (date VARCHAR, away_team VARCHAR)
SELECT partnering FROM table_name_92 WHERE score = "6-3, 4-6, 6-4"
Which Partnering has a Score of 6-3, 4-6, 6-4?
CREATE TABLE table_name_92 (partnering VARCHAR, score VARCHAR)
SELECT decision FROM table_name_96 WHERE visitor = "washington" AND date = "october 13"
What was the decision of the game with Washington as the visitor team on October 13?
CREATE TABLE table_name_96 (decision VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT COUNT(director) FROM table_10470082_4 WHERE _number = 1
Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3?
CREATE TABLE table_10470082_4 (director VARCHAR, _number VARCHAR)
SELECT AVG(game) FROM table_name_23 WHERE february > 20 AND record = "41–17–4" AND points < 86
Which Game is the average one that has a February larger than 20, and a Record of 41–17–4, and Points smaller than 86?
CREATE TABLE table_name_23 (game INTEGER, points VARCHAR, february VARCHAR, record VARCHAR)
SELECT score FROM table_name_85 WHERE country = "australia"
What score did Australia get?
CREATE TABLE table_name_85 (score VARCHAR, country VARCHAR)
SELECT venue FROM table_name_90 WHERE home_team = "south melbourne"
What venue had south melbourne as the home team?
CREATE TABLE table_name_90 (venue VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_42 WHERE date = "7 february 2008"
What was the score on 7 february 2008?
CREATE TABLE table_name_42 (score VARCHAR, date VARCHAR)
SELECT driver FROM table_name_51 WHERE laps > 35 AND constructor = "ferrari"
who is the driver that has laps more than 35 and the constructor is ferrari?
CREATE TABLE table_name_51 (driver VARCHAR, laps VARCHAR, constructor VARCHAR)
SELECT country FROM table_name_10 WHERE rank > 68 AND capacity = "32,000" AND city = "santa fe"
Which country is ranked higher than 68, with a city named Santa Fe and a stadium that has a capacity of 32,000?
CREATE TABLE table_name_10 (country VARCHAR, city VARCHAR, rank VARCHAR, capacity VARCHAR)
SELECT date FROM table_name_44 WHERE home_team = "southend united"
When was Southend United the home team?
CREATE TABLE table_name_44 (date VARCHAR, home_team VARCHAR)
SELECT name FROM table_name_45 WHERE team = "st. paul a.c." AND birthdate = "3 august 1890"
What is the Name when the team is the st. paul a.c., with a Birthdate of 3 august 1890?
CREATE TABLE table_name_45 (name VARCHAR, team VARCHAR, birthdate VARCHAR)
SELECT partnering FROM table_22825058_23 WHERE round = "SF"
Name the partnering for round sf
CREATE TABLE table_22825058_23 (partnering VARCHAR, round VARCHAR)
SELECT date FROM table_name_33 WHERE result = "1-0"
On what date was the Result 1-0?
CREATE TABLE table_name_33 (date VARCHAR, result VARCHAR)
SELECT COUNT(match_points) FROM table_28068063_3 WHERE eliminated_from_competition = "Béziers"
How many teams eliminated béziers from competition?
CREATE TABLE table_28068063_3 (match_points VARCHAR, eliminated_from_competition VARCHAR)
SELECT position FROM table_name_95 WHERE notes = "junior men individual 5.64km"
What position did the person finish in with a notes of junior men individual 5.64km?
CREATE TABLE table_name_95 (position VARCHAR, notes VARCHAR)
SELECT MAX(dvd_no) FROM table_1467951_4
What is the largest number of DVDs?
CREATE TABLE table_1467951_4 (dvd_no INTEGER)
SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation = 1
List the names of departments where some physicians are primarily affiliated with.
CREATE TABLE affiliated_with (department VARCHAR); CREATE TABLE department (name VARCHAR, departmentid VARCHAR)
SELECT 2009 FROM table_name_5 WHERE 2005 = "a" AND tournament = "australian open"
What was the value in 2009 when 2005 was A for the Australian Open?
CREATE TABLE table_name_5 (tournament VARCHAR)
SELECT name FROM table_name_45 WHERE position = "cornerback" AND college = "wisconsin"
What is the name of the cornerback from Wisconsin college?
CREATE TABLE table_name_45 (name VARCHAR, position VARCHAR, college VARCHAR)
SELECT MAX(points) FROM table_name_32 WHERE nationality = "aut" AND name = "thomas morgenstern"
Which Points is the highest one that has a Nationality of aut, and a Name of thomas morgenstern?
CREATE TABLE table_name_32 (points INTEGER, nationality VARCHAR, name VARCHAR)
SELECT circuit FROM table_13079788_3 WHERE gtc_winner = "Graeme Mundy Jamie Smyth" AND pole_position = "Bradley Ellis Alex Mortimer"
what are all the circuit for gtc winner graeme mundy jamie smyth and pole position bradley ellis alex mortimer
CREATE TABLE table_13079788_3 (circuit VARCHAR, gtc_winner VARCHAR, pole_position VARCHAR)