question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What engine was used by Ram Penthouse Rizla Racing in 1978?
CREATE TABLE table_name_97 (engine VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_97 WHERE year > 1978 AND entrant = "ram penthouse rizla racing"
How many figures are given for the Socialists in the case where the Social Democrats received 42.2%?
CREATE TABLE table_1881642_1 (socialist VARCHAR, social_democratic VARCHAR)
SELECT COUNT(socialist) FROM table_1881642_1 WHERE social_democratic = "42.2%"
Who is the home team when the away team is newcastle united?
CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_16 WHERE away_team = "newcastle united"
Name the opponent for august 26
CREATE TABLE table_name_99 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_99 WHERE date = "august 26"
Name the opponent with a record of 60-61
CREATE TABLE table_name_35 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_35 WHERE record = "60-61"
What are all the programs on the Soy Guerrero network?
CREATE TABLE table_2899987_2 (programming VARCHAR, network VARCHAR)
SELECT programming FROM table_2899987_2 WHERE network = "Soy Guerrero"
Name the least purse for 2011
CREATE TABLE table_15618241_1 (purse___us INTEGER, year VARCHAR)
SELECT MIN(purse___us) AS $__ FROM table_15618241_1 WHERE year = 2011
When did the vice president with a vice over 6 take office?
CREATE TABLE table_name_53 (took_office VARCHAR, vice INTEGER)
SELECT took_office FROM table_name_53 WHERE vice > 6
What gun has a time to feet ratio of 18.8 at 55 degrees?
CREATE TABLE table_16439764_1 (gun VARCHAR, time_to_ft__m__at_55°__seconds_ VARCHAR)
SELECT gun FROM table_16439764_1 WHERE time_to_ft__m__at_55°__seconds_ = "18.8"
Which Captain 2 has a Result of final?
CREATE TABLE table_name_50 (captain_2 VARCHAR, result VARCHAR)
SELECT captain_2 FROM table_name_50 WHERE result = "final"
When was the opponent Bye?
CREATE TABLE table_name_52 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_52 WHERE opponent = "bye"
What is the country of the original title Cidade de deus?
CREATE TABLE table_name_69 (country VARCHAR, original_title VARCHAR)
SELECT country FROM table_name_69 WHERE original_title = "cidade de deus"
What is Score In The Final, when Date is "30 August 1993"?
CREATE TABLE table_name_20 (score_in_the_final VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_20 WHERE date = "30 august 1993"
What is the average Ties, when Played is greater than 5?
CREATE TABLE table_name_68 (ties INTEGER, played INTEGER)
SELECT AVG(ties) FROM table_name_68 WHERE played > 5
What is the sum of Total when rank is 2?
CREATE TABLE table_name_46 (total INTEGER, rank VARCHAR)
SELECT SUM(total) FROM table_name_46 WHERE rank = "2"
If Socialist is at 46.1%, what are all percentages for social democratic?
CREATE TABLE table_1463383_1 (social_democratic VARCHAR, socialist VARCHAR)
SELECT social_democratic FROM table_1463383_1 WHERE socialist = "46.1%"
What is the height in ft for the rockets from 1973-78?
CREATE TABLE table_11734041_16 (height_in_ft VARCHAR, years_for_rockets VARCHAR)
SELECT height_in_ft FROM table_11734041_16 WHERE years_for_rockets = "1973-78"
When was the game played at Princes Park?
CREATE TABLE table_name_20 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_20 WHERE venue = "princes park"
What is the muzzle velocity for the muzzle energy 351ft•lbf (476 j)?
CREATE TABLE table_name_60 (muzzle_velocity VARCHAR, muzzle_energy VARCHAR)
SELECT muzzle_velocity FROM table_name_60 WHERE muzzle_energy = "351ft•lbf (476 j)"
What venue held with game with a score of 3-2?
CREATE TABLE table_name_42 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_name_42 WHERE score = "3-2"
What was the rate when there were more than 22 goals?
CREATE TABLE table_name_9 (rate VARCHAR, goals INTEGER)
SELECT rate FROM table_name_9 WHERE goals > 22
What is the name of the running back pick?
CREATE TABLE table_name_3 (player VARCHAR, position VARCHAR)
SELECT player FROM table_name_3 WHERE position = "running back"
What city has a building ranked greater than 15 with floors greater than 43?
CREATE TABLE table_name_45 (city VARCHAR, rank VARCHAR, floors VARCHAR)
SELECT city FROM table_name_45 WHERE rank > 15 AND floors > 43
what's the engine where performance is 0–100km/h: 10.5s, vmax km/h (mph)
CREATE TABLE table_11167610_1 (engine VARCHAR, performance VARCHAR)
SELECT engine FROM table_11167610_1 WHERE performance = "0–100km/h: 10.5s, VMax km/h (mph)"
What is the name of the driver with a grid less than 14, laps smaller than 53 and a Time/Retired of collision, and a Constructor of ferrari?
CREATE TABLE table_name_58 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_58 WHERE grid < 14 AND laps < 53 AND time_retired = "collision" AND constructor = "ferrari"
What team was the home team when Richmond was the away team?
CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_36 WHERE away_team = "richmond"
Where Class AAA is Atlanta and Class AA is Weimar, what is Class AAAAA?
CREATE TABLE table_name_65 (class_aAAAA VARCHAR, class_aAA VARCHAR, atlanta VARCHAR, class_aA VARCHAR, weimar VARCHAR)
SELECT class_aAAAA FROM table_name_65 WHERE class_aAA = atlanta AND class_aA = weimar
How many times does the call sign XEZV appear?
CREATE TABLE table_14670060_1 (transmitting_from VARCHAR, call_sign VARCHAR)
SELECT COUNT(transmitting_from) FROM table_14670060_1 WHERE call_sign = "XEZV"
What was Todd Hamilton's to par?
CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_9 WHERE player = "todd hamilton"
What was the score in game 81?
CREATE TABLE table_17311797_10 (score VARCHAR, game VARCHAR)
SELECT score FROM table_17311797_10 WHERE game = 81
What is the score on March 18?
CREATE TABLE table_name_97 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_97 WHERE date = "march 18"
Who won the South African Grand Prix?
CREATE TABLE table_name_63 (race VARCHAR)
SELECT race AS Winner FROM table_name_63 WHERE race = "south african grand prix"
What was the date of the game held at Invesco Field?
CREATE TABLE table_name_8 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_8 WHERE game_site = "invesco field"
What Competition had a Score of 3–3?
CREATE TABLE table_name_27 (competition VARCHAR, score VARCHAR)
SELECT competition FROM table_name_27 WHERE score = "3–3"
What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?
CREATE TABLE table_name_92 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)
SELECT AVG(laps) FROM table_name_92 WHERE manufacturer = "ktm" AND time_retired = "+56.440" AND grid < 11
What points has james allen as the skipper?
CREATE TABLE table_name_66 (points VARCHAR, skipper VARCHAR)
SELECT points FROM table_name_66 WHERE skipper = "james allen"
What is listed as the highest ERP W with a Call sign of W262AC?
CREATE TABLE table_name_22 (erp_w INTEGER, call_sign VARCHAR)
SELECT MAX(erp_w) FROM table_name_22 WHERE call_sign = "w262ac"
Which Start has 8 Tries and 0 Convs?
CREATE TABLE table_name_58 (start VARCHAR, tries VARCHAR, conv VARCHAR)
SELECT start FROM table_name_58 WHERE tries = "8" AND conv = "0"
What is the English translation of 哀郢?
CREATE TABLE table_1805919_1 (english_translation VARCHAR, traditional_chinese VARCHAR)
SELECT english_translation FROM table_1805919_1 WHERE traditional_chinese = "哀郢"
When was the Australian open?
CREATE TABLE table_197638_7 (australian_open INTEGER)
SELECT MAX(australian_open) FROM table_197638_7
What year was incumbent joe b. bates first elected?
CREATE TABLE table_1342233_17 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1342233_17 WHERE incumbent = "Joe B. Bates"
What venue hosted a match with a 3-0 score on December 7, 2002?
CREATE TABLE table_name_31 (venue VARCHAR, score VARCHAR, date VARCHAR)
SELECT venue FROM table_name_31 WHERE score = "3-0" AND date = "december 7, 2002"
what is the city for the country of netherlands?
CREATE TABLE table_name_96 (city VARCHAR, country VARCHAR)
SELECT city FROM table_name_96 WHERE country = "netherlands"
In what year did the school with enrollment of 650 leave?
CREATE TABLE table_1973816_2 (left VARCHAR, enrollment VARCHAR)
SELECT left FROM table_1973816_2 WHERE enrollment = 650
Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?
CREATE TABLE table_name_61 (republican_ticket VARCHAR, socialist_ticket VARCHAR)
SELECT republican_ticket FROM table_name_61 WHERE socialist_ticket = "frank r. crosswaith"
Which date has a Week of 6?
CREATE TABLE table_name_44 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_44 WHERE week = 6
What school that has a IHSAA Class of AA, in Butler?
CREATE TABLE table_name_62 (school VARCHAR, ihsaa_class VARCHAR, location VARCHAR)
SELECT school FROM table_name_62 WHERE ihsaa_class = "aa" AND location = "butler"
What is the result where the original artist is Prince and the Revolution?
CREATE TABLE table_25374338_1 (result VARCHAR, original_artist VARCHAR)
SELECT result FROM table_25374338_1 WHERE original_artist = "Prince and The Revolution"
What is Tournament, when Outcome is Winner, and when Date is 13 July 2013?
CREATE TABLE table_name_63 (tournament VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_63 WHERE outcome = "winner" AND date = "13 july 2013"
Which January has an Opponent of toronto maple leafs?
CREATE TABLE table_name_55 (january VARCHAR, opponent VARCHAR)
SELECT january FROM table_name_55 WHERE opponent = "toronto maple leafs"
What is the serials issued in 1982 with a format of ABC-123?
CREATE TABLE table_name_60 (serials_issued VARCHAR, serial_format VARCHAR, issued VARCHAR)
SELECT serials_issued FROM table_name_60 WHERE serial_format = "abc-123" AND issued = "1982"
Name the total number of population for craig
CREATE TABLE table_22815568_12 (population VARCHAR, county VARCHAR)
SELECT COUNT(population) FROM table_22815568_12 WHERE county = "Craig"
Who were the writers for production code 2t6268?
CREATE TABLE table_17467447_1 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_17467447_1 WHERE production_code = "2T6268"
What year did University of Saskatchewan have their first season?
CREATE TABLE table_12896884_1 (first_season INTEGER, institution VARCHAR)
SELECT MAX(first_season) FROM table_12896884_1 WHERE institution = "University of Saskatchewan"
Name the most points for champion, won in the final against amélie mauresmo
CREATE TABLE table_1973321_5 (points INTEGER, status VARCHAR)
SELECT MAX(points) FROM table_1973321_5 WHERE status = "Champion, won in the final against Amélie Mauresmo"
Name the score for fiji
CREATE TABLE table_name_99 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_99 WHERE country = "fiji"
What year was the film Milagros submitted?
CREATE TABLE table_17919342_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT year__ceremony_ FROM table_17919342_1 WHERE original_title = "Milagros"
What results has a week larger than 13?
CREATE TABLE table_name_90 (result VARCHAR, week INTEGER)
SELECT result FROM table_name_90 WHERE week > 13
What are the census ranking(s) that have an area of 369.25 km2?
CREATE TABLE table_171250_2 (census_ranking VARCHAR, area_km_2 VARCHAR)
SELECT census_ranking FROM table_171250_2 WHERE area_km_2 = "369.25"
What is the name of the place that has a census ranking of 1,229 of 5,008?
CREATE TABLE table_name_63 (official_name VARCHAR, census_ranking VARCHAR)
SELECT official_name FROM table_name_63 WHERE census_ranking = "1,229 of 5,008"
What position do the bc lions pick?
CREATE TABLE table_name_22 (position VARCHAR, cfl_team VARCHAR)
SELECT position FROM table_name_22 WHERE cfl_team = "bc lions"
Who wrote the episode with the code xle05012?
CREATE TABLE table_28348757_6 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_28348757_6 WHERE production_code = "XLE05012"
What was Bye's opponent's attendance?
CREATE TABLE table_name_85 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_85 WHERE opponent = "bye"
What is the dissolved date of the parliament assembled on 3 June 1467?
CREATE TABLE table_name_31 (dissolved VARCHAR, assembled VARCHAR)
SELECT dissolved FROM table_name_31 WHERE assembled = "3 june 1467"
What district has Albert Rains as their representative?
CREATE TABLE table_1342149_3 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342149_3 WHERE incumbent = "Albert Rains"
Which Score has High points of raymond felton (32)?
CREATE TABLE table_name_56 (score VARCHAR, high_points VARCHAR)
SELECT score FROM table_name_56 WHERE high_points = "raymond felton (32)"
What is the total number of Year for the Title of The Queen, has an Award of British Academy Film Award, and has a Result of Won?
CREATE TABLE table_name_82 (year VARCHAR, result VARCHAR, title VARCHAR, award VARCHAR)
SELECT COUNT(year) FROM table_name_82 WHERE title = "the queen" AND award = "british academy film award" AND result = "won"
What competition is at 23:00 cet?
CREATE TABLE table_name_91 (competition VARCHAR, time VARCHAR)
SELECT competition FROM table_name_91 WHERE time = "23:00 cet"
What is the ICAO for Hong Kong?
CREATE TABLE table_name_73 (icao VARCHAR, country VARCHAR)
SELECT icao FROM table_name_73 WHERE country = "hong kong"
Who was the artist for the year of the snake?
CREATE TABLE table_name_76 (artist VARCHAR, theme VARCHAR)
SELECT artist FROM table_name_76 WHERE theme = "year of the snake"
What is the competition on October 15, 2008?
CREATE TABLE table_name_37 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_37 WHERE date = "october 15, 2008"
What is the grid of driver joão urbano?
CREATE TABLE table_name_75 (grid INTEGER, driver VARCHAR)
SELECT SUM(grid) FROM table_name_75 WHERE driver = "joão urbano"
How many video game types exist?
CREATE TABLE Video_games (gtype VARCHAR)
SELECT COUNT(DISTINCT gtype) FROM Video_games
What is the total for the player with more snatches than 87.5 and bodyweight more than 74.8?
CREATE TABLE table_name_7 (total__kg_ INTEGER, snatch VARCHAR, bodyweight VARCHAR)
SELECT AVG(total__kg_) FROM table_name_7 WHERE snatch > 87.5 AND bodyweight > 74.8
What is the Chinese Title Premiering 32 with 2.07 million HK viewers?
CREATE TABLE table_name_60 (chinese_title VARCHAR, hk_viewers VARCHAR, premiere VARCHAR)
SELECT chinese_title FROM table_name_60 WHERE hk_viewers = "2.07 million" AND premiere = 32
What is the Nominated work of popularity award (actor in a motion picture)?
CREATE TABLE table_name_29 (nominated_work VARCHAR, category VARCHAR)
SELECT nominated_work FROM table_name_29 WHERE category = "popularity award (actor in a motion picture)"
Who is the earliest graduate of the school? List the first name, middle name and last name.
CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, date_left VARCHAR)
SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left LIMIT 1
What is the number of goals against when the played is more than 38?
CREATE TABLE table_name_19 (goals_against VARCHAR, played INTEGER)
SELECT COUNT(goals_against) FROM table_name_19 WHERE played > 38
What is the value for 2011 corresponding to a 2007 value of 1r?
CREATE TABLE table_name_32 (Id VARCHAR)
SELECT 2011 FROM table_name_32 WHERE 2007 = "1r"
What was the attendance for each game held at Foxboro Stadium?
CREATE TABLE table_name_48 (attendance VARCHAR, game_site VARCHAR)
SELECT attendance FROM table_name_48 WHERE game_site = "foxboro stadium"
Find the number of trains for each station, as well as the station network name and services.
CREATE TABLE route (station_id VARCHAR); CREATE TABLE station (network_name VARCHAR, services VARCHAR, id VARCHAR)
SELECT COUNT(*), t1.network_name, t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id
What was the score of the winning match on Oct 28, 1962?
CREATE TABLE table_name_64 (winning_score VARCHAR, date VARCHAR)
SELECT winning_score FROM table_name_64 WHERE date = "oct 28, 1962"
What is the Country of the Championship with a Score of 293?
CREATE TABLE table_name_12 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_12 WHERE score = "293"
Which Visiting Team has a Stadium of servus centre on march 7?
CREATE TABLE table_name_56 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR)
SELECT visiting_team FROM table_name_56 WHERE stadium = "servus centre" AND date = "march 7"
Name the years in orlando for forward
CREATE TABLE table_15621965_10 (years_in_orlando VARCHAR, position VARCHAR)
SELECT years_in_orlando FROM table_15621965_10 WHERE position = "Forward"
What's the reserved number for constituency number 108?
CREATE TABLE table_name_43 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_43 WHERE constituency_number = "108"
What is after intermediate algebra
CREATE TABLE table_13967239_2 (senior__4th_year_ VARCHAR, sophomore__grade_8_ VARCHAR)
SELECT senior__4th_year_ FROM table_13967239_2 WHERE sophomore__grade_8_ = "Intermediate Algebra"
Which position has 45 picks?
CREATE TABLE table_name_54 (position VARCHAR, pick__number VARCHAR)
SELECT position FROM table_name_54 WHERE pick__number = 45
How many times did li ju win the womens singles and wang liqin win the mens singles?
CREATE TABLE table_28138035_6 (womens_doubles VARCHAR, womens_singles VARCHAR, mens_singles VARCHAR)
SELECT COUNT(womens_doubles) FROM table_28138035_6 WHERE womens_singles = "Li Ju" AND mens_singles = "Wang Liqin"
What is Mike Weir's To par?
CREATE TABLE table_name_79 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_79 WHERE player = "mike weir"
What is the played number when tries against is 84, and drawn is 2?
CREATE TABLE table_name_13 (played VARCHAR, tries_against VARCHAR, drawn VARCHAR)
SELECT played FROM table_name_13 WHERE tries_against = "84" AND drawn = "2"
How many districts does riley joseph wilson?
CREATE TABLE table_1342315_17 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1342315_17 WHERE incumbent = "Riley Joseph Wilson"
What is the id of the project with least number of documents?
CREATE TABLE Documents (project_id VARCHAR)
SELECT project_id FROM Documents GROUP BY project_id ORDER BY COUNT(*) LIMIT 1
What round was on 11/11/1992?
CREATE TABLE table_name_91 (round VARCHAR, date VARCHAR)
SELECT round FROM table_name_91 WHERE date = "11/11/1992"
what time is mon may 26 and fri may 30 is 18' 28.27 122.599mph?
CREATE TABLE table_14209455_1 (mon_26_may VARCHAR, fri_30_may VARCHAR)
SELECT mon_26_may FROM table_14209455_1 WHERE fri_30_may = "18' 28.27 122.599mph"
What is the extra result of the 4th game?
CREATE TABLE table_name_37 (extra VARCHAR, result VARCHAR)
SELECT extra FROM table_name_37 WHERE result = "4th"
Find the name of department has the highest amount of students?
CREATE TABLE student (dept_name VARCHAR)
SELECT dept_name FROM student GROUP BY dept_name ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the person with a PWin% of .696?
CREATE TABLE table_name_63 (name_ VARCHAR, b_ VARCHAR, Pwin_percentage VARCHAR)
SELECT name_[b_] FROM table_name_63 WHERE Pwin_percentage = 0.696
What was the date of the game with 16,404 people?
CREATE TABLE table_name_18 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_18 WHERE attendance = "16,404"
Which series was won by Paul Morris?
CREATE TABLE table_name_16 (series VARCHAR, winner VARCHAR)
SELECT series FROM table_name_16 WHERE winner = "paul morris"