answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT country FROM table_name_46 WHERE year_s__won = "1977"
What country won in 1977?
CREATE TABLE table_name_46 (country VARCHAR, year_s__won VARCHAR)
SELECT character FROM table_name_51 WHERE episodes < 23 AND actor = "dani harmer"
What character is played by dani harmer for under 23 episodes?
CREATE TABLE table_name_51 (character VARCHAR, episodes VARCHAR, actor VARCHAR)
SELECT class_aAAA FROM table_name_28 WHERE class_aAA = gonzales
What is the Class AAAAA when the Class AAA is Gonzales?
CREATE TABLE table_name_28 (class_aAAA VARCHAR, class_aAA VARCHAR, gonzales VARCHAR)
SELECT results FROM table_1341423_23 WHERE incumbent = "Gil Gutknecht"
What was the result when incumbent gil gutknecht ran?
CREATE TABLE table_1341423_23 (results VARCHAR, incumbent VARCHAR)
SELECT attendance FROM table_name_1 WHERE away_team = "stockport county"
What was the attendance for the game where the away team was Stockport County?
CREATE TABLE table_name_1 (attendance VARCHAR, away_team VARCHAR)
SELECT season FROM table_name_63 WHERE division_three = "hampton park rangers"
Which Season was the Division Three Hampton Park Rangers champions?
CREATE TABLE table_name_63 (season VARCHAR, division_three VARCHAR)
SELECT score FROM table_name_95 WHERE place = "t2"
Which Score has a Place of t2?
CREATE TABLE table_name_95 (score VARCHAR, place VARCHAR)
SELECT played FROM table_12807904_5 WHERE points = "80"
How many played where the points were 80?
CREATE TABLE table_12807904_5 (played VARCHAR, points VARCHAR)
SELECT MAX(year) FROM table_name_50 WHERE actor = "marianne jean-baptiste"
What is the latest Year with Marianne Jean-Baptiste as the Golden Globe Actor?
CREATE TABLE table_name_50 (year INTEGER, actor VARCHAR)
SELECT result FROM table_name_83 WHERE date = "november 16, 1969"
What was the game result on November 16, 1969?
CREATE TABLE table_name_83 (result VARCHAR, date VARCHAR)
SELECT MIN(founded) FROM table_28253870_1
Name the least founded
CREATE TABLE table_28253870_1 (founded INTEGER)
SELECT league FROM table_name_77 WHERE record = "most wins"
What league has most wins as the record?
CREATE TABLE table_name_77 (league VARCHAR, record VARCHAR)
SELECT AVG(total) FROM table_name_12 WHERE silver < 1 AND rank = "15"
What is the average Total when silver is less than 1, and the rank is 15?
CREATE TABLE table_name_12 (total INTEGER, silver VARCHAR, rank VARCHAR)
SELECT MIN(attendance) FROM table_name_4 WHERE opponent = "maryland"
What was the lowest Attendance when the Opponent was Maryland?
CREATE TABLE table_name_4 (attendance INTEGER, opponent VARCHAR)
SELECT entrant FROM table_name_15 WHERE engine = "offenhauser l4" AND year < 1955 AND chassis = "kurtis kraft kk500a" AND points = 9
Which entrant, with an Offenhauser L4 engine and a Kurtis Kraft KK500A chassis, scored 9 points before 1955?
CREATE TABLE table_name_15 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, engine VARCHAR, year VARCHAR)
SELECT away_team FROM table_name_30 WHERE home_team = "ramsgate"
Who was the away team when the home team was Ramsgate?
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR)
SELECT 1989 FROM table_name_71 WHERE 1987 = "1r"
What is the 1989 result of the tournament that had a 1987 result of 1R?
CREATE TABLE table_name_71 (Id VARCHAR)
SELECT record FROM table_name_32 WHERE score = "1–3" AND visitor = "chicago black hawks" AND date = "november 15"
What is the Record of the game on November 15 against Visitor Chicago Black Hawks with a Score of 1–3?
CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR, score VARCHAR, visitor VARCHAR)
SELECT COUNT(party) FROM table_1341930_33 WHERE candidates = "Alton Lennon (D) 89.0% C. Dana Malpass (R) 11.0%"
how many party with candidates being alton lennon (d) 89.0% c. dana malpass (r) 11.0%
CREATE TABLE table_1341930_33 (party VARCHAR, candidates VARCHAR)
SELECT fastest_lap FROM table_name_50 WHERE winning_driver = "adam christodoulou" AND pole_position = "adam christodoulou"
Who had the fastest lap when adam christodoulou was the winning driver and had the pole position?
CREATE TABLE table_name_50 (fastest_lap VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)
SELECT SUM(loss) FROM table_name_18 WHERE avg_g = 89.9
WHAT IS THE LOSS WITH AN AVERAGE OF 89.9?
CREATE TABLE table_name_18 (loss INTEGER, avg_g VARCHAR)
SELECT opponent FROM table_name_76 WHERE venue = "away" AND date = "28th"
What opponent played on the 28th with a venue of away?
CREATE TABLE table_name_76 (opponent VARCHAR, venue VARCHAR, date VARCHAR)
SELECT COUNT(title) FROM table_234886_3 WHERE no_in_series = 29
What is the total number of titles for the episode numbered 29 in the series?
CREATE TABLE table_234886_3 (title VARCHAR, no_in_series VARCHAR)
SELECT ihsaa_football_class FROM table_name_71 WHERE school = "wood memorial"
Which IHSAA Football Class has a School of wood memorial?
CREATE TABLE table_name_71 (ihsaa_football_class VARCHAR, school VARCHAR)
SELECT class FROM table_name_11 WHERE event = "freestyle test" AND result < 70.277 AND horse = "fabuleux 5"
What is the class of Fabuleux 5 get less than 70.277 in the freestyle test?
CREATE TABLE table_name_11 (class VARCHAR, horse VARCHAR, event VARCHAR, result VARCHAR)
SELECT torque FROM table_name_21 WHERE volume = "1896 cc" AND co_2 = "140 g/km"
Which Torque has a Volume of 1896 cc, and a CO 2 of 140 g/km?
CREATE TABLE table_name_21 (torque VARCHAR, volume VARCHAR, co_2 VARCHAR)
SELECT pos FROM table_name_41 WHERE name = "elise norwood"
What is Elise Norwood's Pos.?
CREATE TABLE table_name_41 (pos VARCHAR, name VARCHAR)
SELECT hometown FROM table_name_31 WHERE height = "6-0"
What is the hometown of the player which has a height of 6-0?
CREATE TABLE table_name_31 (hometown VARCHAR, height VARCHAR)
SELECT score FROM table_name_12 WHERE partner = "jeff tarango"
What was the score of the Jeff Tarango game?
CREATE TABLE table_name_12 (score VARCHAR, partner VARCHAR)
SELECT fate FROM table_name_48 WHERE name = "san pablo"
What is the Fate of the San Pablo ship?
CREATE TABLE table_name_48 (fate VARCHAR, name VARCHAR)
SELECT ride_name FROM table_name_43 WHERE manufacturer = "zierer"
What ride was manufactured by Zierer?
CREATE TABLE table_name_43 (ride_name VARCHAR, manufacturer VARCHAR)
SELECT matches FROM table_name_55 WHERE rank < 6 AND years = "1943-62"
Can you tell me the Matches that has the Rank smaller than 6, and the Years of 1943-62?
CREATE TABLE table_name_55 (matches VARCHAR, rank VARCHAR, years VARCHAR)
SELECT loss FROM table_name_69 WHERE opponent = "nationals" AND score = "7-1"
What's the loss of the game with the opponent of the Nationals with a score of 7-1?
CREATE TABLE table_name_69 (loss VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT position FROM table_name_81 WHERE school_club_team = "maryland" AND round = 3
What position does Maryland have a player for Round 3?
CREATE TABLE table_name_81 (position VARCHAR, school_club_team VARCHAR, round VARCHAR)
SELECT SUM(spectators) FROM table_name_66 WHERE time___cest__ > 20.05 AND team__number2 = "estonia"
Name the sum of spectators for time more than 20.05 and team #2 of estonia
CREATE TABLE table_name_66 (spectators INTEGER, time___cest__ VARCHAR, team__number2 VARCHAR)
SELECT COUNT(first_performance) FROM table_19189856_1 WHERE performer = "Wilfred Engelman category:Articles with hCards"
how many first performances where performer is wilfred engelman category:articles with hcards
CREATE TABLE table_19189856_1 (first_performance VARCHAR, performer VARCHAR)
SELECT MAX(matches) FROM table_23316034_16 WHERE runs = 5028
If the runs is 5028, what is the matches maximum?
CREATE TABLE table_23316034_16 (matches INTEGER, runs VARCHAR)
SELECT record FROM table_name_95 WHERE opponent = "new york jets"
What was the Steeler's record when they played against the new york Jets?
CREATE TABLE table_name_95 (record VARCHAR, opponent VARCHAR)
SELECT playoffs FROM table_name_99 WHERE regular_season = "on hiatus."
Who Playoffs has a Regular Season of on hiatus.?
CREATE TABLE table_name_99 (playoffs VARCHAR, regular_season VARCHAR)
SELECT player FROM table_name_98 WHERE date = "12-02-2003"
What player has a date of 12-02-2003?
CREATE TABLE table_name_98 (player VARCHAR, date VARCHAR)
SELECT AVG(year) FROM table_name_78 WHERE floors > 75
When was the average year that the number of floors was greater than 75?
CREATE TABLE table_name_78 (year INTEGER, floors INTEGER)
SELECT result FROM table_name_92 WHERE venue = "afg arena, st. gallen" AND score = "1–0"
What is the Result of the AFG Arena, St. Gallen Competition with a Score of 1–0?
CREATE TABLE table_name_92 (result VARCHAR, venue VARCHAR, score VARCHAR)
SELECT team FROM table_28628309_8 WHERE player = "Ronjay Buenafe"
What is the team when player is listed as Ronjay Buenafe?
CREATE TABLE table_28628309_8 (team VARCHAR, player VARCHAR)
SELECT MIN(engine) FROM table_name_60 WHERE model = "sl500" AND chassis < 129.067
Which Engine has a Model of sl500, and a Chassis smaller than 129.067?
CREATE TABLE table_name_60 (engine INTEGER, model VARCHAR, chassis VARCHAR)
SELECT country FROM table_name_46 WHERE icao = "ltcd"
WHich Country has a ICAO of ltcd?
CREATE TABLE table_name_46 (country VARCHAR, icao VARCHAR)
SELECT MIN(date) FROM table_name_87 WHERE catalog = "6561910008-1"
I want the lowest date for catalog of 6561910008-1
CREATE TABLE table_name_87 (date INTEGER, catalog VARCHAR)
SELECT place FROM table_name_81 WHERE score = 68 - 72 - 77 - 74 = 291
what is the place when the score is 68-72-77-74=291?
CREATE TABLE table_name_81 (place VARCHAR, score VARCHAR)
SELECT artist FROM table_name_50 WHERE place < 3 AND percentage = "38.60%"
What Artist has a Place of 3 or less with a Percentage of 38.60%?
CREATE TABLE table_name_50 (artist VARCHAR, place VARCHAR, percentage VARCHAR)
SELECT COUNT(game) FROM table_name_52 WHERE attendance = 19 OFFSET 190
How many games have an Attendance of 19,190?
CREATE TABLE table_name_52 (game VARCHAR, attendance VARCHAR)
SELECT COUNT(top_25) FROM table_name_23 WHERE wins = 0 AND cuts_made = 1 AND events > 5
What is the total number of top-25s for tournaments that had 0 wins, 1 cut made, and more than 5 events?
CREATE TABLE table_name_23 (top_25 VARCHAR, events VARCHAR, wins VARCHAR, cuts_made VARCHAR)
SELECT COUNT(bronze) FROM table_name_52 WHERE total < 3 AND nation = "poland" AND rank > 4
What is the total of Bronze with a total smaller than 3, and a nation of Poland, and a rank larger than 4?
CREATE TABLE table_name_52 (bronze VARCHAR, rank VARCHAR, total VARCHAR, nation VARCHAR)
SELECT COUNT(tournament) FROM table_2417741_1 WHERE year = 1999
When 1999 is the year how many tournaments are there?
CREATE TABLE table_2417741_1 (tournament VARCHAR, year VARCHAR)
SELECT studio_s_ FROM table_name_45 WHERE director = "paul greengrass"
What is the Studio of the Film directed by Paul Greengrass?
CREATE TABLE table_name_45 (studio_s_ VARCHAR, director VARCHAR)
SELECT gdp__billion_us$_ FROM table_name_29 WHERE gdp_per_capita__us$_ = "8,861"
What is the GDP (billion US$) of the country that has a GDP per capita (US$) of 8,861?
CREATE TABLE table_name_29 (gdp__billion_us$_ VARCHAR, gdp_per_capita__us$_ VARCHAR)
SELECT city_of_license_market FROM table_11147852_1 WHERE station = "KTFK-DT"
What market is KTFK-DT in?
CREATE TABLE table_11147852_1 (city_of_license_market VARCHAR, station VARCHAR)
SELECT name FROM table_name_33 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad"
Who has a term that expires on December 31, 2020 and Terry Branstad for an appointing governor?
CREATE TABLE table_name_33 (name VARCHAR, term_expires VARCHAR, appointing_governor VARCHAR)
SELECT MIN(score) FROM table_name_35 WHERE country = "united states" AND player = "craig stadler"
What was Craig Stadler's lowest score for United states?
CREATE TABLE table_name_35 (score INTEGER, country VARCHAR, player VARCHAR)
SELECT podiums FROM table_name_11 WHERE races = "1" AND final_placing = "5th"
Which Podium has 1 Race and a Final Place of 5th?
CREATE TABLE table_name_11 (podiums VARCHAR, races VARCHAR, final_placing VARCHAR)
SELECT MIN(crowd) FROM table_name_80 WHERE home_team = "st kilda"
What was the smallest crowd size for the home team at St Kilda?
CREATE TABLE table_name_80 (crowd INTEGER, home_team VARCHAR)
SELECT scale FROM table_name_90 WHERE name = "ura index"
What is URA Index scale?
CREATE TABLE table_name_90 (scale VARCHAR, name VARCHAR)
SELECT explanation FROM table_2026548_1 WHERE vice_president = "Alben W. Barkley"
Name the explanation for alben w. barkley
CREATE TABLE table_2026548_1 (explanation VARCHAR, vice_president VARCHAR)
SELECT original_air_date FROM table_11562143_1 WHERE us_viewers__million_ = "9.82"
What date got 9.82 million viewers?
CREATE TABLE table_11562143_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT mark FROM table_name_84 WHERE athlete = "tatyana lebedeva"
Which Mark has an Athlete of tatyana lebedeva?
CREATE TABLE table_name_84 (mark VARCHAR, athlete VARCHAR)
SELECT MIN(against) FROM table_name_17 WHERE drawn < 2 AND points = 10 AND lost < 4
What is the lowest against value with less than 2 draws, 10 points, and less than 4 lost?
CREATE TABLE table_name_17 (against INTEGER, lost VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT COUNT(score) FROM table_11621873_1 WHERE tournament = "Northville Long Island Classic"
How many scores were at the Northville Long Island Classic?
CREATE TABLE table_11621873_1 (score VARCHAR, tournament VARCHAR)
SELECT COUNT(population__2011_) FROM table_189893_1 WHERE percentage__2006_ = "1.40%"
How many values for population(2011) correspond to a 1.40% in 2006?
CREATE TABLE table_189893_1 (population__2011_ VARCHAR, percentage__2006_ VARCHAR)
SELECT 2006 FROM table_name_8 WHERE 2007 = "3r"
What is the 2006 value with 3r in 2007?
CREATE TABLE table_name_8 (Id VARCHAR)
SELECT date FROM table_name_61 WHERE attendance = "79,431"
Where attendance is 79,431 what is date?
CREATE TABLE table_name_61 (date VARCHAR, attendance VARCHAR)
SELECT MIN(points) FROM table_name_15 WHERE year = 1978 AND chassis = "ensign n177"
What are the lowest number of points with a Year of 1978, and a Chassis of ensign n177?
CREATE TABLE table_name_15 (points INTEGER, year VARCHAR, chassis VARCHAR)
SELECT MAX(production_code) FROM table_27713890_1 WHERE us_viewers__millions_ = "24.8"
What is the production code that had 24.8 million u.s. viewers?
CREATE TABLE table_27713890_1 (production_code INTEGER, us_viewers__millions_ VARCHAR)
SELECT tournament FROM table_name_49 WHERE 2012 = "a" AND 2010 = "a"
Which tournament had a result in 2010 and 2012 of a?
CREATE TABLE table_name_49 (tournament VARCHAR)
SELECT COUNT(year) FROM table_name_53 WHERE location = "lincoln financial field" AND winner = "new york giants" AND result = "15-7"
How many years did the new york giants win with a result of 15-7 at lincoln financial field?
CREATE TABLE table_name_53 (year VARCHAR, result VARCHAR, location VARCHAR, winner VARCHAR)
SELECT type FROM table_21538523_1 WHERE caliber = ".44 Magnum"
What type of glazing will stop a .44 magnum?
CREATE TABLE table_21538523_1 (type VARCHAR, caliber VARCHAR)
SELECT year FROM table_name_19 WHERE nominated = "teen angels 2"
What year was Teen Angels 2 nominated?
CREATE TABLE table_name_19 (year VARCHAR, nominated VARCHAR)
SELECT record FROM table_name_95 WHERE score = "w 100-99"
What is the record for the w 100-99 score?
CREATE TABLE table_name_95 (record VARCHAR, score VARCHAR)
SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000
Which delegates are from counties with population smaller than 100000?
CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_id VARCHAR, Population INTEGER)
SELECT COUNT(written_by) FROM table_26429658_1 WHERE directed_by = "Arlene Sanford"
How many episodes were directed by Arlene Sanford?
CREATE TABLE table_26429658_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT home_team AS score FROM table_name_43 WHERE away_team = "carlton"
What was the home team score when the away team was Carlton?
CREATE TABLE table_name_43 (home_team VARCHAR, away_team VARCHAR)
SELECT opponent FROM table_name_40 WHERE week = 6
Who was the opponent for week 6?
CREATE TABLE table_name_40 (opponent VARCHAR, week VARCHAR)
SELECT current_club FROM table_name_28 WHERE first_team_appearances = "ongoing" AND position = "midfielder" AND player = "samir carruthers"
What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?
CREATE TABLE table_name_28 (current_club VARCHAR, player VARCHAR, first_team_appearances VARCHAR, position VARCHAR)
SELECT grid FROM table_name_11 WHERE driver = "pierre levegh"
what is the grid when the driver is pierre levegh?
CREATE TABLE table_name_11 (grid VARCHAR, driver VARCHAR)
SELECT original_air_date FROM table_27332038_1 WHERE production_code = "2ARG24"
when was the episode with production code "2arg24" originally aired?
CREATE TABLE table_27332038_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT COUNT(played) FROM table_name_57 WHERE points_1 = "80" AND goals_for > 77
What is the played number with points 1 is 80, and goals for is more than 77?
CREATE TABLE table_name_57 (played VARCHAR, points_1 VARCHAR, goals_for VARCHAR)
SELECT COUNT(position) FROM table_2781227_4 WHERE player = "John Jakopin"
For player is john jakopin mention the total number of position
CREATE TABLE table_2781227_4 (position VARCHAR, player VARCHAR)
SELECT hdtv FROM table_name_50 WHERE content = "general television"
What is the HDTV when the content is general television?
CREATE TABLE table_name_50 (hdtv VARCHAR, content VARCHAR)
SELECT letter_name FROM table_name_74 WHERE asomtavruli = "ⴙ"
What is the letter name for the Asomtavruli ⴙ?
CREATE TABLE table_name_74 (letter_name VARCHAR, asomtavruli VARCHAR)
SELECT throws FROM table_name_39 WHERE first = "james"
How many throws did james get?
CREATE TABLE table_name_39 (throws VARCHAR, first VARCHAR)
SELECT touchdowns FROM table_name_71 WHERE extra_points = 0 AND position = "left halfback" AND player = "hal weeks"
How many touchdowns are there when there were 0 extra points and Hal Weeks had left halfback?
CREATE TABLE table_name_71 (touchdowns VARCHAR, player VARCHAR, extra_points VARCHAR, position VARCHAR)
SELECT COUNT(week) FROM table_11465521_2 WHERE record = "3-6"
In which week was the game against a team with a record of 3-6 played?
CREATE TABLE table_11465521_2 (week VARCHAR, record VARCHAR)
SELECT high_assists FROM table_17311759_4 WHERE high_rebounds = "Al Horford (17)"
Who made highest assists when high rebounds was Al Horford (17)
CREATE TABLE table_17311759_4 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT left_office FROM table_name_1 WHERE inaugurated = "15 march 1930"
What is Left Office, when Inaugurate is "15 March 1930"?
CREATE TABLE table_name_1 (left_office VARCHAR, inaugurated VARCHAR)
SELECT to_par FROM table_name_85 WHERE place = "t1" AND country = "india"
Which To par has a Place of t1, and a Country of india?
CREATE TABLE table_name_85 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT COUNT(mccain_number) FROM table_20688030_1 WHERE obama_percentage = "39.13%"
What is McCains percent when Obamas is 39.13%
CREATE TABLE table_20688030_1 (mccain_number VARCHAR, obama_percentage VARCHAR)
SELECT name, LOCATION FROM enzyme
List the names and the locations that the enzymes can make an effect.
CREATE TABLE enzyme (name VARCHAR, LOCATION VARCHAR)
SELECT name FROM swimmer ORDER BY meter_100
Find the names of all swimmers, sorted by their 100 meter scores in ascending order.
CREATE TABLE swimmer (name VARCHAR, meter_100 VARCHAR)
SELECT AVG(rank) FROM table_name_1 WHERE athletes = "calvin mokoto"
What is Calvin Mokoto's average rank?
CREATE TABLE table_name_1 (rank INTEGER, athletes VARCHAR)
SELECT father FROM table_name_89 WHERE spouse = "ottokar ii" AND birth = "1204"
What is the name of the father who was born in 1204 and married ottokar ii?
CREATE TABLE table_name_89 (father VARCHAR, spouse VARCHAR, birth VARCHAR)
SELECT COUNT(pick__number) FROM table_26996293_7 WHERE player = "Brian Currie"
How many times was player brian currie picked?
CREATE TABLE table_26996293_7 (pick__number VARCHAR, player VARCHAR)
SELECT club FROM table_name_76 WHERE founded < 1882 AND league = "fa premier league"
Which Club has a Founded smaller than 1882, and a League of fa premier league?
CREATE TABLE table_name_76 (club VARCHAR, founded VARCHAR, league VARCHAR)
SELECT MAX(attendance) FROM table_name_91 WHERE date = "december 23"
What was the highest attendance on December 23?
CREATE TABLE table_name_91 (attendance INTEGER, date VARCHAR)