answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT december FROM table_27537870_5 WHERE record = "14-17-4"
Name the december for record 14-17-4
CREATE TABLE table_27537870_5 (december VARCHAR, record VARCHAR)
SELECT release_price___usd__ FROM table_name_12 WHERE i_o_bus = "1 × 6.4 gt/s qpi" AND part_number_s_ = "bx80601975at80601002274aa"
What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 × 6.4 gt/s qpi I/O?
CREATE TABLE table_name_12 (release_price___usd__ VARCHAR, i_o_bus VARCHAR, part_number_s_ VARCHAR)
SELECT fastest_lap FROM table_name_36 WHERE pole_position = "phil hill" AND winning_driver = "wolfgang von trips"
What was the fastest lap in a race where Phil Hill had the Pole position and was won by Wolfgang von Trips?
CREATE TABLE table_name_36 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)
SELECT MAX(against) FROM table_name_29 WHERE date = "27/02/2005"
What is the highest Against, when Date is "27/02/2005"?
CREATE TABLE table_name_29 (against INTEGER, date VARCHAR)
SELECT player FROM table_name_19 WHERE goals = 0 AND tries = 1 AND points = 4 AND position = "prop"
Which player has 0 goals, 1 tries, 4 points, and plays in the Prop position?
CREATE TABLE table_name_19 (player VARCHAR, position VARCHAR, points VARCHAR, goals VARCHAR, tries VARCHAR)
SELECT score FROM table_name_5 WHERE loss = "peavy (4–3)"
Loss of peavy (4–3) is what score?
CREATE TABLE table_name_5 (score VARCHAR, loss VARCHAR)
SELECT T2.dept_name, T2.dept_address, COUNT(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 3
Find the name, address, number of students in the departments that have the top 3 highest number of students.
CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR)
SELECT money_list_rank FROM table_29499399_2 WHERE player = "Cameron Beckman"
Where is Cameron Beckman's rank on the money list?
CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, player VARCHAR)
SELECT venue FROM table_name_25 WHERE result = "won 5-0"
Where was the game with a result of won 5-0?
CREATE TABLE table_name_25 (venue VARCHAR, result VARCHAR)
SELECT story_title FROM table_18305523_2 WHERE artist_s = "Barry Kitson and Farmer"
What is the title of the issue where the art was done by Barry Kitson and Farmer?
CREATE TABLE table_18305523_2 (story_title VARCHAR, artist_s VARCHAR)
SELECT SUM(gold) FROM table_name_74 WHERE silver > 1 AND nation = "germany"
How many golds does Germany have with more than 1 silver?
CREATE TABLE table_name_74 (gold INTEGER, silver VARCHAR, nation VARCHAR)
SELECT MAX(rank) FROM table_name_73 WHERE time = "7:52.65"
what is the highest rank when the time is 7:52.65?
CREATE TABLE table_name_73 (rank INTEGER, time VARCHAR)
SELECT COUNT(crowd) FROM table_name_79 WHERE home_team = "melbourne"
Which total number of Crowd has a Home team of melbourne?
CREATE TABLE table_name_79 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(episode_no) FROM table_21025437_2 WHERE written_by = "Kirstie Falkous & John Regier"
How many episodes were written by Kirstie Falkous & John Regier?
CREATE TABLE table_21025437_2 (episode_no VARCHAR, written_by VARCHAR)
SELECT player FROM table_name_24 WHERE previous_team = "new york knicks"
Which player was previously on the New York Knicks?
CREATE TABLE table_name_24 (player VARCHAR, previous_team VARCHAR)
SELECT podiums FROM table_name_87 WHERE wins = "0" AND fl = "0" AND points = "35"
What is the number of podiums with 0 wins, 0 F.L. and 35 points?
CREATE TABLE table_name_87 (podiums VARCHAR, points VARCHAR, wins VARCHAR, fl VARCHAR)
SELECT SUM(crowd) FROM table_name_79 WHERE away_team = "collingwood"
Which Crowd has an Away team of collingwood?
CREATE TABLE table_name_79 (crowd INTEGER, away_team VARCHAR)
SELECT skip FROM table_name_51 WHERE second = "martin hejhal"
Which skip's second is Martin Hejhal?
CREATE TABLE table_name_51 (skip VARCHAR, second VARCHAR)
SELECT MAX(for_round_trip) FROM table_19787093_1 WHERE till_agra = 1050
If the till agra is 1050, what is the max round trip?
CREATE TABLE table_19787093_1 (for_round_trip INTEGER, till_agra VARCHAR)
SELECT plan_name FROM table_name_14 WHERE monthly_price_incl_vat__czk = "300, 500, 750, 1000"
What plan has monthly prices of 300, 500, 750, 1000?
CREATE TABLE table_name_14 (plan_name VARCHAR, monthly_price_incl_vat__czk VARCHAR)
SELECT MIN(wins) FROM table_name_82 WHERE against = 1348 AND draws < 0
What are the amount of wins when the draws are less than 0 and the against is 1348?
CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, draws VARCHAR)
SELECT SUM(laps) FROM table_name_26 WHERE year = 2012
How many laps were done in 2012?
CREATE TABLE table_name_26 (laps INTEGER, year VARCHAR)
SELECT report FROM table_name_48 WHERE winning_driver = "per-viktor widengren" AND winning_constructor = "alfa romeo"
Name the report for per-viktor widengren and alfa romeo
CREATE TABLE table_name_48 (report VARCHAR, winning_driver VARCHAR, winning_constructor VARCHAR)
SELECT asian___percentage_ FROM table_14754471_1 WHERE year = 2004
What percentage of Asians are there in the year 2004?
CREATE TABLE table_14754471_1 (asian___percentage_ VARCHAR, year VARCHAR)
SELECT DISTINCT firstname FROM list WHERE classroom = 107
What are the first names of students studying in room 107?
CREATE TABLE list (firstname VARCHAR, classroom VARCHAR)
SELECT AVG(position) FROM table_name_76 WHERE against < 11
What is the average position with an against value less than 11?
CREATE TABLE table_name_76 (position INTEGER, against INTEGER)
SELECT nationality FROM table_name_44 WHERE college_junior_club_team__league_ = "northwood school (n.y.)"
What nationality is Northwood School (N.Y.)?
CREATE TABLE table_name_44 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT MIN(year) FROM table_name_88 WHERE points = "0" AND entrant = "scuderia ferrari"
What was the earliest year that Scuderia Ferrari was an entrant with 0 points?
CREATE TABLE table_name_88 (year INTEGER, points VARCHAR, entrant VARCHAR)
SELECT team FROM table_name_87 WHERE primary_sponsor_s_ = "peak fitness"
Which team has Peak Fitness as the primary sponsor?
CREATE TABLE table_name_87 (team VARCHAR, primary_sponsor_s_ VARCHAR)
SELECT AVG(rating___percentage_) FROM table_name_13 WHERE channel = "shandong satellite tv" AND share___percentage_ < 1.74
Name the average rating % for shandong satellite tv and share % less than 1.74
CREATE TABLE table_name_13 (rating___percentage_ INTEGER, channel VARCHAR, share___percentage_ VARCHAR)
SELECT current_club FROM table_23670057_7 WHERE player = "Artūrs Štālbergs"
What is every current club for the player Artūrs Štālbergs?
CREATE TABLE table_23670057_7 (current_club VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_80 WHERE score = "4–6, 6–4, 6–2"
Who did thomaz bellucci play against when the score was 4–6, 6–4, 6–2?
CREATE TABLE table_name_80 (opponent VARCHAR, score VARCHAR)
SELECT winner FROM table_1672976_6 WHERE challenge_leader = "ACC (2-1)"
Who won the game where the Challenge Leader is ACC (2-1)?
CREATE TABLE table_1672976_6 (winner VARCHAR, challenge_leader VARCHAR)
SELECT AVG(apps) FROM table_name_64 WHERE player = "gilberto" AND goals > 1
How many Apps did Player Gilberto with more than 1 Goals have?
CREATE TABLE table_name_64 (apps INTEGER, player VARCHAR, goals VARCHAR)
SELECT building_address, building_phone FROM Apartment_Buildings WHERE building_manager = "Brenden"
Show the addresses and phones of all the buildings managed by "Brenden".
CREATE TABLE Apartment_Buildings (building_address VARCHAR, building_phone VARCHAR, building_manager VARCHAR)
SELECT MIN(property_crimes) FROM table_26060884_2 WHERE burglary = 45350
What was the minimum property crimes stats if the burglary committed was 45350?
CREATE TABLE table_26060884_2 (property_crimes INTEGER, burglary VARCHAR)
SELECT tournament FROM table_name_9 WHERE opponent_in_final = "mansour bahrami eric winogradsky"
In which Tournament was Mansour Bahrami Eric Winogradsky
CREATE TABLE table_name_9 (tournament VARCHAR, opponent_in_final VARCHAR)
SELECT AVG(score) FROM table_name_35 WHERE place = "t1" AND player = "hubert green"
Which Score has a Place of t1, and a Player of hubert green?
CREATE TABLE table_name_35 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT fraction FROM table_name_85 WHERE dots = "0.\dot{3}"
What fraction has a value for dots of 0.\dot{3}?
CREATE TABLE table_name_85 (fraction VARCHAR, dots VARCHAR)
SELECT SUM(average) FROM table_name_62 WHERE interview = 8.75 AND evening_gown > 8.75
What is the total number of averages with an interview of 8.75 when the evening gown number was bigger than 8.75?
CREATE TABLE table_name_62 (average INTEGER, interview VARCHAR, evening_gown VARCHAR)
SELECT english_translation FROM table_name_73 WHERE traditional_chinese = "哀郢"
What is the english translation of the traditional Chinese word, 哀郢?
CREATE TABLE table_name_73 (english_translation VARCHAR, traditional_chinese VARCHAR)
SELECT MAX(number_of_jews__wjc_) FROM table_name_1 WHERE rank___wjc__ = 6 AND rank__arda_ > 8
What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?
CREATE TABLE table_name_1 (number_of_jews__wjc_ INTEGER, rank___wjc__ VARCHAR, rank__arda_ VARCHAR)
SELECT MAX(byes) FROM table_name_14 WHERE geelong_dfl = "anakie" AND against < 2275
What is the highest Byes by Anakie who has an Against smaller than 2275?
CREATE TABLE table_name_14 (byes INTEGER, geelong_dfl VARCHAR, against VARCHAR)
SELECT DISTINCT department_id FROM employees GROUP BY department_id, manager_id HAVING COUNT(employee_id) >= 4
Find the ids of the departments where any manager is managing 4 or more employees.
CREATE TABLE employees (department_id VARCHAR, manager_id VARCHAR, employee_id VARCHAR)
SELECT results¹ FROM table_name_13 WHERE opponent = "luxembourg"
What was the result of the game against Luxembourg?
CREATE TABLE table_name_13 (results¹ VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_44 WHERE event = "ufc 154"
What is the time of ufc 154?
CREATE TABLE table_name_44 (time VARCHAR, event VARCHAR)
SELECT stadium FROM table_28885977_1 WHERE location = "Adelaide, South Australia"
Which stadium is located in Adelaide, South Australia?
CREATE TABLE table_28885977_1 (stadium VARCHAR, location VARCHAR)
SELECT COUNT(bronze) FROM table_name_6 WHERE nation = "jamaica (jam)" AND total < 7
How many bronzes have a Nation of jamaica (jam), and a Total smaller than 7?
CREATE TABLE table_name_6 (bronze VARCHAR, nation VARCHAR, total VARCHAR)
SELECT player FROM table_name_89 WHERE year_s__won = "1991"
Who won in 1991?
CREATE TABLE table_name_89 (player VARCHAR, year_s__won VARCHAR)
SELECT winner FROM table_name_42 WHERE year = "1965"
Who won in 1965?
CREATE TABLE table_name_42 (winner VARCHAR, year VARCHAR)
SELECT COUNT(socialist) FROM table_1463383_1 WHERE peoples_party = "7.5%"
How many socialists correspond to a 7.5% People's Party?
CREATE TABLE table_1463383_1 (socialist VARCHAR, peoples_party VARCHAR)
SELECT corporate_name FROM table_28367242_1 WHERE area__km²_ = "15.63"
What is the name of the corporation with an area of 15.63 km?
CREATE TABLE table_28367242_1 (corporate_name VARCHAR, area__km²_ VARCHAR)
SELECT mens_singles FROM table_28138035_27 WHERE womens_doubles = "Wang Nan Zhang Yining"
Who is listed under mens singles when womens has wang nan zhang yining?
CREATE TABLE table_28138035_27 (mens_singles VARCHAR, womens_doubles VARCHAR)
SELECT COUNT(played) FROM table_12807904_5 WHERE tries_for = "60"
what amount played tried for 60?
CREATE TABLE table_12807904_5 (played VARCHAR, tries_for VARCHAR)
SELECT MIN(gold) FROM table_name_1 WHERE participants < 14 AND rank = 1 AND total > 1
What is the lowest number of Golds that has Participants smaller than 14, and Rank of 1, and Total larger than 1?
CREATE TABLE table_name_1 (gold INTEGER, total VARCHAR, participants VARCHAR, rank VARCHAR)
SELECT lead FROM table_name_61 WHERE date_s__conducted = "5 may 2011"
On 5 May 2011, what was the lead percentage?
CREATE TABLE table_name_61 (lead VARCHAR, date_s__conducted VARCHAR)
SELECT opponents_in_the_final FROM table_2112025_3 WHERE year = 1968
Who were Dürr's opponents in the final on year 1968?
CREATE TABLE table_2112025_3 (opponents_in_the_final VARCHAR, year VARCHAR)
SELECT SUM(season) FROM table_name_31 WHERE driver = "fernando alonso" AND percentage_of_possible_points = "64.12%" AND points < 109
How many seasons have fernando alonso as the driver, and a percentage of possible points of 64.12% and points less than 109?
CREATE TABLE table_name_31 (season INTEGER, points VARCHAR, driver VARCHAR, percentage_of_possible_points VARCHAR)
SELECT MAX(rr1_pts) FROM table_21471897_2 WHERE ranking = 7
Name the most rr1 pts for 7 ranking
CREATE TABLE table_21471897_2 (rr1_pts INTEGER, ranking VARCHAR)
SELECT fastest_lap FROM table_1137695_3 WHERE grand_prix = "Brazilian grand_prix"
Who had the fastest lap at the brazilian grand prix?
CREATE TABLE table_1137695_3 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT set_2 FROM table_name_70 WHERE set_1 = "19–25"
What is the score for set 2 when the score of set 1 is 19–25?
CREATE TABLE table_name_70 (set_2 VARCHAR, set_1 VARCHAR)
SELECT date FROM table_name_37 WHERE tie_no = "34"
What is the date of tie no. 34?
CREATE TABLE table_name_37 (date VARCHAR, tie_no VARCHAR)
SELECT SUM(silver) FROM table_name_33 WHERE rank > 5 AND bronze > 6 AND gold < 2
How many silver medals were awarded to the Nation with less than 2 gold, more than 6 bronze and a rank higher than 5?
CREATE TABLE table_name_33 (silver INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT COUNT(date) FROM table_22893781_6 WHERE team = "Dallas"
Name the number of date for dallas
CREATE TABLE table_22893781_6 (date VARCHAR, team VARCHAR)
SELECT SUM(wins) FROM table_name_47 WHERE year > 1999
What is the sum of wins after 1999?
CREATE TABLE table_name_47 (wins INTEGER, year INTEGER)
SELECT school FROM table_name_27 WHERE pick > 181
Which school was the drafted player from in a pick larger than 181?
CREATE TABLE table_name_27 (school VARCHAR, pick INTEGER)
SELECT agg FROM table_name_47 WHERE team_2 = "partizan"
When Partizan is Team 2, what is the Agg?
CREATE TABLE table_name_47 (agg VARCHAR, team_2 VARCHAR)
SELECT open_cup FROM table_2365150_1 WHERE playoffs = "division Finals"
Name the open cup for division finals
CREATE TABLE table_2365150_1 (open_cup VARCHAR, playoffs VARCHAR)
SELECT MIN(total) FROM table_name_17 WHERE nation = "united states" AND rank < 2
What is the lowest total from United States with a Rank smaller than 2?
CREATE TABLE table_name_17 (total INTEGER, nation VARCHAR, rank VARCHAR)
SELECT muzzle_device FROM table_12834315_1 WHERE hand_guards = "Round"
What's the type of muzzle devices on the models with round hand guards?
CREATE TABLE table_12834315_1 (muzzle_device VARCHAR, hand_guards VARCHAR)
SELECT member FROM table_name_16 WHERE electorate = "cook"
Which member has Cook as the electorate?
CREATE TABLE table_name_16 (member VARCHAR, electorate VARCHAR)
SELECT COUNT(team) FROM table_27713030_16 WHERE high_rebounds = "Chris Bosh , LeBron James (8)"
How many teams were there when chris bosh , lebron james (8) had the high rebounds?
CREATE TABLE table_27713030_16 (team VARCHAR, high_rebounds VARCHAR)
SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000
Show distinct names of singers that have songs with sales more than 300000.
CREATE TABLE song (Singer_ID VARCHAR, Sales INTEGER); CREATE TABLE singer (Name VARCHAR, Singer_ID VARCHAR)
SELECT product_id FROM order_items GROUP BY product_id ORDER BY COUNT(*) DESC LIMIT 1
What is the id of the product that was ordered the most often?
CREATE TABLE order_items (product_id VARCHAR)
SELECT score FROM table_name_27 WHERE tournament = "zadar"
What score has zadar as the tournament?
CREATE TABLE table_name_27 (score VARCHAR, tournament VARCHAR)
SELECT MAX(total) FROM table_name_16 WHERE to_par = "+3"
What is the maximum total when the To par is +3?
CREATE TABLE table_name_16 (total INTEGER, to_par VARCHAR)
SELECT circuit FROM table_1140090_6 WHERE winning_driver = "Clay Regazzoni"
What circuit did Clay Regazzoni win?
CREATE TABLE table_1140090_6 (circuit VARCHAR, winning_driver VARCHAR)
SELECT SUM(extra_points) FROM table_name_92 WHERE touchdowns = 1 AND player = "ross kidston" AND points < 5
How many Extra points have Touchdowns of 1, and a Player of ross kidston, and Points smaller than 5?
CREATE TABLE table_name_92 (extra_points INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR)
SELECT label FROM table_name_77 WHERE catalogue = "7200222"
What is the label for catalogue 7200222?
CREATE TABLE table_name_77 (label VARCHAR, catalogue VARCHAR)
SELECT date FROM table_name_66 WHERE h___a = "a" AND opponents = "bristol city"
When did Manchester United play against Bristol City with an H/A of A?
CREATE TABLE table_name_66 (date VARCHAR, h___a VARCHAR, opponents VARCHAR)
SELECT score FROM table_name_68 WHERE loss = "chad fox (3–3)"
What was the score of the game that had a loss of Chad Fox (3–3)?
CREATE TABLE table_name_68 (score VARCHAR, loss VARCHAR)
SELECT 2011 FROM table_name_97 WHERE 2006 = "2r"
Name the 2011 with 2006 of 2r
CREATE TABLE table_name_97 (Id VARCHAR)
SELECT COUNT(played) FROM table_name_90 WHERE points = 8 AND position > 6
What is the total number played with 8 points and a position more than 6?
CREATE TABLE table_name_90 (played VARCHAR, points VARCHAR, position VARCHAR)
SELECT high_assists FROM table_17311812_8 WHERE team = "Denver"
Who has the most assists on Denver?
CREATE TABLE table_17311812_8 (high_assists VARCHAR, team VARCHAR)
SELECT republican_seat_plurality FROM table_name_30 WHERE republican__democratic = "12/4"
What is the Republican seat plurality of the state with a ratio of 12/4 Republicans to Democrats?
CREATE TABLE table_name_30 (republican_seat_plurality VARCHAR, republican__democratic VARCHAR)
SELECT MAX(year) FROM table_name_10 WHERE competition = "new york city marathon"
What is the highest Year with a Competition that is new york city marathon?
CREATE TABLE table_name_10 (year INTEGER, competition VARCHAR)
SELECT population FROM table_171236_1 WHERE census_ranking = "782 of 5,008"
What was the population for census ranking 782 of 5,008?
CREATE TABLE table_171236_1 (population VARCHAR, census_ranking VARCHAR)
SELECT left_office FROM table_name_34 WHERE entered_office = "1012"
When did the king who entered office in 1012 leave office?
CREATE TABLE table_name_34 (left_office VARCHAR, entered_office VARCHAR)
SELECT suffix FROM table_name_77 WHERE prefix = "thiocyanato- (-scn)"
Which item has the suffix containing thiocyanato- (-scn) as a prefix?
CREATE TABLE table_name_77 (suffix VARCHAR, prefix VARCHAR)
SELECT network FROM table_name_3 WHERE play_by_play = "jack edwards" AND year = 2000
What network has a Play-by-play by Jack Edwards in 2000?
CREATE TABLE table_name_3 (network VARCHAR, play_by_play VARCHAR, year VARCHAR)
SELECT team FROM table_17271495_1 WHERE driver = "Darren Manning"
Name the team of darren manning
CREATE TABLE table_17271495_1 (team VARCHAR, driver VARCHAR)
SELECT opponent FROM table_name_91 WHERE result = "l 23-41"
Who was the Opponent of the Game with a Result of l 23-41?
CREATE TABLE table_name_91 (opponent VARCHAR, result VARCHAR)
SELECT venue FROM table_19576091_1 WHERE date = "October 10"
What was the venue for the match on October 10?
CREATE TABLE table_19576091_1 (venue VARCHAR, date VARCHAR)
SELECT DISTINCT LOCATION FROM station
What are all locations of train stations?
CREATE TABLE station (LOCATION VARCHAR)
SELECT score FROM table_name_98 WHERE home = "new york rangers"
What is the score of the game when the New York Rangers were the home team?
CREATE TABLE table_name_98 (score VARCHAR, home VARCHAR)
SELECT ply__uk, _nz, _au_ FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = "7 wpi"
Name the ply uk, nz, au for wraps per inch 7 wpi
CREATE TABLE table_20297668_1 (ply__uk VARCHAR, _nz VARCHAR, _au_ VARCHAR, wraps_per_inch__wpi_ VARCHAR)
SELECT moving_to FROM table_name_74 WHERE type = "loaned out" AND name = "tragodara"
Where is moving to the type loaned out under the name tragodara?
CREATE TABLE table_name_74 (moving_to VARCHAR, type VARCHAR, name VARCHAR)
SELECT COUNT(bronze) FROM table_name_43 WHERE rank < 6 AND total < 5
How many bronze had a rank of less than 6 and a total less than 5?
CREATE TABLE table_name_43 (bronze VARCHAR, rank VARCHAR, total VARCHAR)
SELECT points FROM table_name_99 WHERE laps = "88" AND grid = "14"
How many points have 88 laps and a grid of 14?
CREATE TABLE table_name_99 (points VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT institution FROM table_name_88 WHERE nickname = "blue hens"
Which institution has a nickname of Blue Hens?
CREATE TABLE table_name_88 (institution VARCHAR, nickname VARCHAR)