question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Who directed the movie when John Wayne played the role of John Travers?
CREATE TABLE table_name_54 (director VARCHAR, role VARCHAR)
SELECT director FROM table_name_54 WHERE role = "john travers"
Which flag was on the Green Marine's boat?
CREATE TABLE table_19872699_1 (flag VARCHAR, builder VARCHAR)
SELECT flag FROM table_19872699_1 WHERE builder = "Green Marine"
How many total bronze medals did Canada receive?
CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR)
SELECT MAX(bronze) FROM table_name_58 WHERE nation = "canada"
When winston reid category:articles with hcards is the player what is the club?
CREATE TABLE table_28286776_50 (club_s_ VARCHAR, player VARCHAR)
SELECT club_s_ FROM table_28286776_50 WHERE player = "Winston Reid Category:Articles with hCards"
What was the score when Nacional was the champion, River Plate was the runner-up, and the venue was Centenario?
CREATE TABLE table_name_13 (score VARCHAR, runner_up VARCHAR, champion VARCHAR, venue VARCHAR)
SELECT score FROM table_name_13 WHERE champion = "nacional" AND venue = "centenario" AND runner_up = "river plate"
I want the model for digital of dvb-t (cx22702) and tuner of thomson dtt75105
CREATE TABLE table_name_7 (model VARCHAR, digital VARCHAR, tuner VARCHAR)
SELECT model FROM table_name_7 WHERE digital = "dvb-t (cx22702)" AND tuner = "thomson dtt75105"
What is Australian, when Examples is "elysium, emeritus, epitome, erotica"?
CREATE TABLE table_name_50 (australian VARCHAR, examples VARCHAR)
SELECT australian FROM table_name_50 WHERE examples = "elysium, emeritus, epitome, erotica"
When was the first game associated with over 4 losses?
CREATE TABLE table_name_89 (first_game VARCHAR, lost INTEGER)
SELECT first_game FROM table_name_89 WHERE lost > 4
List the names of courses in alphabetical order?
CREATE TABLE courses (course_name VARCHAR)
SELECT course_name FROM courses ORDER BY course_name
What is the title of the episode directed by Christopher Petry with the production cod 3x6006?
CREATE TABLE table_26464364_1 (title VARCHAR, directed_by VARCHAR, production_code VARCHAR)
SELECT title FROM table_26464364_1 WHERE directed_by = "Christopher Petry" AND production_code = "3X6006"
What was the highest SaffirSimpson with an NHC advisory of 18?
CREATE TABLE table_name_8 (saffir_simpson_category INTEGER, nhc_advisory_number VARCHAR)
SELECT MAX(saffir_simpson_category) FROM table_name_8 WHERE nhc_advisory_number = "18"
What is Nation, when Model is M1895 & M1897 Carbine?
CREATE TABLE table_name_76 (nation VARCHAR, model VARCHAR)
SELECT nation FROM table_name_76 WHERE model = "m1895 & m1897 carbine"
William Fadjo Cravens serves the fourth district of Arkansas.
CREATE TABLE table_1342270_5 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342270_5 WHERE incumbent = "William Fadjo Cravens"
How many years have an accolade of 50 best albums of the year, with #3 as the rank?
CREATE TABLE table_name_6 (year INTEGER, accolade VARCHAR, rank VARCHAR)
SELECT SUM(year) FROM table_name_6 WHERE accolade = "50 best albums of the year" AND rank = "#3"
Which driver had a Part 1 time of 1:13.306?
CREATE TABLE table_name_56 (driver VARCHAR, part_1 VARCHAR)
SELECT driver FROM table_name_56 WHERE part_1 = "1:13.306"
What Opponent has a 6-0 Record?
CREATE TABLE table_name_54 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_54 WHERE record = "6-0"
What's the sum of attendance when banbury united is the away team and tie no is over 102?
CREATE TABLE table_name_62 (attendance INTEGER, away_team VARCHAR, tie_no VARCHAR)
SELECT SUM(attendance) FROM table_name_62 WHERE away_team = "banbury united" AND tie_no > 102
What is the most recent year with a finish in 2nd position?
CREATE TABLE table_name_22 (season INTEGER, position VARCHAR)
SELECT MAX(season) FROM table_name_22 WHERE position = "2nd"
What date was Wet Hare, directed by Robert McKimson, released?
CREATE TABLE table_name_61 (release_date VARCHAR, director VARCHAR, title VARCHAR)
SELECT release_date FROM table_name_61 WHERE director = "robert mckimson" AND title = "wet hare"
When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven?
CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, team VARCHAR, driver VARCHAR)
SELECT MAX(laps) FROM table_name_65 WHERE team = "mi-jack conquest racing" AND driver = "justin wilson" AND grid < 5
which CFL team has a player called Peter Hogarth?
CREATE TABLE table_name_23 (cfl_team VARCHAR, player VARCHAR)
SELECT cfl_team FROM table_name_23 WHERE player = "peter hogarth"
What is the total number of laps that were completed in 1949?
CREATE TABLE table_name_23 (laps VARCHAR, year VARCHAR)
SELECT COUNT(laps) FROM table_name_23 WHERE year = "1949"
Which school has yes for soccer, tennis and indoor track.
CREATE TABLE table_name_73 (school VARCHAR, indoor_track VARCHAR, soccer VARCHAR, tennis VARCHAR)
SELECT school FROM table_name_73 WHERE soccer = "yes" AND tennis = "yes" AND indoor_track = "yes"
Who was Carlton's away team opponent?
CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_79 WHERE home_team = "carlton"
what is the date when the nationality is united kingdom, the type is freighter and the displacement is 5,145 t?
CREATE TABLE table_name_14 (date VARCHAR, displacement VARCHAR, nationality VARCHAR, type VARCHAR)
SELECT date FROM table_name_14 WHERE nationality = "united kingdom" AND type = "freighter" AND displacement = "5,145 t"
which is the biggest number of episode in the season, where the number of the episode in series is 20?
CREATE TABLE table_23117208_3 (no_in_season INTEGER, no_in_series VARCHAR)
SELECT MAX(no_in_season) FROM table_23117208_3 WHERE no_in_series = 20
What is the Name of the stage with S. Loeb as the Winner with a Length of 13.04km and a Stage of SS12?
CREATE TABLE table_name_8 (name VARCHAR, stage VARCHAR, winner VARCHAR, length VARCHAR)
SELECT name FROM table_name_8 WHERE winner = "s. loeb" AND length = "13.04km" AND stage = "ss12"
Which Round has a College/Junior/Club Team (League) of hamilton red wings (oha), and a Position of rw?
CREATE TABLE table_name_63 (round INTEGER, college_junior_club_team__league_ VARCHAR, position VARCHAR)
SELECT AVG(round) FROM table_name_63 WHERE college_junior_club_team__league_ = "hamilton red wings (oha)" AND position = "rw"
Show the member names which are in both the party with id 3 and the party with id 1.
CREATE TABLE member (member_name VARCHAR, party_id VARCHAR)
SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1
What position is Justin Shaw in?
CREATE TABLE table_16575609_3 (position VARCHAR, player VARCHAR)
SELECT position FROM table_16575609_3 WHERE player = "Justin Shaw"
What is February, when Opponent is "Montreal Canadiens"?
CREATE TABLE table_name_74 (february VARCHAR, opponent VARCHAR)
SELECT february FROM table_name_74 WHERE opponent = "montreal canadiens"
What was the installation date in El Paso, Texas?
CREATE TABLE table_21821014_1 (installation_date VARCHAR, location VARCHAR)
SELECT installation_date FROM table_21821014_1 WHERE location = "El Paso, Texas"
Which Race Name has Goodwood in the Curcuit?
CREATE TABLE table_name_4 (race_name VARCHAR, circuit VARCHAR)
SELECT race_name FROM table_name_4 WHERE circuit = "goodwood"
What were the total number of field goals when there were 0 touchdowns and 2 extra points?
CREATE TABLE table_name_80 (field_goals VARCHAR, touchdowns VARCHAR, extra_points VARCHAR)
SELECT COUNT(field_goals) FROM table_name_80 WHERE touchdowns = 0 AND extra_points = 2
Which Region has a Date of early september 1999?
CREATE TABLE table_name_15 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_15 WHERE date = "early september 1999"
What is the Home Ground with the Location n/a for the Club kcdrsc?
CREATE TABLE table_name_39 (home_ground VARCHAR, location VARCHAR, club VARCHAR)
SELECT home_ground FROM table_name_39 WHERE location = "n/a" AND club = "kcdrsc"
What were the notes for the time 45.74?
CREATE TABLE table_name_89 (notes VARCHAR, time VARCHAR)
SELECT notes FROM table_name_89 WHERE time = "45.74"
Which developer has a year of cancelled releases?
CREATE TABLE table_name_96 (developer VARCHAR, year_of_release VARCHAR)
SELECT developer FROM table_name_96 WHERE year_of_release = "cancelled"
How many games is collingwood the home side?
CREATE TABLE table_name_4 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_4 WHERE home_team = "collingwood"
Can you tell me the average Laps that has the Time of +17.485, and the Grid smaller than 7?
CREATE TABLE table_name_16 (laps INTEGER, time VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_16 WHERE time = "+17.485" AND grid < 7
List the writers of the books in ascending alphabetical order.
CREATE TABLE book (Writer VARCHAR)
SELECT Writer FROM book ORDER BY Writer
On what date did the Bills play the Houston Oilers before week 12?
CREATE TABLE table_name_79 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_79 WHERE week < 12 AND opponent = "houston oilers"
Which Overall is the lowest one that has a Round of 3?
CREATE TABLE table_name_87 (overall INTEGER, round VARCHAR)
SELECT MIN(overall) FROM table_name_87 WHERE round = 3
What city does the employee who helps the customer with postal code 70174 live in?
CREATE TABLE EMPLOYEE (City VARCHAR, EmployeeId VARCHAR); CREATE TABLE CUSTOMER (SupportRepId VARCHAR, PostalCode VARCHAR)
SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = "70174"
What is the smallest value of population if the value for Serbs is 73.53%?
CREATE TABLE table_2374338_2 (population INTEGER, serbs VARCHAR)
SELECT MIN(population) FROM table_2374338_2 WHERE serbs = "73.53%"
How many bronze medals does the nation ranked number 1 have?
CREATE TABLE table_name_80 (bronze VARCHAR, rank VARCHAR)
SELECT bronze FROM table_name_80 WHERE rank = "1"
Which Years at club have a Debut year of 1930, and Games larger than 7, and a Player of colin benham?
CREATE TABLE table_name_38 (years_at_club VARCHAR, player VARCHAR, debut_year VARCHAR, games VARCHAR)
SELECT years_at_club FROM table_name_38 WHERE debut_year = 1930 AND games > 7 AND player = "colin benham"
Which Home team that has a Tie no of 20?
CREATE TABLE table_name_74 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_74 WHERE tie_no = "20"
What is the Date of the Competition with a Result of 3–0?
CREATE TABLE table_name_75 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_75 WHERE result = "3–0"
What are the titles of episodes directed by whitney ransick?
CREATE TABLE table_2866514_1 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_2866514_1 WHERE directed_by = "Whitney Ransick"
Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures?
CREATE TABLE table_name_35 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR, launches VARCHAR)
SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = 2
How many games were played when the loss is less than 5 and points greater than 41?
CREATE TABLE table_name_85 (played INTEGER, lost VARCHAR, points VARCHAR)
SELECT SUM(played) FROM table_name_85 WHERE lost < 5 AND points > 41
During the first phase portion of phase and having 16 clubs involved; what would you find for the winners from previous round?
CREATE TABLE table_1281200_1 (winners_from_previous_round VARCHAR, phase VARCHAR, clubs_involved VARCHAR)
SELECT winners_from_previous_round FROM table_1281200_1 WHERE phase = "First phase" AND clubs_involved = 16
What is the highest number of points for a position less than 3 and less than 1 loss?
CREATE TABLE table_name_19 (points INTEGER, position VARCHAR, lost VARCHAR)
SELECT MAX(points) FROM table_name_19 WHERE position < 3 AND lost < 1
The Powerbook 100 model has what processor?
CREATE TABLE table_name_58 (processor VARCHAR, model VARCHAR)
SELECT processor FROM table_name_58 WHERE model = "powerbook 100"
For home of River Plate, what is the first leg listed?
CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR)
SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = "River Plate"
what is the highest number of dismissals in a match with 8 innings
CREATE TABLE table_19870086_24 (dismissals VARCHAR, innings VARCHAR)
SELECT COUNT(dismissals) FROM table_19870086_24 WHERE innings = 8
What circuit had rnd 3?
CREATE TABLE table_24037660_2 (circuit VARCHAR, rnd VARCHAR)
SELECT circuit FROM table_24037660_2 WHERE rnd = 3
What years did the player in Orlando play that is from the United States, and is part of the school/club team Clemson?
CREATE TABLE table_name_7 (years_in_orlando VARCHAR, nationality VARCHAR, school_club_team VARCHAR)
SELECT years_in_orlando FROM table_name_7 WHERE nationality = "united states" AND school_club_team = "clemson"
How many games share their western title with the Chinese title of 摸摸耀西-云中漫步 ?
CREATE TABLE table_1616608_2 (western_title VARCHAR, chinese_title VARCHAR)
SELECT COUNT(western_title) FROM table_1616608_2 WHERE chinese_title = "摸摸耀西-云中漫步"
Are there registration notes on usek.edu.lb?
CREATE TABLE table_1160660_1 (official_registration_notes VARCHAR, website VARCHAR)
SELECT official_registration_notes FROM table_1160660_1 WHERE website = "usek.edu.lb"
When 23% scott mcadams (d) what are the dates administered?
CREATE TABLE table_20597634_3 (dates_administered VARCHAR, scott_mcadams__d_ VARCHAR)
SELECT dates_administered FROM table_20597634_3 WHERE scott_mcadams__d_ = "23%"
What is the sum of Blks, when Stls is 1, and when Rebs is greater than 8.6?
CREATE TABLE table_name_49 (blks INTEGER, stls VARCHAR, rebs VARCHAR)
SELECT SUM(blks) FROM table_name_49 WHERE stls = 1 AND rebs > 8.6
What's the largest shirt number when the cap number is 5?
CREATE TABLE table_name_22 (shirt_number INTEGER, cap_number VARCHAR)
SELECT MAX(shirt_number) FROM table_name_22 WHERE cap_number = 5
In which races did the jockey weigh less than 55.5 kg?
CREATE TABLE table_name_78 (race VARCHAR, weight__kg_ INTEGER)
SELECT race FROM table_name_78 WHERE weight__kg_ < 55.5
What is the position of a player from a round less than 4 and an overall of 17?
CREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT position FROM table_name_81 WHERE round < 4 AND overall = "17"
Name the sum of week with attendance of 62,233
CREATE TABLE table_name_49 (week INTEGER, attendance VARCHAR)
SELECT SUM(week) FROM table_name_49 WHERE attendance = 62 OFFSET 233
Who lost on May 31?
CREATE TABLE table_name_94 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_94 WHERE date = "may 31"
How many extra points did Paul Dickey received
CREATE TABLE table_14342367_15 (extra_points_1_point INTEGER, player VARCHAR)
SELECT MAX(extra_points_1_point) FROM table_14342367_15 WHERE player = "Paul Dickey"
Name the D 43 when it has D 45 of d 25
CREATE TABLE table_name_45 (d_43 VARCHAR, d_45 VARCHAR)
SELECT d_43 FROM table_name_45 WHERE d_45 = "d 25"
Name the most runs for wickets of 66 and matches less than 13
CREATE TABLE table_name_68 (runs INTEGER, wickets VARCHAR, matches VARCHAR)
SELECT MAX(runs) FROM table_name_68 WHERE wickets = 66 AND matches < 13
What was the label's format LP and catalog of CH-9192?
CREATE TABLE table_name_76 (label VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_76 WHERE format = "lp" AND catalog = "ch-9192"
Who constructed Mike Sparken's car with a tyre of E?
CREATE TABLE table_name_79 (constructor VARCHAR, tyre VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_79 WHERE tyre = "e" AND driver = "mike sparken"
What was the previous conference for the school that joined in 2000 with a millers mascot?
CREATE TABLE table_name_93 (previous_conference VARCHAR, year_joined VARCHAR, mascot VARCHAR)
SELECT previous_conference FROM table_name_93 WHERE year_joined = 2000 AND mascot = "millers"
What was the score for the December 11 game against the Ottawa Senators?
CREATE TABLE table_name_52 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_52 WHERE visitor = "ottawa senators" AND date = "december 11"
What was the number of channels in New Zealand?
CREATE TABLE table_11323532_2 (channel VARCHAR, country_region VARCHAR)
SELECT COUNT(channel) FROM table_11323532_2 WHERE country_region = "New Zealand"
What is the relative height of Scotland with Ben Vorlich as parent?
CREATE TABLE table_name_9 (relative_height__m_ VARCHAR, country VARCHAR, parent VARCHAR)
SELECT COUNT(relative_height__m_) FROM table_name_9 WHERE country = "scotland" AND parent = "ben vorlich"
What is the most popular full name of the actors?
CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR)
SELECT first_name, last_name FROM actor GROUP BY first_name, last_name ORDER BY COUNT(*) DESC LIMIT 1
Name the volume line for number 8
CREATE TABLE table_19534677_1 (volume_line VARCHAR, _number VARCHAR)
SELECT volume_line FROM table_19534677_1 WHERE _number = 8
Wickets of chris gayle caught kapali happened on what date?
CREATE TABLE table_name_16 (date VARCHAR, wickets VARCHAR)
SELECT date FROM table_name_16 WHERE wickets = "chris gayle caught kapali"
I want to know the sum of fa cup goals for david mirfin and total goals less than 1
CREATE TABLE table_name_59 (fa_cup_goals INTEGER, name VARCHAR, total_goals VARCHAR)
SELECT SUM(fa_cup_goals) FROM table_name_59 WHERE name = "david mirfin" AND total_goals < 1
Singer Maria-Louiza & Not 4 Sale had what jury?
CREATE TABLE table_name_6 (jury VARCHAR, singer VARCHAR)
SELECT jury FROM table_name_6 WHERE singer = "maria-louiza & not 4 sale"
What was the date of the game with a goal of 7?
CREATE TABLE table_name_27 (date VARCHAR, goal VARCHAR)
SELECT date FROM table_name_27 WHERE goal = 7
Who were the rowers when notes were sa/b, with a time of 5:51.30?
CREATE TABLE table_name_76 (rowers VARCHAR, notes VARCHAR, time VARCHAR)
SELECT rowers FROM table_name_76 WHERE notes = "sa/b" AND time = "5:51.30"
What was the city whose stadium is Gerald J. Ford Stadium?
CREATE TABLE table_28719193_19 (city VARCHAR, stadium VARCHAR)
SELECT city FROM table_28719193_19 WHERE stadium = "Gerald J. Ford stadium"
what is the 1st round when team 2 is olympique lyonnais (d2)?
CREATE TABLE table_name_67 (team_2 VARCHAR)
SELECT 1 AS st_round FROM table_name_67 WHERE team_2 = "olympique lyonnais (d2)"
What driver has 22 as nor 1?
CREATE TABLE table_name_85 (driver VARCHAR, nor_1 VARCHAR)
SELECT driver FROM table_name_85 WHERE nor_1 = "22"
Date of sun. oct. 29 has what time (et)?
CREATE TABLE table_name_65 (time___et__ VARCHAR, date VARCHAR)
SELECT time___et__ FROM table_name_65 WHERE date = "sun. oct. 29"
Who was Milwaukee's opponent?
CREATE TABLE table_name_98 (opponent VARCHAR, city VARCHAR)
SELECT opponent FROM table_name_98 WHERE city = "milwaukee"
What office was law preservation ticket holder William E. Barron running for?
CREATE TABLE table_name_51 (office VARCHAR, law_preservation_ticket VARCHAR)
SELECT office FROM table_name_51 WHERE law_preservation_ticket = "william e. barron"
where is Mascot of quakers?
CREATE TABLE table_name_35 (location VARCHAR, mascot VARCHAR)
SELECT location FROM table_name_35 WHERE mascot = "quakers"
What is the score that the player who placed t4 from the united states get?
CREATE TABLE table_name_80 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT score FROM table_name_80 WHERE country = "united states" AND place = "t4"
What is the name of the venue where home team st kilda played?
CREATE TABLE table_name_83 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_83 WHERE home_team = "st kilda"
What country did the client Agiba-agip work in?
CREATE TABLE table_name_5 (country VARCHAR, client VARCHAR)
SELECT country FROM table_name_5 WHERE client = "agiba-agip"
Who played drums for the Gray Race album?
CREATE TABLE table_name_89 (drums VARCHAR, album VARCHAR)
SELECT drums FROM table_name_89 WHERE album = "the gray race"
Where will the game at (ET) of 7:00 pm be at?
CREATE TABLE table_name_2 (game_site VARCHAR, time___et__ VARCHAR)
SELECT game_site FROM table_name_2 WHERE time___et__ = "7:00 pm"
Which Away team has a Home team of al-ain fc, and a Score of 1–1?
CREATE TABLE table_name_58 (away_team VARCHAR, home_team VARCHAR, score VARCHAR)
SELECT away_team FROM table_name_58 WHERE home_team = "al-ain fc" AND score = "1–1"
What was the Lead for the 2009 WCC when Wang Bingyu news was the skip?
CREATE TABLE table_name_39 (lead VARCHAR, skip VARCHAR, event VARCHAR)
SELECT lead FROM table_name_39 WHERE skip = "wang bingyu" AND event = "2009 wcc"
What is the result for Gold Coast when Adelaide and Perth are yes, but Auckland is no?
CREATE TABLE table_name_6 (gold_coast VARCHAR, perth VARCHAR, adelaide VARCHAR, auckland VARCHAR)
SELECT gold_coast FROM table_name_6 WHERE adelaide = "yes" AND auckland = "no" AND perth = "yes"
Who is the director when Chris Hawkshaw is the writer?
CREATE TABLE table_16175064_3 (director_s_ VARCHAR, writer_s_ VARCHAR)
SELECT director_s_ FROM table_16175064_3 WHERE writer_s_ = "Chris Hawkshaw"