question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Find the ids of reviewers who didn't only give 4 star.
CREATE TABLE Rating (rID VARCHAR, stars VARCHAR)
SELECT rID FROM Rating WHERE stars <> 4
How many people directed the episode that aired on February 5, 1968?
CREATE TABLE table_25800134_12 (director VARCHAR, airdate VARCHAR)
SELECT COUNT(director) FROM table_25800134_12 WHERE airdate = "February 5, 1968"
What round was on 7 January 2003?
CREATE TABLE table_name_67 (round VARCHAR, date VARCHAR)
SELECT round FROM table_name_67 WHERE date = "7 january 2003"
What is the highest amount of extra points someone got when they scored 28 points but had 0 field goals?
CREATE TABLE table_name_20 (extra_points INTEGER, points VARCHAR, field_goals VARCHAR)
SELECT MAX(extra_points) FROM table_name_20 WHERE points = 28 AND field_goals < 0
Who led with the highest points during the game against Indiana?
CREATE TABLE table_23286158_9 (high_points VARCHAR, team VARCHAR)
SELECT high_points FROM table_23286158_9 WHERE team = "Indiana"
What is the mean pick number for the cornerback position when the overall is less than 134?
CREATE TABLE table_name_60 (pick__number INTEGER, position VARCHAR, overall VARCHAR)
SELECT AVG(pick__number) FROM table_name_60 WHERE position = "cornerback" AND overall < 134
Who is the driver with a tyre of k for Avanzza Rosso?
CREATE TABLE table_name_61 (drivers VARCHAR, tyre VARCHAR, team VARCHAR)
SELECT drivers FROM table_name_61 WHERE tyre = "k" AND team = "avanzza rosso"
What begin has victoria as the state/territory and a ICA0 of ymml?
CREATE TABLE table_name_18 (begin VARCHAR, state_territory VARCHAR, icao VARCHAR)
SELECT begin FROM table_name_18 WHERE state_territory = "victoria" AND icao = "ymml"
What was the result of the game against Hungary?
CREATE TABLE table_name_54 (results¹ VARCHAR, opponent VARCHAR)
SELECT results¹ FROM table_name_54 WHERE opponent = "hungary"
How many shows were launched on CBS (2002)?
CREATE TABLE table_28803803_1 (launched VARCHAR, original_channel VARCHAR)
SELECT COUNT(launched) FROM table_28803803_1 WHERE original_channel = "CBS (2002)"
Who was the cast on the English (Manga UK) version if Kō Nishimura acted on the original Japanese?
CREATE TABLE table_2160215_1 (english___manga_uk__ VARCHAR, original_japanese VARCHAR)
SELECT english___manga_uk__ FROM table_2160215_1 WHERE original_japanese = "Kō Nishimura"
What is the average of all the wickets that were 27?
CREATE TABLE table_28797906_3 (average VARCHAR, wickets VARCHAR)
SELECT average FROM table_28797906_3 WHERE wickets = 27
How big is the province with the Armenian name of փայտակարան?
CREATE TABLE table_23887174_1 (area__km²_ INTEGER, armenian_name VARCHAR)
SELECT MIN(area__km²_) FROM table_23887174_1 WHERE armenian_name = "Փայտակարան"
Which Season has a Final Place of 8th and 8 Podiums?
CREATE TABLE table_name_79 (season VARCHAR, final_placing VARCHAR, podiums VARCHAR)
SELECT season FROM table_name_79 WHERE final_placing = "8th" AND podiums = "8"
What's the sum of Gold with a Bronze that's larger than 15, Silver that's smaller than 197, the Nation of Saint Lucia, and has a Total that is larger than 50?
CREATE TABLE table_name_89 (gold INTEGER, total VARCHAR, nation VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT SUM(gold) FROM table_name_89 WHERE bronze > 15 AND silver < 197 AND nation = "saint lucia" AND total > 50
Which railway has a class of 250 and year 1936?
CREATE TABLE table_name_76 (railway VARCHAR, class VARCHAR, year VARCHAR)
SELECT railway FROM table_name_76 WHERE class = "250" AND year = "1936"
Who is the winning driver of Penske Racing, and what was Rick Mears' pole position?
CREATE TABLE table_name_30 (winning_driver VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
SELECT winning_driver FROM table_name_30 WHERE winning_team = "penske racing" AND pole_position = "rick mears"
What is Duration, when Test Flight is Taxi Test #2?
CREATE TABLE table_name_20 (duration VARCHAR, test_flight VARCHAR)
SELECT duration FROM table_name_20 WHERE test_flight = "taxi test #2"
what is the most silver when the event is 2008 summer paralympics and bronze is less than 1?
CREATE TABLE table_name_86 (silver INTEGER, event VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_86 WHERE event = "2008 summer paralympics" AND bronze < 1
What campus was opened in 1977?
CREATE TABLE table_name_79 (campus VARCHAR, year_opened VARCHAR)
SELECT campus FROM table_name_79 WHERE year_opened = "1977"
What is the surface when the partner was Robert Haybittel?
CREATE TABLE table_name_42 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_name_42 WHERE partner = "robert haybittel"
How many goals scored have utenis utena as the club, with wins less than 8?
CREATE TABLE table_name_31 (goals_scored INTEGER, club VARCHAR, wins VARCHAR)
SELECT SUM(goals_scored) FROM table_name_31 WHERE club = "utenis utena" AND wins < 8
What date was the final Score of 17-34?
CREATE TABLE table_name_35 (date VARCHAR, final_score VARCHAR)
SELECT date FROM table_name_35 WHERE final_score = "17-34"
what's the cylinders/ valves with model being 1.8 20v
CREATE TABLE table_1176162_3 (cylinders__valves VARCHAR, model VARCHAR)
SELECT cylinders__valves FROM table_1176162_3 WHERE model = "1.8 20V"
Who were the candidates when Lamar S. Smith was incumbent?
CREATE TABLE table_1341577_44 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341577_44 WHERE incumbent = "Lamar S. Smith"
What is the average decile of Westport South School?
CREATE TABLE table_name_5 (decile INTEGER, name VARCHAR)
SELECT AVG(decile) FROM table_name_5 WHERE name = "westport south school"
What is the name of the Home team that played Fitzroy as the Away team?
CREATE TABLE table_name_53 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_53 WHERE away_team = "fitzroy"
how many equivalent daily inflation rate with currency name being republika srpska dinar
CREATE TABLE table_13681_2 (equivalent_daily_inflation_rate VARCHAR, currency_name VARCHAR)
SELECT COUNT(equivalent_daily_inflation_rate) FROM table_13681_2 WHERE currency_name = "Republika Srpska dinar"
What is the group C region with Illinois as group B?
CREATE TABLE table_name_53 (group_c VARCHAR, group_b VARCHAR)
SELECT group_c FROM table_name_53 WHERE group_b = "illinois"
What opponents played Waldstadion in a game?
CREATE TABLE table_24951872_2 (opponent VARCHAR, game_site VARCHAR)
SELECT opponent FROM table_24951872_2 WHERE game_site = "Waldstadion"
List all document ids and receipt dates of documents.
CREATE TABLE Documents (document_id VARCHAR, receipt_date VARCHAR)
SELECT document_id, receipt_date FROM Documents
WHAT WAS COLLINGWOOD'S LOWEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?
CREATE TABLE table_name_21 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_21 WHERE away_team = "collingwood"
What was the total for the year of 1925?
CREATE TABLE table_name_39 (total VARCHAR, years VARCHAR)
SELECT total FROM table_name_39 WHERE years = "1925"
Who was the opponent on Oct. 4?
CREATE TABLE table_24560733_1 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_24560733_1 WHERE date = "Oct. 4"
Which Website has a Frequency smaller than 760 and a Callsign of kkyx?
CREATE TABLE table_name_85 (website VARCHAR, frequency VARCHAR, callsign VARCHAR)
SELECT website FROM table_name_85 WHERE frequency < 760 AND callsign = "kkyx"
What was the score of united center 22,097?
CREATE TABLE table_11960610_10 (score VARCHAR, location_attendance VARCHAR)
SELECT score FROM table_11960610_10 WHERE location_attendance = "United Center 22,097"
Which Round has a Player of sammy okpro?
CREATE TABLE table_name_32 (round INTEGER, player VARCHAR)
SELECT AVG(round) FROM table_name_32 WHERE player = "sammy okpro"
What is the time of the rider who has a rank smaller than 8 and speed of 104.567mph?
CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, speed VARCHAR)
SELECT time FROM table_name_24 WHERE rank < 8 AND speed = "104.567mph"
Which Angle from center/° has a Taper/ft smaller than 0.6000000000000001?
CREATE TABLE table_name_97 (angle_from_center_ VARCHAR, taper VARCHAR, ft VARCHAR)
SELECT COUNT(angle_from_center_) AS ° FROM table_name_97 WHERE taper / ft < 0.6000000000000001
Who is the owner of RSS Racing that driver Ryan Sieg belongs to?
CREATE TABLE table_name_75 (owner_s_ VARCHAR, team VARCHAR, driver_s_ VARCHAR)
SELECT owner_s_ FROM table_name_75 WHERE team = "rss racing" AND driver_s_ = "ryan sieg"
Which participants won the silver medal for the Men's Doubles?
CREATE TABLE table_name_57 (name VARCHAR, medal VARCHAR, event VARCHAR)
SELECT name FROM table_name_57 WHERE medal = "silver" AND event = "men's doubles"
WHAT IS TEH PLAYER WITH A TO PAR OF +1 FOR SCOTLAND?
CREATE TABLE table_name_29 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT player FROM table_name_29 WHERE to_par = "+1" AND country = "scotland"
Who were the runner(s)-up when the winning score was –10 (69-68-74-67=278)?
CREATE TABLE table_name_71 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_71 WHERE winning_score = –10(69 - 68 - 74 - 67 = 278)
Who was the opponent on September 13, 1992?
CREATE TABLE table_name_10 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_10 WHERE date = "september 13, 1992"
How many products are there?
CREATE TABLE Products (Id VARCHAR)
SELECT COUNT(*) FROM Products
What is the earliest year that a candidate was first elected?
CREATE TABLE table_1341897_42 (first_elected INTEGER)
SELECT MIN(first_elected) FROM table_1341897_42
What is the average rank for Hungary?
CREATE TABLE table_name_82 (rank INTEGER, country VARCHAR)
SELECT AVG(rank) FROM table_name_82 WHERE country = "hungary"
What is Circuit, when Series is ASTC Round 4?
CREATE TABLE table_name_26 (circuit VARCHAR, series VARCHAR)
SELECT circuit FROM table_name_26 WHERE series = "astc round 4"
Tell me the highest year for result of 9th
CREATE TABLE table_name_98 (year INTEGER, result VARCHAR)
SELECT MAX(year) FROM table_name_98 WHERE result = "9th"
what country has a score of 69-70-72=211?
CREATE TABLE table_name_63 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_63 WHERE score = 69 - 70 - 72 = 211
What is the lowest rank for puerto rico?
CREATE TABLE table_150340_3 (rank INTEGER, country VARCHAR)
SELECT MIN(rank) FROM table_150340_3 WHERE country = "Puerto Rico"
If Firefox is 30.45%, what is the other Mozilla amount?
CREATE TABLE table_1876262_10 (other_mozilla VARCHAR, firefox VARCHAR)
SELECT other_mozilla FROM table_1876262_10 WHERE firefox = "30.45%"
Name the highest silver for table tennis and bronze more than 0
CREATE TABLE table_name_18 (silver INTEGER, sport VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_18 WHERE sport = "table tennis" AND bronze > 0
What is the 2012 of the hamburg masters?
CREATE TABLE table_name_45 (tournament VARCHAR)
SELECT 2012 FROM table_name_45 WHERE tournament = "hamburg masters"
Who were the commanders when 8 off 0 men were wounded?
CREATE TABLE table_11793221_2 (commander VARCHAR, wounded VARCHAR)
SELECT commander FROM table_11793221_2 WHERE wounded = "8 off 0 men"
What are the listings in the Valdez-cordova (census area) Borough?
CREATE TABLE table_name_93 (listed VARCHAR, borough VARCHAR)
SELECT listed FROM table_name_93 WHERE borough = "valdez-cordova (census area)"
What rowers have FA as the notes?
CREATE TABLE table_name_41 (rowers VARCHAR, notes VARCHAR)
SELECT rowers FROM table_name_41 WHERE notes = "fa"
How many wins did team Kolles & Heinz union, with f/laps of 0, have in the Formula Three Euroseries?
CREATE TABLE table_name_16 (wins VARCHAR, team VARCHAR, f_laps VARCHAR, series VARCHAR)
SELECT wins FROM table_name_16 WHERE f_laps = "0" AND series = "formula three euroseries" AND team = "kolles & heinz union"
What surface was the November 5, 1995 match played on?
CREATE TABLE table_name_33 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_33 WHERE date = "november 5, 1995"
Who directed episode number 23?
CREATE TABLE table_21025437_6 (directed_by VARCHAR, episode_no VARCHAR)
SELECT directed_by FROM table_21025437_6 WHERE episode_no = 23
What is the type of turbine having fewer than 17 units and located in County Laois?
CREATE TABLE table_name_65 (type VARCHAR, turbines VARCHAR, location VARCHAR)
SELECT type FROM table_name_65 WHERE turbines < 17 AND location = "county laois"
Who is the player who had more than 1,052 points?
CREATE TABLE table_name_87 (player VARCHAR, points INTEGER)
SELECT player FROM table_name_87 WHERE points > 1 OFFSET 052
What was the result for the game against the Pittsburgh Steelers?
CREATE TABLE table_name_85 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_85 WHERE opponent = "pittsburgh steelers"
Which rank has a more than 0 silver, 4 bronze, and a total smaller than 10?
CREATE TABLE table_name_34 (rank INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT SUM(rank) FROM table_name_34 WHERE silver > 0 AND bronze = 4 AND total < 10
What is the low lap total for the under 4 grid car driven by juan pablo montoya?
CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT MIN(laps) FROM table_name_65 WHERE grid < 4 AND driver = "juan pablo montoya"
What is the sum of laps that has a car number of larger than 1, is a ford, and has 155 points?
CREATE TABLE table_name_54 (laps INTEGER, points VARCHAR, car__number VARCHAR, make VARCHAR)
SELECT SUM(laps) FROM table_name_54 WHERE car__number > 1 AND make = "ford" AND points = 155
Name the number of pictorials for 5-85
CREATE TABLE table_1566848_6 (pictorials VARCHAR, date VARCHAR)
SELECT COUNT(pictorials) FROM table_1566848_6 WHERE date = "5-85"
What is the total number of Year(s), when Tournament is "World Championships"?
CREATE TABLE table_name_50 (year VARCHAR, tournament VARCHAR)
SELECT COUNT(year) FROM table_name_50 WHERE tournament = "world championships"
What date has parlophone as the label, and lp as a format?
CREATE TABLE table_name_17 (date VARCHAR, label VARCHAR, format VARCHAR)
SELECT date FROM table_name_17 WHERE label = "parlophone" AND format = "lp"
Which Date has a Home team of rochdale?
CREATE TABLE table_name_60 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_60 WHERE home_team = "rochdale"
What is the lowest number of Not Outs when there were more than 25 innings?
CREATE TABLE table_name_76 (not_outs INTEGER, innings INTEGER)
SELECT MIN(not_outs) FROM table_name_76 WHERE innings > 25
What is the title of the episode that originally aired on March 31, 2008?
CREATE TABLE table_name_1 (episode_title VARCHAR, original_airdate VARCHAR)
SELECT episode_title FROM table_name_1 WHERE original_airdate = "march 31, 2008"
What is the score of team chicago?
CREATE TABLE table_name_64 (score VARCHAR, team VARCHAR)
SELECT score FROM table_name_64 WHERE team = "chicago"
How many wins did Andrew Ranger have?
CREATE TABLE table_23239946_3 (wins VARCHAR, driver VARCHAR)
SELECT COUNT(wins) FROM table_23239946_3 WHERE driver = "Andrew Ranger"
Which Playing For has a # 100 larger than 36, and a Score of 122?
CREATE TABLE table_name_27 (playing_for VARCHAR, _number_100 VARCHAR, score VARCHAR)
SELECT playing_for FROM table_name_27 WHERE _number_100 > 36 AND score = "122"
Which away team played against the home team of St Kilda?
CREATE TABLE table_name_66 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_66 WHERE home_team = "st kilda"
How many daves team entries are there on 27 october 2006?
CREATE TABLE table_23292220_4 (daves_team VARCHAR, first_broadcast VARCHAR)
SELECT COUNT(daves_team) FROM table_23292220_4 WHERE first_broadcast = "27 October 2006"
Who won on 2007-04-14
CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_66 WHERE date = "2007-04-14"
What is the Hadeda Ibis when the Ostrich is Dark Chanting Goshawk?
CREATE TABLE table_20042805_2 (hadeda_ibis VARCHAR, ostrich VARCHAR)
SELECT hadeda_ibis FROM table_20042805_2 WHERE ostrich = "Dark Chanting Goshawk"
Name the most goals with losses less than 15 and position more than 8 with points of 42+4
CREATE TABLE table_name_18 (goals_for INTEGER, points VARCHAR, losses VARCHAR, position VARCHAR)
SELECT MAX(goals_for) FROM table_name_18 WHERE losses < 15 AND position > 8 AND points = "42+4"
Who from Conquest Racing had the best time of 1:34.748 in Qual 1?
CREATE TABLE table_name_4 (best VARCHAR, team VARCHAR, qual_1 VARCHAR)
SELECT best FROM table_name_4 WHERE team = "conquest racing" AND qual_1 = "1:34.748"
When was the episode written by Albert Kim aired for the first time?
CREATE TABLE table_20704243_4 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_20704243_4 WHERE written_by = "Albert Kim"
What's the most overall when the executive appointments were 28 and the background was smaller than 37?
CREATE TABLE table_name_77 (overall INTEGER, executive_appointments VARCHAR, background VARCHAR)
SELECT MAX(overall) FROM table_name_77 WHERE executive_appointments = 28 AND background < 37
Which Overall has a Round larger than 7, a Pick larger than 13, and a Name of tony hall?
CREATE TABLE table_name_88 (overall INTEGER, name VARCHAR, round VARCHAR, pick VARCHAR)
SELECT AVG(overall) FROM table_name_88 WHERE round > 7 AND pick > 13 AND name = "tony hall"
Who was the home team that played at Moorabbin Oval?
CREATE TABLE table_name_17 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_17 WHERE venue = "moorabbin oval"
What is the name of the claim processing stage that most of the claims are on?
CREATE TABLE claims_processing (claim_stage_id VARCHAR); CREATE TABLE claims_processing_stages (claim_status_name VARCHAR, claim_stage_id VARCHAR)
SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY COUNT(*) DESC LIMIT 1
What was Dave Hill's score?
CREATE TABLE table_name_85 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_85 WHERE player = "dave hill"
How many instruments does the song "Le Pop" use?
CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
Who played as Team 1 against Lomé i?
CREATE TABLE table_name_8 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_8 WHERE team_2 = "lomé i"
What is the Rank of the swimmer with a Time of 49 in Lane 7 or larger?
CREATE TABLE table_name_41 (rank VARCHAR, time VARCHAR, lane VARCHAR)
SELECT COUNT(rank) FROM table_name_41 WHERE time = 49 AND lane > 7
what is the race where the fastest lap is by jean-pierre jarier?
CREATE TABLE table_1140085_2 (race VARCHAR, fastest_lap VARCHAR)
SELECT race FROM table_1140085_2 WHERE fastest_lap = "Jean-Pierre Jarier"
What is Outcome, when Championship is Australian Open, and when Year is before 1994?
CREATE TABLE table_name_78 (outcome VARCHAR, championship VARCHAR, year VARCHAR)
SELECT outcome FROM table_name_78 WHERE championship = "australian open" AND year < 1994
Show the denomination shared by schools founded before 1890 and schools founded after 1900
CREATE TABLE school (Denomination VARCHAR, Founded INTEGER)
SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900
Who had the mountains classification when borut božič was the winner?
CREATE TABLE table_25655781_17 (mountains_classification VARCHAR, winner VARCHAR)
SELECT mountains_classification FROM table_25655781_17 WHERE winner = "Borut Božič"
How many candidates were there in the election for William Jennings Bryan Dorn's seat?
CREATE TABLE table_1341897_42 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(candidates) FROM table_1341897_42 WHERE incumbent = "William Jennings Bryan Dorn"
What was the score of the match played against away team Arsenal?
CREATE TABLE table_name_96 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_96 WHERE away_team = "arsenal"
what is the average population when the regional county municipality is le domaine-du-roy, the type is m and the region is less than 2?
CREATE TABLE table_name_19 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, type VARCHAR)
SELECT AVG(population) FROM table_name_19 WHERE regional_county_municipality = "le domaine-du-roy" AND type = "m" AND region < 2
What party did incumbent Howard Coble belong to?
CREATE TABLE table_1341568_34 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341568_34 WHERE incumbent = "Howard Coble"
What is the average number of bronze medals with 1 silver, 5 gold, and over 6 total medals?
CREATE TABLE table_name_85 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT AVG(bronze) FROM table_name_85 WHERE silver = 1 AND gold = 5 AND total < 6
What is the highest stage number for a year later than 1948, leader at the summit was group, and finish was Bagnères-De-Bigorre?
CREATE TABLE table_name_36 (stage INTEGER, finish VARCHAR, year VARCHAR, leader_at_the_summit VARCHAR)
SELECT MAX(stage) FROM table_name_36 WHERE year > 1948 AND leader_at_the_summit = "group" AND finish = "bagnères-de-bigorre"