answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT attendance FROM table_name_89 WHERE week = 2
What was the attendance at the week 2 game?
CREATE TABLE table_name_89 (attendance VARCHAR, week VARCHAR)
SELECT result FROM table_name_5 WHERE date = "may 29"
what game was on may 29
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)
SELECT countries_visited FROM table_name_96 WHERE presenter = "natalia makarova"
Which country did Natalia Makarova visit?
CREATE TABLE table_name_96 (countries_visited VARCHAR, presenter VARCHAR)
SELECT nfl_club FROM table_name_35 WHERE pick > 196
What team did the player represent that was picked after 196?
CREATE TABLE table_name_35 (nfl_club VARCHAR, pick INTEGER)
SELECT round FROM table_name_83 WHERE venue = "h" AND date = "29 january 1949"
Which round was played in the H Venue on 29 january 1949?
CREATE TABLE table_name_83 (round VARCHAR, venue VARCHAR, date VARCHAR)
SELECT artist FROM table_name_42 WHERE issue > 74 AND spoofed_title = "genteel ben"
Who was the artist for Spoofed title Genteel Ben in an issue later than 74?
CREATE TABLE table_name_42 (artist VARCHAR, issue VARCHAR, spoofed_title VARCHAR)
SELECT theme FROM table_name_72 WHERE issue_price = "$508.95"
What was the theme when the issue price was $508.95?
CREATE TABLE table_name_72 (theme VARCHAR, issue_price VARCHAR)
SELECT school_club_team FROM table_name_83 WHERE player = "howard wood"
What School/Club Team is Player Howard Wood from?
CREATE TABLE table_name_83 (school_club_team VARCHAR, player VARCHAR)
SELECT crs_credit, crs_description FROM course WHERE crs_code = 'CIS-220'
How many credits does course CIS-220 have, and what its description?
CREATE TABLE course (crs_credit VARCHAR, crs_description VARCHAR, crs_code VARCHAR)
SELECT royal_house FROM table_name_45 WHERE name = "wu" AND state = "cai"
What is the royal house for Wu at the state of cai?
CREATE TABLE table_name_45 (royal_house VARCHAR, name VARCHAR, state VARCHAR)
SELECT series FROM table_name_3 WHERE opponent = "calgary flames" AND score = "9–4"
Which Series has an Opponent of calgary flames, and a Score of 9–4?
CREATE TABLE table_name_3 (series VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT name FROM driver WHERE home_city = 'Hartford' AND age < 40
List names for drivers from Hartford city and younger than 40.
CREATE TABLE driver (name VARCHAR, home_city VARCHAR, age VARCHAR)
SELECT venue FROM table_name_23 WHERE batting_team = "west indies"
Where did the west indies batting team play at?
CREATE TABLE table_name_23 (venue VARCHAR, batting_team VARCHAR)
SELECT MAX(points) FROM table_name_66 WHERE year = 1962 AND class = "125cc" AND wins < 0
What is the highest points value for 1962, in the 125cc class, and with 0 wins?
CREATE TABLE table_name_66 (points INTEGER, wins VARCHAR, year VARCHAR, class VARCHAR)
SELECT MAX(round_4) FROM table_name_56 WHERE score = 284 AND year > 1998
What is the highest score in round 4 and total of 284 in a year more recent than 1998?
CREATE TABLE table_name_56 (round_4 INTEGER, score VARCHAR, year VARCHAR)
SELECT AVG(assists) FROM table_name_10 WHERE rank > 6 AND goals = 10 AND scorer = "robert ukrop"
What is the average amount of assists with a rank higher than 6 and goals 10 and the scorer is Robert Ukrop
CREATE TABLE table_name_10 (assists INTEGER, scorer VARCHAR, rank VARCHAR, goals VARCHAR)
SELECT COUNT(enrollment) FROM table_name_23 WHERE nickname = "buccaneers" AND founded < 1911
What is the number of enrollments for teams named the Buccaneers founded before 1911?
CREATE TABLE table_name_23 (enrollment VARCHAR, nickname VARCHAR, founded VARCHAR)
SELECT date FROM table_17118657_10 WHERE location_attendance = "UIC Pavilion 3,829"
On which date was the location/attendance UIC Pavilion 3,829 respectively?
CREATE TABLE table_17118657_10 (date VARCHAR, location_attendance VARCHAR)
SELECT high_assists FROM table_23284271_11 WHERE series = "1-2"
Name the high assists for 1-2 series
CREATE TABLE table_23284271_11 (high_assists VARCHAR, series VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_30 WHERE cyrillic_name_other_names = "Банатско Аранђелово"
What is the largest ethnic group of the settlement with the cyrillic name of банатско аранђелово?
CREATE TABLE table_2562572_30 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT name FROM table_name_77 WHERE company = "quantcast corporation"
Which Name has a Company of quantcast corporation?
CREATE TABLE table_name_77 (name VARCHAR, company VARCHAR)
SELECT player FROM table_name_41 WHERE no_result = 0 AND tied > 0
Which player has no 0 results and multiples ties?
CREATE TABLE table_name_41 (player VARCHAR, no_result VARCHAR, tied VARCHAR)
SELECT streak FROM table_30047613_12 WHERE date = "April 13"
in april 13 what was the streak
CREATE TABLE table_30047613_12 (streak VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_25 WHERE record = "11-6-2"
Who was the opponent when the record was 11-6-2?
CREATE TABLE table_name_25 (opponent VARCHAR, record VARCHAR)
SELECT MIN(pop_dens) FROM table_name_66 WHERE district = "strakonice (st)" AND noof_settlements > 112
What is the lowest population density of Strakonice (st) with more than 112 settlements?
CREATE TABLE table_name_66 (pop_dens INTEGER, district VARCHAR, noof_settlements VARCHAR)
SELECT AVG(attendance) FROM table_name_40 WHERE date = "october 12"
What was the average attendance on October 12?
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR)
SELECT venue FROM table_name_89 WHERE status = "five nations" AND against = 0
What Venue has a Status of five nations, and Against of 0?
CREATE TABLE table_name_89 (venue VARCHAR, status VARCHAR, against VARCHAR)
SELECT vinculum FROM table_name_13 WHERE parentheses = "0.(6)"
What is the value of vinculum for parentheses of 0.(6)?
CREATE TABLE table_name_13 (vinculum VARCHAR, parentheses VARCHAR)
SELECT score FROM table_name_99 WHERE attendance = "31,178"
Which score has an Attendance of 31,178?
CREATE TABLE table_name_99 (score VARCHAR, attendance VARCHAR)
SELECT tyre FROM table_name_40 WHERE engine_† = "peugeot a20"
What is the tyre for the peugeot a20 engine?
CREATE TABLE table_name_40 (tyre VARCHAR, engine_† VARCHAR)
SELECT density__pop_km²_ FROM table_1425958_1 WHERE _percentage_change = "8.8"
When the change is 8.8%, what is the density (pop/km²)?
CREATE TABLE table_1425958_1 (density__pop_km²_ VARCHAR, _percentage_change VARCHAR)
SELECT opponent FROM table_name_92 WHERE result = "w 38-14"
Who was the opponent at the game with a result of W 38-14?
CREATE TABLE table_name_92 (opponent VARCHAR, result VARCHAR)
SELECT race FROM table_name_3 WHERE date = "10/10/2008"
What is the race on 10/10/2008?
CREATE TABLE table_name_3 (race VARCHAR, date VARCHAR)
SELECT MIN(played) FROM table_name_58 WHERE position > 6 AND goals_against = 61 AND lost < 16
What is the lowest played that has a position greater than 6, 61 as the goals against, with a loss less than 16?
CREATE TABLE table_name_58 (played INTEGER, lost VARCHAR, position VARCHAR, goals_against VARCHAR)
SELECT score FROM table_name_40 WHERE money___$__ = "3,600"
What is the score for the player who won $3,600?
CREATE TABLE table_name_40 (score VARCHAR, money___$__ VARCHAR)
SELECT incumbent FROM table_28188239_1 WHERE district = "PA-8"
Who is the incumbent of district pa-8?
CREATE TABLE table_28188239_1 (incumbent VARCHAR, district VARCHAR)
SELECT score FROM table_name_38 WHERE to_par > 7 AND place = "t4" AND player = "bob rosburg"
What is Score, when To Par is greater than 7, when Place is "T4", and when Player is "Bob Rosburg"?
CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, to_par VARCHAR, place VARCHAR)
SELECT f_laps FROM table_25740774_1 WHERE races = 14
What are the f/laps for race 14?
CREATE TABLE table_25740774_1 (f_laps VARCHAR, races VARCHAR)
SELECT COUNT(prothrombin_time) FROM table_1555308_1 WHERE platelet_count = "Decreased or unaffected"
How many entries for prothrombin time are there where platelet count is "decreased or unaffected"?
CREATE TABLE table_1555308_1 (prothrombin_time VARCHAR, platelet_count VARCHAR)
SELECT class FROM table_name_95 WHERE wheels = "4-4-0" AND no_built < 40
What class has 4-4-0 wheels and was less than number 40 built?
CREATE TABLE table_name_95 (class VARCHAR, wheels VARCHAR, no_built VARCHAR)
SELECT institution FROM table_261895_1 WHERE type = "Private/United Church of Christ"
which institutions can be categorized as private/united church of christ?
CREATE TABLE table_261895_1 (institution VARCHAR, type VARCHAR)
SELECT opponent FROM table_name_56 WHERE october > 28
What is the Opponent of the game after October 28?
CREATE TABLE table_name_56 (opponent VARCHAR, october INTEGER)
SELECT opponent FROM table_name_87 WHERE date = "december 19, 1999"
What team was the opponent for the game played on December 19, 1999?
CREATE TABLE table_name_87 (opponent VARCHAR, date VARCHAR)
SELECT score FROM table_23248869_10 WHERE location_attendance = "Madison Square Garden 19,763" AND game < 80.0
What is every score for location attendance of Madison Square Garden 19,763 and game less than 80.0?
CREATE TABLE table_23248869_10 (score VARCHAR, location_attendance VARCHAR, game VARCHAR)
SELECT SUM(pick__number) FROM table_name_37 WHERE position = "d" AND player = "tim regan"
The player is Tim Regan and the pick # is position of d, what's the sum?
CREATE TABLE table_name_37 (pick__number INTEGER, position VARCHAR, player VARCHAR)
SELECT location FROM table_name_23 WHERE date = "september 22"
Where was the September 22 game played?
CREATE TABLE table_name_23 (location VARCHAR, date VARCHAR)
SELECT declination___j2000__ FROM table_name_55 WHERE constellation = "ophiuchus" AND apparent_magnitude < 8.6 AND right_ascension___j2000__ = "16h47m14.5s"
Tell me the declination for consellaion of ophiuchus and apparent magnitude less than 8.6 with right ascension of 16h47m14.5s
CREATE TABLE table_name_55 (declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR, constellation VARCHAR, apparent_magnitude VARCHAR)
SELECT nationality² FROM table_24565004_22 WHERE name = "Pierre Vermeulen"
What country is Pierre Vermeulen from?
CREATE TABLE table_24565004_22 (nationality² VARCHAR, name VARCHAR)
SELECT firstname FROM list WHERE classroom = 108
Find the first names of students studying in room 108.
CREATE TABLE list (firstname VARCHAR, classroom VARCHAR)
SELECT district FROM table_name_88 WHERE name = "rajnagar"
What is district has a name of Rajnagar?
CREATE TABLE table_name_88 (district VARCHAR, name VARCHAR)
SELECT reference FROM table_name_38 WHERE strain = "msb8"
what is the reference when the strain is msb8?
CREATE TABLE table_name_38 (reference VARCHAR, strain VARCHAR)
SELECT wrestlers FROM table_name_83 WHERE days_held = "428"
Name the wrestlers with days held of 428
CREATE TABLE table_name_83 (wrestlers VARCHAR, days_held VARCHAR)
SELECT MAX(game) FROM table_15873014_3
How many games were played in the season?
CREATE TABLE table_15873014_3 (game INTEGER)
SELECT song_choice FROM table_29756040_1 WHERE week__number = "Audition"
Which song was chosen during the audition week?
CREATE TABLE table_29756040_1 (song_choice VARCHAR, week__number VARCHAR)
SELECT location FROM table_name_1 WHERE year = "1994" AND country = "yemen"
What is the location for Yemen in 1994?
CREATE TABLE table_name_1 (location VARCHAR, year VARCHAR, country VARCHAR)
SELECT instant_messaging FROM table_name_48 WHERE electronic_meeting_system = "yes" AND name = "microsoft sharepoint"
What is Instant Messaging, when Electronic Meeting System is "Yes", and when Name is "Microsoft Sharepoint"?
CREATE TABLE table_name_48 (instant_messaging VARCHAR, electronic_meeting_system VARCHAR, name VARCHAR)
SELECT yards FROM table_name_32 WHERE player = "rob turner"
How many Yards did Player Rob Turner collect?
CREATE TABLE table_name_32 (yards VARCHAR, player VARCHAR)
SELECT MAX(gold) FROM table_name_45 WHERE rank = "12" AND total < 2
How many Gold does the Nation in Rank 12 with less than 2 Total medals have?
CREATE TABLE table_name_45 (gold INTEGER, rank VARCHAR, total VARCHAR)
SELECT home_team FROM table_name_76 WHERE venue = "princes park"
Who was the home team at the game held at Princes Park?
CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(capacity) FROM table_11206787_5 WHERE stadium = "Somerset Park"
What is the number of capacity at somerset park?
CREATE TABLE table_11206787_5 (capacity VARCHAR, stadium VARCHAR)
SELECT suburb FROM table_name_54 WHERE date_first_settled_as_a_suburb = 1962
Which Suburb was First Settled as a Suburb in 1962?
CREATE TABLE table_name_54 (suburb VARCHAR, date_first_settled_as_a_suburb VARCHAR)
SELECT actor FROM table_name_22 WHERE year = "1978"
What actor won in 1978?
CREATE TABLE table_name_22 (actor VARCHAR, year VARCHAR)
SELECT finish_position FROM table_name_64 WHERE year < 2009
What is the finish position in the year prior to 2009?
CREATE TABLE table_name_64 (finish_position VARCHAR, year INTEGER)
SELECT COUNT(no) FROM table_1615980_4 WHERE tournament = "Volvo Masters Andalucia"
How many tournament wins were at Volvo Masters Andalucia?
CREATE TABLE table_1615980_4 (no VARCHAR, tournament VARCHAR)
SELECT percentage___percentage_ FROM table_name_11 WHERE number = "1 343"
Name the percentage with number of 1 343
CREATE TABLE table_name_11 (percentage___percentage_ VARCHAR, number VARCHAR)
SELECT COUNT(crowd) FROM table_name_17 WHERE venue = "victoria park"
How many people came to the game at Victoria Park?
CREATE TABLE table_name_17 (crowd VARCHAR, venue VARCHAR)
SELECT AVG(bronze) FROM table_name_34 WHERE rank = "8" AND total > 2
With 8 as the rank, and a total of more than 2 medals what is the average bronze medals?
CREATE TABLE table_name_34 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT COUNT(perfect_stem) FROM table_12784134_24 WHERE short_stem = "jo"
Name the perfect stem for jo
CREATE TABLE table_12784134_24 (perfect_stem VARCHAR, short_stem VARCHAR)
SELECT drawn FROM table_name_95 WHERE tries_for = "42"
Name the drawn for tries for of 42
CREATE TABLE table_name_95 (drawn VARCHAR, tries_for VARCHAR)
SELECT network FROM table_27871460_2 WHERE state_or_territory = "Illinois"
Which network was located in Illinois?
CREATE TABLE table_27871460_2 (network VARCHAR, state_or_territory VARCHAR)
SELECT COUNT(wins) FROM table_name_70 WHERE losses = 6 AND draws > 0
What is the total number of Wins, when Losses is "6", and when Draws is greater than "0"?
CREATE TABLE table_name_70 (wins VARCHAR, losses VARCHAR, draws VARCHAR)
SELECT losing_bonus FROM table_14070062_3 WHERE won = "9"
What's the losing bonus count for the club with 9 won games?
CREATE TABLE table_14070062_3 (losing_bonus VARCHAR, won VARCHAR)
SELECT coefficient FROM table_30083499_1 WHERE tournament = "2010 Clausura"
the 2010 clausura tournament?
CREATE TABLE table_30083499_1 (coefficient VARCHAR, tournament VARCHAR)
SELECT MAX(times_contested) FROM table_24329520_4 WHERE county = "Montgomeryshire"
Name the most times contested for montgomeryshire
CREATE TABLE table_24329520_4 (times_contested INTEGER, county VARCHAR)
SELECT score FROM table_21256068_3 WHERE opponent = "Crusaders"
what's the score against crusaders
CREATE TABLE table_21256068_3 (score VARCHAR, opponent VARCHAR)
SELECT money___$__ FROM table_name_62 WHERE player = "horton smith"
How much money does player horton smith have?
CREATE TABLE table_name_62 (money___$__ VARCHAR, player VARCHAR)
SELECT stadium FROM table_name_3 WHERE club = "north east stars"
Which stadium was used for the North East Stars club?
CREATE TABLE table_name_3 (stadium VARCHAR, club VARCHAR)
SELECT acquisition_via FROM table_name_41 WHERE number < 22 AND season = "2002"
What is the Acquisition that has less than 22, in the 2002 season?
CREATE TABLE table_name_41 (acquisition_via VARCHAR, number VARCHAR, season VARCHAR)
SELECT year FROM table_name_60 WHERE issue_price = "$16.95" AND artist = "s.a. allward"
What year was S.A. Allward's theme that had an issue price of $16.95 released?
CREATE TABLE table_name_60 (year VARCHAR, issue_price VARCHAR, artist VARCHAR)
SELECT country FROM table_name_92 WHERE to_par < 19 AND score = 75 - 79 - 77 - 73 = 304
Which country has a to par less than 19 and a score of 75-79-77-73=304?
CREATE TABLE table_name_92 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT COUNT(to_par) FROM table_name_28 WHERE player = "julius boros" AND total > 295
What is the total number of To Par, when Player is "Julius Boros", and when Total is greater than 295?
CREATE TABLE table_name_28 (to_par VARCHAR, player VARCHAR, total VARCHAR)
SELECT internet_plan FROM table_name_48 WHERE price = "22 eur"
What is Internet Plan, when Price is "22 EUR"?
CREATE TABLE table_name_48 (internet_plan VARCHAR, price VARCHAR)
SELECT date FROM table_name_84 WHERE game = "3"
On what date was game 3?
CREATE TABLE table_name_84 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_98 WHERE home_team = "portland" AND game = "game 5"
On what date did Portland play game 5 at home?
CREATE TABLE table_name_98 (date VARCHAR, home_team VARCHAR, game VARCHAR)
SELECT uk_air_date FROM table_19834691_4 WHERE audience_share_in_timeslot = "7.3%"
Name the uk air date for audience share in timeslot in 7.3%
CREATE TABLE table_19834691_4 (uk_air_date VARCHAR, audience_share_in_timeslot VARCHAR)
SELECT pick__number FROM table_14650373_1 WHERE college = "Arizona State"
What number picked were players from arizona state picked?
CREATE TABLE table_14650373_1 (pick__number VARCHAR, college VARCHAR)
SELECT MIN(total_apps) FROM table_22542179_3 WHERE player = "Txema"
Name the least total apaps for txema
CREATE TABLE table_22542179_3 (total_apps INTEGER, player VARCHAR)
SELECT MAX(submissions_of_the_night) FROM table_21114902_1 WHERE fighter = "Matt Wiman"
How many submission of the night occurred when the fighter was matt wiman?
CREATE TABLE table_21114902_1 (submissions_of_the_night INTEGER, fighter VARCHAR)
SELECT original_air_date FROM table_11665016_2 WHERE written_by = "Wendy Battles" AND directed_by = "Oz Scott"
What is the air date for the episode written by Wendy Battles and directed by Oz Scott
CREATE TABLE table_11665016_2 (original_air_date VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT tournament FROM table_name_87 WHERE 2010 = "a"
Which tournament had a 2010 result of A?
CREATE TABLE table_name_87 (tournament VARCHAR)
SELECT route_number FROM table_25692955_1 WHERE south_west_terminal = "Rincon Valley"
Name the route number for rincon valley
CREATE TABLE table_25692955_1 (route_number VARCHAR, south_west_terminal VARCHAR)
SELECT date FROM table_name_32 WHERE runner_s__up = "jerilyn britz"
On what date is Jerilyn Britz the runner-up?
CREATE TABLE table_name_32 (date VARCHAR, runner_s__up VARCHAR)
SELECT name_of_award FROM table_24446718_3 WHERE language = "Marathi"
Name the name of award for marathi
CREATE TABLE table_24446718_3 (name_of_award VARCHAR, language VARCHAR)
SELECT COUNT(crowd) FROM table_name_68 WHERE away_team = "essendon"
What is the listed crowd when essendon is the away squad?
CREATE TABLE table_name_68 (crowd VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_13 WHERE director = "pen-ek ratanaruang"
When was the film directed by Pen-Ek Ratanaruang released?
CREATE TABLE table_name_13 (date VARCHAR, director VARCHAR)
SELECT mandate FROM table_14834801_1 WHERE list_pct = "12.39%"
Name the mandate for list pct 12.39%
CREATE TABLE table_14834801_1 (mandate VARCHAR, list_pct VARCHAR)
SELECT theme_song_s_ FROM table_18540104_1 WHERE romaji_title = "Magarikado no Kanojo"
What is the theme song for Magarikado no Kanojo?
CREATE TABLE table_18540104_1 (theme_song_s_ VARCHAR, romaji_title VARCHAR)
SELECT opponent FROM table_name_70 WHERE date = "november 15, 1981"
Who was the opponent on November 15, 1981?
CREATE TABLE table_name_70 (opponent VARCHAR, date VARCHAR)
SELECT MAX(laps) FROM table_name_6 WHERE driver = "ayrton senna"
What is the most laps for Ayrton Senna?
CREATE TABLE table_name_6 (laps INTEGER, driver VARCHAR)
SELECT COUNT(democratic_votes) FROM table_name_21 WHERE other_votes < 18 AND _percentage_of_r_votes = "52.63% ANd_votes_since_1856 < 38"
Name the total number of democratic votes when the other votes are less than 18 and the percentage of R votes are 52.63% and votes since 1856 less than 38
CREATE TABLE table_name_21 (democratic_votes VARCHAR, other_votes VARCHAR, _percentage_of_r_votes VARCHAR)