answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT position FROM table_11803648_22 WHERE player = "Tobias Lindberg"
What is the position of player Tobias Lindberg?
CREATE TABLE table_11803648_22 (position VARCHAR, player VARCHAR)
SELECT planet FROM table_10932739_2 WHERE orbital_period = "11.86 years"
Which planet has an orbital period of 11.86 years?
CREATE TABLE table_10932739_2 (planet VARCHAR, orbital_period VARCHAR)
SELECT COUNT(die_size__mm_2__) FROM table_26040604_1 WHERE texture___gt__s_ = "34"
How many die sizes have a texture of exactly 34?
CREATE TABLE table_26040604_1 (die_size__mm_2__ VARCHAR, texture___gt__s_ VARCHAR)
SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_address_history)
Show names and phones of customers who do not have address information.
CREATE TABLE customer_address_history (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR)
SELECT t3.characteristic_name 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 GROUP BY t3.characteristic_name ORDER BY COUNT(*) DESC LIMIT 1
What is the characteristic name used by most number of the products?
CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
SELECT bronze FROM table_name_6 WHERE silver < 89 AND total = 4
What is Bronze, when Silver is less than 89, and when Total is "4"?
CREATE TABLE table_name_6 (bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT us_viewers__million_ FROM table_25548213_1 WHERE written_by = "Kevin Biegel & Aseem Batra"
How many million viewers watch the episode that kevin biegel & aseem batra wrote?
CREATE TABLE table_25548213_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)
SELECT COUNT(outcome) FROM table_18183850_12 WHERE opponent = "Aleksandra Wozniak"
How many outcomes were there when the opponent was Aleksandra Wozniak?
CREATE TABLE table_18183850_12 (outcome VARCHAR, opponent VARCHAR)
SELECT MIN(gold) FROM table_name_81 WHERE total = 5 AND rank > 1
What is the number of Gold medals for the Nation with a Total of 5 and Rank larger than 1?
CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, rank VARCHAR)
SELECT money___$__ FROM table_name_1 WHERE player = "jodie mudd"
How much money did jodie mudd get?
CREATE TABLE table_name_1 (money___$__ VARCHAR, player VARCHAR)
SELECT result FROM table_name_49 WHERE goal = 9
What was the result of the game with 9 goals?
CREATE TABLE table_name_49 (result VARCHAR, goal VARCHAR)
SELECT SUM(round) FROM table_name_41 WHERE player = "freddie mitchell"
What is the sum of rounds where freddie mitchell was picked?
CREATE TABLE table_name_41 (round INTEGER, player VARCHAR)
SELECT COUNT(nomination) FROM table_10236830_1 WHERE actors_name = "Natalia Raskokoha"
What was the number of nominations for natalia raskokoha?
CREATE TABLE table_10236830_1 (nomination VARCHAR, actors_name VARCHAR)
SELECT MIN(total) FROM table_name_64 WHERE bronze > 1 AND gold > 8 AND silver < 10
What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers?
CREATE TABLE table_name_64 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT college FROM table_name_68 WHERE player = "dorian finney-smith"
What College did Player Dorian Finney-Smith play for?
CREATE TABLE table_name_68 (college VARCHAR, player VARCHAR)
SELECT MIN(ofsted_number) FROM table_name_62 WHERE intake = 60 AND type = "junior" AND dcsf_number < 3386
What is the junior type with an intake of 60 and a DCSF number less than 3386 with the smallest Ofsted number?
CREATE TABLE table_name_62 (ofsted_number INTEGER, dcsf_number VARCHAR, intake VARCHAR, type VARCHAR)
SELECT in_no FROM table_14253123_1 WHERE county_name = "Spencer"
When Spencer is the county what is the in no.?
CREATE TABLE table_14253123_1 (in_no VARCHAR, county_name VARCHAR)
SELECT laps FROM table_name_3 WHERE qual = "138.750"
How many laps were there for the car with a qual of 138.750?
CREATE TABLE table_name_3 (laps VARCHAR, qual VARCHAR)
SELECT 1 AS st_leg FROM table_name_52 WHERE competition = "uefa champions league" AND club = "skonto riga"
What is the 1st leg of the UEFA Champions League Compeition in the Skonto Riga Club?
CREATE TABLE table_name_52 (competition VARCHAR, club VARCHAR)
SELECT memory FROM table_name_63 WHERE chipset = "intel 955"
Which model's chipset is intel 955?
CREATE TABLE table_name_63 (memory VARCHAR, chipset 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 SUM(laps) FROM table_name_29 WHERE grid < 20 AND driver = "johnny herbert"
what is the sum of laps when grid is less than 20 and johnny herbert is driving?
CREATE TABLE table_name_29 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE home_team = "fitzroy"
When the home team was fitzroy, what did the away team score?
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(counties) FROM table_name_62 WHERE candidate = "mitt romney" AND delegates < 0
What is the highest Counties when Mitt Romney was the candidate with less than 0 delegates?
CREATE TABLE table_name_62 (counties INTEGER, candidate VARCHAR, delegates VARCHAR)
SELECT product_name, product_category_code FROM products ORDER BY product_price DESC LIMIT 1
Find the name and category of the most expensive product.
CREATE TABLE products (product_name VARCHAR, product_category_code VARCHAR, product_price VARCHAR)
SELECT opponent FROM table_name_45 WHERE outcome = "winner" AND partner = "andres molteni"
In the match played with partner Andres Molteni, with the outcome of winner, who was the opponent?
CREATE TABLE table_name_45 (opponent VARCHAR, outcome VARCHAR, partner VARCHAR)
SELECT sanskrit_संस्कृतम् FROM table_name_95 WHERE kannada_ಕನ್ನಡ = "uttara ಉತ್ತರಾ"
What kind of Sanskrit संस्कृतम् has a Kannada ಕನ್ನಡ of uttara ಉತ್ತರಾ?
CREATE TABLE table_name_95 (sanskrit_संस्कृतम् VARCHAR, kannada_ಕನ್ನಡ VARCHAR)
SELECT club FROM table_name_39 WHERE round = "2nd round" AND score = "1:0, 3:0"
Which club has a 2nd round score of 1:0, 3:0?
CREATE TABLE table_name_39 (club VARCHAR, round VARCHAR, score VARCHAR)
SELECT others_percentage FROM table_name_83 WHERE others_number > 147 AND kerry_percentage = "39.6%"
What is the value Others% when the value Others# is greater than 147 and the value Kerry% is 39.6%?
CREATE TABLE table_name_83 (others_percentage VARCHAR, others_number VARCHAR, kerry_percentage VARCHAR)
SELECT COUNT(*) FROM election
How many elections are there?
CREATE TABLE election (Id VARCHAR)
SELECT MAX(ministries) FROM table_21422977_1
What is the most amount of ministries?
CREATE TABLE table_21422977_1 (ministries INTEGER)
SELECT build_date FROM table_name_14 WHERE prr_class = "ff20" AND builder’s_model = "erie built"
When was the build date for ff20 PRR class and erie built builder's model?
CREATE TABLE table_name_14 (build_date VARCHAR, prr_class VARCHAR, builder’s_model VARCHAR)
SELECT locomotive_superintendent FROM table_name_45 WHERE lner_class = "d45"
Who was the Locomotive superintendent has a NER class of d45?
CREATE TABLE table_name_45 (locomotive_superintendent VARCHAR, lner_class VARCHAR)
SELECT slalom FROM table_name_90 WHERE season > 1994 AND overall > 22
What is the value for Slalom in seasons later than 1994 and overall value greater than 22?
CREATE TABLE table_name_90 (slalom VARCHAR, season VARCHAR, overall VARCHAR)
SELECT village__slovenian_ FROM table_10797463_1 WHERE percent_of_slovenes_1951 = "65.9%"
What are the slovenian names of the villages that had 65.9% of slovenes in 1951?
CREATE TABLE table_10797463_1 (village__slovenian_ VARCHAR, percent_of_slovenes_1951 VARCHAR)
SELECT MIN(year_of_construction) FROM table_10020178_1 WHERE name = "Spitallamm"
What is year of construction of spitallamm?
CREATE TABLE table_10020178_1 (year_of_construction INTEGER, name VARCHAR)
SELECT level FROM table_237036_2 WHERE macroblocks_s = 11880 AND high_10_profile = 6000
What level has 11880 macroblocks and high 10 profile is 6000?
CREATE TABLE table_237036_2 (level VARCHAR, macroblocks_s VARCHAR, high_10_profile VARCHAR)
SELECT AVG(points) FROM table_name_55 WHERE played < 16
what is the average points when played is less than 16?
CREATE TABLE table_name_55 (points INTEGER, played INTEGER)
SELECT MAX(game) FROM table_23281862_10 WHERE score = "W 113–96 (OT)"
Name the most game for w 113–96 (ot)
CREATE TABLE table_23281862_10 (game INTEGER, score VARCHAR)
SELECT COUNT(position) FROM table_11677100_4 WHERE school = "Spring High school"
How many positions did the player from Spring High School play?
CREATE TABLE table_11677100_4 (position VARCHAR, school VARCHAR)
SELECT round FROM table_name_40 WHERE venue = "canberra stadium"
What round was in canberra stadium?
CREATE TABLE table_name_40 (round VARCHAR, venue VARCHAR)
SELECT coronie FROM table_name_92 WHERE nickerie = "0.7%"
What is the coronie with a 0.7% nickerie?
CREATE TABLE table_name_92 (coronie VARCHAR, nickerie VARCHAR)
SELECT SUM(tries_for) FROM table_name_38 WHERE team = "neath" AND points_against > 109
What Tries for has a Team of neath, and Points against larger than 109?
CREATE TABLE table_name_38 (tries_for INTEGER, team VARCHAR, points_against VARCHAR)
SELECT us_viewers__in_millions_ FROM table_20704243_5 WHERE series__number = 50
Name the number of viewers for series number 50
CREATE TABLE table_20704243_5 (us_viewers__in_millions_ VARCHAR, series__number VARCHAR)
SELECT MIN(bronze) FROM table_name_63 WHERE gold > 0 AND total = 36 AND silver > 11
What is the smallest bronze value associated with golds over 0, silvers over 11, and totals of 36?
CREATE TABLE table_name_63 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT result FROM table_name_50 WHERE week = 2
What was the result for week 2?
CREATE TABLE table_name_50 (result VARCHAR, week VARCHAR)
SELECT district FROM table_name_45 WHERE reserved_for___sc___st__none_ = "total:"
What district shows reserved for (SC / ST /None) of total:?
CREATE TABLE table_name_45 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR)
SELECT home FROM table_name_14 WHERE geust = "fc basel (asl)"
What is the home of the geust fc basel (asl)?
CREATE TABLE table_name_14 (home VARCHAR, geust VARCHAR)
SELECT nationality FROM table_2679061_9 WHERE pick__number = 168
What was the nationality of player picked no. 168?
CREATE TABLE table_2679061_9 (nationality VARCHAR, pick__number VARCHAR)
SELECT MAX(town_ships) FROM table_19457_1 WHERE no = 2
How many townships are there in region number 2?
CREATE TABLE table_19457_1 (town_ships INTEGER, no VARCHAR)
SELECT player FROM table_name_31 WHERE original_nfl_team = "buffalo bills"
What player's original team are the Buffalo Bills?
CREATE TABLE table_name_31 (player VARCHAR, original_nfl_team VARCHAR)
SELECT T1.personal_name, T1.family_name, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1
Find the personal name, family name, and author ID of the course author that teaches the most courses.
CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (personal_name VARCHAR, family_name VARCHAR, author_id VARCHAR)
SELECT league FROM table_name_41 WHERE apps < 15 AND goals = 0 AND club = "sparta prague"
Which league has less than 15 apps and 0 goals with sparta prague?
CREATE TABLE table_name_41 (league VARCHAR, club VARCHAR, apps VARCHAR, goals VARCHAR)
SELECT result FROM table_name_45 WHERE week = 7
What is the result from the game played on week 7?
CREATE TABLE table_name_45 (result VARCHAR, week VARCHAR)
SELECT name_or_number FROM table_2189647_1 WHERE yield__megatons_ = "15"
Name the name for 15 yield
CREATE TABLE table_2189647_1 (name_or_number VARCHAR, yield__megatons_ VARCHAR)
SELECT year FROM table_name_71 WHERE purse = "$83,925"
Which Year has a Purse of $83,925?
CREATE TABLE table_name_71 (year VARCHAR, purse VARCHAR)
SELECT result FROM table_name_77 WHERE opponent = "green bay packers"
Tell me the result for green bay packers
CREATE TABLE table_name_77 (result VARCHAR, opponent VARCHAR)
SELECT icb_sector FROM table_168274_1 WHERE ticker_symbol = "AI"
Name the icb sector for ai
CREATE TABLE table_168274_1 (icb_sector VARCHAR, ticker_symbol 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 _number FROM table_1014206_2 WHERE commissioned = "September 30, 1967"
List the # for ships commissioned on september 30, 1967.
CREATE TABLE table_1014206_2 (_number VARCHAR, commissioned VARCHAR)
SELECT COUNT(points) FROM table_14342592_7 WHERE position = "Right guard"
How many points did the player who was right guard score?
CREATE TABLE table_14342592_7 (points VARCHAR, position VARCHAR)
SELECT SUM(pick) FROM table_name_64 WHERE round > 8 AND name = "kenny fells" AND overall > 297
Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297?
CREATE TABLE table_name_64 (pick INTEGER, overall VARCHAR, round VARCHAR, name VARCHAR)
SELECT home_team FROM table_name_33 WHERE away_team = "aston villa"
What home team had an away team of Aston Villa?
CREATE TABLE table_name_33 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(system) FROM table_10875694_11 WHERE title = "James Bond 007: Everything or Nothing"
What is the total number of James Bond 007: Everything or Nothing for each system?
CREATE TABLE table_10875694_11 (system VARCHAR, title VARCHAR)
SELECT COUNT(points) FROM table_name_95 WHERE driver = "enrique bernoldi (r)"
What is the total number of points of driver enrique bernoldi (r)?
CREATE TABLE table_name_95 (points VARCHAR, driver VARCHAR)
SELECT winner FROM table_name_43 WHERE date = "5 sep"
What is Winner, when Date is 5 Sep?
CREATE TABLE table_name_43 (winner VARCHAR, date VARCHAR)
SELECT country FROM table_name_95 WHERE label = "toshiba-emi" AND catalog = "vjcp-68403"
Which Country has a Label of Toshiba-emi and a Catalog of vjcp-68403?
CREATE TABLE table_name_95 (country VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT hometown FROM table_name_64 WHERE school = "kennedy-kenrick catholic high school"
Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School?
CREATE TABLE table_name_64 (hometown VARCHAR, school VARCHAR)
SELECT AVG(overall) FROM table_name_77 WHERE pick__number = 5 AND name = "ken whisenhunt"
What is the average overall of Ken Whisenhunt, who has a pick # of 5?
CREATE TABLE table_name_77 (overall INTEGER, pick__number VARCHAR, name VARCHAR)
SELECT COUNT(_number_of_new_stations) FROM table_1817879_2 WHERE length__miles_ = "6.0"
How many new stations have a lenght (miles) of 6.0?
CREATE TABLE table_1817879_2 (_number_of_new_stations VARCHAR, length__miles_ VARCHAR)
SELECT lead FROM table_name_84 WHERE home = "saskatoon, saskatchewan"
Who is the lead for the team from Saskatoon, Saskatchewan?
CREATE TABLE table_name_84 (lead VARCHAR, home VARCHAR)
SELECT camera FROM table_2583036_1 WHERE wavelength = "814nm (I-band)"
what is the camera used when the wavelength is 814nm (i-band)?
CREATE TABLE table_2583036_1 (camera VARCHAR, wavelength VARCHAR)
SELECT power_kw FROM table_27914076_1 WHERE callsign = "DYMD-FM"
Name the power for dymd-fm
CREATE TABLE table_27914076_1 (power_kw VARCHAR, callsign VARCHAR)
SELECT tournament FROM table_name_51 WHERE partner = "dieter kindlmann"
Which tournament was Dieter Kindlmann a partner?
CREATE TABLE table_name_51 (tournament VARCHAR, partner VARCHAR)
SELECT time FROM table_name_37 WHERE ad_freq = "15 minutes" AND show_name = "country today"
What Time has Ad Freq of 15 minutes, and a Show Name of country today?
CREATE TABLE table_name_37 (time VARCHAR, ad_freq VARCHAR, show_name VARCHAR)
SELECT date_opened FROM table_22665117_1 WHERE dist_id = 11901
What is the date opened if thedistrict ID is 11901?
CREATE TABLE table_22665117_1 (date_opened VARCHAR, dist_id VARCHAR)
SELECT round FROM table_name_42 WHERE phase = "qualifying" AND draw_date = "16 july 2010"
What is the round for the qualifying phase with a draw date on 16 July 2010?
CREATE TABLE table_name_42 (round VARCHAR, phase VARCHAR, draw_date VARCHAR)
SELECT candidates FROM table_1341884_23 WHERE district = "Massachusetts 8"
Name the candidates for massachusetts 8
CREATE TABLE table_1341884_23 (candidates VARCHAR, district VARCHAR)
SELECT nat FROM table_name_93 WHERE ends = "2009"
What's the nat that ends in 2009?
CREATE TABLE table_name_93 (nat VARCHAR, ends VARCHAR)
SELECT manner_of_departure FROM table_27383390_4 WHERE incoming_head_coach = "Mohammad Khakpour"
What is the manner of departure when the incoming head coach is mohammad khakpour?
CREATE TABLE table_27383390_4 (manner_of_departure VARCHAR, incoming_head_coach VARCHAR)
SELECT Publication_Date FROM publication ORDER BY Price LIMIT 3
List the publication dates of publications with 3 lowest prices.
CREATE TABLE publication (Publication_Date VARCHAR, Price VARCHAR)
SELECT nation FROM table_name_96 WHERE cyclist = "robert gesink"
Which nation is Robert Gesink from?
CREATE TABLE table_name_96 (nation VARCHAR, cyclist VARCHAR)
SELECT AVG(points) FROM table_name_49 WHERE place > 7 AND draw = 4
What is the average number of points for places over 7 and having a draw order of 4?
CREATE TABLE table_name_49 (points INTEGER, place VARCHAR, draw VARCHAR)
SELECT AVG(Profits_billion) FROM Companies
What are the average profits of companies?
CREATE TABLE Companies (Profits_billion INTEGER)
SELECT COUNT(division) FROM table_1046071_1 WHERE open_cup = "1st Round"
What is the number of the division for the 1st round?
CREATE TABLE table_1046071_1 (division VARCHAR, open_cup VARCHAR)
SELECT venue FROM table_name_87 WHERE home_team = "south melbourne"
At what venue was South Melbourne the home team?
CREATE TABLE table_name_87 (venue VARCHAR, home_team VARCHAR)
SELECT 1 AS st_edition FROM table_name_16 WHERE episode = "11"
What is the 1st Edition for Episode 11?
CREATE TABLE table_name_16 (episode VARCHAR)
SELECT opponent FROM table_name_41 WHERE round = "32"
What opponent has 32 as the round?
CREATE TABLE table_name_41 (opponent VARCHAR, round VARCHAR)
SELECT other_names FROM table_name_36 WHERE death = "may 23, 1821"
what is other names when death is may 23, 1821?
CREATE TABLE table_name_36 (other_names VARCHAR, death VARCHAR)
SELECT country FROM table_name_45 WHERE player = "tom purtzer"
What country is Tom Purtzer from?
CREATE TABLE table_name_45 (country VARCHAR, player VARCHAR)
SELECT MAX(points) FROM table_name_30 WHERE tyres = "g" AND chassis = "minardi m187"
What is the highest points with g Tyres and Minardi m187?
CREATE TABLE table_name_30 (points INTEGER, tyres VARCHAR, chassis VARCHAR)
SELECT SUM(points) FROM table_name_3 WHERE name = "stephen myler" AND tries < 0
How many Points have a Name of stephen myler, and Tries smaller than 0?
CREATE TABLE table_name_3 (points INTEGER, name VARCHAR, tries VARCHAR)
SELECT date FROM table_name_80 WHERE time = "12:00"
Which Date has a Time of 12:00?
CREATE TABLE table_name_80 (date VARCHAR, time VARCHAR)
SELECT headphone_model FROM table_name_59 WHERE succeeded_by = "sr325"
What is the headphone model which was succeeded by sr325?
CREATE TABLE table_name_59 (headphone_model VARCHAR, succeeded_by VARCHAR)
SELECT home_team AS score FROM table_name_86 WHERE venue = "junction oval"
What was the home team score at junction oval?
CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR)
SELECT cvt_hd FROM table_25839957_5 WHERE market = "Mobile"
What mobile markets have cvt hd?
CREATE TABLE table_25839957_5 (cvt_hd VARCHAR, market VARCHAR)
SELECT SUM(goals_for) FROM table_name_27 WHERE goal_difference < 43 AND position < 3
What is the number of goals when the goal difference was less than 43, and the position less than 3?
CREATE TABLE table_name_27 (goals_for INTEGER, goal_difference VARCHAR, position VARCHAR)
SELECT time_retired FROM table_name_42 WHERE laps > 9 AND grid = 6
What is the time/retired for the car with over 9 laps and a grid of 6?
CREATE TABLE table_name_42 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT outlet FROM table_name_68 WHERE in_state_area = "055 1,497km 2 578mi 2"
What outlet has and in-state area of 055 1,497km 2 578mi 2?
CREATE TABLE table_name_68 (outlet VARCHAR, in_state_area VARCHAR)
SELECT AVG(field_goals) FROM table_name_87 WHERE points > 50 AND extra_points > 0 AND player = "herb graver" AND touchdowns < 15
When Herb Graver played, how many field goals were made when there were more than 50 points, less than 15 touchdowns, and more than 0 extra points?
CREATE TABLE table_name_87 (field_goals INTEGER, touchdowns VARCHAR, player VARCHAR, points VARCHAR, extra_points VARCHAR)