answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT place FROM table_name_10 WHERE player = "steve stricker"
Where was Steve Stricker from?
CREATE TABLE table_name_10 (place VARCHAR, player VARCHAR)
SELECT recnet FROM table_name_75 WHERE class = "a" AND power = "3,000 watts"
What is the RECNet belonging to Class A with a Power of 3,000 watts?
CREATE TABLE table_name_75 (recnet VARCHAR, class VARCHAR, power VARCHAR)
SELECT production_code FROM table_26702078_1 WHERE no_in_series = 60
Name the production code for 60 number in series
CREATE TABLE table_26702078_1 (production_code VARCHAR, no_in_series VARCHAR)
SELECT champion FROM table_25563779_4 WHERE national_trophy_rookie = "not held"
Who is the champion if the national trophy/rookie is not held?
CREATE TABLE table_25563779_4 (champion VARCHAR, national_trophy_rookie VARCHAR)
SELECT original_air_date FROM table_25923164_1 WHERE written_by = "Amanda Segel"
What was the original air date of the episode written by amanda segel?
CREATE TABLE table_25923164_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT archive FROM table_1776943_1 WHERE run_time = "24:04"
Name the archive where run time 24:04
CREATE TABLE table_1776943_1 (archive VARCHAR, run_time VARCHAR)
SELECT AVG(december) FROM table_name_59 WHERE record = "21–6–5"
Which December has a Record of 21–6–5?
CREATE TABLE table_name_59 (december INTEGER, record VARCHAR)
SELECT COUNT(r1) FROM table_18812411_3 WHERE country = "Fiji"
How many times did Fiji win r1?
CREATE TABLE table_18812411_3 (r1 VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_22 WHERE winning_score = 64 - 68 - 66 - 63 = 261
Which To par has a Winning score of 64-68-66-63=261?
CREATE TABLE table_name_22 (to_par VARCHAR, winning_score VARCHAR)
SELECT opponent_team FROM table_name_37 WHERE scorers = "ronaldinho 90+3'"
Who was the opposing team when the scorer was ronaldinho 90+3'?
CREATE TABLE table_name_37 (opponent_team VARCHAR, scorers VARCHAR)
SELECT race FROM table_name_45 WHERE round < 8 AND date = "6 july"
What race was a round smaller than 8, on 6 july?
CREATE TABLE table_name_45 (race VARCHAR, round VARCHAR, date VARCHAR)
SELECT filter FROM table_2583036_1 WHERE wavelength = "222mm (K-band)"
what is the filter when the wavelength is 222mm (k-band)?
CREATE TABLE table_2583036_1 (filter VARCHAR, wavelength VARCHAR)
SELECT mascot FROM table_name_38 WHERE previous_conference = "independents" AND location = "akron"
Which Mascot has a Previous conference of independents, and a Location of akron?
CREATE TABLE table_name_38 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR)
SELECT city FROM table_name_69 WHERE iata = "tsa"
Which city has an IATA of tsa?
CREATE TABLE table_name_69 (city VARCHAR, iata VARCHAR)
SELECT attendance FROM table_name_21 WHERE loss = "prokopec (2-7)"
How many were in attendance with a loss of Prokopec (2-7)?
CREATE TABLE table_name_21 (attendance VARCHAR, loss VARCHAR)
SELECT SUM(decile) FROM table_name_64 WHERE area = "whitianga" AND roll < 835
What is the total decile with an Area of whitianga, and a Roll smaller than 835?
CREATE TABLE table_name_64 (decile INTEGER, area VARCHAR, roll VARCHAR)
SELECT player FROM table_name_24 WHERE country = "scotland"
Which player is from scotland?
CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR)
SELECT result FROM table_name_77 WHERE attendance = "12,000"
What was the result when the attendance was 12,000?
CREATE TABLE table_name_77 (result VARCHAR, attendance VARCHAR)
SELECT level FROM table_name_21 WHERE season > 2003 AND division = "kakkonen (second division)" AND position = "12th"
What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?
CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR)
SELECT MAX(round) FROM table_name_26 WHERE opponent = "masutatsu yano"
What is the highest round a fight lasted against masutatsu yano?
CREATE TABLE table_name_26 (round INTEGER, opponent VARCHAR)
SELECT MIN(total) FROM table_25947046_1 WHERE arabs = 4000
What is the lowest total when arabs is 4000?
CREATE TABLE table_25947046_1 (total INTEGER, arabs VARCHAR)
SELECT AVG(decile) FROM table_name_62 WHERE authority = "state" AND area = "fernridge"
Name the average decile for state authority and area of fernridge
CREATE TABLE table_name_62 (decile INTEGER, authority VARCHAR, area VARCHAR)
SELECT year FROM table_name_43 WHERE laps > 200
Which year did Tony Bettenhausen complete more than 200 laps?
CREATE TABLE table_name_43 (year VARCHAR, laps INTEGER)
SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 2009"
What is the region 1 release that has july 20, 2009 as the region 2?
CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR)
SELECT COUNT(stolen_ends) FROM table_name_83 WHERE ends_lost < 44 AND blank_ends < 7
How many Stolen Ends have Ends Lost smaller than 44, and Blank Ends smaller than 7?
CREATE TABLE table_name_83 (stolen_ends VARCHAR, ends_lost VARCHAR, blank_ends VARCHAR)
SELECT T1.Attraction_Type_Description, T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
Show the description and code of the attraction type most tourist attractions belong to.
CREATE TABLE Ref_Attraction_Types (Attraction_Type_Description VARCHAR, Attraction_Type_Code VARCHAR); CREATE TABLE Tourist_Attractions (Attraction_Type_Code VARCHAR)
SELECT kickoff FROM table_name_30 WHERE date = "october 22, 2000"
What is the kickoff for the game on october 22, 2000?
CREATE TABLE table_name_30 (kickoff VARCHAR, date VARCHAR)
SELECT COUNT(round) FROM table_name_68 WHERE position = "tight end" AND overall > 21
What round was the draft pick of tight end with an Overall larger than 21?
CREATE TABLE table_name_68 (round VARCHAR, position VARCHAR, overall VARCHAR)
SELECT COUNT(gold) FROM table_name_99 WHERE rank = "10" AND bronze > 2
How many Golds did Rank 10 get, with a Bronze larger than 2?
CREATE TABLE table_name_99 (gold VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT away_team FROM table_name_64 WHERE attendance = "7,891"
Who was the away team when the attendance was 7,891?
CREATE TABLE table_name_64 (away_team VARCHAR, attendance VARCHAR)
SELECT place_of_birth FROM table_name_24 WHERE committee = "judiciary" AND district = 43
Where was the delegate belonging to the Judiciary committee of district 43 born?
CREATE TABLE table_name_24 (place_of_birth VARCHAR, committee VARCHAR, district VARCHAR)
SELECT score FROM table_name_32 WHERE visitor = "pacers"
What is the score of the game with Pacers as the Visitor?
CREATE TABLE table_name_32 (score VARCHAR, visitor VARCHAR)
SELECT series FROM table_14345690_15 WHERE main_presenter = "Caroline Flack"
What series have Caroline Flack as a main presenter?
CREATE TABLE table_14345690_15 (series VARCHAR, main_presenter VARCHAR)
SELECT representing FROM table_name_59 WHERE original_title = "om fjorten dage"
Name the representation for om fjorten dage
CREATE TABLE table_name_59 (representing VARCHAR, original_title VARCHAR)
SELECT MAX(gold) FROM table_name_15 WHERE bronze > 3 AND total < 24
Can you tell me the highest Gold that has the Bronze larger than 3, and the Total smaller than 24?
CREATE TABLE table_name_15 (gold INTEGER, bronze VARCHAR, total VARCHAR)
SELECT away_team AS score FROM table_name_10 WHERE home_team = "fitzroy"
What was the score of the Away team that played against the Home team of Fitzroy?
CREATE TABLE table_name_10 (away_team VARCHAR, home_team VARCHAR)
SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1
Who made the latest order?
CREATE TABLE customer_orders (customer_id VARCHAR, order_date VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
SELECT team FROM table_name_44 WHERE school = "milford"
Name the team for school of milford
CREATE TABLE table_name_44 (team VARCHAR, school VARCHAR)
SELECT AVG(average) FROM table_name_34 WHERE swimsuit < 9.545 AND state = "iowa" AND evening_gown > 9.625
What is the average of the swimsuit smaller than 9.545 , of Iowa, with an evening gown larger than 9.625?
CREATE TABLE table_name_34 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, state VARCHAR)
SELECT days_held FROM table_name_95 WHERE wrestler = "noiz"
What days held has noiz as the wrestler?
CREATE TABLE table_name_95 (days_held VARCHAR, wrestler VARCHAR)
SELECT original_air_date FROM table_11665016_2 WHERE written_by = "Wendy Battles" AND directed_by = "Oz Scott"
What is the air date for the episode written by Wendy Battles and directed by Oz Scott
CREATE TABLE table_11665016_2 (original_air_date VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT SUM(points) FROM table_name_93 WHERE team = "repsol honda" AND rank = "8th"
What is the sum of the points when Carlos drove for repsol honda in 8th place?
CREATE TABLE table_name_93 (points INTEGER, team VARCHAR, rank VARCHAR)
SELECT kit_manufacturer FROM table_name_1 WHERE shirt_sponsor = "walkers"
What is the kit manufacturer with Walkers as the shirt sponsor?
CREATE TABLE table_name_1 (kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)
SELECT goals_scored FROM table_name_50 WHERE pos > 4 AND years_active = "2001-"
How many goals were scored with a pos larger than 4 and active in 2001-?
CREATE TABLE table_name_50 (goals_scored VARCHAR, pos VARCHAR, years_active VARCHAR)
SELECT fixed_telephone_line FROM table_25042332_27 WHERE vehicle = "25.6%"
Name the fixed telephone line for 25.6% vehicle
CREATE TABLE table_25042332_27 (fixed_telephone_line VARCHAR, vehicle VARCHAR)
SELECT AVG(attendance) FROM table_name_75 WHERE result = "w 23-21" AND week < 5
Which Attendance has a Result of w 23-21, and a Week smaller than 5?
CREATE TABLE table_name_75 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT player FROM table_name_79 WHERE position = "center" AND year_born = 1977
What player is a center born in 1977?
CREATE TABLE table_name_79 (player VARCHAR, position VARCHAR, year_born VARCHAR)
SELECT new_entries_this_round FROM table_name_97 WHERE number_of_fixtures < 8 AND round = "semi-finals"
What were the new entries for the Semi-Finals round with fewer than 8 fixtures?
CREATE TABLE table_name_97 (new_entries_this_round VARCHAR, number_of_fixtures VARCHAR, round VARCHAR)
SELECT safari FROM table_name_70 WHERE internet_explorer = "28.0%"
What is the safari value with a 28.0% internet explorer?
CREATE TABLE table_name_70 (safari VARCHAR, internet_explorer VARCHAR)
SELECT date FROM table_name_65 WHERE record = "9-3"
When was the game with a record of 9-3?
CREATE TABLE table_name_65 (date VARCHAR, record VARCHAR)
SELECT MIN(number) FROM table_274117_5
What is the fewest amount of Pro Bowl appearances any of the players had?
CREATE TABLE table_274117_5 (number INTEGER)
SELECT quantity_made FROM table_name_7 WHERE manufacturer = "4-6-2 β€” oooooo β€” pacific"
What's the quantity made when the manufacturer was 4-6-2 β€” oooooo β€” pacific?
CREATE TABLE table_name_7 (quantity_made VARCHAR, manufacturer VARCHAR)
SELECT studio FROM table_name_41 WHERE title = "mask"
WHAT IS THE STUDIO WITH THE TITLE MASK?
CREATE TABLE table_name_41 (studio VARCHAR, title VARCHAR)
SELECT pasadena FROM table_name_11 WHERE tujunga = "36"
What is the figure for Pasadena when Tujunga is 36?
CREATE TABLE table_name_11 (pasadena VARCHAR, tujunga VARCHAR)
SELECT candidate FROM table_25818630_2 WHERE result____percentage = "0.4%"
Who was the candidate when the result - % was 0.4%?
CREATE TABLE table_25818630_2 (candidate VARCHAR, result____percentage VARCHAR)
SELECT event FROM table_name_13 WHERE record = "3-0"
What is Event, when Record is "3-0"?
CREATE TABLE table_name_13 (event VARCHAR, record VARCHAR)
SELECT MIN(laps) FROM table_name_68 WHERE rider = "sylvain guintoli" AND grid < 16
What is the lowest Laps, when Rider is Sylvain Guintoli, and when Grid is less than 16?
CREATE TABLE table_name_68 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1
What is the starting year of the oldest technicians?
CREATE TABLE technician (Starting_Year VARCHAR, Age VARCHAR)
SELECT team FROM table_name_63 WHERE pos = "f" AND player = "trey gilder"
What team does F Trey Gilder play for?
CREATE TABLE table_name_63 (team VARCHAR, pos VARCHAR, player VARCHAR)
SELECT MAX(lane) FROM table_name_31 WHERE rank > 2 AND nationality = "guyana"
What is the highest lane with a rank larger than 2 in Guyana?
CREATE TABLE table_name_31 (lane INTEGER, rank VARCHAR, nationality VARCHAR)
SELECT SUM(december) FROM table_name_61 WHERE game > 31 AND score = "5 - 2"
What is the sum of December, when Game is greater than 31, and when Score is "5 - 2"?
CREATE TABLE table_name_61 (december INTEGER, game VARCHAR, score VARCHAR)
SELECT COUNT(power_kw) FROM table_24418525_1 WHERE coverage = "Dumaguete Central Visayas Region"
How much power covers dumaguete central visayas region?
CREATE TABLE table_24418525_1 (power_kw VARCHAR, coverage VARCHAR)
SELECT Name FROM conductor WHERE Nationality <> 'USA'
What are the names of conductors whose nationalities are not "USA"?
CREATE TABLE conductor (Name VARCHAR, Nationality VARCHAR)
SELECT MIN(game) FROM table_22871316_11 WHERE date = "April 30"
How many games are on the date of April 30?
CREATE TABLE table_22871316_11 (game INTEGER, date VARCHAR)
SELECT co_drivers FROM table_name_76 WHERE year = 2008
What were the co-drivers in 2008?
CREATE TABLE table_name_76 (co_drivers VARCHAR, year VARCHAR)
SELECT MAX(founded) FROM table_name_67 WHERE institution = "cloud county community college"
What is the largest Founded with an Institution of cloud county community college?
CREATE TABLE table_name_67 (founded INTEGER, institution VARCHAR)
SELECT play_by_play FROM table_name_63 WHERE studio_host = "gary tanguay" AND studio_analysts = "donny marshall"
WHich Play-by-play has a Studio host of gary tanguay, and a Studio analysts of donny marshall?
CREATE TABLE table_name_63 (play_by_play VARCHAR, studio_host VARCHAR, studio_analysts VARCHAR)
SELECT COUNT(weight) FROM table_name_53 WHERE team = "philadelphia 76ers"
What is the weight of the player from the Philadelphia 76ers?
CREATE TABLE table_name_53 (weight VARCHAR, team VARCHAR)
SELECT col_location FROM table_2731431_1 WHERE location = "France / Italy"
What is the col location for the location of france / italy?
CREATE TABLE table_2731431_1 (col_location VARCHAR, location VARCHAR)
SELECT college FROM table_name_73 WHERE position = "tackle" AND pick < 87
What college has a pick smaller than 87 for the position of tackle?
CREATE TABLE table_name_73 (college VARCHAR, position VARCHAR, pick VARCHAR)
SELECT location_attendance FROM table_name_78 WHERE team = "@ milwaukee"
When the team is @ Milwaukee, what is the name of the location where the game is played?
CREATE TABLE table_name_78 (location_attendance VARCHAR, team VARCHAR)
SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T3.Year = 2007
Show distinct types of artworks that are nominated in festivals in 2007.
CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE festival_detail (Festival_ID VARCHAR, Year VARCHAR); CREATE TABLE artwork (Type VARCHAR, Artwork_ID VARCHAR)
SELECT viewers__millions_ FROM table_21025437_5 WHERE episode_no = 20
How many million viewers watched episode number 20?
CREATE TABLE table_21025437_5 (viewers__millions_ VARCHAR, episode_no VARCHAR)
SELECT MIN(first_elected) FROM table_name_12 WHERE incumbent = "jo bonner"
What is the first elected for Jo Bonner?
CREATE TABLE table_name_12 (first_elected INTEGER, incumbent VARCHAR)
SELECT month_ & _year FROM table_name_18 WHERE title = "bolivia special"
Which month and year held the Bolivia Special title?
CREATE TABLE table_name_18 (month_ VARCHAR, _year VARCHAR, title VARCHAR)
SELECT AVG(age_at_appointment) FROM table_name_58 WHERE portfolio_attachment = "security"
What is the average age at appointment of those attached to security?
CREATE TABLE table_name_58 (age_at_appointment INTEGER, portfolio_attachment VARCHAR)
SELECT customer_name FROM customers WHERE payment_method = "Cash"
What are the names of customers who use payment method "Cash"?
CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR)
SELECT COUNT(*) FROM Draft_Copies WHERE document_id = 2
How many draft copies does the document with id 2 have?
CREATE TABLE Draft_Copies (document_id VARCHAR)
SELECT COUNT(grid) FROM table_name_51 WHERE time = "+43.191" AND laps < 22
What is the total number of Grid, when Time is +43.191, and when Laps is less than 22?
CREATE TABLE table_name_51 (grid VARCHAR, time VARCHAR, laps VARCHAR)
SELECT MIN(lowest) FROM table_11207040_5 WHERE stadium = "Cappielow"
What is the lowest attandance recorded at Cappielow?
CREATE TABLE table_11207040_5 (lowest INTEGER, stadium VARCHAR)
SELECT theme FROM table_name_85 WHERE original_artist = "carole king" AND week__number = "hollywood"
What is the Theme when the Original artist was carole king, and a Week # shows hollywood?
CREATE TABLE table_name_85 (theme VARCHAR, original_artist VARCHAR, week__number VARCHAR)
SELECT AVG(attendance) FROM table_name_21 WHERE date = "september 11, 1988"
What was the attendance on September 11, 1988?
CREATE TABLE table_name_21 (attendance INTEGER, date VARCHAR)
SELECT away_team FROM table_name_56 WHERE home_team = "footscray"
Which away team played the home team of Footscray?
CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR)
SELECT motogp_winner FROM table_27948565_1 WHERE date = "6 May"
Name the motogp winner for 6 may
CREATE TABLE table_27948565_1 (motogp_winner VARCHAR, date VARCHAR)
SELECT COUNT(number) FROM table_name_31 WHERE name = "justin jeffries"
What is the number of Justin Jeffries?
CREATE TABLE table_name_31 (number VARCHAR, name VARCHAR)
SELECT name FROM table_name_57 WHERE length = "51.89 (2.043)"
Which name is 51.89 (2.043) long?
CREATE TABLE table_name_57 (name VARCHAR, length VARCHAR)
SELECT home_team FROM table_name_63 WHERE venue = "arden street oval"
Who is the home team at arden street oval?
CREATE TABLE table_name_63 (home_team VARCHAR, venue VARCHAR)
SELECT round FROM table_name_56 WHERE position = "f/c" AND college = "iowa"
What round has a position of F/C from Iowa College?
CREATE TABLE table_name_56 (round VARCHAR, position VARCHAR, college VARCHAR)
SELECT rowers FROM table_name_41 WHERE notes = "fa"
What rowers have FA as the notes?
CREATE TABLE table_name_41 (rowers VARCHAR, notes VARCHAR)
SELECT MAX(no) FROM table_18198579_2 WHERE tournament = "Evian Masters"
List the total numbers of Evian Masters tournaments.
CREATE TABLE table_18198579_2 (no INTEGER, tournament VARCHAR)
SELECT tail_number FROM table_name_86 WHERE fatalities = "5/30"
What was the tail number of the aircraft that had 5/30 fatalities?
CREATE TABLE table_name_86 (tail_number VARCHAR, fatalities VARCHAR)
SELECT class FROM table_name_23 WHERE type = "0-4-0st"
What is the class of the locomotive with a 0-4-0st type?
CREATE TABLE table_name_23 (class VARCHAR, type VARCHAR)
SELECT modern_title_of_house FROM table_name_46 WHERE translation = "prison"
Which modern house title translates to prison?
CREATE TABLE table_name_46 (modern_title_of_house VARCHAR, translation VARCHAR)
SELECT state__class_ FROM table_225198_3 WHERE vacator = "Isaac D. Barnard (J)"
Name the state class for isaac d. barnard (j)
CREATE TABLE table_225198_3 (state__class_ VARCHAR, vacator VARCHAR)
SELECT MIN(r2) FROM table_18812411_3
What was the minimum score for r2?
CREATE TABLE table_18812411_3 (r2 INTEGER)
SELECT race FROM table_name_20 WHERE date = "31st may 1953" AND event = "grand prix de l'albigeois final"
Which Race has a Date of 31st may 1953, and an Event of grand prix de l'albigeois final?
CREATE TABLE table_name_20 (race VARCHAR, date VARCHAR, event VARCHAR)
SELECT chest FROM table_name_28 WHERE supplier = "gilbert"
Which Chest is Supplied by Gilbert?
CREATE TABLE table_name_28 (chest VARCHAR, supplier VARCHAR)
SELECT hire_date FROM employees WHERE NOT first_name LIKE '%M%'
when is the hire date for those employees whose first name does not containing the letter M?
CREATE TABLE employees (hire_date VARCHAR, first_name VARCHAR)
SELECT MAX(rank) FROM table_name_56 WHERE code__iata_icao_ = "hkg/vhhh"
What is the highest rank for the airport with a code of HKG/VHHH?
CREATE TABLE table_name_56 (rank INTEGER, code__iata_icao_ VARCHAR)
SELECT AVG(attendance) FROM table_name_57 WHERE opponent = "expos"
What is the average attendance against the expos?
CREATE TABLE table_name_57 (attendance INTEGER, opponent VARCHAR)