question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which player played wide receiver after 2008?
CREATE TABLE table_name_17 (player VARCHAR, year VARCHAR, position VARCHAR)
SELECT player FROM table_name_17 WHERE year > 2008 AND position = "wide receiver"
What is the Circuit in the ATCC Round 1 Series with Winner Jim Richards?
CREATE TABLE table_name_34 (circuit VARCHAR, winner VARCHAR, series VARCHAR)
SELECT circuit FROM table_name_34 WHERE winner = "jim richards" AND series = "atcc round 1"
What was the total for united states player phil mickelson?
CREATE TABLE table_name_72 (total INTEGER, country VARCHAR, player VARCHAR)
SELECT MIN(total) FROM table_name_72 WHERE country = "united states" AND player = "phil mickelson"
Show total hours per week and number of games played for students under 20.
CREATE TABLE Student (StuID VARCHAR, age INTEGER); CREATE TABLE Sportsinfo (StuID VARCHAR)
SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20
What round was the nose tackle drafted?
CREATE TABLE table_name_38 (round INTEGER, position VARCHAR)
SELECT SUM(round) FROM table_name_38 WHERE position = "nose tackle"
Where was the game played on 3 january 2009 against east fife?
CREATE TABLE table_name_2 (venue VARCHAR, opponents VARCHAR, date VARCHAR)
SELECT venue FROM table_name_2 WHERE opponents = "east fife" AND date = "3 january 2009"
Name the circuit for hertz british grand prix
CREATE TABLE table_27948565_1 (circuit VARCHAR, grand_prix VARCHAR)
SELECT circuit FROM table_27948565_1 WHERE grand_prix = "Hertz British grand_prix"
When was the aircraft introduced that could seat 115 people?
CREATE TABLE table_name_30 (introduced INTEGER, seating VARCHAR)
SELECT AVG(introduced) FROM table_name_30 WHERE seating = "115"
What is the least common media type in all tracks?
CREATE TABLE MEDIATYPE (Name VARCHAR, MediaTypeId VARCHAR); CREATE TABLE TRACK (MediaTypeId VARCHAR)
SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) LIMIT 1
How many episode titles aired on September 25, 1967?
CREATE TABLE table_25800134_12 (title VARCHAR, airdate VARCHAR)
SELECT COUNT(title) FROM table_25800134_12 WHERE airdate = "September 25, 1967"
Which Silver has a Rank of 1, and a Total smaller than 11?
CREATE TABLE table_name_80 (silver INTEGER, rank VARCHAR, total VARCHAR)
SELECT SUM(silver) FROM table_name_80 WHERE rank = "1" AND total < 11
What is the Game site week 1?
CREATE TABLE table_name_20 (game_site VARCHAR, week VARCHAR)
SELECT game_site FROM table_name_20 WHERE week = 1
What Champion had a Score of 9–1?
CREATE TABLE table_name_82 (champion VARCHAR, score VARCHAR)
SELECT champion FROM table_name_82 WHERE score = "9–1"
how many incumbent with district  being tennessee 5
CREATE TABLE table_1341865_44 (incumbent VARCHAR, district VARCHAR)
SELECT COUNT(incumbent) FROM table_1341865_44 WHERE district = "Tennessee 5"
Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13
CREATE TABLE table_name_89 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, intergiro_classification VARCHAR)
SELECT winner FROM table_name_89 WHERE points_classification = "adriano baffi" AND intergiro_classification = "ján svorada" AND stage = "13"
What municipality is the Harmon Cove station located in?
CREATE TABLE table_name_58 (municipality VARCHAR, station VARCHAR)
SELECT municipality FROM table_name_58 WHERE station = "harmon cove"
Which version of opengl is used by model sgx520?
CREATE TABLE table_1439045_5 (opengl VARCHAR, model VARCHAR)
SELECT opengl AS ES FROM table_1439045_5 WHERE model = "SGX520"
What away team played when the home team was south melbourne?
CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_33 WHERE home_team = "south melbourne"
What model has a launch of September 3, 2010?
CREATE TABLE table_26040604_1 (model VARCHAR, launch VARCHAR)
SELECT model FROM table_26040604_1 WHERE launch = "September 3, 2010"
What was the money value that went along with the score of 68-67-69-76=280?
CREATE TABLE table_name_42 (money___$__ VARCHAR, score VARCHAR)
SELECT money___$__ FROM table_name_42 WHERE score = 68 - 67 - 69 - 76 = 280
How many templates have template type code CV?
CREATE TABLE Templates (template_type_code VARCHAR)
SELECT COUNT(*) FROM Templates WHERE template_type_code = "CV"
What is the losing bonus when drawn was 0, and there were 101 points?
CREATE TABLE table_name_53 (losing_bonus VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT losing_bonus FROM table_name_53 WHERE drawn = "0" AND points = "101"
How man teams had a total weight of 57.5?
CREATE TABLE table_2581397_3 (group VARCHAR, weight__kg_ VARCHAR)
SELECT COUNT(group) FROM table_2581397_3 WHERE weight__kg_ = "57.5"
What is the penalty for Jonathan Toews?
CREATE TABLE table_name_19 (penalty VARCHAR, player VARCHAR)
SELECT penalty FROM table_name_19 WHERE player = "jonathan toews"
What is Date Sent, when Signal Power ( kW ) is less than 126, when Arrival Date is "January 2059", and when HD Designation is "HD193664"?
CREATE TABLE table_name_75 (date_sent VARCHAR, hd_designation VARCHAR, signal_power___kw__ VARCHAR, arrival_date VARCHAR)
SELECT date_sent FROM table_name_75 WHERE signal_power___kw__ < 126 AND arrival_date = "january 2059" AND hd_designation = "hd193664"
Which captain has billy bonds as the manager?
CREATE TABLE table_name_34 (captain VARCHAR, manager VARCHAR)
SELECT captain FROM table_name_34 WHERE manager = "billy bonds"
What is listed for the Bronze, with the Location of Bangkok, and the Year of 1978?
CREATE TABLE table_name_6 (bronze VARCHAR, location VARCHAR, year VARCHAR)
SELECT bronze FROM table_name_6 WHERE location = "bangkok" AND year = 1978
who is the the pole position with date being august 10
CREATE TABLE table_14638077_2 (pole_position VARCHAR, date VARCHAR)
SELECT pole_position FROM table_14638077_2 WHERE date = "August 10"
What game happened on December 19?
CREATE TABLE table_15780049_5 (game INTEGER, date VARCHAR)
SELECT MAX(game) FROM table_15780049_5 WHERE date = "December 19"
What shows for Playoffs when the Open Cup shows as did not qualify, and a Regular Season was 3rd, south atlantic?
CREATE TABLE table_name_52 (playoffs VARCHAR, open_cup VARCHAR, regular_season VARCHAR)
SELECT playoffs FROM table_name_52 WHERE open_cup = "did not qualify" AND regular_season = "3rd, south atlantic"
What is the attendance number later than week 9 on November 20, 1983?
CREATE TABLE table_name_45 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_45 WHERE week > 9 AND date = "november 20, 1983"
What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm?
CREATE TABLE table_18821196_1 (status VARCHAR, weekly_schedule VARCHAR)
SELECT status FROM table_18821196_1 WHERE weekly_schedule = "Monday to Thursday @ 11:00 pm"
how many candidates with result being new seat democratic gain
CREATE TABLE table_1341604_10 (candidates VARCHAR, result VARCHAR)
SELECT COUNT(candidates) FROM table_1341604_10 WHERE result = "New seat Democratic gain"
Can you tell the Lost that has the Try BP of 10, and the Club of uwic rfc?
CREATE TABLE table_name_50 (lost VARCHAR, try_bp VARCHAR, club VARCHAR)
SELECT lost FROM table_name_50 WHERE try_bp = "10" AND club = "uwic rfc"
What is the highest Number of Households, when Per Capita Income is "$25,557", and when Population is less than "22,330"?
CREATE TABLE table_name_57 (number_of_households INTEGER, per_capita_income VARCHAR, population VARCHAR)
SELECT MAX(number_of_households) FROM table_name_57 WHERE per_capita_income = "$25,557" AND population < 22 OFFSET 330
Which opponent has a Record of 54-38?
CREATE TABLE table_name_73 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_73 WHERE record = "54-38"
How many passengers (in millions) flew from Seoul in 2012?
CREATE TABLE table_16066063_1 (city_1 VARCHAR)
SELECT 2012 AS _passengers__in_millions_ FROM table_16066063_1 WHERE city_1 = "Seoul"
What county is Fountain City?
CREATE TABLE table_name_8 (_number___county VARCHAR, location VARCHAR)
SELECT _number___county FROM table_name_8 WHERE location = "fountain city"
what are the locations that joined in 2008
CREATE TABLE table_11658094_1 (location VARCHAR, joined VARCHAR)
SELECT location FROM table_11658094_1 WHERE joined = "2008"
What type of song is larger than 8 and named 實情?
CREATE TABLE table_name_50 (kind_of_the_song VARCHAR, number VARCHAR, name_of_the_song VARCHAR)
SELECT kind_of_the_song FROM table_name_50 WHERE number > 8 AND name_of_the_song = "實情"
Who was the home team at Kardinia Park?
CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_45 WHERE venue = "kardinia park"
Show name, class, and date for all races.
CREATE TABLE race (name VARCHAR, CLASS VARCHAR, date VARCHAR)
SELECT name, CLASS, date FROM race
How many teams did Bob Peppler play for?
CREATE TABLE table_1213511_3 (nhl_team VARCHAR, player VARCHAR)
SELECT COUNT(nhl_team) FROM table_1213511_3 WHERE player = "Bob Peppler"
Which player placed t10?
CREATE TABLE table_name_72 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_72 WHERE place = "t10"
What is the number of losses when the goal difference was -8, and position is smaller than 10?
CREATE TABLE table_name_37 (losses VARCHAR, goal_difference VARCHAR, position VARCHAR)
SELECT COUNT(losses) FROM table_name_37 WHERE goal_difference = -8 AND position < 10
Which 1st Party has an Election of 1893 by-election?
CREATE TABLE table_name_10 (election VARCHAR)
SELECT 1 AS st_party FROM table_name_10 WHERE election = "1893 by-election"
At what location was there a loss on 20 jan?
CREATE TABLE table_name_98 (location VARCHAR, result VARCHAR, date VARCHAR)
SELECT location FROM table_name_98 WHERE result = "loss" AND date = "20 jan"
What is the DuBose Porter with Roy Barnes at 54%?
CREATE TABLE table_name_16 (dubose_porter VARCHAR, roy_barnes VARCHAR)
SELECT dubose_porter FROM table_name_16 WHERE roy_barnes = "54%"
What is the time of the rider with a 398cc yamaha?
CREATE TABLE table_name_85 (time VARCHAR, team VARCHAR)
SELECT time FROM table_name_85 WHERE team = "398cc yamaha"
What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%?
CREATE TABLE table_name_88 (Id VARCHAR)
SELECT 2012 FROM table_name_88 WHERE 2011 = "7.7%" AND 2008 = "7.9%"
in the leage what was the minimum 4wi
CREATE TABLE table_28798161_3 (Id VARCHAR)
SELECT MIN(4 AS wi) FROM table_28798161_3
What's the title of the episode written by Harry Winkler?
CREATE TABLE table_2342078_5 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_2342078_5 WHERE written_by = "Harry Winkler"
Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.
CREATE TABLE member (member_id VARCHAR, Hometown VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR)
SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member ...
Which final has a run of 1:19.49?
CREATE TABLE table_name_18 (final VARCHAR, run_3 VARCHAR)
SELECT final FROM table_name_18 WHERE run_3 = "1:19.49"
What is the losing bonus of the team with 22 pays and 428 points against?
CREATE TABLE table_name_9 (losing_bonus VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT losing_bonus FROM table_name_9 WHERE played = "22" AND points_against = "428"
Who directed episode number 2?
CREATE TABLE table_25737761_3 (director VARCHAR, no VARCHAR)
SELECT director FROM table_25737761_3 WHERE no = 2
What was the lowest year that the engine Ilmor 2175a 3.5 v10 was used?
CREATE TABLE table_name_64 (year INTEGER, engine VARCHAR)
SELECT MIN(year) FROM table_name_64 WHERE engine = "ilmor 2175a 3.5 v10"
Which film did Al Mackay write?
CREATE TABLE table_name_8 (film VARCHAR, writer_s_ VARCHAR)
SELECT film FROM table_name_8 WHERE writer_s_ = "al mackay"
What kind of Disc number has a Track number of 02 on 7 september 2004?
CREATE TABLE table_name_19 (disc_number VARCHAR, track_number VARCHAR, release_date VARCHAR)
SELECT disc_number FROM table_name_19 WHERE track_number = "02" AND release_date = "7 september 2004"
What is the highest choice?
CREATE TABLE table_10361230_1 (choice INTEGER)
SELECT MAX(choice) FROM table_10361230_1
Who was the runner-up when the winning score was –28 (66-67-68-64-67=332)?
CREATE TABLE table_name_81 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT runner_s__up FROM table_name_81 WHERE winning_score = –28(66 - 67 - 68 - 64 - 67 = 332)
What is the name of the team from the Elverado Trico school in football?
CREATE TABLE table_18304058_2 (team_name VARCHAR, sports VARCHAR, schools VARCHAR)
SELECT team_name FROM table_18304058_2 WHERE sports = "Football" AND schools = "Elverado Trico"
What is segment C in s07e05
CREATE TABLE table_15187735_14 (segment_c VARCHAR, netflix VARCHAR)
SELECT segment_c FROM table_15187735_14 WHERE netflix = "S07E05"
Which Date has a Type of 4-6-0, and a Number larger than 11?
CREATE TABLE table_name_22 (date VARCHAR, type VARCHAR, number VARCHAR)
SELECT date FROM table_name_22 WHERE type = "4-6-0" AND number > 11
What pick did the Minnesota Twins have?
CREATE TABLE table_name_68 (pick INTEGER, team VARCHAR)
SELECT AVG(pick) FROM table_name_68 WHERE team = "minnesota twins"
What percent of the vote went to Meg Whitman in the poll taken on October 21, 2010.
CREATE TABLE table_name_51 (meg_whitman__r_ VARCHAR, date_s__administered VARCHAR)
SELECT meg_whitman__r_ FROM table_name_51 WHERE date_s__administered = "october 21, 2010"
Name the candidates where incumbent Carl Vinson is?
CREATE TABLE table_1341884_12 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341884_12 WHERE incumbent = "Carl Vinson"
what is the date of the game 23?
CREATE TABLE table_27700375_7 (date VARCHAR, game VARCHAR)
SELECT date FROM table_27700375_7 WHERE game = 23
What is the alternate title/translation of the series that premiered on December 12, 2006?
CREATE TABLE table_name_40 (alternate_title_translation VARCHAR, series_premiere VARCHAR)
SELECT alternate_title_translation FROM table_name_40 WHERE series_premiere = "december 12, 2006"
Who played Melbourne as the home team?
CREATE TABLE table_name_38 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_38 WHERE away_team = "melbourne"
What is the highest number of Silvers for rank 7 teams with 1 gold and under 1 bronze?
CREATE TABLE table_name_37 (silver INTEGER, rank VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT MAX(silver) FROM table_name_37 WHERE bronze < 1 AND gold = 1 AND rank = "7"
What is the sum of share with a rating larger than 1.2, a 3 rank timeslot, and 6.07 million viewers?
CREATE TABLE table_name_42 (share INTEGER, viewers__millions_ VARCHAR, rating VARCHAR, rank__timeslot_ VARCHAR)
SELECT SUM(share) FROM table_name_42 WHERE rating > 1.2 AND rank__timeslot_ = 3 AND viewers__millions_ = 6.07
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 thursday_day_five FROM table_1277350_7 WHERE friday_day_six = "პარასკევი p'arask'evi"
What's the total number of all divisions during the 2006/07 season where they scored more than 1 goal?
CREATE TABLE table_name_54 (division VARCHAR, season VARCHAR, goals VARCHAR)
SELECT COUNT(division) FROM table_name_54 WHERE season = "2006/07" AND goals > 1
display all the information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary.
CREATE TABLE employees (salary VARCHAR, first_name VARCHAR)
SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC
What is the average for matches with a prize money amount of £3,000?
CREATE TABLE table_name_56 (matches INTEGER, prize_money VARCHAR)
SELECT AVG(matches) FROM table_name_56 WHERE prize_money = "£3,000"
How much Attendance has an Opponent of swindon wildcats?
CREATE TABLE table_name_90 (attendance VARCHAR, opponent VARCHAR)
SELECT COUNT(attendance) FROM table_name_90 WHERE opponent = "swindon wildcats"
Which month in 2013 did the U.S. use the ruby birthstone?
CREATE TABLE table_name_76 (month VARCHAR, us__2013_ VARCHAR)
SELECT month FROM table_name_76 WHERE us__2013_ = "ruby"
What is the Position of the person with a total less than 16.65 and an A score of 7.4?
CREATE TABLE table_name_40 (position INTEGER, total VARCHAR, a_score VARCHAR)
SELECT MIN(position) FROM table_name_40 WHERE total < 16.65 AND a_score = 7.4
What is every year when the reporters were Lesley Visser and Robin Roberts?
CREATE TABLE table_22654139_3 (year VARCHAR, reporters VARCHAR)
SELECT year FROM table_22654139_3 WHERE reporters = "Lesley Visser and Robin Roberts"
What is the fewest goals against for teams with more than 27 losses?
CREATE TABLE table_name_97 (goals_against INTEGER, lost INTEGER)
SELECT MIN(goals_against) FROM table_name_97 WHERE lost > 27
What is the Site when the date is 11/11/1950?
CREATE TABLE table_name_37 (site VARCHAR, date VARCHAR)
SELECT site FROM table_name_37 WHERE date = "11/11/1950"
What is the class of the Coca-cola classic 12 hours of sebring race?
CREATE TABLE table_name_35 (class VARCHAR, race VARCHAR)
SELECT class FROM table_name_35 WHERE race = "coca-cola classic 12 hours of sebring"
Give me an english example of a variant with niqqud of וֹ?
CREATE TABLE table_name_96 (english_example VARCHAR, variant__with_niqqud__ VARCHAR)
SELECT english_example FROM table_name_96 WHERE variant__with_niqqud__ = "וֹ"
Who was in 1963?
CREATE TABLE table_name_87 (entrant VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_87 WHERE year = 1963
What is the overall number for Louisiana Tech college, and a pick more than 10?
CREATE TABLE table_name_59 (overall INTEGER, college VARCHAR, pick__number VARCHAR)
SELECT SUM(overall) FROM table_name_59 WHERE college = "louisiana tech" AND pick__number > 10
what is the score when the game is higher than 66 on march 28?
CREATE TABLE table_name_82 (score VARCHAR, game VARCHAR, march VARCHAR)
SELECT score FROM table_name_82 WHERE game > 66 AND march = 28
What was the population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001?
CREATE TABLE table_name_85 (pop__2010_ INTEGER, latitude VARCHAR, water__sqmi_ VARCHAR)
SELECT MAX(pop__2010_) FROM table_name_85 WHERE latitude = 48.853051 AND water__sqmi_ < 0.9590000000000001
Who placed highest with a time of 1:47.70?
CREATE TABLE table_name_22 (rank INTEGER, time VARCHAR)
SELECT MIN(rank) FROM table_name_22 WHERE time = "1:47.70"
What is the largest crowd for an Away team of st kilda?
CREATE TABLE table_name_32 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_32 WHERE away_team = "st kilda"
what is the name of the instructor who is in Statistics department and earns the lowest salary?
CREATE TABLE instructor (name VARCHAR, dept_name VARCHAR, salary VARCHAR)
SELECT name FROM instructor WHERE dept_name = 'Statistics' ORDER BY salary LIMIT 1
List all employees in the circulation history of the document with id 1. List the employee's name.
CREATE TABLE Circulation_History (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR)
SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1
What is the kickoff time for week 3?
CREATE TABLE table_name_25 (kickoff_ VARCHAR, a_ VARCHAR, week VARCHAR)
SELECT kickoff_[a_] FROM table_name_25 WHERE week = "3"
What was the score on April 25?
CREATE TABLE table_name_9 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_9 WHERE date = "april 25"
What was the Cowboys' record for Nov. 5, 1966?
CREATE TABLE table_22801165_1 (record VARCHAR, date VARCHAR)
SELECT record FROM table_22801165_1 WHERE date = "Nov. 5"
Which Points have an Opponent of vancouver canucks, and a November smaller than 11?
CREATE TABLE table_name_42 (points INTEGER, opponent VARCHAR, november VARCHAR)
SELECT AVG(points) FROM table_name_42 WHERE opponent = "vancouver canucks" AND november < 11
Which Away team score has a Crowd larger than 6,000?
CREATE TABLE table_name_21 (away_team VARCHAR, crowd INTEGER)
SELECT away_team AS score FROM table_name_21 WHERE crowd > 6 OFFSET 000
What country has a score less than 68, and paul casey as the player?
CREATE TABLE table_name_95 (country VARCHAR, score VARCHAR, player VARCHAR)
SELECT country FROM table_name_95 WHERE score < 68 AND player = "paul casey"
What is the f bolt for 11.35 p1 diameter (mm)?
CREATE TABLE table_26967904_2 (f_bolt VARCHAR, p1_diameter__mm_ VARCHAR)
SELECT f_bolt FROM table_26967904_2 WHERE p1_diameter__mm_ = "11.35"
How many ties are there where attendance is 11,997?
CREATE TABLE table_name_43 (tie_no VARCHAR, attendance VARCHAR)
SELECT tie_no FROM table_name_43 WHERE attendance = "11,997"