answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT time_retired FROM table_name_67 WHERE laps < 22 AND manufacturer = "honda"
What is the time/retired when there are less than 22 laps and honda is the manufacturer?
CREATE TABLE table_name_67 (time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT COUNT(date) FROM table_17103566_1 WHERE match_number = 5
How many dates have a Match number of 5?
CREATE TABLE table_17103566_1 (date VARCHAR, match_number VARCHAR)
SELECT Grape, Appelation FROM WINE
List the grapes and appelations of all wines.
CREATE TABLE WINE (Grape VARCHAR, Appelation VARCHAR)
SELECT COUNT(bronze) FROM table_name_86 WHERE rank < 2 AND gold < 1
What is the sum number of bronzes when the rank is less than 2 and the gold is less than 1?
CREATE TABLE table_name_86 (bronze VARCHAR, rank VARCHAR, gold VARCHAR)
SELECT team FROM table_name_20 WHERE goals_against < 64 AND points_2 = 63 AND goals_for = 101
What team has less than 64 goals against, 101 goals for, and a Points 2 total of 63?
CREATE TABLE table_name_20 (team VARCHAR, goals_for VARCHAR, goals_against VARCHAR, points_2 VARCHAR)
SELECT transcription FROM table_20354_5 WHERE thai_name = "พฤษภาคม"
What's the transcription for the Thai name พฤษภาคม?
CREATE TABLE table_20354_5 (transcription VARCHAR, thai_name VARCHAR)
SELECT place FROM table_name_12 WHERE position < 5 AND points = 90
What was the place with 90 point total but a position less than 5?
CREATE TABLE table_name_12 (place VARCHAR, position VARCHAR, points VARCHAR)
SELECT date FROM table_name_6 WHERE attendance = "51,342"
When was there an attendance of 51,342?
CREATE TABLE table_name_6 (date VARCHAR, attendance VARCHAR)
SELECT MIN(result) FROM table_17265535_7 WHERE equation = "0 × 9² + 3 × 9 + 3"
If the equation is 0 × 9² + 3 × 9 + 3, what is the result?
CREATE TABLE table_17265535_7 (result INTEGER, equation VARCHAR)
SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'
Find the first name of the professor who is teaching two courses with code CIS-220 and QM-261.
CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
SELECT locality FROM table_name_90 WHERE ages = "8-16" AND school = "penarth group school"
What is the Locality of the Penarth Group School for Ages 8-16?
CREATE TABLE table_name_90 (locality VARCHAR, ages VARCHAR, school VARCHAR)
SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300
What are the names of body builders whose total score is higher than 300?
CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE body_builder (People_ID VARCHAR, Total INTEGER)
SELECT opponent_in_the_final FROM table_name_58 WHERE outcome = "all england open"
What is the Opponent in final with an All England Open Outcome?
CREATE TABLE table_name_58 (opponent_in_the_final VARCHAR, outcome VARCHAR)
SELECT position FROM table_name_50 WHERE nationality = "united states" AND jersey_number_s_ = "12" AND player = "tom black category:articles with hcards"
What is Postition, when Nationality is United States, when Jersey Number(s) is 12, and when Player is Tom Black Category:Articles With hCards?
CREATE TABLE table_name_50 (position VARCHAR, player VARCHAR, nationality VARCHAR, jersey_number_s_ VARCHAR)
SELECT show FROM table_169766_13 WHERE previous_network = "The Family Channel"
Which show as previously on The Family Channel?
CREATE TABLE table_169766_13 (show VARCHAR, previous_network VARCHAR)
SELECT headquarter FROM table_name_11 WHERE type = "government-owned" AND newspaper_magazine = "al-jumhuriya"
What is Headquarter, when Type is Government-Owned, and when Newspaper/Magazine is Al-Jumhuriya?
CREATE TABLE table_name_11 (headquarter VARCHAR, type VARCHAR, newspaper_magazine VARCHAR)
SELECT COUNT(laps) FROM table_name_78 WHERE bike = "ducati 999 f06" AND time = "+53.488" AND grid > 11
Using a Ducati 999 F06 Bike, how many Laps with a Grid greater than 11 and Time of +53.488?
CREATE TABLE table_name_78 (laps VARCHAR, grid VARCHAR, bike VARCHAR, time VARCHAR)
SELECT player FROM table_2508633_5 WHERE nfl_team = "Green Bay Packers"
Which player did the green bay packers pick?
CREATE TABLE table_2508633_5 (player VARCHAR, nfl_team VARCHAR)
SELECT 2008 AS _club FROM table_name_69 WHERE name = "nadia centoni category:articles with hcards"
What is the name of the 2008 club with Nadia Centoni Category:Articles with hCards?
CREATE TABLE table_name_69 (name VARCHAR)
SELECT COUNT(bronze) FROM table_name_81 WHERE silver > 0 AND total > 20 AND gold < 26
How many bronzes for the nation with over 20 total, under 26 golds, and over 0 silvers?
CREATE TABLE table_name_81 (bronze VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT score FROM table_name_20 WHERE opponent = "mariners" AND date = "may 10"
Name the score for the mariners opponent on may 10
CREATE TABLE table_name_20 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT total_points FROM table_17862135_3 WHERE average = "17.8"
What are the total points for the team that averages 17.8?
CREATE TABLE table_17862135_3 (total_points VARCHAR, average VARCHAR)
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY COUNT(*) DESC LIMIT 1
Find the name of the swimmer who has the most records.
CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR)
SELECT londonborough FROM table_name_15 WHERE dialcode = "01992"
What Londongborough has a Dialcode of 01992?
CREATE TABLE table_name_15 (londonborough VARCHAR, dialcode VARCHAR)
SELECT winners FROM table_name_4 WHERE year = "2010-2011"
Who were the winners in 2010-2011?
CREATE TABLE table_name_4 (winners VARCHAR, year VARCHAR)
SELECT COUNT(joined) FROM table_262508_1 WHERE nickname = "Warriors"
How many joined the Warriors?
CREATE TABLE table_262508_1 (joined VARCHAR, nickname VARCHAR)
SELECT AVG(inegi_code) FROM table_name_6 WHERE municipal_seat = "mexicali" AND area__km2_ > 13 OFFSET 700
What is the inegi code for mexicali with 13,700 km area?
CREATE TABLE table_name_6 (inegi_code INTEGER, municipal_seat VARCHAR, area__km2_ VARCHAR)
SELECT school FROM table_name_2 WHERE college = "michigan" AND hometown = "wheaton, illinois"
What is the school of the player who went to the college of michigan and originally comes from Wheaton, Illinois?
CREATE TABLE table_name_2 (school VARCHAR, college VARCHAR, hometown VARCHAR)
SELECT COUNT(place) FROM table_name_96 WHERE points = 33
How many places have more than 33 points?
CREATE TABLE table_name_96 (place VARCHAR, points VARCHAR)
SELECT COUNT(round) FROM table_1859269_1 WHERE new_entries_this_round = "65"
If new entries this round is 65, what is the round?
CREATE TABLE table_1859269_1 (round VARCHAR, new_entries_this_round VARCHAR)
SELECT date FROM table_name_42 WHERE host_team = "new york giants"
On what date did the New York Giants host a game?
CREATE TABLE table_name_42 (date VARCHAR, host_team VARCHAR)
SELECT score FROM table_name_12 WHERE h_a_n = "h" AND record = "12-24"
What was the score of the game with a H/A/N of H and a record of 12-24?
CREATE TABLE table_name_12 (score VARCHAR, h_a_n VARCHAR, record VARCHAR)
SELECT high_points FROM table_name_67 WHERE record = "27–29"
Which High points have a Record of 27–29?
CREATE TABLE table_name_67 (high_points VARCHAR, record VARCHAR)
SELECT city FROM table_name_57 WHERE country = "spain" AND stadium = "palacio de deportes de santander"
Which City has a Country of spain, and a Stadium of palacio de deportes de santander?
CREATE TABLE table_name_57 (city VARCHAR, country VARCHAR, stadium VARCHAR)
SELECT MAX(no_in_season) FROM table_10842344_1 WHERE production_code = "E4423"
What episode number had production code e4423?
CREATE TABLE table_10842344_1 (no_in_season INTEGER, production_code VARCHAR)
SELECT SUM(attendance) FROM table_name_99 WHERE venue = "a" AND scorers = "di matteo, m. hughes"
What is the number of people in attendance when venue shows A, and Di Matteo, M. Hughes were the scorers?
CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, scorers VARCHAR)
SELECT budget FROM table_name_28 WHERE film = "the incredibles"
WHAT IS THE BUDGET FOR THE INCREDIBLES?
CREATE TABLE table_name_28 (budget VARCHAR, film VARCHAR)
SELECT home_team FROM table_name_98 WHERE away_team = "melbourne"
Who was the home team when Melbourne was the away team?
CREATE TABLE table_name_98 (home_team VARCHAR, away_team VARCHAR)
SELECT MAX(money__) AS $_ FROM table_name_33 WHERE round_1 = "71"
Round 1 of 71 has how many highest money?
CREATE TABLE table_name_33 (money__ INTEGER, round_1 VARCHAR)
SELECT AVG(year) FROM table_name_25 WHERE power = "bhp (kw)" AND trim = "ls/2lt"
What's the Year Average that has a Power of BHP (KW) and Trim of LS/2LT?
CREATE TABLE table_name_25 (year INTEGER, power VARCHAR, trim VARCHAR)
SELECT record FROM table_13762472_4 WHERE high_points = "Dwyane Wade (27)" AND location_attendance = "ARCO Arena"
what's the record with high points being dwyane wade (27) and location attendance being arco arena
CREATE TABLE table_13762472_4 (record VARCHAR, high_points VARCHAR, location_attendance VARCHAR)
SELECT race AS Winner FROM table_name_11 WHERE pole_position = "didier pironi" AND race = "canadian grand prix"
What Canadian Grand Prix race winner had Didier Pironi in Pole Position?
CREATE TABLE table_name_11 (race VARCHAR, pole_position VARCHAR)
SELECT SUM(year) FROM table_name_37 WHERE score = "59-32"
what is the year when the score is 59-32?
CREATE TABLE table_name_37 (year INTEGER, score VARCHAR)
SELECT segment_a FROM table_name_34 WHERE segment_d = "marble sculptures"
Which items in segment A have a segment D of marble sculptures?
CREATE TABLE table_name_34 (segment_a VARCHAR, segment_d VARCHAR)
SELECT COUNT(angle_from_center_) AS ° FROM table_name_97 WHERE taper / ft < 0.6000000000000001
Which Angle from center/° has a Taper/ft smaller than 0.6000000000000001?
CREATE TABLE table_name_97 (angle_from_center_ VARCHAR, taper VARCHAR, ft VARCHAR)
SELECT attendance FROM table_name_33 WHERE result = "l 31–23"
What was the Attendance when the Result was L 31–23?
CREATE TABLE table_name_33 (attendance VARCHAR, result VARCHAR)
SELECT latitude FROM table_name_83 WHERE year_built = 1901
What is the Latitude of the monument built in 1901?
CREATE TABLE table_name_83 (latitude VARCHAR, year_built VARCHAR)
SELECT MIN(tor_fløysvik) FROM table_28677723_10 WHERE karianne_gulliksen = 6
What is listed in tor floysvik when karianne gulliksen is 6?
CREATE TABLE table_28677723_10 (tor_fløysvik INTEGER, karianne_gulliksen VARCHAR)
SELECT owner FROM table_name_72 WHERE call_sign = "cksb-8-fm"
Who owns CKSB-8-FM?
CREATE TABLE table_name_72 (owner VARCHAR, call_sign VARCHAR)
SELECT leading_scorer FROM table_name_65 WHERE visitor = "grizzlies" AND score = "114–111"
What is the Leading scorer with a Visitor of grizzlies, and with a Score with 114–111?
CREATE TABLE table_name_65 (leading_scorer VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT long FROM table_name_17 WHERE avg_g = "160.9"
What is the long value for the year with an average/game of 160.9?
CREATE TABLE table_name_17 (long VARCHAR, avg_g VARCHAR)
SELECT mean_free_path FROM table_name_25 WHERE vacuum_range = "medium vacuum"
What is Mean Free Path, when Vacuum Range is "medium vacuum"?
CREATE TABLE table_name_25 (mean_free_path VARCHAR, vacuum_range VARCHAR)
SELECT MAX(season__number) FROM table_11630008_5 WHERE series__number = 61
What was the season number for the episode with the series number 61?
CREATE TABLE table_11630008_5 (season__number INTEGER, series__number VARCHAR)
SELECT visitor FROM table_name_49 WHERE home = "anaheim" AND date = "april 12"
Who was the Visitor when the Home team was Anaheim on the Date of April 12?
CREATE TABLE table_name_49 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT city FROM table_name_86 WHERE stadium = "ciro vigorito"
What city houses the Ciro Vigorito stadium?
CREATE TABLE table_name_86 (city VARCHAR, stadium VARCHAR)
SELECT province FROM table_name_66 WHERE city = "hamilton"
What province is Hamilton part of?
CREATE TABLE table_name_66 (province VARCHAR, city VARCHAR)
SELECT venue FROM table_name_71 WHERE runs = "245"
Where is the venue with more than 245 runs?
CREATE TABLE table_name_71 (venue VARCHAR, runs VARCHAR)
SELECT 1995 FROM table_name_86 WHERE 1993 = "3r"
Which 1995 has a 1993 of 3r?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT COUNT(uk_co_presenter) FROM table_14345690_15 WHERE co_presenter = "Joe Swash" AND comedian = "Russell Kane"
Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?
CREATE TABLE table_14345690_15 (uk_co_presenter VARCHAR, co_presenter VARCHAR, comedian VARCHAR)
SELECT e_coli FROM table_name_78 WHERE human = "hneil1"
Which E. coli has a human value of HNEIL1?
CREATE TABLE table_name_78 (e_coli VARCHAR, human VARCHAR)
SELECT year FROM table_1918850_2 WHERE opponents_in_the_final = "Helena Suková Todd Woodbridge"
when were helena suková todd woodbridge the opponents in the final
CREATE TABLE table_1918850_2 (year VARCHAR, opponents_in_the_final VARCHAR)
SELECT league_apps FROM table_10556257_1 WHERE season = "1923-24"
What is the league apps for season 1923-24?
CREATE TABLE table_10556257_1 (league_apps VARCHAR, season VARCHAR)
SELECT train_number FROM table_29770377_1 WHERE train_name = "Island Express" AND destination = "Kanniyakumari"
What is the train number for the train name island express with a destination of kanniyakumari?
CREATE TABLE table_29770377_1 (train_number VARCHAR, train_name VARCHAR, destination VARCHAR)
SELECT visitor FROM table_name_71 WHERE record = "9–12–5"
Which Visitor has a Record of 9–12–5?
CREATE TABLE table_name_71 (visitor VARCHAR, record VARCHAR)
SELECT AVG(crowd) FROM table_name_22 WHERE away_team = "north melbourne"
What is the average crowd size for games with north melbourne as the away side?
CREATE TABLE table_name_22 (crowd INTEGER, away_team VARCHAR)
SELECT played FROM table_name_38 WHERE points_for = "343"
How many rounds were played in the matching resulting in a Points For score of 343?
CREATE TABLE table_name_38 (played VARCHAR, points_for VARCHAR)
SELECT MAX(pick__number) FROM table_15353123_1 WHERE position = "Defensive end"
Who was the highest picked defensive end
CREATE TABLE table_15353123_1 (pick__number INTEGER, position VARCHAR)
SELECT acquis_chapters_open_closed FROM table_name_44 WHERE membership_application = "2009-04-28"
What is the acquis chapter open/closed dates with a membership application in 2009-04-28?
CREATE TABLE table_name_44 (acquis_chapters_open_closed VARCHAR, membership_application VARCHAR)
SELECT television_service FROM table_15887683_15 WHERE country = "Italy" AND language = "English"
What television service is in italy and is in english?
CREATE TABLE table_15887683_15 (television_service VARCHAR, country VARCHAR, language VARCHAR)
SELECT surface FROM table_22597626_6 WHERE score_in_the_final = "6–0, 6–3"
Name the surface for 6–0, 6–3
CREATE TABLE table_22597626_6 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(date) FROM table_1566852_6 WHERE centerfold_model = "Jillian Grace"
How many times was Jillian Grace the centerfold model?
CREATE TABLE table_1566852_6 (date VARCHAR, centerfold_model VARCHAR)
SELECT SUM(silver) FROM table_name_97 WHERE bronze = 25 AND overall < 67
How many silver when bronze is 25 and overall is less than 67?
CREATE TABLE table_name_97 (silver INTEGER, bronze VARCHAR, overall VARCHAR)
SELECT french FROM table_name_72 WHERE common_english = "fribourg"
What is the french word for fribourg?
CREATE TABLE table_name_72 (french VARCHAR, common_english VARCHAR)
SELECT number_ & _name FROM table_name_10 WHERE description = "lms fowler class 3f 0-6-0t"
What's the number & name for a description of lms fowler class 3f 0-6-0t?
CREATE TABLE table_name_10 (number_ VARCHAR, _name VARCHAR, description VARCHAR)
SELECT treasurer FROM table_name_74 WHERE president = "sebastian ihler"
Which treasurer has a President of sebastian ihler?
CREATE TABLE table_name_74 (treasurer VARCHAR, president VARCHAR)
SELECT years_in_orlando FROM table_name_11 WHERE position = "center"
Which years in Orlando are featured with the center position?
CREATE TABLE table_name_11 (years_in_orlando VARCHAR, position VARCHAR)
SELECT nationality FROM table_name_75 WHERE position = "left wing" AND round > 4 AND player = "mattia baldi"
What nationality has a position of left wing, and a round greater than 4, with mattia baldi as the player?
CREATE TABLE table_name_75 (nationality VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR)
SELECT record FROM table_name_59 WHERE visitor = "cleveland" AND home = "dallas"
What was the record when the visitor was Cleveland in Dallas?
CREATE TABLE table_name_59 (record VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT authors FROM table_name_65 WHERE name = "malasaurus"
Who is the author for the malasaurus?
CREATE TABLE table_name_65 (authors VARCHAR, name VARCHAR)
SELECT peak FROM table_name_26 WHERE prom__m_ < 147
Tell me the peak for prom being less than 147
CREATE TABLE table_name_26 (peak VARCHAR, prom__m_ INTEGER)
SELECT exit_date FROM table_name_19 WHERE transfer_fee = "free" AND to_club = "reggina"
What is the exit date of the player transferred to Reggina for free?
CREATE TABLE table_name_19 (exit_date VARCHAR, transfer_fee VARCHAR, to_club VARCHAR)
SELECT 2008 FROM table_name_2 WHERE 2010 = "138"
What shows for 2008 when 2010 is 138?
CREATE TABLE table_name_2 (Id VARCHAR)
SELECT SUM(total) FROM table_name_59 WHERE nation = "england"
What is total number of wins for England?
CREATE TABLE table_name_59 (total INTEGER, nation VARCHAR)
SELECT score FROM table_name_66 WHERE tournament = "antalya-belek"
What is the score in the touranament of Antalya-Belek?
CREATE TABLE table_name_66 (score VARCHAR, tournament VARCHAR)
SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 1
What is the sum of top-25s for events with more than 1 top-5?
CREATE TABLE table_name_71 (top_25 INTEGER, top_5 INTEGER)
SELECT COUNT(result) FROM table_1342370_39 WHERE district = "South Carolina 5"
what is the total number of results where the district is south carolina 5?
CREATE TABLE table_1342370_39 (result VARCHAR, district VARCHAR)
SELECT name FROM table_name_46 WHERE license = "gpl" AND actual_version = "0.8.29wip4"
What name has a License of gpl, and an Actual version of 0.8.29wip4?
CREATE TABLE table_name_46 (name VARCHAR, license VARCHAR, actual_version VARCHAR)
SELECT score FROM table_name_45 WHERE date = "october 7, 2000"
What is the Score on October 7, 2000?
CREATE TABLE table_name_45 (score VARCHAR, date VARCHAR)
SELECT place FROM table_name_64 WHERE country = "ireland"
what is the place for ireland?
CREATE TABLE table_name_64 (place VARCHAR, country VARCHAR)
SELECT COUNT(record) FROM table_17121262_10 WHERE team = "Washington"
What was the record against Washington?
CREATE TABLE table_17121262_10 (record VARCHAR, team VARCHAR)
SELECT COUNT(overall) FROM table_name_37 WHERE player = "fred nixon"
What is the total number of overall draft picks for Fred Nixon?
CREATE TABLE table_name_37 (overall VARCHAR, player VARCHAR)
SELECT name FROM table_name_63 WHERE reported_death_date = "6 march 1998"
Who has a reported death of 6 march 1998?
CREATE TABLE table_name_63 (name VARCHAR, reported_death_date VARCHAR)
SELECT features FROM table_name_18 WHERE datacenter = "yes"
Which Features have Yes listed under Datacenter?
CREATE TABLE table_name_18 (features VARCHAR, datacenter VARCHAR)
SELECT SUM(total) FROM table_name_56 WHERE gold < 1 AND bronze = 3
Name the sum of total for gold less than 1 and bronze of 3
CREATE TABLE table_name_56 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT county FROM table_name_96 WHERE median_household_income = "$37,230"
Which County has a Median household income of $37,230?
CREATE TABLE table_name_96 (county VARCHAR, median_household_income VARCHAR)
SELECT COUNT(games) FROM table_name_94 WHERE drawn > 0 AND lost = 1
How many Games have a Drawn larger than 0, and a Lost of 1?
CREATE TABLE table_name_94 (games VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT player FROM table_11545282_5 WHERE years_for_jazz = "1995-2000, 2004-05"
Which player played the years for Jazz in 1995-2000, 2004-05
CREATE TABLE table_11545282_5 (player VARCHAR, years_for_jazz VARCHAR)
SELECT hot_100_reaction FROM table_name_41 WHERE week = "top 13" AND performer_s_ = "kanye west"
What is the hot 100 reaction in week of top 13 for Kanye West?
CREATE TABLE table_name_41 (hot_100_reaction VARCHAR, week VARCHAR, performer_s_ VARCHAR)
SELECT MAX(standard) FROM table_10682862_68 WHERE first_title = 1992
What's the standard of the country who won its first title in 1992?
CREATE TABLE table_10682862_68 (standard INTEGER, first_title VARCHAR)
SELECT outcome FROM table_name_49 WHERE surface = "clay" AND date = "2 may 2009"
What was the outcome when the game was played on clay and on 2 May 2009?
CREATE TABLE table_name_49 (outcome VARCHAR, surface VARCHAR, date VARCHAR)