question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is Jeremy Hill's hometown?
CREATE TABLE table_11677691_1 (hometown VARCHAR, player VARCHAR)
SELECT hometown FROM table_11677691_1 WHERE player = "Jeremy Hill"
Find the first name of student who is taking classes from accounting and Computer Info. Systems departments
CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR)
SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOI...
What is the name of the episode that had 2.02 million u.s. viewers?
CREATE TABLE table_27892955_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT title FROM table_27892955_1 WHERE us_viewers__million_ = "2.02"
Name the minimum game
CREATE TABLE table_11964263_13 (game INTEGER)
SELECT MIN(game) FROM table_11964263_13
WHAT IS THE TITLE WITH CATEGORY OF best r&b song?
CREATE TABLE table_name_95 (title VARCHAR, category VARCHAR)
SELECT title FROM table_name_95 WHERE category = "best r&b song"
What is the 2013 value with a qf in 2011?
CREATE TABLE table_name_68 (Id VARCHAR)
SELECT 2013 FROM table_name_68 WHERE 2011 = "qf"
What is the Round with an Opponent that is torpedo moscow?
CREATE TABLE table_name_35 (round VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_35 WHERE opponent = "torpedo moscow"
What's the Croatian word for Saturday?
CREATE TABLE table_1277350_5 (saturday_sixth_day VARCHAR, day__see_irregularities__ VARCHAR)
SELECT saturday_sixth_day FROM table_1277350_5 WHERE day__see_irregularities__ = "Croatian"
what is the first performance of the last performance on 03/29/1957
CREATE TABLE table_19189856_1 (first_performance VARCHAR, last_performance VARCHAR)
SELECT first_performance FROM table_19189856_1 WHERE last_performance = "03/29/1957"
What was the earliest Round for Central Florida?
CREATE TABLE table_name_32 (round INTEGER, team VARCHAR)
SELECT MIN(round) FROM table_name_32 WHERE team = "central florida"
What venue features collingwood as the home side?
CREATE TABLE table_name_4 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_4 WHERE home_team = "collingwood"
who put on the show where the numbers were 227412
CREATE TABLE table_27716091_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_27716091_1 WHERE production_code = 227412
Which finalist has Semifinalists of andre agassi (1) lleyton hewitt (14)?
CREATE TABLE table_name_3 (finalist VARCHAR, semifinalists VARCHAR)
SELECT finalist FROM table_name_3 WHERE semifinalists = "andre agassi (1) lleyton hewitt (14)"
How many editions did Club Q-base concept have ?
CREATE TABLE table_29788320_2 (number_of_editions VARCHAR, concept VARCHAR)
SELECT COUNT(number_of_editions) FROM table_29788320_2 WHERE concept = "Club Q-BASE"
What year did he compete in the car class and win 0 stages?
CREATE TABLE table_name_59 (year VARCHAR, class VARCHAR, stages_won VARCHAR)
SELECT year FROM table_name_59 WHERE class = "car" AND stages_won = "0"
How many cuts made when the Top-10 is larger than 1, and the wins greater than 0, and a Top-5 greater than 2, when the events is greater than 18?
CREATE TABLE table_name_74 (cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR, top_10 VARCHAR, wins VARCHAR)
SELECT COUNT(cuts_made) FROM table_name_74 WHERE top_10 > 1 AND wins > 0 AND top_5 > 2 AND events > 18
How many of those who stayed in the southeast had 19,600 emigrated or forcibly removed?
CREATE TABLE table_name_58 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR)
SELECT number_stayed_in_southeast FROM table_name_58 WHERE total_number_emigrated_or_forcibly_removed = "19,600"
What nationality is listed when the college/junior/club team is oshawa generals (ohl)?
CREATE TABLE table_2850912_7 (nationality VARCHAR, college_junior_club_team VARCHAR)
SELECT nationality FROM table_2850912_7 WHERE college_junior_club_team = "Oshawa Generals (OHL)"
Which Wins has a Tournament of totals, and a Cuts made larger than 42?
CREATE TABLE table_name_2 (wins INTEGER, tournament VARCHAR, cuts_made VARCHAR)
SELECT AVG(wins) FROM table_name_2 WHERE tournament = "totals" AND cuts_made > 42
What is the average of the team who has Jacobo as a goalkeeper and has played more than 32 matches?
CREATE TABLE table_name_14 (average INTEGER, goalkeeper VARCHAR, matches VARCHAR)
SELECT AVG(average) FROM table_name_14 WHERE goalkeeper = "jacobo" AND matches > 32
What was the score of the game when the record was 18-20?
CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_77 WHERE record = "18-20"
What is the Visitor of the game with a Record of 21–17–13?
CREATE TABLE table_name_70 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_70 WHERE record = "21–17–13"
What is Season, when Third is "Glen Muirhead"?
CREATE TABLE table_name_62 (season VARCHAR, third VARCHAR)
SELECT season FROM table_name_62 WHERE third = "glen muirhead"
What is the away team at the game with an Attendance of 1,730?
CREATE TABLE table_name_73 (away_team VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_73 WHERE attendance = "1,730"
The person with a Height of 6-8 went to which School?
CREATE TABLE table_name_67 (school VARCHAR, height VARCHAR)
SELECT school FROM table_name_67 WHERE height = "6-8"
What is Tie No, when Date is 18 February 1956, and when Home Team is Charlton Athletic?
CREATE TABLE table_name_10 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_10 WHERE date = "18 february 1956" AND home_team = "charlton athletic"
What is the status of the Wales opposing team?
CREATE TABLE table_name_70 (status VARCHAR, opposing_teams VARCHAR)
SELECT status FROM table_name_70 WHERE opposing_teams = "wales"
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 score FROM table_name_68 WHERE loss = "chad fox (3–3)"
Which average Lost has an Against larger than 19, and a Drawn smaller than 1?
CREATE TABLE table_name_70 (lost INTEGER, against VARCHAR, drawn VARCHAR)
SELECT AVG(lost) FROM table_name_70 WHERE against > 19 AND drawn < 1
What is the verb meaning for *bar as Part 2?
CREATE TABLE table_name_88 (verb_meaning VARCHAR, part_2 VARCHAR)
SELECT verb_meaning FROM table_name_88 WHERE part_2 = "*bar"
What was the role for BBC1?
CREATE TABLE table_name_20 (role VARCHAR, broadcaster VARCHAR)
SELECT role FROM table_name_20 WHERE broadcaster = "bbc1"
What is the issued serial given in 1966?
CREATE TABLE table_name_71 (serials_issued VARCHAR, issued VARCHAR)
SELECT serials_issued FROM table_name_71 WHERE issued = 1966
How many games were played where exactly 15 points were scored?
CREATE TABLE table_name_34 (played INTEGER, points VARCHAR)
SELECT SUM(played) FROM table_name_34 WHERE points = 15
What venue did mahela jayawardene and thilan samaraweera play at?
CREATE TABLE table_name_42 (venue VARCHAR, batting_partners VARCHAR)
SELECT venue FROM table_name_42 WHERE batting_partners = "mahela jayawardene and thilan samaraweera"
What pick was Scott Glennie from the Western hockey league
CREATE TABLE table_name_62 (pick__number VARCHAR, league_from VARCHAR, player VARCHAR)
SELECT pick__number FROM table_name_62 WHERE league_from = "western hockey league" AND player = "scott glennie"
what is the record for date december 11?
CREATE TABLE table_27756314_7 (record VARCHAR, date VARCHAR)
SELECT record FROM table_27756314_7 WHERE date = "December 11"
What Surface has a Date of 15 february 1988?
CREATE TABLE table_name_64 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_64 WHERE date = "15 february 1988"
How many group legs were won with player Mark Dudbridge?
CREATE TABLE table_24334163_1 (Winners VARCHAR, player VARCHAR)
SELECT Winners AS group_legs_won FROM table_24334163_1 WHERE player = "Mark Dudbridge"
Which round is the player from Oregon from?
CREATE TABLE table_name_32 (round VARCHAR, college VARCHAR)
SELECT round FROM table_name_32 WHERE college = "oregon"
Who was the visitor on march 21?
CREATE TABLE table_name_96 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_96 WHERE date = "march 21"
What is the year that the Gary team with mascot of the Tornado joined?
CREATE TABLE table_name_94 (year_joined INTEGER, city VARCHAR, mascot VARCHAR)
SELECT MIN(year_joined) FROM table_name_94 WHERE city = "gary" AND mascot = "tornado"
Name the most total with average less than 36.5 and rank by average of 14
CREATE TABLE table_name_39 (total INTEGER, average VARCHAR, rank_by_average VARCHAR)
SELECT MAX(total) FROM table_name_39 WHERE average < 36.5 AND rank_by_average = 14
What is team 2 where the result is ICL world by 8 wickets?
CREATE TABLE table_17103566_1 (team_2 VARCHAR, result VARCHAR)
SELECT team_2 FROM table_17103566_1 WHERE result = "ICL World by 8 wickets"
What was the position of the Atl. Colegiales team?
CREATE TABLE table_18597302_1 (position INTEGER, team VARCHAR)
SELECT MAX(position) FROM table_18597302_1 WHERE team = "Atl. Colegiales"
Where was the cup on 07.02.2009 held?
CREATE TABLE table_20462111_1 (location VARCHAR, date VARCHAR)
SELECT location FROM table_20462111_1 WHERE date = "07.02.2009"
What's the name of the 2005 tournament that has a 1R in both 2006 and 2002?
CREATE TABLE table_name_14 (Id VARCHAR)
SELECT 2005 FROM table_name_14 WHERE 2006 = "1r" AND 2002 = "1r"
What was the position in 2006?
CREATE TABLE table_name_66 (pos VARCHAR, year VARCHAR)
SELECT pos FROM table_name_66 WHERE year = 2006
What entrant had a chassis of Maserati 250f in 1954?
CREATE TABLE table_name_94 (entrant VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_94 WHERE chassis = "maserati 250f" AND year = 1954
What is the origin of aircraft in service in 1943 and retired in 1954?
CREATE TABLE table_13605170_2 (national_origin VARCHAR, retired VARCHAR, in_service VARCHAR)
SELECT national_origin FROM table_13605170_2 WHERE retired = "1954" AND in_service = "1943"
Who had the high points when high assists is tim duncan (5)?
CREATE TABLE table_27715173_8 (high_points VARCHAR, high_assists VARCHAR)
SELECT high_points FROM table_27715173_8 WHERE high_assists = "Tim Duncan (5)"
What was their record bfore game 54?
CREATE TABLE table_name_66 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_66 WHERE game = 54
When rudolph kleberg (d) is the successor is the reason for vacancy?
CREATE TABLE table_2417445_4 (reason_for_vacancy VARCHAR, successor VARCHAR)
SELECT reason_for_vacancy FROM table_2417445_4 WHERE successor = "Rudolph Kleberg (D)"
what is the minimum district with incumbent being tom reynolds
CREATE TABLE table_13833770_3 (district INTEGER, incumbent VARCHAR)
SELECT MIN(district) FROM table_13833770_3 WHERE incumbent = "Tom Reynolds"
What is the Selsdon for the 17:19 Coombe Road?
CREATE TABLE table_name_14 (selsdon VARCHAR, coombe_road VARCHAR)
SELECT selsdon FROM table_name_14 WHERE coombe_road = "17:19"
What is the total rank where the total is less than 5, and bronze is less than 0?
CREATE TABLE table_name_18 (rank VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT COUNT(rank) FROM table_name_18 WHERE total < 5 AND bronze < 0
what are all the addresses including line 1 and line 2?
CREATE TABLE addresses (line_1 VARCHAR, line_2 VARCHAR)
SELECT line_1, line_2 FROM addresses
Which Overall place has a Yacht name of lg flatron?
CREATE TABLE table_name_57 (overall_place VARCHAR, yacht_name VARCHAR)
SELECT overall_place FROM table_name_57 WHERE yacht_name = "lg flatron"
What points did the ilmor v10 engine get after 1992?
CREATE TABLE table_name_11 (points INTEGER, engine VARCHAR, year VARCHAR)
SELECT SUM(points) FROM table_name_11 WHERE engine = "ilmor v10" AND year > 1992
What is the frequency for the Christian Kawz-fm Translator station?
CREATE TABLE table_134987_3 (frequency VARCHAR, format VARCHAR)
SELECT frequency FROM table_134987_3 WHERE format = "Christian KAWZ-FM translator"
Which Lost has Points larger than 13?
CREATE TABLE table_name_91 (lost INTEGER, points INTEGER)
SELECT AVG(lost) FROM table_name_91 WHERE points > 13
Which Tournament has a Runner(s)-up of bob charles?
CREATE TABLE table_name_49 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT tournament FROM table_name_49 WHERE runner_s__up = "bob charles"
What was the score of the game when Maurice Williams (7) had the high assists?
CREATE TABLE table_name_8 (score VARCHAR, high_assists VARCHAR)
SELECT score FROM table_name_8 WHERE high_assists = "maurice williams (7)"
Which Pick # has an NHL team of detroit red wings?
CREATE TABLE table_name_69 (pick__number VARCHAR, nhl_team VARCHAR)
SELECT pick__number FROM table_name_69 WHERE nhl_team = "detroit red wings"
When the Tier is listed as tier iii, who is the Winner?
CREATE TABLE table_name_79 (winner VARCHAR, tier VARCHAR)
SELECT winner FROM table_name_79 WHERE tier = "tier iii"
Who drove the fastest lap at the Tenneco Automotive Grand Prix of Detroit?
CREATE TABLE table_11056278_3 (fastest_lap VARCHAR, race_name VARCHAR)
SELECT fastest_lap FROM table_11056278_3 WHERE race_name = "Tenneco Automotive Grand Prix of Detroit"
What was the Stadium against Bye?
CREATE TABLE table_name_41 (stadium VARCHAR, opponent VARCHAR)
SELECT stadium FROM table_name_41 WHERE opponent = "bye"
Name the us viewers directed by christine moore
CREATE TABLE table_26914076_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT us_viewers__millions_ FROM table_26914076_2 WHERE directed_by = "Christine Moore"
Who is the Wednesday presenter of the show Big Brother 13?
CREATE TABLE table_11748792_2 (wednesday VARCHAR, series VARCHAR)
SELECT wednesday FROM table_11748792_2 WHERE series = "Big Brother 13"
Who is the famous for that finished 2nd?
CREATE TABLE table_14345690_5 (famous_for VARCHAR, finished VARCHAR)
SELECT famous_for FROM table_14345690_5 WHERE finished = "2nd"
Which Total Goals have Total Apps of 42 (3), and League Goals smaller than 1?
CREATE TABLE table_name_10 (total_goals INTEGER, total_apps VARCHAR, league_goals VARCHAR)
SELECT MAX(total_goals) FROM table_name_10 WHERE total_apps = "42 (3)" AND league_goals < 1
Club Clwb Rygbi Cymru Caerdydd RFC has how many points?
CREATE TABLE table_name_40 (points VARCHAR, club VARCHAR)
SELECT points FROM table_name_40 WHERE club = "clwb rygbi cymru caerdydd rfc"
Name the agency for santa rosa avenue
CREATE TABLE table_25692955_1 (agency VARCHAR, south_west_terminal VARCHAR)
SELECT agency FROM table_25692955_1 WHERE south_west_terminal = "Santa Rosa Avenue"
What is Drawn, when Played is "18", and when Points Against is "478"?
CREATE TABLE table_name_55 (drawn VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT drawn FROM table_name_55 WHERE played = "18" AND points_against = "478"
What's the directx of the model with code name RV770 PRO and a core bigger than 650.0 MHz?
CREATE TABLE table_19161046_1 (directx VARCHAR, code_name VARCHAR, core___mhz__ VARCHAR)
SELECT directx FROM table_19161046_1 WHERE code_name = "RV770 PRO" AND core___mhz__ > 650.0
Who were the opposing team when a Loss was listed with Lowe (1-4)?
CREATE TABLE table_name_63 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_63 WHERE loss = "lowe (1-4)"
What is the team whose driver Jeff Simmons?
CREATE TABLE table_17319931_1 (team VARCHAR, driver VARCHAR)
SELECT team FROM table_17319931_1 WHERE driver = "Jeff Simmons"
How many laps does jean-christophe boullion have with a time/retired of +1 lap?
CREATE TABLE table_name_67 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_67 WHERE time_retired = "+1 lap" AND driver = "jean-christophe boullion"
What is bryan hodge's player number
CREATE TABLE table_22683369_8 (p VARCHAR, player VARCHAR)
SELECT COUNT(p) FROM table_22683369_8 WHERE player = "Bryan Hodge"
What is the total average for McCain% of 55.0% and Obama# higher than 3,487?
CREATE TABLE table_name_52 (total INTEGER, mccain_percentage VARCHAR, obama_number VARCHAR)
SELECT AVG(total) FROM table_name_52 WHERE mccain_percentage = "55.0%" AND obama_number > 3 OFFSET 487
how many points against with tries for being 43
CREATE TABLE table_13758945_3 (points_against VARCHAR, tries_for VARCHAR)
SELECT COUNT(points_against) FROM table_13758945_3 WHERE tries_for = "43"
What date has 10 for the week?
CREATE TABLE table_name_66 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_66 WHERE week = 10
Which FCC info has a Call sign of wsja?
CREATE TABLE table_name_75 (fcc_info VARCHAR, call_sign VARCHAR)
SELECT fcc_info FROM table_name_75 WHERE call_sign = "wsja"
What was the time of round 2 against Taylor Mccorriston?
CREATE TABLE table_name_69 (time VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_69 WHERE round = "2" AND opponent = "taylor mccorriston"
Name the 2012 for us open
CREATE TABLE table_name_55 (tournament VARCHAR)
SELECT 2012 FROM table_name_55 WHERE tournament = "us open"
Who were the producers in 1961?
CREATE TABLE table_name_60 (producer VARCHAR, year VARCHAR)
SELECT producer FROM table_name_60 WHERE year = 1961
What is the lowest crowd at corio oval?
CREATE TABLE table_name_20 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_20 WHERE venue = "corio oval"
avg passengers in 2012 for 2009 more than 104.5 and 2010 less than 162.6 and 2011 less than 141.8 is what?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT AVG(2012) FROM table_name_22 WHERE 2009 > 104.5 AND 2010 < 162.6 AND 2011 < 141.8
Find the number of visitors who did not visit any museum opened after 2010.
CREATE TABLE museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visitor (id VARCHAR); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR)
SELECT COUNT(*) FROM visitor WHERE NOT id IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)
Name the total number of years for chassis of maserati 250f and points less than 0
CREATE TABLE table_name_85 (year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT COUNT(year) FROM table_name_85 WHERE chassis = "maserati 250f" AND points < 0
What school is in Radford, Va?
CREATE TABLE table_name_74 (school VARCHAR, location VARCHAR)
SELECT school FROM table_name_74 WHERE location = "radford, va"
What is the year when they did not qualify for the playoff and the Regular Season shows as 10th?
CREATE TABLE table_name_17 (year VARCHAR, playoffs VARCHAR, regular_season VARCHAR)
SELECT COUNT(year) FROM table_name_17 WHERE playoffs = "did not qualify" AND regular_season = "10th"
who is the founder where date is c. 1900
CREATE TABLE table_11256021_1 (founder VARCHAR, date VARCHAR)
SELECT founder FROM table_11256021_1 WHERE date = "c. 1900"
WHAT IS THE WINNER WITH ATCC ROUND 6?
CREATE TABLE table_name_59 (winner VARCHAR, series VARCHAR)
SELECT winner FROM table_name_59 WHERE series = "atcc round 6"
When is Collins' DOB?
CREATE TABLE table_name_22 (dob VARCHAR, surname VARCHAR)
SELECT dob FROM table_name_22 WHERE surname = "collins"
What Tejano webcast has a callsign of KBDR?
CREATE TABLE table_name_2 (webcast VARCHAR, format VARCHAR, callsign VARCHAR)
SELECT webcast FROM table_name_2 WHERE format = "tejano" AND callsign = "kbdr"
What is the length when the propulsion is controllable pitch propeller?
CREATE TABLE table_28132970_5 (length VARCHAR, propulsion VARCHAR)
SELECT length FROM table_28132970_5 WHERE propulsion = "Controllable pitch propeller"
Tell me the nhl team for 74
CREATE TABLE table_name_75 (nhl_team VARCHAR, pick VARCHAR)
SELECT nhl_team FROM table_name_75 WHERE pick = "74"
Who swam in a lane less than 6 and finished with a time of 2:11.02?
CREATE TABLE table_name_70 (name VARCHAR, lane VARCHAR, time VARCHAR)
SELECT name FROM table_name_70 WHERE lane < 6 AND time = "2:11.02"
How many numbers were recorded under revenue when revenue per capita was $6,126?
CREATE TABLE table_14700336_1 (revenue__millions_ VARCHAR, revenue_per_capita VARCHAR)
SELECT COUNT(revenue__millions_) FROM table_14700336_1 WHERE revenue_per_capita = "$6,126"
What date did the episode written by Mitch Watson and directed by Curt Geda originally air in the U.S.?
CREATE TABLE table_28511558_2 (original_air_date__us_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT original_air_date__us_ FROM table_28511558_2 WHERE directed_by = "Curt Geda" AND written_by = "Mitch Watson"