answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT bore FROM table_name_8 WHERE cyl = "9-cyl radial" AND name = "9 ad"
What is the bore for a 9-cyl radial on a 9 AD?
CREATE TABLE table_name_8 (bore VARCHAR, cyl VARCHAR, name VARCHAR)
SELECT COUNT(part_1) FROM table_1745843_10 WHERE verb_meaning = "to grow, to produce"
How many verbs mean to grow, to produce
CREATE TABLE table_1745843_10 (part_1 VARCHAR, verb_meaning VARCHAR)
SELECT AVG(rank) FROM table_name_15 WHERE nation = "west germany" AND gold > 1
Name the average rank for west germany when gold is more than 1
CREATE TABLE table_name_15 (rank INTEGER, nation VARCHAR, gold VARCHAR)
SELECT date FROM table_name_77 WHERE format = "cd" AND label = "columbia/legacy" AND country = "uk"
What date had a CD format, under Columbia/Legacy from the UK?
CREATE TABLE table_name_77 (date VARCHAR, country VARCHAR, format VARCHAR, label VARCHAR)
SELECT place FROM table_name_10 WHERE player = "horton smith"
Which place has horton smith as the player?
CREATE TABLE table_name_10 (place VARCHAR, player VARCHAR)
SELECT isbn_us FROM table_name_55 WHERE title = "mission to venus"
What is ISBN US, when Title is "Mission To Venus"?
CREATE TABLE table_name_55 (isbn_us VARCHAR, title VARCHAR)
SELECT country FROM table_2351952_1 WHERE serial_numbers = "713096-713119"
The serial numbers 713096-713119 are in which country?
CREATE TABLE table_2351952_1 (country VARCHAR, serial_numbers VARCHAR)
SELECT tournament FROM table_name_63 WHERE outcome = "winner" AND date = "13 july 2013"
What is Tournament, when Outcome is Winner, and when Date is 13 July 2013?
CREATE TABLE table_name_63 (tournament VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT candidates FROM table_1342370_39 WHERE district = "South Carolina 2"
who is the candidate in district south carolina 2?
CREATE TABLE table_1342370_39 (candidates VARCHAR, district VARCHAR)
SELECT venue FROM table_name_72 WHERE race = "stan fox stakes"
What venue hosted the stan fox stakes?
CREATE TABLE table_name_72 (venue VARCHAR, race VARCHAR)
SELECT position FROM table_28059992_1 WHERE cfl_team = "Edmonton"
What is every position for the CFL Edmonton?
CREATE TABLE table_28059992_1 (position VARCHAR, cfl_team VARCHAR)
SELECT combined_elapsed_time FROM table_name_17 WHERE skipper = "stephen wilkins"
Which Combined elapsed time has a Skipper of stephen wilkins?
CREATE TABLE table_name_17 (combined_elapsed_time VARCHAR, skipper VARCHAR)
SELECT venue FROM table_name_84 WHERE opponents = "halmstad" AND score = "1-1"
Which Venue has a Opponents of halmstad and a Score of 1-1?
CREATE TABLE table_name_84 (venue VARCHAR, opponents VARCHAR, score VARCHAR)
SELECT AVG(goals) FROM table_name_46 WHERE name = "sawyer"
What is the average goals Sawyer has?
CREATE TABLE table_name_46 (goals INTEGER, name VARCHAR)
SELECT record FROM table_name_92 WHERE date = "may 26"
On May 26, what was the team's record?
CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR)
SELECT lead FROM table_name_89 WHERE nation = "norway"
Who has the lead in Norway?
CREATE TABLE table_name_89 (lead VARCHAR, nation VARCHAR)
SELECT * FROM item
List all information in the item table.
CREATE TABLE item (Id VARCHAR)
SELECT date FROM table_name_58 WHERE score = "112–118"
Which Date has a Score of 112–118?
CREATE TABLE table_name_58 (date VARCHAR, score VARCHAR)
SELECT colours FROM table_20095300_1 WHERE jockey = "Andrew McNamara"
What are Andrew McNamara's colors?
CREATE TABLE table_20095300_1 (colours VARCHAR, jockey VARCHAR)
SELECT score FROM table_name_60 WHERE place = "t3" AND player = "phil mickelson"
WHat was the score for Phil Mickelson when he placed t3?
CREATE TABLE table_name_60 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT result FROM table_name_64 WHERE year > 2003 AND nominee_s_ = "john wells"
What is the result for a year after 2003, when the nominee(s) is john wells?
CREATE TABLE table_name_64 (result VARCHAR, year VARCHAR, nominee_s_ VARCHAR)
SELECT date FROM table_name_33 WHERE venue = "western oval"
What day is the venue the western oval?
CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR)
SELECT Name FROM technician WHERE Age = 36 OR Age = 37
Show the name of technicians aged either 36 or 37
CREATE TABLE technician (Name VARCHAR, Age VARCHAR)
SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = "Colorado"
Find the name of customers who are living in Colorado?
CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)
SELECT AVG(position) FROM table_name_4 WHERE goals_against > 42 AND goals_for = 44 AND draws < 16
Name the average position when the goals against are more than 42 and draws less than 16 with goals of 44
CREATE TABLE table_name_4 (position INTEGER, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR)
SELECT surface FROM table_name_23 WHERE championship = "rome" AND opponent = "sergi bruguera"
what is the surface when the championship is rome and the opponent is sergi bruguera?
CREATE TABLE table_name_23 (surface VARCHAR, championship VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_40 WHERE player = "wilbert robinson"
Which date is associated with the player Wilbert Robinson?
CREATE TABLE table_name_40 (date VARCHAR, player VARCHAR)
SELECT outgoing_manager FROM table_17039232_3 WHERE position_in_table = "11th"
Name the outgoing manager for position in table being 11th
CREATE TABLE table_17039232_3 (outgoing_manager VARCHAR, position_in_table VARCHAR)
SELECT affiliation FROM table_29836557_2 WHERE player = "Kevan George"
What university was Kevan George affiliated with?
CREATE TABLE table_29836557_2 (affiliation VARCHAR, player VARCHAR)
SELECT profits__billion_$_ FROM table_1682026_3 WHERE assets__billion_$_ = "192.8"
What are the profits (in billions) where the assets are 192.8 billion?
CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
SELECT date FROM table_name_53 WHERE opponent = "flavia pennetta"
What is the Date with an Opponent that is flavia pennetta?
CREATE TABLE table_name_53 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(destination) FROM table_21716139_1 WHERE frequency = "Weekly" AND train_name = "AC Express"
How many destinations have a weekly frequency and are named AC Express?
CREATE TABLE table_21716139_1 (destination VARCHAR, frequency VARCHAR, train_name VARCHAR)
SELECT country FROM table_name_75 WHERE type = "signed" AND moving_from = "porto"
What country has signed type moving from porto?
CREATE TABLE table_name_75 (country VARCHAR, type VARCHAR, moving_from VARCHAR)
SELECT tries_against FROM table_name_48 WHERE losing_bonus = "losing bonus"
What is the tries against for the team that has a losing bonus?
CREATE TABLE table_name_48 (tries_against VARCHAR, losing_bonus VARCHAR)
SELECT date FROM table_name_87 WHERE h___a = "whalley range"
When did the game in whalley range take place?
CREATE TABLE table_name_87 (date VARCHAR, h___a VARCHAR)
SELECT record FROM table_name_22 WHERE opponent = "blue jays" AND loss = "batista (0–3)"
What was the record at the game against the Blue Jays with a loss of Batista (0–3)?
CREATE TABLE table_name_22 (record VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT original_air_date FROM table_2618072_1 WHERE written_by = "Michael S. Chernuchin & Joe Morgenstern"
When was the original air date written by michael s. chernuchin & joe morgenstern?
CREATE TABLE table_2618072_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT MIN(first_elected) FROM table_1342013_37 WHERE incumbent = "Alvin Bush"
Name the minumim first elected for alvin bush
CREATE TABLE table_1342013_37 (first_elected INTEGER, incumbent VARCHAR)
SELECT score FROM table_24765815_2 WHERE player = "Samir Nasri"
What was the score for the game in which Samir Nasri played?
CREATE TABLE table_24765815_2 (score VARCHAR, player VARCHAR)
SELECT record FROM table_name_38 WHERE score = "65-48"
What is the Record of the game with a Score of 65-48?
CREATE TABLE table_name_38 (record VARCHAR, score VARCHAR)
SELECT MIN(wins) FROM table_name_51 WHERE poles = 3 AND season = "2010"
What is the fewest number of wins when he has 3 poles in 2010?
CREATE TABLE table_name_51 (wins INTEGER, poles VARCHAR, season VARCHAR)
SELECT date FROM table_17355408_7 WHERE high_assists = "Chauncey Billups (6)"
Chauncey Billups (6) had a high assist on what date?
CREATE TABLE table_17355408_7 (date VARCHAR, high_assists VARCHAR)
SELECT floors FROM table_name_43 WHERE location = "aston"
How many floors did the tallest building in Aston have?
CREATE TABLE table_name_43 (floors VARCHAR, location VARCHAR)
SELECT attendance FROM table_name_21 WHERE week = 17
What was the Jets week 17 attendance?
CREATE TABLE table_name_21 (attendance VARCHAR, week VARCHAR)
SELECT event FROM table_name_37 WHERE res = "loss" AND time = "5:00" AND opponent = "lance everson"
Which Event has Res of loss, and a Time of 5:00, and an Opponent of lance everson?
CREATE TABLE table_name_37 (event VARCHAR, opponent VARCHAR, res VARCHAR, time VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_38 WHERE position = "right wing" AND round = "sup"
What League's Round is Sup and Position is Right Wing?
CREATE TABLE table_name_38 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)
SELECT printer FROM table_15635768_1 WHERE place_of_issue = "Estes Park, Colorado"
Who was the printer of Estes Park, Colorado?
CREATE TABLE table_15635768_1 (printer VARCHAR, place_of_issue VARCHAR)
SELECT surface FROM table_name_43 WHERE date = "september 13, 2009"
What surface was the game played on for the September 13, 2009 match?
CREATE TABLE table_name_43 (surface VARCHAR, date VARCHAR)
SELECT score FROM table_17104539_12 WHERE date = "September 9"
What are the scores for games played on september 9?
CREATE TABLE table_17104539_12 (score VARCHAR, date VARCHAR)
SELECT COUNT(round) FROM table_name_91 WHERE player = "cleveland mccrae"
How many round values are associated with Cleveland McCrae?
CREATE TABLE table_name_91 (round VARCHAR, player VARCHAR)
SELECT COUNT(team) FROM table_28884858_2 WHERE capacity_percentage = "99.3%"
How many teams had a 99.3% capacity rating?
CREATE TABLE table_28884858_2 (team VARCHAR, capacity_percentage VARCHAR)
SELECT season AS Finale FROM table_1348989_2 WHERE viewers__in_millions_ = "10.29"
What year did the season finale have a total of 10.29 million viewers?
CREATE TABLE table_1348989_2 (season VARCHAR, viewers__in_millions_ VARCHAR)
SELECT AVG(lowest) FROM table_name_24 WHERE average < 307
What is the lowest attendance for a stadium that has an average smaller than 307?
CREATE TABLE table_name_24 (lowest INTEGER, average INTEGER)
SELECT height FROM table_25177625_1 WHERE position = "Forward" AND year = "Freshman"
What was the height of this Freshman with a forward position?
CREATE TABLE table_25177625_1 (height VARCHAR, position VARCHAR, year VARCHAR)
SELECT COUNT(mens_u20) FROM table_16724844_1 WHERE womens_40 = "Sydney Scorpions def North Queensland Cyclones"
How many times was the mens u20 recorded when the Womens 40 were Sydney Scorpions def North Queensland Cyclones?
CREATE TABLE table_16724844_1 (mens_u20 VARCHAR, womens_40 VARCHAR)
SELECT class_code FROM CLASS WHERE class_room = 'KLR209'
List the codes of all courses that take place in room KLR209.
CREATE TABLE CLASS (class_code VARCHAR, class_room VARCHAR)
SELECT points FROM table_name_32 WHERE goals = "79" AND games = "38"
How many points were scored by the player with 79 goals and who played 38 games?
CREATE TABLE table_name_32 (points VARCHAR, goals VARCHAR, games VARCHAR)
SELECT AVG(lost) FROM table_name_32 WHERE points_for = 545
What's the average loss when the points were 545?
CREATE TABLE table_name_32 (lost INTEGER, points_for VARCHAR)
SELECT outcome FROM table_name_54 WHERE date = "july 8, 2007"
The match played July 8, 2007 had what outcome?
CREATE TABLE table_name_54 (outcome VARCHAR, date VARCHAR)
SELECT MIN(laps) FROM table_name_99 WHERE points < 118 AND driver = "kyle petty"
What is the lowest number of laps for kyle petty with under 118 points?
CREATE TABLE table_name_99 (laps INTEGER, points VARCHAR, driver VARCHAR)
SELECT name FROM table_name_14 WHERE laps < 159 AND time_retired = "4:00:30.7537 (retired - fire)"
What team had less than 159 laps and a time or retired time of 4:00:30.7537 (retired - fire)?
CREATE TABLE table_name_14 (name VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT income_poverty_f FROM table_13618358_1 WHERE exports__usd_mn__2011 = 2470
What was the depravitiy of earnings where international sales was 2470?
CREATE TABLE table_13618358_1 (income_poverty_f VARCHAR, exports__usd_mn__2011 VARCHAR)
SELECT first_season_in_the_serie_a FROM table_2454589_1 WHERE last_title = "2006"
Name the first season in the series for 2006
CREATE TABLE table_2454589_1 (first_season_in_the_serie_a VARCHAR, last_title VARCHAR)
SELECT MIN(average) FROM table_name_29 WHERE swimsuit > 6.89 AND evening_gown > 7.76 AND state = "illinois" AND interview > 8.57
What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois?
CREATE TABLE table_name_29 (average INTEGER, interview VARCHAR, state VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
SELECT date FROM table_name_88 WHERE round__leg_ = "3"
What date has 3 as the round (leg)?
CREATE TABLE table_name_88 (date VARCHAR, round__leg_ VARCHAR)
SELECT COUNT(week) FROM table_name_2 WHERE attendance = 44 OFFSET 132
What is the week number with attendance of 44,132?
CREATE TABLE table_name_2 (week VARCHAR, attendance VARCHAR)
SELECT COUNT(highest) FROM table_2472711_31 WHERE lowest = 16415
How many highest figures for the team with lowest of 16415?
CREATE TABLE table_2472711_31 (highest VARCHAR, lowest VARCHAR)
SELECT MAX(points) FROM table_25711913_8 WHERE position = "Right halfback"
What is the most points recorded for a right halfback?
CREATE TABLE table_25711913_8 (points INTEGER, position VARCHAR)
SELECT SUM(byes) FROM table_name_63 WHERE wins = 11 AND losses < 5
How many byes when there are 11 wins and fewer than 5 losses?
CREATE TABLE table_name_63 (byes INTEGER, wins VARCHAR, losses VARCHAR)
SELECT language_s_ FROM table_17155250_1 WHERE film_title_used_in_nomination = "FireDancer"
What languages were spoken in the film "FireDancer"?
CREATE TABLE table_17155250_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT language_dialect FROM table_name_63 WHERE basikal = "sepeda" AND boleh = "bulih"
what is the language/dialect when basikal is sepeda and boleh is bulih?
CREATE TABLE table_name_63 (language_dialect VARCHAR, basikal VARCHAR, boleh VARCHAR)
SELECT SUM(game) FROM table_name_99 WHERE record = "27–30"
Which Game has a Record of 27–30?
CREATE TABLE table_name_99 (game INTEGER, record VARCHAR)
SELECT position FROM table_name_38 WHERE round = 4
A round of 4 is in what position?
CREATE TABLE table_name_38 (position VARCHAR, round VARCHAR)
SELECT directed_by FROM table_26982362_2 WHERE production_code = "693-004"
Who directed the episode with production code 693-004?
CREATE TABLE table_26982362_2 (directed_by VARCHAR, production_code VARCHAR)
SELECT date FROM table_name_10 WHERE circuit = "milwaukee mile" AND sanctioning = "cart"
What is the date for the race that has a circuit of Milwaukee Mile and the sanctioning of cart?
CREATE TABLE table_name_10 (date VARCHAR, circuit VARCHAR, sanctioning VARCHAR)
SELECT semifinals FROM table_17427004_7 WHERE athlete = "Hamza Kramou"
How did Hamza Kramou fare in the semifinals?
CREATE TABLE table_17427004_7 (semifinals VARCHAR, athlete VARCHAR)
SELECT tournament FROM table_name_48 WHERE score = "7-6(0), 6-3"
what is the tournament when the score is 7-6(0), 6-3?
CREATE TABLE table_name_48 (tournament VARCHAR, score VARCHAR)
SELECT COUNT(grid) FROM table_name_20 WHERE constructor = "talbot-lago - talbot" AND laps < 83 AND driver = "johnny claes"
How many grids have a Constructor of talbot-lago - talbot, a Laps under 83, and a driver of johnny claes?
CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT region FROM table_name_46 WHERE label = "alfa records" AND date = "january 23, 1987"
What region has the label of alfa records and the date of January 23, 1987?
CREATE TABLE table_name_46 (region VARCHAR, label VARCHAR, date VARCHAR)
SELECT third_place FROM table_name_89 WHERE total_wins < 5 AND winners = "china b"
Who is third-place with less than 5 total wins with china b as the winners?
CREATE TABLE table_name_89 (third_place VARCHAR, total_wins VARCHAR, winners VARCHAR)
SELECT last_appearance FROM table_name_65 WHERE wins < 1 AND losses = 1 AND school = "oklahoma state"
What is Last Appearance, when Wins is less than 1, when Losses is 1, and when School is Oklahoma State?
CREATE TABLE table_name_65 (last_appearance VARCHAR, school VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT date_made FROM table_name_69 WHERE names = "blacklion glencar"
What is the date of the locomotive named Blacklion Glencar?
CREATE TABLE table_name_69 (date_made VARCHAR, names VARCHAR)
SELECT player FROM table_name_76 WHERE pick__number < 304 AND college = "notre dame"
Who is the player that attended Notre Dame with a pick smaller than 304?
CREATE TABLE table_name_76 (player VARCHAR, pick__number VARCHAR, college VARCHAR)
SELECT song FROM table_name_38 WHERE points = 17
what is the song that has 17 points?
CREATE TABLE table_name_38 (song VARCHAR, points VARCHAR)
SELECT sydney FROM table_name_61 WHERE adelaide = "yes" AND gold_coast = "yes" AND melbourne = "yes" AND auckland = "yes"
what is the Sydney that has Adelaide, Gold Coast, Melbourne, and Auckland are all yes?
CREATE TABLE table_name_61 (sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR)
SELECT COUNT(draws) FROM table_name_94 WHERE losses > 5 AND club = "mortlake"
How many draws did Mortlake have when the losses were more than 5?
CREATE TABLE table_name_94 (draws VARCHAR, losses VARCHAR, club VARCHAR)
SELECT COUNT(gold) FROM table_name_4 WHERE silver = 1 AND bronze = 1 AND nation = "austria"
What is the number of gold when the silver is 1, bronze is 1, and the nation is Austria?
CREATE TABLE table_name_4 (gold VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT venue FROM table_name_16 WHERE against > 13
Which Venue has a Against larger than 13?
CREATE TABLE table_name_16 (venue VARCHAR, against INTEGER)
SELECT seat_factor FROM table_105344_2 WHERE year = 2006
What percentage of seats were filled in 2006?
CREATE TABLE table_105344_2 (seat_factor VARCHAR, year VARCHAR)
SELECT away FROM table_name_93 WHERE competition = "uefa cup" AND opponent = "anderlecht"
Which Away has a Competition of uefa cup, and an Opponent of anderlecht?
CREATE TABLE table_name_93 (away VARCHAR, competition VARCHAR, opponent VARCHAR)
SELECT team FROM table_name_10 WHERE races = "4" AND points = "0"
What is the Team that has a Races of 4, and a Points of 0?
CREATE TABLE table_name_10 (team VARCHAR, races VARCHAR, points VARCHAR)
SELECT builder’s_model FROM table_name_61 WHERE service = "freight" AND prr_class = "gf28a"
What was the model for PRR class of gf28a freight?
CREATE TABLE table_name_61 (builder’s_model VARCHAR, service VARCHAR, prr_class VARCHAR)
SELECT wins FROM table_name_20 WHERE stadium = "richmond cricket ground"
How many wins did they have at Richmond Cricket Ground Stadium?
CREATE TABLE table_name_20 (wins VARCHAR, stadium VARCHAR)
SELECT points_classification FROM table_name_64 WHERE stage = "1"
who is the points classification in stage 1?
CREATE TABLE table_name_64 (points_classification VARCHAR, stage VARCHAR)
SELECT departure FROM table_17200372_2 WHERE going_to = "Spalding"
Name the departure for spalding
CREATE TABLE table_17200372_2 (departure VARCHAR, going_to VARCHAR)
SELECT weblink FROM table_name_85 WHERE college_or_campus_name = "anna university college of engineering kanchipuram"
What Weblink has a College or Campus Name of anna university college of engineering kanchipuram?
CREATE TABLE table_name_85 (weblink VARCHAR, college_or_campus_name VARCHAR)
SELECT 1994 FROM table_name_42 WHERE 1996 = "2r" AND 1993 = "a" AND 1991 = "2r"
What is the 1994 value with a 2r in 1996, A in 1993, and 2r in 1991?
CREATE TABLE table_name_42 (Id VARCHAR)
SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID
What are the phones and emails of workshop groups in which services are performed?
CREATE TABLE Services (Workshop_Group_ID VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Phone VARCHAR, Store_Email_Address VARCHAR, Workshop_Group_ID VARCHAR)
SELECT club FROM table_name_58 WHERE tries_against = "75"
What club has tries against of 75?
CREATE TABLE table_name_58 (club VARCHAR, tries_against VARCHAR)
SELECT MAX(2 AS nd) FROM table_10021158_3
What time was the highest for 2nd finishers?
CREATE TABLE table_10021158_3 (Id VARCHAR)