answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT entrant FROM table_name_6 WHERE engine = "ferrari v8" AND points < 4
what is the entrant for the ferrari v8 with points less than 4?
CREATE TABLE table_name_6 (entrant VARCHAR, engine VARCHAR, points VARCHAR)
SELECT year_s__won FROM table_name_57 WHERE finish = "t27"
When the finish is t27 what is the year (s) won?
CREATE TABLE table_name_57 (year_s__won VARCHAR, finish VARCHAR)
SELECT score FROM table_name_55 WHERE date = "march 27"
What is the score March 27?
CREATE TABLE table_name_55 (score VARCHAR, date VARCHAR)
SELECT city_of_license FROM table_name_43 WHERE frequency_mhz < 95.9 AND call_sign = "w223au"
What City of license has a Frequency MHz smaller than 95.9 with w223au as the call sign?
CREATE TABLE table_name_43 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT role FROM table_name_80 WHERE year = "1996"
What was the role in 1996?
CREATE TABLE table_name_80 (role VARCHAR, year VARCHAR)
SELECT date FROM table_name_81 WHERE course = "rest day"
Which date was a rest day?
CREATE TABLE table_name_81 (date VARCHAR, course VARCHAR)
SELECT AVG(silver) FROM table_name_75 WHERE gold < 0
What is the average of the silver that has less than 0 gold
CREATE TABLE table_name_75 (silver INTEGER, gold INTEGER)
SELECT original_name FROM table_name_4 WHERE country = "bulgaria"
Name the original name for the one from bulgaria
CREATE TABLE table_name_4 (original_name VARCHAR, country VARCHAR)
SELECT opponent FROM table_name_84 WHERE round = "sf"
What team was the opponent when the round was sf?
CREATE TABLE table_name_84 (opponent VARCHAR, round VARCHAR)
SELECT AVG(rank) FROM table_name_35 WHERE ast_avg < 2.9
What is the average rank for players with less than 2.9 Assists per game?
CREATE TABLE table_name_35 (rank INTEGER, ast_avg INTEGER)
SELECT date FROM table_name_67 WHERE circuit = "syracuse"
Which date was the syracuse circuit?
CREATE TABLE table_name_67 (date VARCHAR, circuit VARCHAR)
SELECT T1.Name, AVG(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name
Show the names of countries and the average speed of roller coasters from each country.
CREATE TABLE roller_coaster (Speed INTEGER, Country_ID VARCHAR); CREATE TABLE country (Name VARCHAR, Country_ID VARCHAR)
SELECT geographic_character FROM table_name_10 WHERE population__2007_ < 4346 AND population__2010_ > 3385 AND barangay = "manalongon"
WHAT IS THE TYPE OF LAND WITH A 2007 POPULATION SMALLER THAN 4346, 2010 POPULATION LARGER THAN 3385, FROM BARANGAY OF MANALONGON?
CREATE TABLE table_name_10 (geographic_character VARCHAR, barangay VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR)
SELECT MIN(edition) FROM table_name_64 WHERE year > 2003 AND third = "tikveš" AND runner_up = "sileks"
What was the edition after 2003 when the Third was Tikveš and Sileks was the runner-up?
CREATE TABLE table_name_64 (edition INTEGER, runner_up VARCHAR, year VARCHAR, third VARCHAR)
SELECT MIN(week) FROM table_name_94 WHERE date = "november 28, 1974"
What is the week of the game played on November 28, 1974?
CREATE TABLE table_name_94 (week INTEGER, date VARCHAR)
SELECT score FROM table_name_48 WHERE player = "jay haas"
What is the score of player jay haas?
CREATE TABLE table_name_48 (score VARCHAR, player VARCHAR)
SELECT candidates FROM table_1341472_11 WHERE incumbent = "Sam Gibbons"
List all the candidates for the seat where the incumbent is Sam Gibbons?
CREATE TABLE table_1341472_11 (candidates VARCHAR, incumbent VARCHAR)
SELECT category FROM table_name_62 WHERE label = "mcg" AND result = "nominee"
What category did MCG get a nominee in?
CREATE TABLE table_name_62 (category VARCHAR, label VARCHAR, result VARCHAR)
SELECT MAX(silver) FROM table_name_81 WHERE nation = "germany" AND bronze > 0
How many silver medals for germany with a bronze count more than 0?
CREATE TABLE table_name_81 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT date FROM table_16729076_1 WHERE opponent = "Chicago Bears"
what date is the opponent is chicago bears?
CREATE TABLE table_16729076_1 (date VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_93 WHERE notes = "men's speed skating"
Which Time has Notes of men's speed skating?
CREATE TABLE table_name_93 (time VARCHAR, notes VARCHAR)
SELECT catalogue__number FROM table_name_8 WHERE country = "brazil"
What is the catalogue number for Brazil?
CREATE TABLE table_name_8 (catalogue__number VARCHAR, country VARCHAR)
SELECT years_for_jazz FROM table_name_52 WHERE school_club_team = "southern methodist"
What years did the Utah Jazz Player from Southern Methodist, Play?
CREATE TABLE table_name_52 (years_for_jazz VARCHAR, school_club_team VARCHAR)
SELECT driver FROM table_name_79 WHERE rounds = "6" AND chassis = "52 51/52"
with 6 rounds, and a 52 51/52 chassis, who is the driver?
CREATE TABLE table_name_79 (driver VARCHAR, rounds VARCHAR, chassis VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_2850912_5 WHERE nationality = "Sweden"
How many college/junior/club teams are from Sweden?
CREATE TABLE table_2850912_5 (college_junior_club_team VARCHAR, nationality VARCHAR)
SELECT score FROM table_name_73 WHERE competition = "2015 afc asian cup qualification"
Name the score for 2015 afc asian cup qualification
CREATE TABLE table_name_73 (score VARCHAR, competition VARCHAR)
SELECT town FROM table_name_81 WHERE municipality = "molėtai district municipality" AND population__2001_ < 470 AND population_rank = 187
What town is from the molėtai district municipality and has a population rank of 187 and a population less than 470 in 2001?
CREATE TABLE table_name_81 (town VARCHAR, population_rank VARCHAR, municipality VARCHAR, population__2001_ VARCHAR)
SELECT platform FROM table_name_33 WHERE year > 2006 AND developer = "3g studios"
Name the plaform for year more than 2006 and developer of 3g studios
CREATE TABLE table_name_33 (platform VARCHAR, year VARCHAR, developer VARCHAR)
SELECT SUM(wins) FROM table_name_17 WHERE win__percentage < 0.8270000000000001 AND name = "rick mirer" AND ties < 1
Which Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mirer, and Ties smaller than 1?
CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, win__percentage VARCHAR, name VARCHAR)
SELECT COUNT(type) FROM table_2562572_53 WHERE settlement = "Nova Pazova"
How many different types of settlements does Nova Pazova fall into?
CREATE TABLE table_2562572_53 (type VARCHAR, settlement VARCHAR)
SELECT COUNT(rank) FROM table_26041144_16 WHERE player = "Hashan Tillakaratne"
What is the ranktotal number if the Hashan Tillakaratne?
CREATE TABLE table_26041144_16 (rank VARCHAR, player VARCHAR)
SELECT type_of_game FROM table_name_27 WHERE date = "june 14"
what game was played on june 14
CREATE TABLE table_name_27 (type_of_game VARCHAR, date VARCHAR)
SELECT team FROM table_name_77 WHERE date = "march 17"
Can you tell me the Team that has the Date of march 17?
CREATE TABLE table_name_77 (team VARCHAR, date VARCHAR)
SELECT sfc_in_g__kn·s_ FROM table_15944_5 WHERE specific_impulse__s_ = 453
What is the SFC when the specific impulse is 453?
CREATE TABLE table_15944_5 (sfc_in_g__kn·s_ VARCHAR, specific_impulse__s_ VARCHAR)
SELECT player FROM table_name_41 WHERE no_s_ = "14"
What is the player with the no. 14?
CREATE TABLE table_name_41 (player VARCHAR, no_s_ VARCHAR)
SELECT admits_boys_girls FROM table_104858_1 WHERE country = "Venezuela"
Does Venezuela admit only boys, only girls, or both?
CREATE TABLE table_104858_1 (admits_boys_girls VARCHAR, country VARCHAR)
SELECT uk_broadcast_date FROM table_15211468_1 WHERE countries_visited = "USA"
What was the UK broadcast date for the episode which visited USA?
CREATE TABLE table_15211468_1 (uk_broadcast_date VARCHAR, countries_visited VARCHAR)
SELECT water__sqmi_ FROM table_18600760_9 WHERE latitude = "48.064751"
How many square miles of water does the township at latitude 48.064751 have?
CREATE TABLE table_18600760_9 (water__sqmi_ VARCHAR, latitude VARCHAR)
SELECT college FROM table_name_92 WHERE pick < 5
Which college had a pick of under 5?
CREATE TABLE table_name_92 (college VARCHAR, pick INTEGER)
SELECT structure FROM table_name_88 WHERE country = "chile"
What structure is in Chile?
CREATE TABLE table_name_88 (structure VARCHAR, country VARCHAR)
SELECT pole_position FROM table_name_95 WHERE race = "swedish grand prix"
What is the Pole Position of the Swedish Grand Prix?
CREATE TABLE table_name_95 (pole_position VARCHAR, race VARCHAR)
SELECT error FROM table_name_65 WHERE size__steps_ > 5 AND just__cents_ = 536.95
What is the error that has a size (steps) more than 5 and a just (cents) value 536.95
CREATE TABLE table_name_65 (error VARCHAR, size__steps_ VARCHAR, just__cents_ VARCHAR)
SELECT notes FROM table_name_31 WHERE rank > 4 AND country = "south korea"
What shows for notes when rank is more than 4, and country is South Korea?
CREATE TABLE table_name_31 (notes VARCHAR, rank VARCHAR, country VARCHAR)
SELECT date FROM table_name_18 WHERE week = 3
What date was the Week 3 game played?
CREATE TABLE table_name_18 (date VARCHAR, week VARCHAR)
SELECT comprehension_of_danish FROM table_name_48 WHERE average < 6.85 AND comprehension_of_norwegian = "4.13"
Which Comprehension of Danish has an Average smaller than 6.85, and a Comprehension of Norwegian of 4.13?
CREATE TABLE table_name_48 (comprehension_of_danish VARCHAR, average VARCHAR, comprehension_of_norwegian VARCHAR)
SELECT first_elected FROM table_2668378_18 WHERE incumbent = "John Smith"
When was someone first elected in the district with incumbent john smith?
CREATE TABLE table_2668378_18 (first_elected VARCHAR, incumbent VARCHAR)
SELECT player FROM table_name_51 WHERE place = "t5" AND score = 69 - 66 - 71 = 206
who is the player when the place is t5 and the score is 69-66-71=206?
CREATE TABLE table_name_51 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT season FROM table_name_15 WHERE opponent = "roma"
What season has roma as the opponent?
CREATE TABLE table_name_15 (season VARCHAR, opponent VARCHAR)
SELECT release_price___usd__ FROM table_16729930_18 WHERE part_number_s_ = "CY80632007227AB"
What is the release price for a processor with part number cy80632007227ab?
CREATE TABLE table_16729930_18 (release_price___usd__ VARCHAR, part_number_s_ VARCHAR)
SELECT location FROM table_name_6 WHERE name = "newington international airport"
What is the Location for the newington international airport?
CREATE TABLE table_name_6 (location VARCHAR, name VARCHAR)
SELECT to_par FROM table_name_67 WHERE finish = "t20"
What is the To par of the player with a Finish of T20?
CREATE TABLE table_name_67 (to_par VARCHAR, finish VARCHAR)
SELECT webcast FROM table_name_91 WHERE callsign = "kgbt"
Which Webcast has a Callsign of kgbt?
CREATE TABLE table_name_91 (webcast VARCHAR, callsign VARCHAR)
SELECT attendance FROM table_name_56 WHERE date = "26 december 2004"
What is Attendance, when Date is "26 December 2004"?
CREATE TABLE table_name_56 (attendance VARCHAR, date VARCHAR)
SELECT kickoff FROM table_27764201_2 WHERE opponent = "Frankfurt Galaxy"
What time was the kickoff against the Frankfurt Galaxy?
CREATE TABLE table_27764201_2 (kickoff VARCHAR, opponent VARCHAR)
SELECT qual_1 FROM table_name_93 WHERE name = "alex tagliani"
What did Alex Tagliani get for Qual 1?
CREATE TABLE table_name_93 (qual_1 VARCHAR, name VARCHAR)
SELECT finish FROM table_name_2 WHERE laps > 192 AND qual = "135.736"
What is the finish when there was more than 192 laps and a qual of 135.736?
CREATE TABLE table_name_2 (finish VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT COUNT(broadcast_date) FROM table_1429629_1 WHERE run_time = "24:43"
How many episodes had a broadcast date and run time of 24:43?
CREATE TABLE table_1429629_1 (broadcast_date VARCHAR, run_time VARCHAR)
SELECT AVG(round) FROM table_name_65 WHERE player = "dan chicoine" AND pick > 23
Which Round has a Player of dan chicoine, and a Pick larger than 23?
CREATE TABLE table_name_65 (round INTEGER, player VARCHAR, pick VARCHAR)
SELECT home_team AS score FROM table_name_4 WHERE venue = "lake oval"
When lake oval is the venue, what's the score of the home team?
CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR)
SELECT association FROM table_name_39 WHERE nominee = "indonesian idol" AND year > 2005 AND result = "nominated"
What was the association for Indonesian Idol after 2005 with a Nominated Result?
CREATE TABLE table_name_39 (association VARCHAR, result VARCHAR, nominee VARCHAR, year VARCHAR)
SELECT thursday_day_five FROM table_1277350_7 WHERE friday_day_six = "პარასკევი p'arask'evi"
What is thursday day five when friday day six is პარასკევი p'arask'evi?
CREATE TABLE table_1277350_7 (thursday_day_five VARCHAR, friday_day_six VARCHAR)
SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE conference = "Sun Belt"
Name the total number of bids of the sun belt conference
CREATE TABLE table_10722506_6 (_number_of_bids VARCHAR, conference VARCHAR)
SELECT MIN(races) FROM table_16908657_1 WHERE poles = 2
Name the least amount of races for 2 poles
CREATE TABLE table_16908657_1 (races INTEGER, poles VARCHAR)
SELECT COUNT(residence_city) FROM table_198175_2 WHERE english_name = "Province of Viborg and Nyslott"
How many residence cities have an English name of Province of Viborg and Nyslott?
CREATE TABLE table_198175_2 (residence_city VARCHAR, english_name VARCHAR)
SELECT MIN(60 AS _to_64) FROM table_16457934_4
what is the minimum of 60 -64?
CREATE TABLE table_16457934_4 (Id VARCHAR)
SELECT spanish_voice_actor FROM table_name_36 WHERE french_voice_actor = "véronique desmadryl"
Which Spanish voice actor does the same character as French voice actor Véronique Desmadryl?
CREATE TABLE table_name_36 (spanish_voice_actor VARCHAR, french_voice_actor VARCHAR)
SELECT barrel_length FROM table_12834315_5 WHERE colt_model_no = "LE6921SP"
What is the barrel length for a cold model le6921sp?
CREATE TABLE table_12834315_5 (barrel_length VARCHAR, colt_model_no VARCHAR)
SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT MAX(population) FROM country WHERE Continent = "Asia")
What are the African countries that have a population less than any country in Asia?
CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)
SELECT COUNT(episode) FROM table_29574579_1 WHERE directed_by = "Jamie Payne"
How many episodes are directed by Jamie Payne?
CREATE TABLE table_29574579_1 (episode VARCHAR, directed_by VARCHAR)
SELECT SUM(game) FROM table_name_61 WHERE date = "october 4"
What is the number of the game that was played on October 4?
CREATE TABLE table_name_61 (game INTEGER, date VARCHAR)
SELECT trans_1 FROM table_name_28 WHERE total_time = "2:00:40.20"
How long did the trans 1 take when 2:00:40.20 is the total time?
CREATE TABLE table_name_28 (trans_1 VARCHAR, total_time VARCHAR)
SELECT regular_season FROM table_2357201_1 WHERE year = 2006
How did Cleveland do in the regular season in 2006?
CREATE TABLE table_2357201_1 (regular_season VARCHAR, year VARCHAR)
SELECT turbine_vendor FROM table_name_85 WHERE turbines < 6 AND county = "donegal" AND size__mw_ = "0.85" AND wind_farm = "meenadreen"
Who is the turbine vendor for Meenadreen in Donegal county with less than 6 turbines with a size of 0.85 MW?
CREATE TABLE table_name_85 (turbine_vendor VARCHAR, wind_farm VARCHAR, size__mw_ VARCHAR, turbines VARCHAR, county VARCHAR)
SELECT fuel FROM table_name_50 WHERE output = "ps (kw; hp) @6000 rpm"
Which Fuel has an Output of ps (kw; hp) @6000 rpm?
CREATE TABLE table_name_50 (fuel VARCHAR, output VARCHAR)
SELECT story_by FROM table_26914076_3 WHERE us_viewers__millions_ = "0.53"
Who wrote the story viewed by 0.53 million viewers?
CREATE TABLE table_26914076_3 (story_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT current_streak FROM table_name_28 WHERE last_10_meetings = "ku, 8-2"
For what current streak is KU, 8-2 under last 10 meetings?
CREATE TABLE table_name_28 (current_streak VARCHAR, last_10_meetings VARCHAR)
SELECT launch_designation FROM table_name_53 WHERE cospar_id_satcat_№ = "2009-001a"
What is the launch designation of the satellite with a 2009-001a COSPAR ID?
CREATE TABLE table_name_53 (launch_designation VARCHAR, cospar_id_satcat_№ VARCHAR)
SELECT method FROM table_name_90 WHERE opponent = "dan new"
What method does the opponent of Dan New use?
CREATE TABLE table_name_90 (method VARCHAR, opponent VARCHAR)
SELECT 1997 FROM table_name_22 WHERE 2003 = "0 / 4"
What is 1997, when 2003 is 0 / 4?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT circuit FROM table_name_17 WHERE winning_driver = "raymond mays"
Which circuit did Raymond Mays win?
CREATE TABLE table_name_17 (circuit VARCHAR, winning_driver VARCHAR)
SELECT date FROM table_name_83 WHERE venue = "pietermaritzburg"
When was a competition held at Pietermaritzburg?
CREATE TABLE table_name_83 (date VARCHAR, venue VARCHAR)
SELECT home FROM table_name_20 WHERE venue = "bucharest" AND score = "9-9"
Who was at Home at the Bucharest Venue with a Score of 9-9?
CREATE TABLE table_name_20 (home VARCHAR, venue VARCHAR, score VARCHAR)
SELECT T1.fname, T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1
What is the first and last name of the student participating in the most activities?
CREATE TABLE Student (fname VARCHAR, lname VARCHAR, StuID VARCHAR); CREATE TABLE Participates_in (StuID VARCHAR)
SELECT match_report FROM table_name_23 WHERE date = "28 february 2009"
What is the match report from the game played on 28 february 2009?
CREATE TABLE table_name_23 (match_report VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park'
How many games were played in park "Columbia Park" in 1907?
CREATE TABLE park (park_id VARCHAR, park_name VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR)
SELECT MAX(goals) FROM table_name_91 WHERE minutes = 2428
What was the highest number of goals when 2428 minutes were played?
CREATE TABLE table_name_91 (goals INTEGER, minutes VARCHAR)
SELECT record FROM table_27704187_10 WHERE team = "Milwaukee"
What was the season record when the team played against Milwaukee?
CREATE TABLE table_27704187_10 (record VARCHAR, team VARCHAR)
SELECT address FROM member EXCEPT SELECT address FROM member WHERE Membership_card = 'Black'
Which address do not have any member with the black membership card?
CREATE TABLE member (address VARCHAR, Membership_card VARCHAR)
SELECT date FROM table_name_15 WHERE year > 1992 AND location = "murcia" AND score = "0-3"
What day did the team play in murcia with a score of 0-3 after 1992?
CREATE TABLE table_name_15 (date VARCHAR, score VARCHAR, year VARCHAR, location VARCHAR)
SELECT single FROM table_18710512_3 WHERE date = 2008 AND other_details = "4000 copies"
What single(s) released in 2008 and had 4000 copies?
CREATE TABLE table_18710512_3 (single VARCHAR, date VARCHAR, other_details VARCHAR)
SELECT city FROM airports GROUP BY city HAVING COUNT(*) = 2
Find the cities which have exactly two airports.
CREATE TABLE airports (city VARCHAR)
SELECT player FROM table_name_56 WHERE rank = 8 AND tally = "1-5"
Which player had a rank of 8 and tally of 1-5?
CREATE TABLE table_name_56 (player VARCHAR, rank VARCHAR, tally VARCHAR)
SELECT COUNT(score) FROM table_22883210_7 WHERE date = "January 18"
What was the total score for january 18?
CREATE TABLE table_22883210_7 (score VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_18904831_5 WHERE high_points = "Sales (17)"
Who did the most high rebounds in the game where Sales (17) did the high points?
CREATE TABLE table_18904831_5 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT home_away FROM table_name_49 WHERE opponent = "pride" AND result = "w 11-10"
Is it home or away when opponent is Pride with a W 11-10 result?
CREATE TABLE table_name_49 (home_away VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT receipt_date FROM Documents WHERE document_id = 3
What is the receipt date of the document with id 3?
CREATE TABLE Documents (receipt_date VARCHAR, document_id VARCHAR)
SELECT COUNT(high_rebounds) FROM table_22871316_11 WHERE series = "3-3"
How many high rebounds are in series 3-3?
CREATE TABLE table_22871316_11 (high_rebounds VARCHAR, series VARCHAR)
SELECT MAX(games) FROM table_28693349_2 WHERE player = "Robert Peare"
How many games did Robert Peare play?
CREATE TABLE table_28693349_2 (games INTEGER, player VARCHAR)
SELECT date FROM table_name_76 WHERE home_team = "north melbourne"
What wa the date of the North Melbourne home game?
CREATE TABLE table_name_76 (date VARCHAR, home_team VARCHAR)
SELECT pole_position FROM table_name_3 WHERE grand_prix = "german grand prix"
Name the pole position at the german grand prix
CREATE TABLE table_name_3 (pole_position VARCHAR, grand_prix VARCHAR)