answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT date FROM table_name_61 WHERE goal = 6
What was the date of the game with 6 goals?
CREATE TABLE table_name_61 (date VARCHAR, goal VARCHAR)
SELECT location FROM table_name_1 WHERE circuit = "august 16"
What is Location, when Circuit is August 16?
CREATE TABLE table_name_1 (location VARCHAR, circuit VARCHAR)
SELECT 2007 FROM table_name_83 WHERE 2003 = "a"
What's the 2007 result when 2003 is a?
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT COUNT(frequency__per_hour_) FROM table_name_18 WHERE line = "east london" AND destination = "crystal palace"
How many frequencies have a line of East London and destination of Crystal Palace?
CREATE TABLE table_name_18 (frequency__per_hour_ VARCHAR, line VARCHAR, destination VARCHAR)
SELECT english_translation FROM table_name_77 WHERE artist = "svetlana loboda"
What was the english translation for the song by svetlana loboda?
CREATE TABLE table_name_77 (english_translation VARCHAR, artist VARCHAR)
SELECT partner FROM table_name_74 WHERE opponent = "darija jurak carmen klaschka"
Which Partner had an Opponent of darija jurak carmen klaschka?
CREATE TABLE table_name_74 (partner VARCHAR, opponent VARCHAR)
SELECT tie_no FROM table_name_12 WHERE home_team = "wimbledon"
What is the Tie no when Wimbledon is the home team?
CREATE TABLE table_name_12 (tie_no VARCHAR, home_team VARCHAR)
SELECT round FROM table_name_36 WHERE event = "cage rage 17"
What Round is the Event cage rage 17?
CREATE TABLE table_name_36 (round VARCHAR, event VARCHAR)
SELECT result FROM table_25030512_41 WHERE incumbent = "Glenn Thompson"
Name the result for glenn thompson
CREATE TABLE table_25030512_41 (result VARCHAR, incumbent VARCHAR)
SELECT built FROM table_name_42 WHERE works_number = "717"
What is Built, when Works Number is "717"?
CREATE TABLE table_name_42 (built VARCHAR, works_number VARCHAR)
SELECT tournament FROM table_name_31 WHERE 2012 = "1r" AND 2013 = "3r"
In which tournament was the 2012 result 1r and the 2013 result 3r?
CREATE TABLE table_name_31 (tournament VARCHAR)
SELECT player FROM table_name_74 WHERE caps > 12 AND club_province = "toulouse"
Which player has a cap larger than 12 and Clubs of Toulouse?
CREATE TABLE table_name_74 (player VARCHAR, caps VARCHAR, club_province VARCHAR)
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "hot"
How many products have the characteristic named "hot"?
CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
SELECT team FROM table_name_53 WHERE first_round = "1:00"
What Team had the first round of 1:00?
CREATE TABLE table_name_53 (team VARCHAR, first_round VARCHAR)
SELECT tries_for FROM table_17941032_1 WHERE tries_against = "60"
When 60 is the tries against what is the tries for?
CREATE TABLE table_17941032_1 (tries_for VARCHAR, tries_against VARCHAR)
SELECT date FROM table_name_20 WHERE venue = "princes park"
When was the game played at Princes Park?
CREATE TABLE table_name_20 (date VARCHAR, venue VARCHAR)
SELECT score FROM table_name_69 WHERE outcome = "runner-up" AND tournament = "johannesburg"
Which Score has an Outcome of runner-up, and a Tournament of johannesburg?
CREATE TABLE table_name_69 (score VARCHAR, outcome VARCHAR, tournament VARCHAR)
SELECT candidates FROM table_2668243_17 WHERE district = "New York 21"
Name the candidates for new york 21
CREATE TABLE table_2668243_17 (candidates VARCHAR, district VARCHAR)
SELECT winner FROM table_name_80 WHERE date = "5 june"
Name the winner for 5 june
CREATE TABLE table_name_80 (winner VARCHAR, date VARCHAR)
SELECT date FROM table_name_46 WHERE score = "71-64"
WHAT DATE HAD A SCORE OF 71-64?
CREATE TABLE table_name_46 (date VARCHAR, score VARCHAR)
SELECT school FROM table_name_23 WHERE hometown = "raleigh, nc"
Which school is in Raleigh, NC?
CREATE TABLE table_name_23 (school VARCHAR, hometown VARCHAR)
SELECT SUM(game) FROM table_name_39 WHERE team = "new york"
What is the total for New York's game?
CREATE TABLE table_name_39 (game INTEGER, team VARCHAR)
SELECT stadium FROM table_name_48 WHERE city = "halifax"
What stadium is located in Halifax?
CREATE TABLE table_name_48 (stadium VARCHAR, city VARCHAR)
SELECT january FROM table_name_53 WHERE april = "courtney rachel culkin"
Name the january when april is courtney rachel culkin
CREATE TABLE table_name_53 (january VARCHAR, april VARCHAR)
SELECT SUM(finish) FROM table_name_35 WHERE year = 2011
What was Jeff's finish in 2011?
CREATE TABLE table_name_35 (finish INTEGER, year VARCHAR)
SELECT venue FROM table_name_93 WHERE score = "7-1"
What was the venue when the score was 7-1?
CREATE TABLE table_name_93 (venue VARCHAR, score VARCHAR)
SELECT score FROM table_name_17 WHERE away_team = "b3" AND date = "august 12, 2014"
How much did the away team b3 score on August 12, 2014?
CREATE TABLE table_name_17 (score VARCHAR, away_team VARCHAR, date VARCHAR)
SELECT result FROM table_name_73 WHERE date = "october 17, 1965"
What is the result of the game on October 17, 1965?
CREATE TABLE table_name_73 (result VARCHAR, date VARCHAR)
SELECT report FROM table_1140099_6 WHERE race_name = "I Sunday Mirror Trophy"
What is the report for the race i sunday mirror trophy?
CREATE TABLE table_1140099_6 (report VARCHAR, race_name VARCHAR)
SELECT COUNT(incumbent) FROM table_1341453_40 WHERE first_elected = "1984"
How many incumbents were first elected in 1984?
CREATE TABLE table_1341453_40 (incumbent VARCHAR, first_elected VARCHAR)
SELECT laps FROM table_name_78 WHERE rank = "13"
What is the lap number for the rank of 13?
CREATE TABLE table_name_78 (laps VARCHAR, rank VARCHAR)
SELECT school_name FROM table_name_64 WHERE students < 389 AND grades = "10-12"
Which School name has students smaller than 389, and grades of 10-12?
CREATE TABLE table_name_64 (school_name VARCHAR, students VARCHAR, grades VARCHAR)
SELECT no_2 FROM table_name_98 WHERE no_4 = "ethan" AND no_7 = "jackson"
What is the No. 2 of the person with a No. 5 of Ethan and NO. 7 of Jackson?
CREATE TABLE table_name_98 (no_2 VARCHAR, no_4 VARCHAR, no_7 VARCHAR)
SELECT 1 AS st_party FROM table_name_18 WHERE first_member = "peter john locke king" AND second_member = "james watney"
What is 1st Party, when First Member is "Peter John Locke King", and when Second Member is "James Watney"?
CREATE TABLE table_name_18 (first_member VARCHAR, second_member VARCHAR)
SELECT COUNT(*), sex FROM employee WHERE salary < 50000 GROUP BY sex
Find the number of employees of each gender whose salary is lower than 50000.
CREATE TABLE employee (sex VARCHAR, salary INTEGER)
SELECT MIN(wins) FROM table_name_93 WHERE games_played = 7 AND goals_against < 46 AND goals_for > 34
What is the smallest number of wins with 7 games played and goals against less than 46 when goals for is more than 34?
CREATE TABLE table_name_93 (wins INTEGER, goals_for VARCHAR, games_played VARCHAR, goals_against VARCHAR)
SELECT AVG(bronze) FROM table_name_73 WHERE rank = 4 AND silver < 1
What is the average bronze with a rank of 4 and less than 1 silver?
CREATE TABLE table_name_73 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT work FROM table_name_19 WHERE award = "newcomer actress"
Where Award is newcomer actress, what is the work?
CREATE TABLE table_name_19 (work VARCHAR, award VARCHAR)
SELECT centerfold_model FROM table_1566848_6 WHERE interview_subject = "Steve Jobs"
Name the centerfold model when interview subject is steve jobs
CREATE TABLE table_1566848_6 (centerfold_model VARCHAR, interview_subject VARCHAR)
SELECT home_team AS score FROM table_name_30 WHERE venue = "mcg"
What did the home team score at MCG?
CREATE TABLE table_name_30 (home_team VARCHAR, venue VARCHAR)
SELECT general_classification FROM table_26010857_13 WHERE stage = 3
Who leads the general classification in stage 3?
CREATE TABLE table_26010857_13 (general_classification VARCHAR, stage VARCHAR)
SELECT AVG(drawn) FROM table_name_79 WHERE goals_for < 36 AND lost > 21
For entries with lost larger than 21 and goals for smaller than 36, what is the average drawn?
CREATE TABLE table_name_79 (drawn INTEGER, goals_for VARCHAR, lost VARCHAR)
SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID
Show names of musicals and the number of actors who have appeared in the musicals.
CREATE TABLE actor (Musical_ID VARCHAR); CREATE TABLE musical (Name VARCHAR, Musical_ID VARCHAR)
SELECT 2003 FROM table_name_16 WHERE 2009 = "1r" AND tournament = "australian open"
What is the 2003 value with 1r in 2009 at the Australian Open?
CREATE TABLE table_name_16 (tournament VARCHAR)
SELECT goals_for FROM table_name_44 WHERE lost = "involuntary suspension of season (hurricane rita)"
What are the goals for a lost of Involuntary suspension of Season (hurricane Rita)?
CREATE TABLE table_name_44 (goals_for VARCHAR, lost VARCHAR)
SELECT COUNT(react) FROM table_name_78 WHERE name = "sean wroe" AND lane > 2
What is the total number of React, when Name is Sean Wroe, and when Lane is greater than 2?
CREATE TABLE table_name_78 (react VARCHAR, name VARCHAR, lane VARCHAR)
SELECT AVG(wins) FROM table_name_26 WHERE top_5 = 6
Which Wins has a Top-5 of 6?
CREATE TABLE table_name_26 (wins INTEGER, top_5 VARCHAR)
SELECT round FROM table_name_87 WHERE opponent = "bobby rehman"
How many rounds was the bout against bobby rehman?
CREATE TABLE table_name_87 (round VARCHAR, opponent VARCHAR)
SELECT winning_driver FROM table_name_40 WHERE winning_constructor = "bugatti" AND name = "boulogne grand prix"
Which driver won when the winning constructor was bugatti at the Boulogne Grand Prix ?
CREATE TABLE table_name_40 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_33 WHERE settlement = "Doline"
What is the largest ethnic group in doline?
CREATE TABLE table_2562572_33 (largest_ethnic_group__2002_ VARCHAR, settlement VARCHAR)
SELECT name FROM instructor WHERE NOT id IN (SELECT id FROM teaches WHERE semester = 'Spring')
Find the names of instructors who didn't each any courses in any Spring semester.
CREATE TABLE teaches (name VARCHAR, id VARCHAR, semester VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR, semester VARCHAR)
SELECT score FROM table_name_87 WHERE country = "australia" AND place = "4"
What is the score for Australia with a place of 4?
CREATE TABLE table_name_87 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING MAX(t1.precipitation) > 50
Find the id and local authority of the station whose maximum precipitation is higher than 50.
CREATE TABLE weekly_weather (station_id VARCHAR, precipitation INTEGER); CREATE TABLE station (id VARCHAR, local_authority VARCHAR)
SELECT townland FROM table_30120619_1 WHERE civil_parish = "Monkstown"
In which townlands is the civil parish Monkstown?
CREATE TABLE table_30120619_1 (townland VARCHAR, civil_parish VARCHAR)
SELECT launch_site FROM table_name_6 WHERE carrier_rocket = "scout" AND cospar_id = "1971-109a"
From where did the Scout carrier rocket with the satellite that has a COSPAR ID of 1971-109a launch?
CREATE TABLE table_name_6 (launch_site VARCHAR, carrier_rocket VARCHAR, cospar_id VARCHAR)
SELECT winning_mentor FROM table_16331144_1 WHERE season = "Two"
Who was the winning mentor in season two?
CREATE TABLE table_16331144_1 (winning_mentor VARCHAR, season VARCHAR)
SELECT time_retired FROM table_name_74 WHERE laps = 42 AND grid = 4
Tell me the time/retired for Laps of 42 and Grids of 4
CREATE TABLE table_name_74 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT MAX(game) FROM table_name_64 WHERE date = "april 21"
What is the highest game that has april 21 as the date?
CREATE TABLE table_name_64 (game INTEGER, date VARCHAR)
SELECT final_score FROM table_name_94 WHERE stadium = "texas stadium" AND visiting_team = "new orleans saints"
When the new orleans saints were visiting texas stadium, what was the final score?
CREATE TABLE table_name_94 (final_score VARCHAR, stadium VARCHAR, visiting_team 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 2 AS nd_member FROM table_name_37 WHERE assembled = "3 november 1529"
Who was the 2nd member of the parliament that was assembled on 3 november 1529?
CREATE TABLE table_name_37 (assembled VARCHAR)
SELECT actor FROM table_name_45 WHERE result = "nominated" AND category = "best actress"
What actor was nominated for best actress?
CREATE TABLE table_name_45 (actor VARCHAR, result VARCHAR, category VARCHAR)
SELECT races FROM table_25318033_1 WHERE points = "137"
Which races have 137 points?
CREATE TABLE table_25318033_1 (races VARCHAR, points VARCHAR)
SELECT score FROM table_15780049_6 WHERE date = "January 19"
What was the score of the game played on January 19?
CREATE TABLE table_15780049_6 (score VARCHAR, date VARCHAR)
SELECT prize FROM table_22050544_1 WHERE elapsed_time = "10 h 10 min"
What is the prize for the elapsed time of 10 h 10 min?
CREATE TABLE table_22050544_1 (prize VARCHAR, elapsed_time VARCHAR)
SELECT crowd FROM table_name_88 WHERE venue = "princes park"
What is the Crowd for the Venue of Princes Park?
CREATE TABLE table_name_88 (crowd VARCHAR, venue VARCHAR)
SELECT date FROM table_name_60 WHERE competition = "1996 tiger cup" AND result = "drew"
what is the date when the competition is 1996 tiger cup and the result is drew?
CREATE TABLE table_name_60 (date VARCHAR, competition VARCHAR, result VARCHAR)
SELECT position FROM table_name_92 WHERE birthplace = "buffalo, new york"
What is the Position, when the Birthplace is Buffalo, New York?
CREATE TABLE table_name_92 (position VARCHAR, birthplace VARCHAR)
SELECT MIN(year) FROM table_21795986_1 WHERE original_number = "2008 T"
When 2008 t is the original number what is the lowest year?
CREATE TABLE table_21795986_1 (year INTEGER, original_number VARCHAR)
SELECT vote FROM table_1272844_2 WHERE air_date = "May 5, 2005"
What was the vote tally on the episode aired May 5, 2005?
CREATE TABLE table_1272844_2 (vote VARCHAR, air_date VARCHAR)
SELECT player FROM table_12962773_16 WHERE year_born = 1983
What player was born in 1983?
CREATE TABLE table_12962773_16 (player VARCHAR, year_born VARCHAR)
SELECT record FROM table_name_83 WHERE date = "may 31"
What is the record for May 31?
CREATE TABLE table_name_83 (record VARCHAR, date VARCHAR)
SELECT verb_meaning FROM table_name_16 WHERE part_1 = "alan"
What is the Verb meaning when part 1 is alan?
CREATE TABLE table_name_16 (verb_meaning VARCHAR, part_1 VARCHAR)
SELECT callback_venue FROM table_27455867_1 WHERE episode_air_date = "January 20, 2011"
What was the callback venue for the audition city in the episode aired on January 20, 2011?
CREATE TABLE table_27455867_1 (callback_venue VARCHAR, episode_air_date VARCHAR)
SELECT MIN(win__percentage) FROM table_name_39 WHERE record = "0-2" AND apps > 2
What is the lowest win % with a 0-2 record and more than 2 apps?
CREATE TABLE table_name_39 (win__percentage INTEGER, record VARCHAR, apps VARCHAR)
SELECT date FROM table_name_9 WHERE loss = "johnson (4-12)"
When the Loss is Johnson (4-12), what is the date?
CREATE TABLE table_name_9 (date VARCHAR, loss VARCHAR)
SELECT MIN(laps) FROM table_name_20 WHERE grid > 6 AND driver = "henri pescarolo"
What is the low lap total for henri pescarolo with a grad larger than 6?
CREATE TABLE table_name_20 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT country FROM table_name_80 WHERE internetlists = "—" AND onisecurityfiltering = "—"
What is the name of the country that has internetlists of —, and ONIsecurityfiltering of —?
CREATE TABLE table_name_80 (country VARCHAR, internetlists VARCHAR, onisecurityfiltering VARCHAR)
SELECT AVG(attendance) FROM table_name_52 WHERE opponent = "devil rays" AND score = "2 - 1 (10)"
On games against the Devil Rays and a score of 2 - 1 (10), what was the attendance?
CREATE TABLE table_name_52 (attendance INTEGER, opponent VARCHAR, score VARCHAR)
SELECT score FROM table_name_43 WHERE year > 2004 AND runner_up = "northeastern"
Name the Score of the Year larger than 2004 and a Runner-up of northeastern?
CREATE TABLE table_name_43 (score VARCHAR, year VARCHAR, runner_up VARCHAR)
SELECT away_team FROM table_name_38 WHERE tie_no = "4"
Which Away team has a Tie no of 4?
CREATE TABLE table_name_38 (away_team VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_75 WHERE location = "northampton"
The competition located in Northampton had a resulting score of what?
CREATE TABLE table_name_75 (score VARCHAR, location VARCHAR)
SELECT attendance FROM table_name_86 WHERE record = "43-28"
What is the attendance that has a record of 43-28?
CREATE TABLE table_name_86 (attendance VARCHAR, record VARCHAR)
SELECT AVG(start) FROM table_name_33 WHERE team = "andretti green racing" AND finish > 3 AND year < 2007
What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007?
CREATE TABLE table_name_33 (start INTEGER, year VARCHAR, team VARCHAR, finish VARCHAR)
SELECT COUNT(block) FROM table_name_41 WHERE spike < 341 AND weight > 82 AND name = "theodoros baev"
What is the total number of Block(s), when Spike is less than 341, when Weight is greater than 82, and when Name is Theodoros Baev?
CREATE TABLE table_name_41 (block VARCHAR, name VARCHAR, spike VARCHAR, weight VARCHAR)
SELECT COUNT(title) FROM table_10875694_11 WHERE product_no = "SCUS-97330"
How many titles have the product number SCUS-97330?
CREATE TABLE table_10875694_11 (title VARCHAR, product_no VARCHAR)
SELECT socialist_ticket FROM table_name_5 WHERE democratic_ticket = "herbert h. lehman"
Who's the Socialist ticket with a Democratic ticket of herbert h. lehman?
CREATE TABLE table_name_5 (socialist_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT winner FROM table_name_11 WHERE event = "european poker tour grand final"
Who is the winner of the European Poker Tour Grand Final?
CREATE TABLE table_name_11 (winner VARCHAR, event VARCHAR)
SELECT MIN(bike_no) FROM table_name_13 WHERE driver___passenger = "joris hendrickx / kaspars liepins" AND position < 4
What is the lowest Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is less than 4?
CREATE TABLE table_name_13 (bike_no INTEGER, driver___passenger VARCHAR, position VARCHAR)
SELECT T1.property_id, COUNT(*) FROM properties AS T1 JOIN residents AS T2 ON T1.property_id = T2.property_id GROUP BY T1.property_id
How many residents does each property have? List property id and resident count.
CREATE TABLE properties (property_id VARCHAR); CREATE TABLE residents (property_id VARCHAR)
SELECT time FROM table_name_68 WHERE opponent = "fredson paixão"
What time was Opponent Fredson Paixão beaten in?
CREATE TABLE table_name_68 (time VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_22 WHERE home = "fc luzern (asl)"
What was the result when home was fc luzern (asl)?
CREATE TABLE table_name_22 (result VARCHAR, home VARCHAR)
SELECT object_type FROM table_name_98 WHERE ngc_number = 3314
what is the object type when the ngc number is 3314?
CREATE TABLE table_name_98 (object_type VARCHAR, ngc_number VARCHAR)
SELECT ethernet_ports FROM table_name_5 WHERE name = "m1500"
What is the ethernet ports of the m1500 appliance?
CREATE TABLE table_name_5 (ethernet_ports VARCHAR, name VARCHAR)
SELECT player FROM table_name_71 WHERE pl_gp > 0 AND rd__number = 1
Which Player has a PI GP over 0 and a Rd # of 1?
CREATE TABLE table_name_71 (player VARCHAR, pl_gp VARCHAR, rd__number VARCHAR)
SELECT date FROM table_name_80 WHERE tie_no = "4"
on what date was tie number 4?
CREATE TABLE table_name_80 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_90 WHERE home_team = "fitzroy"
On what date did the match where fitzroy was the home team occur?
CREATE TABLE table_name_90 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(gold) FROM table_name_88 WHERE silver > 4 AND bronze > 14 AND total = 97
How many gold medals were won by the nation that won over 4 silver medals, over 14 bronze, and 97 medals total?
CREATE TABLE table_name_88 (gold VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT area FROM table_1204998_2 WHERE english_name = "Shanghang County"
What is the area of the English name Shanghang County?
CREATE TABLE table_1204998_2 (area VARCHAR, english_name VARCHAR)
SELECT visitor FROM table_name_35 WHERE date = "april 29"
Who visited on April 29?
CREATE TABLE table_name_35 (visitor VARCHAR, date VARCHAR)