answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT record FROM table_name_20 WHERE game > 34 AND december < 23
Game larger than 34, and a December smaller than 23 had what record?
CREATE TABLE table_name_20 (record VARCHAR, game VARCHAR, december VARCHAR)
SELECT party FROM table_name_58 WHERE representative = "thomas l. young"
Which party did Thomas L. Young belong to?
CREATE TABLE table_name_58 (party VARCHAR, representative VARCHAR)
SELECT registrations FROM table_name_27 WHERE type = "retained" AND station_number = "c03"
What is the registration of the station with a retained type and a station number of c03?
CREATE TABLE table_name_27 (registrations VARCHAR, type VARCHAR, station_number VARCHAR)
SELECT COUNT(original_title) FROM table_17641206_6 WHERE written_by = "John Sullivan and Keith Lindsay"
Name the total number of original titles written by john sullivan and keith lindsay
CREATE TABLE table_17641206_6 (original_title VARCHAR, written_by VARCHAR)
SELECT duration FROM table_name_73 WHERE translation = "1000 lies"
Which one of the duration has a translation of 1000 lies?
CREATE TABLE table_name_73 (duration VARCHAR, translation VARCHAR)
SELECT rating FROM table_name_62 WHERE player = "patrice bergeron"
What is Patrice Bergeron's rating?
CREATE TABLE table_name_62 (rating VARCHAR, player VARCHAR)
SELECT record FROM table_name_41 WHERE date = "april 16"
What was the record on April 16?
CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR)
SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses
What are the ids of documents which don't have expense budgets?
CREATE TABLE Documents (document_id VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR)
SELECT nfl_team FROM table_16376436_1 WHERE college = "Norfolk State"
What is the NFL team for the player who's college was Norfolk State?
CREATE TABLE table_16376436_1 (nfl_team VARCHAR, college VARCHAR)
SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs)
How many dogs have an age below the average?
CREATE TABLE Dogs (age INTEGER)
SELECT MIN(age) FROM table_21346767_3 WHERE geographical_regions = "Cibao Central" AND hometown = "Santo Domingo"
Name the least age for cibao central and santo domingo
CREATE TABLE table_21346767_3 (age INTEGER, geographical_regions VARCHAR, hometown VARCHAR)
SELECT result FROM table_name_36 WHERE date = "7 june 2000"
Which Result has a Date of 7 june 2000?
CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR)
SELECT result FROM table_14984039_1 WHERE date = "October 14, 1956"
what is the result for October 14, 1956?
CREATE TABLE table_14984039_1 (result VARCHAR, date VARCHAR)
SELECT AVG(time) FROM table_name_24 WHERE rank > 2 AND name = "andy turner"
What is the average time with a rank lower than 2 for Andy Turner?
CREATE TABLE table_name_24 (time INTEGER, rank VARCHAR, name VARCHAR)
SELECT home_team FROM table_name_6 WHERE away_team = "millwall"
Who was the home team in the match with an away team of Millwall?
CREATE TABLE table_name_6 (home_team VARCHAR, away_team VARCHAR)
SELECT mountain_range FROM table_name_50 WHERE mountain_peak = "mauna kea"
what is the mountain range when the mountain peak is mauna kea?
CREATE TABLE table_name_50 (mountain_range VARCHAR, mountain_peak VARCHAR)
SELECT engine FROM table_name_19 WHERE team = "alex morales motorsports"
What is the engine for the team of Alex Morales Motorsports?
CREATE TABLE table_name_19 (engine VARCHAR, team VARCHAR)
SELECT height_in_ft FROM table_11734041_7 WHERE school_club_team_country = "Clemson"
What is the height of the school club team members in clemson?
CREATE TABLE table_11734041_7 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
SELECT away_team FROM table_24949975_1 WHERE result = "2–1" AND home_team = "Bohemians"
What was the away team when the result was 2–1 and home team was the bohemians?
CREATE TABLE table_24949975_1 (away_team VARCHAR, result VARCHAR, home_team VARCHAR)
SELECT points_against FROM table_14058433_4 WHERE won = "11"
what's the points against with won being 11
CREATE TABLE table_14058433_4 (points_against VARCHAR, won VARCHAR)
SELECT Name FROM member ORDER BY Name
List the names of members in ascending alphabetical order.
CREATE TABLE member (Name VARCHAR)
SELECT MAX(grid) FROM table_name_9 WHERE manufacturer = "suzuki" AND time_retired = "+1:01.894"
What is the grid for the rider who rides a Suzuki and has the time of +1:01.894?
CREATE TABLE table_name_9 (grid INTEGER, manufacturer VARCHAR, time_retired VARCHAR)
SELECT abbr FROM table_name_65 WHERE italian = "argovia"
What is the abbr of argovia?
CREATE TABLE table_name_65 (abbr VARCHAR, italian VARCHAR)
SELECT position FROM table_10015132_11 WHERE school_club_team = "Butler CC (KS)"
What position does the player who played for butler cc (ks) play?
CREATE TABLE table_10015132_11 (position VARCHAR, school_club_team VARCHAR)
SELECT to_par FROM table_name_28 WHERE finish = "t31"
When the finish was t31 what was the To par?
CREATE TABLE table_name_28 (to_par VARCHAR, finish VARCHAR)
SELECT AVG(tonnage) FROM table_name_78 WHERE date = "30 march 1943"
What was the tonnage on 30 march 1943?
CREATE TABLE table_name_78 (tonnage INTEGER, date VARCHAR)
SELECT position FROM table_name_6 WHERE overall < 590 AND round = 3
What is Position, when Overall is less than 590, and when Round is 3?
CREATE TABLE table_name_6 (position VARCHAR, overall VARCHAR, round VARCHAR)
SELECT theme FROM table_name_59 WHERE show = "week 1" AND order = "2"
For the week 1 show and order 2, what was the theme?
CREATE TABLE table_name_59 (theme VARCHAR, show VARCHAR, order VARCHAR)
SELECT date FROM table_name_31 WHERE set_1 = "21–25"
Which Date has a Set 1 of 21–25?
CREATE TABLE table_name_31 (date VARCHAR, set_1 VARCHAR)
SELECT 2011 FROM table_name_39 WHERE tournament = "year-end ranking"
What is 2011, when Tournament is "Year-End Ranking"?
CREATE TABLE table_name_39 (tournament VARCHAR)
SELECT away_team AS score FROM table_name_32 WHERE home_team = "collingwood"
What was Collingwood's away team score?
CREATE TABLE table_name_32 (away_team VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_52 WHERE label = "bronze" AND format = "vinyl"
What date was the bronze label in vinyl format?
CREATE TABLE table_name_52 (date VARCHAR, label VARCHAR, format VARCHAR)
SELECT record FROM table_name_25 WHERE week > 7 AND opponent = "san diego chargers"
What is the Record in a week later than 7 against the San Diego Chargers?
CREATE TABLE table_name_25 (record VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT circuit FROM table_name_97 WHERE race = "italian grand prix"
Name the circuit for italian grand prix
CREATE TABLE table_name_97 (circuit VARCHAR, race VARCHAR)
SELECT event_place FROM table_name_61 WHERE time = "61:32"
Where did someone run a 61:32
CREATE TABLE table_name_61 (event_place VARCHAR, time VARCHAR)
SELECT MIN(occ_championships) FROM table_17429402_7 WHERE last_outright_occ_championship = "2006"
What is the fewest number of occ championships for the team that last won an outright occ championship in 2006?
CREATE TABLE table_17429402_7 (occ_championships INTEGER, last_outright_occ_championship VARCHAR)
SELECT date_left_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"
When did the staff member with first name as Janessa and last name as Sawayn leave the company?
CREATE TABLE Staff (date_left_staff VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT COUNT(population__2002_) FROM table_2562572_2 WHERE population__2011_ = 5399
What is the number of 2002 populations having a 2011 population of exactly 5399?
CREATE TABLE table_2562572_2 (population__2002_ VARCHAR, population__2011_ VARCHAR)
SELECT MIN(population) FROM table_170961_2 WHERE census_ranking = "1,184 of 5,008"
At census ranking 1,184 of 5,008, what was the minimum population?
CREATE TABLE table_170961_2 (population INTEGER, census_ranking VARCHAR)
SELECT jockey FROM table_name_39 WHERE trainer = "nick zito" AND odds = "34-1"
Who is the Jockey that has Nick Zito as Trainer and Odds of 34-1?
CREATE TABLE table_name_39 (jockey VARCHAR, trainer VARCHAR, odds VARCHAR)
SELECT MAX(round) FROM table_name_19 WHERE player = "tommy norman"
In what Round was Tommy Norman picked?
CREATE TABLE table_name_19 (round INTEGER, player VARCHAR)
SELECT SUM(attendance) FROM table_name_47 WHERE tie_no = "1"
How many attended tie number 1?
CREATE TABLE table_name_47 (attendance INTEGER, tie_no VARCHAR)
SELECT position FROM table_21795846_1 WHERE points = 16
If there is 16 points, what was the position?
CREATE TABLE table_21795846_1 (position VARCHAR, points VARCHAR)
SELECT SUM(crowd) FROM table_name_41 WHERE away_team = "richmond"
What is the Crowd number for the Away team of Richmond?
CREATE TABLE table_name_41 (crowd INTEGER, away_team VARCHAR)
SELECT final_position FROM table_name_70 WHERE season = "2012"
What is the final position for the season 2012?
CREATE TABLE table_name_70 (final_position VARCHAR, season VARCHAR)
SELECT netscape FROM table_name_54 WHERE internet_explorer = "63.67%"
What percentage of users were using Netscape during the period in which 63.67% were using Internet Explorer?
CREATE TABLE table_name_54 (netscape VARCHAR, internet_explorer VARCHAR)
SELECT COUNT(pick) FROM table_name_32 WHERE college = "boston college"
WHAT IS THE TOTAL PICK FOR BOSTON COLLEGE?
CREATE TABLE table_name_32 (pick VARCHAR, college VARCHAR)
SELECT high_assists FROM table_name_53 WHERE game = 72
Who has the highest assists in game 72?
CREATE TABLE table_name_53 (high_assists VARCHAR, game VARCHAR)
SELECT MIN(safeties) FROM table_25642873_2
What is the smallest number of safeties?
CREATE TABLE table_25642873_2 (safeties INTEGER)
SELECT SUM(avg_g) FROM table_name_59 WHERE name = "josh freeman" AND loss < 134
Which Avg/G has a Name of josh freeman, and a Loss smaller than 134?
CREATE TABLE table_name_59 (avg_g INTEGER, name VARCHAR, loss VARCHAR)
SELECT stadium FROM table_name_31 WHERE year > 2012
What was the stadium past 2012?
CREATE TABLE table_name_31 (stadium VARCHAR, year INTEGER)
SELECT COUNT(total_top_3_placements) FROM table_2876467_3 WHERE region_represented = "Taiwan"
How many values of total top 3 placements does Taiwan have?
CREATE TABLE table_2876467_3 (total_top_3_placements VARCHAR, region_represented VARCHAR)
SELECT constructor FROM table_name_3 WHERE driver = "alberto colombo" AND chassis = "a1"
Tell me the constructor for alberto colombo and chassis of a1
CREATE TABLE table_name_3 (constructor VARCHAR, driver VARCHAR, chassis VARCHAR)
SELECT artist FROM table_name_67 WHERE issue_date_s_ = "19 january"
Who was the artist that issued the single on 19 January?
CREATE TABLE table_name_67 (artist VARCHAR, issue_date_s_ VARCHAR)
SELECT SUM(laps) FROM table_name_77 WHERE grid > 4 AND driver = "nick heidfeld"
How many laps did Nick Heidfeld drive on grids larger than 4?
CREATE TABLE table_name_77 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT SUM(pop__2004_) FROM table_name_15 WHERE governorate = "al mahrah" AND area_km² < 78 OFFSET 073
Count the sum of Pop (2004) which has a Governorate of al mahrah with an Area km² smaller than 78,073?
CREATE TABLE table_name_15 (pop__2004_ INTEGER, governorate VARCHAR, area_km² VARCHAR)
SELECT venue FROM table_name_61 WHERE driver = "emerson fittipaldi" AND event = "brdc international trophy"
Where was the BRDC International Trophy with driver Emerson Fittipaldi held?
CREATE TABLE table_name_61 (venue VARCHAR, driver VARCHAR, event VARCHAR)
SELECT turbo FROM table_name_30 WHERE cores = "standard power"
what is the turbo when the cores is standard power?
CREATE TABLE table_name_30 (turbo VARCHAR, cores VARCHAR)
SELECT MIN(camp_mates) FROM table_14345690_1
What was the least amount of camp mates?
CREATE TABLE table_14345690_1 (camp_mates INTEGER)
SELECT result FROM table_name_75 WHERE match = "napoli-roma"
What was the result of the napoli-roma match?
CREATE TABLE table_name_75 (result VARCHAR, match VARCHAR)
SELECT city FROM table_name_87 WHERE rank < 5 AND name = "lamar tower 1"
What city is the lamar tower 1, ranked above 5?
CREATE TABLE table_name_87 (city VARCHAR, rank VARCHAR, name VARCHAR)
SELECT away_team FROM table_name_64 WHERE venue = "arden street oval"
Who was the opposing team at the match played at the Arden Street Oval?
CREATE TABLE table_name_64 (away_team VARCHAR, venue VARCHAR)
SELECT MIN(week) FROM table_name_60 WHERE attendance < 34 OFFSET 336
Can you tell me the lowest Week that has the Attendance smaller than 34,336?
CREATE TABLE table_name_60 (week INTEGER, attendance INTEGER)
SELECT wheel_arrangement FROM table_name_75 WHERE year_s__retired = "1955"
What is the wheel arrangement for the model that was retired in 1955?
CREATE TABLE table_name_75 (wheel_arrangement VARCHAR, year_s__retired VARCHAR)
SELECT AVG(average) FROM table_name_23 WHERE tally = "2-12" AND total > 18
Which Average has a Tally of 2-12, and a Total larger than 18?
CREATE TABLE table_name_23 (average INTEGER, tally VARCHAR, total VARCHAR)
SELECT MAX(legs_won) FROM table_27906667_2 WHERE player = "Alan Tabern"
How many legs were own by alan tabern?
CREATE TABLE table_27906667_2 (legs_won INTEGER, player VARCHAR)
SELECT team FROM table_17355716_5 WHERE date = "November 17"
Name the team where the date is november 17
CREATE TABLE table_17355716_5 (team VARCHAR, date VARCHAR)
SELECT country FROM table_name_85 WHERE rank < 4 AND athlete = "ekaterina karsten"
What country is the athlete ekaterina karsten from with a rank less than 4?
CREATE TABLE table_name_85 (country VARCHAR, rank VARCHAR, athlete VARCHAR)
SELECT date FROM table_name_36 WHERE attendance = "17,136"
On what date was the attendance 17,136?
CREATE TABLE table_name_36 (date VARCHAR, attendance VARCHAR)
SELECT constructor FROM table_name_58 WHERE grid > 17 AND time_retired = "brakes"
Who constructed the car that retired due to brakes with a grid larger than 17?
CREATE TABLE table_name_58 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT match FROM table_name_91 WHERE opponent = "bishop's stortford"
What was the match that happened in Bishop's Stortford?
CREATE TABLE table_name_91 (match VARCHAR, opponent VARCHAR)
SELECT format FROM table_name_84 WHERE region = "united states" AND date = "july 23, 2002"
What is the format for the United States dated July 23, 2002?
CREATE TABLE table_name_84 (format VARCHAR, region VARCHAR, date VARCHAR)
SELECT score FROM table_name_49 WHERE competition = "world cup qualifying" AND date = "october 15, 2008"
Name the sscore for world cup qualifying october 15, 2008
CREATE TABLE table_name_49 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT pick__number FROM table_2850912_12 WHERE nhl_team = "New Jersey Devils"
Which draft number did the new jersey devils get?
CREATE TABLE table_2850912_12 (pick__number VARCHAR, nhl_team VARCHAR)
SELECT event FROM table_name_75 WHERE alternate = "sun yue" AND skip = "wang bingyu(3rd)"
What event was Sun Yue the alternate and wang bingyu(3rd) the skip?
CREATE TABLE table_name_75 (event VARCHAR, alternate VARCHAR, skip VARCHAR)
SELECT site FROM table_name_38 WHERE sport = "w swimming"
Which Site has a Sport of w swimming?
CREATE TABLE table_name_38 (site VARCHAR, sport VARCHAR)
SELECT MIN(number_of_episodes) FROM table_name_22 WHERE airing_date = "12 jan- 6 feb"
What is the lowest number of episodes in a series with an airing date of 12 jan- 6 feb?
CREATE TABLE table_name_22 (number_of_episodes INTEGER, airing_date VARCHAR)
SELECT round_of_16 FROM table_29521180_35 WHERE athlete = "Felipe Saucedo"
What was the round of 16 result for felipe saucedo?
CREATE TABLE table_29521180_35 (round_of_16 VARCHAR, athlete VARCHAR)
SELECT player FROM table_name_70 WHERE school_club_team = "memphis"
What is the Player from Memphis?
CREATE TABLE table_name_70 (player VARCHAR, school_club_team VARCHAR)
SELECT COUNT(rank) FROM table_name_6 WHERE bronze > 1 AND silver > 0 AND nation = "norway (host nation)" AND total > 16
Which Rank has a Bronze larger than 1, and a Silver larger than 0, and a Nation of norway (host nation), and a Total larger than 16?
CREATE TABLE table_name_6 (rank VARCHAR, total VARCHAR, nation VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT confederation FROM table_23995075_2 WHERE remaining_places_in_finals = "4"
What is the confederation when there are 4 places remaining in the finals?
CREATE TABLE table_23995075_2 (confederation VARCHAR, remaining_places_in_finals VARCHAR)
SELECT winner FROM table_14395920_2 WHERE stage = 18
Who won stage 18?
CREATE TABLE table_14395920_2 (winner VARCHAR, stage VARCHAR)
SELECT former_province FROM table_16278894_1 WHERE area__km_2__ = "694.9"
In what former province was the area 694.9 kilometers squared?
CREATE TABLE table_16278894_1 (former_province VARCHAR, area__km_2__ VARCHAR)
SELECT MIN(crowd) FROM table_name_50 WHERE venue = "kardinia park"
what is the lowest crowd at kardinia park
CREATE TABLE table_name_50 (crowd INTEGER, venue VARCHAR)
SELECT high_points FROM table_22883210_11 WHERE game = 5
When 5 is the game who has the highest amount of points?
CREATE TABLE table_22883210_11 (high_points VARCHAR, game VARCHAR)
SELECT MAX(overall) FROM table_name_15 WHERE name = "chris horton" AND pick < 42
When the pick was below 42 and the player was Chris Horton, what's the highest Overall pick found?
CREATE TABLE table_name_15 (overall INTEGER, name VARCHAR, pick VARCHAR)
SELECT MAX(elevation__m_) FROM table_name_83 WHERE peak = "daurmål" AND isolation__km_ > 4
What is the highest elevation for the peak daurmål, and an Isolation (km) larger than 4?
CREATE TABLE table_name_83 (elevation__m_ INTEGER, peak VARCHAR, isolation__km_ VARCHAR)
SELECT nationality FROM table_name_7 WHERE games = "551" AND player = "mike gatting"
What is the Nationality of Mike Gatting, who played 551 games?
CREATE TABLE table_name_7 (nationality VARCHAR, games VARCHAR, player VARCHAR)
SELECT event FROM table_name_60 WHERE games = "1976 innsbruck"
What were the events in the 1976 Innsbruck Games?
CREATE TABLE table_name_60 (event VARCHAR, games VARCHAR)
SELECT city_town FROM table_name_3 WHERE stadium = "welford road"
What town has the Welford Road Stadium?
CREATE TABLE table_name_3 (city_town VARCHAR, stadium VARCHAR)
SELECT AVG(against) FROM table_name_24 WHERE difference = "10" AND lost < 2
Which average Against has a Difference of 10, and a Lost smaller than 2?
CREATE TABLE table_name_24 (against INTEGER, difference VARCHAR, lost VARCHAR)
SELECT home_team AS score FROM table_name_20 WHERE away_team = "south melbourne"
Who is the home team in the game where South Melbourne was the away team?
CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
SELECT away_team FROM table_name_58 WHERE home_team = "al-ain fc" AND score = "1–1"
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 semi_final_television_commentator FROM table_17766232_7 WHERE spokesperson = "Colin Berry" AND final_television_commentator = "Pete Murray"
Who was the semi-final television commentator when the spokesperson was Colin Berry and the final television commentator was Pete Murray?
CREATE TABLE table_17766232_7 (semi_final_television_commentator VARCHAR, spokesperson VARCHAR, final_television_commentator VARCHAR)
SELECT value FROM table_1818471_1 WHERE mitchell = 676
What is every value when Mitchell is 676?
CREATE TABLE table_1818471_1 (value VARCHAR, mitchell VARCHAR)
SELECT place FROM table_name_49 WHERE nation = "cuba"
What is the Place associated with Cuba?
CREATE TABLE table_name_49 (place VARCHAR, nation VARCHAR)
SELECT COUNT(number) FROM table_19624708_1 WHERE sp = "20/1" AND finishing_position = "Fence 19"
How many numbers have sp of 20/1 and a finishing position of fence 19?
CREATE TABLE table_19624708_1 (number VARCHAR, sp VARCHAR, finishing_position VARCHAR)
SELECT supercopa_1994 FROM table_name_10 WHERE team = "estudiantes"
Which Supercopa 1994 has a Team of estudiantes?
CREATE TABLE table_name_10 (supercopa_1994 VARCHAR, team VARCHAR)
SELECT winning_driver FROM table_name_9 WHERE race_name = "iv j.c.c. jersey road race"
Which driver won the iv j.c.c. jersey road race?
CREATE TABLE table_name_9 (winning_driver VARCHAR, race_name VARCHAR)
SELECT driver FROM table_18893428_1 WHERE constructor = "Mercedes-Benz"
Who is the driver of the entry constructed by Mercedes-Benz?
CREATE TABLE table_18893428_1 (driver VARCHAR, constructor VARCHAR)