answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT years_built FROM table_25695027_1 WHERE cylinder_size = "20 ½” x 26”" AND firebox = "Radial-stay"
This engine with a cylinder size of 20 ½” x 26” and a firebox of radial-stay was built when?
CREATE TABLE table_25695027_1 (years_built VARCHAR, cylinder_size VARCHAR, firebox VARCHAR)
SELECT AVG(year) FROM table_name_61 WHERE competition = "u.s championships" AND event = "all around"
Competition of u.s championships, and a Event of all around has what average year?
CREATE TABLE table_name_61 (year INTEGER, competition VARCHAR, event VARCHAR)
SELECT home_team FROM table_name_86 WHERE venue = "mcg"
Who was the home team at MCG?
CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR)
SELECT nationality FROM table_name_32 WHERE rank = 2
What nationality has 2 as the rank?
CREATE TABLE table_name_32 (nationality VARCHAR, rank VARCHAR)
SELECT department FROM table_name_90 WHERE experience = "6 years"
What department as 6 years experience?
CREATE TABLE table_name_90 (department VARCHAR, experience VARCHAR)
SELECT MAX(gayndah) FROM table_12526990_1 WHERE perry = 304
What is the gayndah when perry is 304?
CREATE TABLE table_12526990_1 (gayndah INTEGER, perry VARCHAR)
SELECT MIN(season_4) FROM table_26240046_1 WHERE character = "Mrs. Jennifer Knight"
How many season 4 appearances are there by Mrs. Jennifer Knight?
CREATE TABLE table_26240046_1 (season_4 INTEGER, character VARCHAR)
SELECT COUNT(drawn) FROM table_name_70 WHERE position = 7 AND points > 18
How many Drawn have a Position of 7, and Points larger than 18?
CREATE TABLE table_name_70 (drawn VARCHAR, position VARCHAR, points VARCHAR)
SELECT date FROM table_name_5 WHERE venue = "vfl park"
On what date was the venue VFL Park?
CREATE TABLE table_name_5 (date VARCHAR, venue VARCHAR)
SELECT current_conference FROM table_name_53 WHERE nickname = "lynx"
Which Current Conference has a Nickname of lynx?
CREATE TABLE table_name_53 (current_conference VARCHAR, nickname VARCHAR)
SELECT attendance FROM table_name_96 WHERE game > 4
What was the attendance for the game after game 4?
CREATE TABLE table_name_96 (attendance VARCHAR, game INTEGER)
SELECT length FROM table_name_60 WHERE version = "album version"
What's the Length with the Version of Album Version?
CREATE TABLE table_name_60 (length VARCHAR, version VARCHAR)
SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass"
What are the enrollment dates of all the tests that have result "Pass"?
CREATE TABLE Student_Tests_Taken (registration_id VARCHAR, test_result VARCHAR); CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, registration_id VARCHAR)
SELECT COUNT(game) FROM table_name_56 WHERE series = "4-2"
What is the game number for series 4-2?
CREATE TABLE table_name_56 (game VARCHAR, series VARCHAR)
SELECT COUNT(population) FROM table_1449176_1 WHERE common_of = "Settimo Torinese"
How may population figures are given for Settimo Torinese
CREATE TABLE table_1449176_1 (population VARCHAR, common_of VARCHAR)
SELECT tie_no FROM table_name_7 WHERE away_team = "bradford city"
What was the Tie Number of the Bradford City away team?
CREATE TABLE table_name_7 (tie_no VARCHAR, away_team VARCHAR)
SELECT sonnet FROM table_3002894_4 WHERE model = "Included RAM (MiB)"
When included ram (mib) is the model what is the sonnet?
CREATE TABLE table_3002894_4 (sonnet VARCHAR, model VARCHAR)
SELECT ihsaa_class FROM table_name_77 WHERE mascot = "red devils"
What's the IHSAA class of the Red Devils?
CREATE TABLE table_name_77 (ihsaa_class VARCHAR, mascot VARCHAR)
SELECT 2010 FROM table_name_3 WHERE 2011 = "1r"
What is 2010 that has 1r 2011?
CREATE TABLE table_name_3 (Id VARCHAR)
SELECT player FROM table_name_88 WHERE position = "d" AND round > 3
Which player was D past Round 3?
CREATE TABLE table_name_88 (player VARCHAR, position VARCHAR, round VARCHAR)
SELECT MAX(total) FROM table_name_87 WHERE 2013 = "6th"
What is the total of 2013 with 6th?
CREATE TABLE table_name_87 (total INTEGER)
SELECT second FROM table_name_86 WHERE skip = "martynas norkus"
Who was second when Martynas Norkus was the skip?
CREATE TABLE table_name_86 (second VARCHAR, skip VARCHAR)
SELECT score FROM table_name_49 WHERE player = "wally armstrong"
What was the score of Wally Armstrong?
CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR)
SELECT channels FROM table_233830_1 WHERE soundfield_type = "mixed-order" AND height_order = 1
If the height order is 1 and the soundfield type is mixed-order, what are all the channels?
CREATE TABLE table_233830_1 (channels VARCHAR, soundfield_type VARCHAR, height_order VARCHAR)
SELECT MIN(round) FROM table_name_51 WHERE position = "de" AND overall < 84
What is the lowest round of the position de player with an overall less than 84?
CREATE TABLE table_name_51 (round INTEGER, position VARCHAR, overall VARCHAR)
SELECT MIN(attendance) FROM table_name_96 WHERE leading_scorer = "tim duncan (24)" AND home = "spurs"
How many people attended the game where the leading scorer was Tim Duncan (24), and the home team was the Spurs?
CREATE TABLE table_name_96 (attendance INTEGER, leading_scorer VARCHAR, home VARCHAR)
SELECT group FROM table_name_70 WHERE name = "espn international sports"
What is the group of ESPN International Sports?
CREATE TABLE table_name_70 (group VARCHAR, name VARCHAR)
SELECT playoffs_2 FROM table_name_18 WHERE season = "2010-11"
What is the playoffs 2 result of season 2010-11?
CREATE TABLE table_name_18 (playoffs_2 VARCHAR, season VARCHAR)
SELECT callback_audition_date FROM table_27455867_1 WHERE callback_venue = "Hilton Riverside Hotel"
When were the callback auditions at Hilton Riverside Hotel held?
CREATE TABLE table_27455867_1 (callback_audition_date VARCHAR, callback_venue VARCHAR)
SELECT MAX(round_1) FROM table_14708760_3 WHERE round_2 = 90
What is the highest score of round 1 where they also shot 90 in round 2
CREATE TABLE table_14708760_3 (round_1 INTEGER, round_2 VARCHAR)
SELECT type FROM table_name_88 WHERE release_date = "november 30, 1997"
Which Type has a Release date of november 30, 1997?
CREATE TABLE table_name_88 (type VARCHAR, release_date VARCHAR)
SELECT MIN(stage) FROM table_name_60 WHERE difficulty = "middle" AND start = "els alocs"
What is the lowest stage number that starts with els alocs and has a middle difficulty?
CREATE TABLE table_name_60 (stage INTEGER, difficulty VARCHAR, start VARCHAR)
SELECT max_torque__nm__at_rpm FROM table_name_82 WHERE model = "1.4 16v"
What is the max torque of model 1.4 16v?
CREATE TABLE table_name_82 (max_torque__nm__at_rpm VARCHAR, model VARCHAR)
SELECT podiums FROM table_name_97 WHERE races_† = "13/15"
What is the number of podiums for the races of 13/15?
CREATE TABLE table_name_97 (podiums VARCHAR, races_† VARCHAR)
SELECT COUNT(DISTINCT rating) FROM film
How many kinds of different ratings are listed?
CREATE TABLE film (rating VARCHAR)
SELECT runner_up FROM table_name_59 WHERE year = 1990
Who is the runner-up in 1990?
CREATE TABLE table_name_59 (runner_up VARCHAR, year VARCHAR)
SELECT COUNT(title) FROM table_234886_2 WHERE original_air_date = "November 17, 1998"
How many titles have an original air date of November 17, 1998?
CREATE TABLE table_234886_2 (title VARCHAR, original_air_date VARCHAR)
SELECT MIN(year) FROM table_name_3 WHERE result = "1st" AND extra = "4 x 400 m relay"
Result of 1st, and an Extra of 4 x 400 m relay is in what lowest year?
CREATE TABLE table_name_3 (year INTEGER, result VARCHAR, extra VARCHAR)
SELECT official_itv1_hd_rating__millions_ FROM table_27319183_5 WHERE official_itv1_rating__millions_ = "8.98"
What was the official ITV1 HD rating in millions for the episode that had an official ITV1 rating of 8.98 million?
CREATE TABLE table_27319183_5 (official_itv1_hd_rating__millions_ VARCHAR, official_itv1_rating__millions_ VARCHAR)
SELECT AVG(frequency) FROM table_name_87 WHERE type = "norteño" AND brand = "la cotorra"
What is the average Frequency, when Type is "Norteño", and when Brand is "La Cotorra"?
CREATE TABLE table_name_87 (frequency INTEGER, type VARCHAR, brand VARCHAR)
SELECT MIN(year) FROM table_12077540_1
The earliest year is 1996.
CREATE TABLE table_12077540_1 (year INTEGER)
SELECT secondary_sponsor FROM table_187239_1 WHERE main_sponsor = "Ale"
When ale is the main sponsor who is the secondary sponsor?
CREATE TABLE table_187239_1 (secondary_sponsor VARCHAR, main_sponsor VARCHAR)
SELECT representative FROM table_name_59 WHERE termination_of_mission = "mar 25, 1976"
Which representative has a Termination of MIssion date Mar 25, 1976?
CREATE TABLE table_name_59 (representative VARCHAR, termination_of_mission VARCHAR)
SELECT AVG(rank) FROM table_name_34 WHERE total < 1
What is the rank for the total less than 1?
CREATE TABLE table_name_34 (rank INTEGER, total INTEGER)
SELECT MIN(capacity) FROM table_name_76 WHERE rank < 15 AND city = "belgrade"
Which Capacity is the lowest one that has a Rank smaller than 15, and a City of belgrade?
CREATE TABLE table_name_76 (capacity INTEGER, rank VARCHAR, city VARCHAR)
SELECT AVG(enrollment) FROM table_name_24 WHERE _number___county = "41 johnson"
What's the enrollment at 41 Johnson?
CREATE TABLE table_name_24 (enrollment INTEGER, _number___county VARCHAR)
SELECT land___sqmi__ FROM table_18600760_12 WHERE geo_id = 3801947380
What is the land (sqmi) at geo id 3801947380?
CREATE TABLE table_18600760_12 (land___sqmi__ VARCHAR, geo_id VARCHAR)
SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.major = "600"
Find all members of "Bootup Baltimore" whose major is "600". Show the first name and last name.
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, major VARCHAR)
SELECT notes FROM table_name_64 WHERE rank > 2 AND country = "mexico"
What notes have a rank greater than 2, with mexico as the country?
CREATE TABLE table_name_64 (notes VARCHAR, rank VARCHAR, country VARCHAR)
SELECT finish_construction FROM table_name_28 WHERE unit = "greifswald - 4 (kgr 4)"
What was the date that construction was finished when the unit was greifswald - 4 (kgr 4)?
CREATE TABLE table_name_28 (finish_construction VARCHAR, unit VARCHAR)
SELECT score FROM table_name_83 WHERE away_team = "charlton athletic"
What score has charlton athletic as the away team?
CREATE TABLE table_name_83 (score VARCHAR, away_team VARCHAR)
SELECT tries_against FROM table_name_92 WHERE club = "pentyrch rfc"
How many tries against did Pentyrch RFC have?
CREATE TABLE table_name_92 (tries_against VARCHAR, club VARCHAR)
SELECT MIN(games_played) FROM table_16034882_2
What is the fewest number of games played?
CREATE TABLE table_16034882_2 (games_played INTEGER)
SELECT record FROM table_name_70 WHERE game = 37
What was the record after game 37?
CREATE TABLE table_name_70 (record VARCHAR, game VARCHAR)
SELECT away_team AS score FROM table_name_61 WHERE venue = "victoria park"
When the Venue was victoria park, what was the Away team score?
CREATE TABLE table_name_61 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(voltage_range__v_) FROM table_15261_1 WHERE clock_multiplier = "3X or 2X mode" AND part_number = "A80486DX4WB-100"
What is the voltage range (v) if the clock multiplier is 3x or 2x mode and part number is a80486dx4wb-100?
CREATE TABLE table_15261_1 (voltage_range__v_ VARCHAR, clock_multiplier VARCHAR, part_number VARCHAR)
SELECT name, price FROM products
Select the names and the prices of all the products in the store.
CREATE TABLE products (name VARCHAR, price VARCHAR)
SELECT MIN(rank) FROM table_name_9 WHERE points > 52 AND year > 1970
Which Rank is the lowest one that has Points larger than 52, and a Year larger than 1970?
CREATE TABLE table_name_9 (rank INTEGER, points VARCHAR, year VARCHAR)
SELECT AVG(position) FROM table_name_75 WHERE drawn = 9 AND points > 25
At what average position is the drawn 9 and the points greater than 25?
CREATE TABLE table_name_75 (position INTEGER, drawn VARCHAR, points VARCHAR)
SELECT mls_team FROM table_25518547_3 WHERE player = "Samuel Appiah"
What MLS team drafted samuel appiah?
CREATE TABLE table_25518547_3 (mls_team VARCHAR, player VARCHAR)
SELECT score FROM table_name_99 WHERE country = "fiji"
Name the score for fiji
CREATE TABLE table_name_99 (score VARCHAR, country VARCHAR)
SELECT SUM(gold) FROM table_name_39 WHERE nation = "japan" AND total > 1
How many Gold medals did Japan receive who had a Total of more than 1 medals?
CREATE TABLE table_name_39 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT opponent FROM table_name_50 WHERE year > 1996 AND outcome = "winner"
who is the opponent when the year is after 1996 and the outcome is winner?
CREATE TABLE table_name_50 (opponent VARCHAR, year VARCHAR, outcome VARCHAR)
SELECT COUNT(attendance) FROM table_23916462_3 WHERE date = "September 5"
How many values for attendance on the date of September 5?
CREATE TABLE table_23916462_3 (attendance VARCHAR, date VARCHAR)
SELECT event FROM table_name_74 WHERE acts = "6 bands"
Tell me the event for 6 bands
CREATE TABLE table_name_74 (event VARCHAR, acts VARCHAR)
SELECT COUNT(nationality) FROM table_2781227_7 WHERE pick = 179
How many different nationalities is pick number 179?
CREATE TABLE table_2781227_7 (nationality VARCHAR, pick VARCHAR)
SELECT team_2 FROM table_name_82 WHERE date = "november 22, 2008" AND result = "1-0"
What team was 2 on November 22, 2008 when the result was 1-0?
CREATE TABLE table_name_82 (team_2 VARCHAR, date VARCHAR, result VARCHAR)
SELECT manufacturer FROM table_name_68 WHERE rider = "henk vd lagemaat"
Who is the manufacturer for Henk Vd Lagemaat?
CREATE TABLE table_name_68 (manufacturer VARCHAR, rider VARCHAR)
SELECT high_rebounds FROM table_name_57 WHERE high_assists = "jason kidd (8)" AND score = "w 105–95 (ot)"
Who had the high rebounds when the score was w 105–95 (ot) and Jason Kidd (8) had the high assists?
CREATE TABLE table_name_57 (high_rebounds VARCHAR, high_assists VARCHAR, score VARCHAR)
SELECT name, price FROM Products ORDER BY price LIMIT 1
Select the name and price of the cheapest product.
CREATE TABLE Products (name VARCHAR, price VARCHAR)
SELECT district FROM table_1341930_10 WHERE incumbent = "James A. Haley"
Which district is James A. Haley from?
CREATE TABLE table_1341930_10 (district VARCHAR, incumbent VARCHAR)
SELECT film_title_used_in_nomination FROM table_17155250_1 WHERE original_title = "The Black Tulip"
What name was used for nomination for the film with an original title of "The Black Tulip"?
CREATE TABLE table_17155250_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT 1 AS st_leg FROM table_name_36 WHERE agg = "151-134"
What was the 1st leg score for the team with an Agg score of 151-134?
CREATE TABLE table_name_36 (agg VARCHAR)
SELECT candidates FROM table_1341718_36 WHERE incumbent = "Bill Harsha"
Incumbent Bill Harsha was the winner in an election in which the candidates were who?
CREATE TABLE table_1341718_36 (candidates VARCHAR, incumbent VARCHAR)
SELECT date FROM table_name_46 WHERE opponents = "roma" AND h___a = "a"
Which date has roma as opponent and a H/A of A?
CREATE TABLE table_name_46 (date VARCHAR, opponents VARCHAR, h___a VARCHAR)
SELECT incumbent FROM table_2668336_19 WHERE result = "Retired Democratic-Republican hold" AND first_elected = "1816"
Who were the incumbent(s) when the result was a retired democratic-republican hold and the first elected representative was in 1816>
CREATE TABLE table_2668336_19 (incumbent VARCHAR, result VARCHAR, first_elected VARCHAR)
SELECT player FROM table_name_38 WHERE country = "united states" AND score = 71 - 72 = 143
Who is the player from the United States with a score of 71-72=143?
CREATE TABLE table_name_38 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT SUM(total) FROM table_name_89 WHERE nation = "brazil" AND bronze < 2
How many totals have brazil as the nation, and a bronze less than 2?
CREATE TABLE table_name_89 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT COUNT(date) FROM table_2175858_1 WHERE average_speed__mph_ = "102.003"
How many dates had an average speed of 102.003?
CREATE TABLE table_2175858_1 (date VARCHAR, average_speed__mph_ VARCHAR)
SELECT lner_class FROM table_name_44 WHERE wa = "0-6-0st" AND no_built = 2
What LINER class has a W.A. of 0-6-0st with a 2 No. Built?
CREATE TABLE table_name_44 (lner_class VARCHAR, wa VARCHAR, no_built VARCHAR)
SELECT COUNT(primer_annulus_color) FROM table_1036189_1 WHERE bullet_tip_color = "White"
How many primers annulus colors were there when the color of the bullet tip was white?
CREATE TABLE table_1036189_1 (primer_annulus_color VARCHAR, bullet_tip_color VARCHAR)
SELECT MIN(miss_international) FROM table_29942205_1
What is the lowest value in the miss international column?
CREATE TABLE table_29942205_1 (miss_international INTEGER)
SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100
Show all locations where a gas station for company with market value greater than 100 is located.
CREATE TABLE gas_station (location VARCHAR, station_id VARCHAR); CREATE TABLE company (company_id VARCHAR, market_value INTEGER); CREATE TABLE station_company (company_id VARCHAR, station_id VARCHAR)
SELECT first_airdate FROM table_name_68 WHERE episodes < 24 AND nielsen_ranking = "#38"
What was the first airdate or the season that had less than 24 episodes and a Nielsen ranking of #38?
CREATE TABLE table_name_68 (first_airdate VARCHAR, episodes VARCHAR, nielsen_ranking VARCHAR)
SELECT callsign FROM table_17822401_1 WHERE location = "Cebu"
What is the callsign for the Cebu station?
CREATE TABLE table_17822401_1 (callsign VARCHAR, location VARCHAR)
SELECT AVG(total_goals) FROM table_name_82 WHERE league_cup_goals > 0 AND fa_cup_goals > 0
Which Total Goals have a League Cup Goals larger than 0, and FA Cup Goals larger than 0?
CREATE TABLE table_name_82 (total_goals INTEGER, league_cup_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT award_name FROM table_name_53 WHERE team_name = "cougar robotics team"
What is the Award name with a Team name that is cougar robotics team?
CREATE TABLE table_name_53 (award_name VARCHAR, team_name VARCHAR)
SELECT birth_date FROM table_name_57 WHERE batting_style = "right-handed" AND name = "a. j. holmes"
What is the birth date of A. J. Holmes who has a right-handed batting style?
CREATE TABLE table_name_57 (birth_date VARCHAR, batting_style VARCHAR, name VARCHAR)
SELECT director_s_ FROM table_name_92 WHERE film = "alt i alt"
Name the director of alt i alt
CREATE TABLE table_name_92 (director_s_ VARCHAR, film VARCHAR)
SELECT visitor FROM table_name_94 WHERE date = "april 8"
Who is the Visitor on april 8?
CREATE TABLE table_name_94 (visitor VARCHAR, date VARCHAR)
SELECT MIN(top_5) FROM table_name_82 WHERE events > 18
What are the least Top-5 finish when the events are greater than 18?
CREATE TABLE table_name_82 (top_5 INTEGER, events INTEGER)
SELECT high_points FROM table_13619135_5 WHERE team = "Seattle"
Which players scored the most points when the opposing team was Seattle and how many points did they score?
CREATE TABLE table_13619135_5 (high_points VARCHAR, team VARCHAR)
SELECT team FROM table_name_81 WHERE goals_conceded < 25 AND place < 3
What team with a goals conceded smaller than 25, and a place smaller than 3?
CREATE TABLE table_name_81 (team VARCHAR, goals_conceded VARCHAR, place VARCHAR)
SELECT against___percentage_ FROM table_1289762_1 WHERE constituency = "Vest-Agder"
What is the against percentage in the Vest-Agder constituency?
CREATE TABLE table_1289762_1 (against___percentage_ VARCHAR, constituency VARCHAR)
SELECT goals_against FROM table_28848697_4 WHERE goals_scored = 30
What is the goals against listed when the goals scored is 30?
CREATE TABLE table_28848697_4 (goals_against VARCHAR, goals_scored VARCHAR)
SELECT MIN(burglary) FROM table_name_90 WHERE forcible_rape = "39.1" AND motor_vehicle_theft < 568.8
What is the smallest rate of burglary when forcible rape is 39.1 and motor vehicle theft is less than 568.8?
CREATE TABLE table_name_90 (burglary INTEGER, forcible_rape VARCHAR, motor_vehicle_theft VARCHAR)
SELECT vp9___webm__ FROM table_26099252_1 WHERE h264 = "9.0"
When h.264 is 9.0, how much is vp9 ( webm )
CREATE TABLE table_26099252_1 (vp9___webm__ VARCHAR, h264 VARCHAR)
SELECT city FROM table_name_57 WHERE status = "active" AND us_state_district = "california" AND greek_designation = "established colony"
What California city has an active status and a greek designation of established colony?
CREATE TABLE table_name_57 (city VARCHAR, greek_designation VARCHAR, status VARCHAR, us_state_district VARCHAR)
SELECT rank__timeslot_ FROM table_20522228_2 WHERE rating = "4.1"
What are the rank timeslots where ratings are 4.1?
CREATE TABLE table_20522228_2 (rank__timeslot_ VARCHAR, rating VARCHAR)
SELECT no_10 FROM table_name_94 WHERE no_8 = "jackson" AND no_9 = "jayden"
Name the No. 10 which has a No. 8 of jackson, and a No. 9 of jayden?
CREATE TABLE table_name_94 (no_10 VARCHAR, no_8 VARCHAR, no_9 VARCHAR)