answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MIN(enrollment) FROM table_name_39 WHERE school = "pioneer"
What is the lowest enrollment at the pioneer school?
CREATE TABLE table_name_39 (enrollment INTEGER, school VARCHAR)
SELECT COUNT(nationality) FROM table_16494599_10 WHERE player = "Casey Jacobsen"
How many nationalities does athlete Casey Jacobsen have?
CREATE TABLE table_16494599_10 (nationality VARCHAR, player VARCHAR)
SELECT attendance FROM table_name_38 WHERE opponent = "philadelphia eagles"
Opponent of Philadelphia eagles had what attendance?
CREATE TABLE table_name_38 (attendance VARCHAR, opponent VARCHAR)
SELECT SUM(year_born) FROM table_name_14 WHERE current_club = "olimpija ljubljana" AND height < 2.04
Name the sum of year for olimpija ljubljana with height less than 2.04
CREATE TABLE table_name_14 (year_born INTEGER, current_club VARCHAR, height VARCHAR)
SELECT competition FROM table_name_46 WHERE event = "50km" AND year < 2010 AND position = "3rd"
Which Competition has an Event of 50km, a Year earlier than 2010 and a Position of 3rd?
CREATE TABLE table_name_46 (competition VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR)
SELECT MAX(total) FROM table_name_53 WHERE rank = "12" AND gold < 0
What is the highest Total for the rank 12, and gold less than 0?
CREATE TABLE table_name_53 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT result FROM table_name_60 WHERE date = "december 3, 1995"
Which one took place on December 3, 1995?
CREATE TABLE table_name_60 (result VARCHAR, date VARCHAR)
SELECT third FROM table_name_56 WHERE nation = "germany"
Who is the third alternate for Germany?
CREATE TABLE table_name_56 (third VARCHAR, nation VARCHAR)
SELECT record FROM table_17323529_8 WHERE team = "Boston"
What is the record against Boston?
CREATE TABLE table_17323529_8 (record VARCHAR, team VARCHAR)
SELECT adelaide FROM table_name_13 WHERE perth = "no" AND gold_coast = "yes" AND sydney = "yes"
Which Adelaide has Perth no, Gold Coast no, and Sydney yes?
CREATE TABLE table_name_13 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR, gold_coast VARCHAR)
SELECT record FROM table_name_51 WHERE location = "boston garden" AND opponent = "new york knicks"
What was the record when the New York Knicks played at the Boston Garden?
CREATE TABLE table_name_51 (record VARCHAR, location VARCHAR, opponent VARCHAR)
SELECT MAX(population__2010_) FROM table_2144436_1 WHERE barangay = "Minane"
What was the population in 2010 for Minane
CREATE TABLE table_2144436_1 (population__2010_ INTEGER, barangay VARCHAR)
SELECT pos FROM table_name_1 WHERE club = "spandau 04" AND name = "jens pohlmann"
What is Spandau 04 Player Jens Pohlmann's Pos.?
CREATE TABLE table_name_1 (pos VARCHAR, club VARCHAR, name VARCHAR)
SELECT COUNT(pick__number) FROM table_1213511_2 WHERE player = "Dave Fortier"
What's Dave Fortier's pick number?
CREATE TABLE table_1213511_2 (pick__number VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_28 WHERE loss = "corcoran (4-4)"
Which opponent has a Loss of corcoran (4-4)?
CREATE TABLE table_name_28 (opponent VARCHAR, loss VARCHAR)
SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"
What is the nickname of staff with first name as Janessa and last name as Sawayn?
CREATE TABLE Staff (nickname VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT institution FROM table_name_48 WHERE classification = "ncaa division i" AND current_conference = "nec" AND nickname = "blue devils"
What institution is a NCAA Division i school and part of the NEC conference with a nickname the Blue Devils?
CREATE TABLE table_name_48 (institution VARCHAR, nickname VARCHAR, classification VARCHAR, current_conference VARCHAR)
SELECT COUNT(laps) FROM table_name_98 WHERE grid > 14 AND time_retired = "accident" AND driver = "emerson fittipaldi"
How many laps did Emerson Fittipaldi do on a grid larger than 14, and when was the Time/Retired of accident?
CREATE TABLE table_name_98 (laps VARCHAR, driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT MAX(_number) FROM table_1266602_1 WHERE owner_s_ = "Jeff Gordon"
What is the biggest number of the team who's owned by Jeff Gordon?
CREATE TABLE table_1266602_1 (_number INTEGER, owner_s_ VARCHAR)
SELECT MIN(total) FROM table_name_11 WHERE rank = "4" AND silver > 2
Which Total has a Rank of 4, and a Silver larger than 2?
CREATE TABLE table_name_11 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT COUNT(draws) FROM table_18018248_2 WHERE goals_conceded = 45
How many draws were there when the conceded goals was numbered at 45?
CREATE TABLE table_18018248_2 (draws VARCHAR, goals_conceded VARCHAR)
SELECT broadcast_area FROM table_2638104_1 WHERE channel = 1
What is the broadcast are for channel 1?
CREATE TABLE table_2638104_1 (broadcast_area VARCHAR, channel VARCHAR)
SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3
Show the id and details for the investors who have the top 3 number of transactions.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR)
SELECT aircraft FROM table_name_75 WHERE tail_number = "ya-bao"
What type of aircraft was the plane with a tail number of ya-bao?
CREATE TABLE table_name_75 (aircraft VARCHAR, tail_number VARCHAR)
SELECT mon_24_aug FROM table_23465864_5 WHERE rider = "Benny Smith 600cc Yamaha"
What is the value of Monday August 24 if the rider is Benny Smith 600cc Yamaha?
CREATE TABLE table_23465864_5 (mon_24_aug VARCHAR, rider VARCHAR)
SELECT MIN(league_cup) FROM table_name_65 WHERE fa_cup < 0
What is the lowest number of league cups associated with 0 FA cups?
CREATE TABLE table_name_65 (league_cup INTEGER, fa_cup INTEGER)
SELECT military_deaths FROM table_name_38 WHERE total_casualties = "531"
How many members of the military died in the conflict that had a total of 531 casualties?
CREATE TABLE table_name_38 (military_deaths VARCHAR, total_casualties VARCHAR)
SELECT SUM(laps) FROM table_name_69 WHERE driver = "ricardo zonta"
How many laps did Ricardo Zonta have?
CREATE TABLE table_name_69 (laps INTEGER, driver VARCHAR)
SELECT score FROM table_name_60 WHERE game__number = 81
What was the score in game 81?
CREATE TABLE table_name_60 (score VARCHAR, game__number VARCHAR)
SELECT most_laps_led FROM table_29690363_3 WHERE fastest_lap = "Brandon Wagner"
Who led the most laps when brandon wagner had the fastest lap?
CREATE TABLE table_29690363_3 (most_laps_led VARCHAR, fastest_lap VARCHAR)
SELECT location_attendance FROM table_name_50 WHERE date = "february 2"
What was the location of the game on February 2?
CREATE TABLE table_name_50 (location_attendance VARCHAR, date VARCHAR)
SELECT semifinalists FROM table_30007505_1 WHERE country_territory = "Singapore"
Name the semifinalists for singapore
CREATE TABLE table_30007505_1 (semifinalists VARCHAR, country_territory VARCHAR)
SELECT MIN(prominence__m_) FROM table_name_67 WHERE elevation__m_ = 3 OFFSET 095
Which Prominence (m) has an Elevation (m) of 3,095?
CREATE TABLE table_name_67 (prominence__m_ INTEGER, elevation__m_ VARCHAR)
SELECT date FROM table_name_43 WHERE writer_s_ = "edward jeffreys"
On what date was Edward Jeffreys the writer?
CREATE TABLE table_name_43 (date VARCHAR, writer_s_ VARCHAR)
SELECT team FROM table_name_29 WHERE location_attendance = "staples center 18,997" AND series = "1–0"
Which Team has a Location Attendance of staples center 18,997, and a Series of 1–0?
CREATE TABLE table_name_29 (team VARCHAR, location_attendance VARCHAR, series VARCHAR)
SELECT center FROM table_23887174_1 WHERE area__km²_ = 23860
What's the center of the province that spreads out on 23860 km2?
CREATE TABLE table_23887174_1 (center VARCHAR, area__km²_ VARCHAR)
SELECT MAX(to_par) FROM table_name_22 WHERE place = "1"
What is the highest To Par, when Place is "1"?
CREATE TABLE table_name_22 (to_par INTEGER, place VARCHAR)
SELECT position FROM table_name_8 WHERE pick > 32 AND team = "atlanta braves"
what is the position when the pick is higher than 32 and the team is atlanta braves?
CREATE TABLE table_name_8 (position VARCHAR, pick VARCHAR, team VARCHAR)
SELECT date FROM table_name_16 WHERE rocket = "tbd" AND satellite = "gps iiia-1"
On what date was the rocket a TBD with a satellite of GPS IIIA-1?
CREATE TABLE table_name_16 (date VARCHAR, rocket VARCHAR, satellite VARCHAR)
SELECT laps FROM table_name_97 WHERE grid = 4
How many laps were in grid 4?
CREATE TABLE table_name_97 (laps VARCHAR, grid VARCHAR)
SELECT date_joined_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 join the company?
CREATE TABLE Staff (date_joined_staff VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT skip FROM table_name_15 WHERE country = "switzerland"
What skip has switzerland as the country?
CREATE TABLE table_name_15 (skip VARCHAR, country VARCHAR)
SELECT country FROM table_name_91 WHERE content = "tematico" AND package_option = "sky tv" AND television_service = "lei"
What country has Tematico Content, and a package with sky TV and the Lei television service?
CREATE TABLE table_name_91 (country VARCHAR, television_service VARCHAR, content VARCHAR, package_option VARCHAR)
SELECT website FROM table_name_53 WHERE city_of_license = "san antonio" AND webcast = "listen live" AND frequency = 680
Which website includes a webcast of listen live, a frequency under 680, and was licensed in the city of San Antonio.
CREATE TABLE table_name_53 (website VARCHAR, frequency VARCHAR, city_of_license VARCHAR, webcast VARCHAR)
SELECT MAX(byes) FROM table_name_55 WHERE wins > 11 AND against > 1118 AND hampden_fl = "terang-mortlake"
What were the most byes of Terang-Mortlake when they had more than 11 wins and more than 1118 against?
CREATE TABLE table_name_55 (byes INTEGER, hampden_fl VARCHAR, wins VARCHAR, against VARCHAR)
SELECT 1 AS st_match FROM table_name_61 WHERE team = "brisbane bears"
Name the 1st match for brisbane bears
CREATE TABLE table_name_61 (team VARCHAR)
SELECT player FROM table_name_54 WHERE to_par = "−6"
What Player's To par is −6?
CREATE TABLE table_name_54 (player VARCHAR, to_par VARCHAR)
SELECT overall_fht_points FROM table_name_90 WHERE name = "denis kornilov"
What is the overall FHT points for Denis Kornilov?
CREATE TABLE table_name_90 (overall_fht_points VARCHAR, name VARCHAR)
SELECT registrations FROM table_name_67 WHERE district = "cambridge"
What is the registration of the station at Cambridge?
CREATE TABLE table_name_67 (registrations VARCHAR, district VARCHAR)
SELECT AVG(2010 AS _pop) FROM table_name_26 WHERE city = "frankfort" AND rank < 14
What was the 2010 population of frankfort which has a rank smaller than 14?
CREATE TABLE table_name_26 (city VARCHAR, rank VARCHAR)
SELECT COUNT(geo_id) FROM table_18600760_13 WHERE township = "Malcolm"
What is the geo id for malcolm township?
CREATE TABLE table_18600760_13 (geo_id VARCHAR, township VARCHAR)
SELECT surface FROM table_name_53 WHERE opponent = "kerry melville reid" AND score = "6–3, 2–6, 3–6"
Which Surface has an Opponent of kerry melville reid, and a Score of 6–3, 2–6, 3–6?
CREATE TABLE table_name_53 (surface VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT SUM(yards) FROM table_name_43 WHERE rating = 118.7
What is the sum of yards for a 118.7 rating?
CREATE TABLE table_name_43 (yards INTEGER, rating VARCHAR)
SELECT player FROM table_name_63 WHERE venue = "esher"
Who is the player associated with the Esher venue?
CREATE TABLE table_name_63 (player VARCHAR, venue VARCHAR)
SELECT opponents FROM table_27611593_5 WHERE partner = "Vania King"
Who were Petrova's opponents with Vania King?
CREATE TABLE table_27611593_5 (opponents VARCHAR, partner VARCHAR)
SELECT MIN(lost) FROM table_name_72 WHERE place > 4 AND goals_scored = 12 AND points > 4
what is the least lost when the place is higher than 4, goals scored is 12 and points is more than 4?
CREATE TABLE table_name_72 (lost INTEGER, points VARCHAR, place VARCHAR, goals_scored VARCHAR)
SELECT obama_percentage FROM table_20539826_1 WHERE mccain_number = 3648
What percentage of the votes did Obama get in the county where McCain got 3648 votes?
CREATE TABLE table_20539826_1 (obama_percentage VARCHAR, mccain_number VARCHAR)
SELECT control FROM table_2076608_3 WHERE founded = "1818"
What is the control type which was founded in 1818?
CREATE TABLE table_2076608_3 (control VARCHAR, founded VARCHAR)
SELECT MIN(week) FROM table_name_18 WHERE game_site = "milwaukee county stadium"
What is the lowest week number for the game that was at milwaukee county stadium?
CREATE TABLE table_name_18 (week INTEGER, game_site VARCHAR)
SELECT opponent FROM table_name_32 WHERE week < 9 AND game_site = "robert f. kennedy memorial stadium"
Who did the Jets play in their pre-week 9 game at the Robert F. Kennedy memorial stadium?
CREATE TABLE table_name_32 (opponent VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT jockey FROM table_22265261_1 WHERE position = "7th"
Who was the jockey in 7th position?
CREATE TABLE table_22265261_1 (jockey VARCHAR, position VARCHAR)
SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = "Suite 634"
What is the booking status code of the apartment with apartment number "Suite 634"?
CREATE TABLE Apartments (apt_id VARCHAR, apt_number VARCHAR); CREATE TABLE Apartment_Bookings (booking_status_code VARCHAR, apt_id VARCHAR)
SELECT position FROM table_1473672_4 WHERE player = "Ron Lalonde"
Name the position for ron lalonde
CREATE TABLE table_1473672_4 (position VARCHAR, player VARCHAR)
SELECT 1 AS st_leg FROM table_name_91 WHERE team_2 = "asil lysi"
What is the 1st leg when team 2 is Asil Lysi?
CREATE TABLE table_name_91 (team_2 VARCHAR)
SELECT player FROM table_name_17 WHERE season = "2007"
Which player played in 2007?
CREATE TABLE table_name_17 (player VARCHAR, season VARCHAR)
SELECT MIN(span_metres) FROM table_name_23 WHERE year_opened = "2007" AND country = "china" AND rank < 13 AND span_feet < 1378
What is the lowest amount of Span metres when the year opened is 2007, the country is China, rank is less than 13, and the span feet is less than 1378?
CREATE TABLE table_name_23 (span_metres INTEGER, span_feet VARCHAR, rank VARCHAR, year_opened VARCHAR, country VARCHAR)
SELECT european_cup FROM table_name_91 WHERE season = "2006-07"
Which European Cup is in the 2006-07 season?
CREATE TABLE table_name_91 (european_cup VARCHAR, season VARCHAR)
SELECT overall FROM table_name_82 WHERE college = "iowa" AND position = "db"
What was the overall draft pick of the player who was a db and attended college in iowa?
CREATE TABLE table_name_82 (overall VARCHAR, college VARCHAR, position VARCHAR)
SELECT date FROM table_name_32 WHERE home_team = "richmond"
What date does the Home team of Richmond have?
CREATE TABLE table_name_32 (date VARCHAR, home_team VARCHAR)
SELECT player FROM table_name_39 WHERE score = 70 - 73 - 69 - 72 = 284
What player scored 70-73-69-72=284?
CREATE TABLE table_name_39 (player VARCHAR, score VARCHAR)
SELECT no FROM table_10015132_3 WHERE school_club_team = "Boise State"
What's the number of the player from Boise State?
CREATE TABLE table_10015132_3 (no VARCHAR, school_club_team VARCHAR)
SELECT att_cmp_int FROM table_name_85 WHERE effic = 127.89
what was the att-cmp-int for the qb with an effic of 127.89?
CREATE TABLE table_name_85 (att_cmp_int VARCHAR, effic VARCHAR)
SELECT bronze FROM table_name_81 WHERE location = "busan"
Who was the bronze medal when the Asian Games were held in Busan?
CREATE TABLE table_name_81 (bronze VARCHAR, location VARCHAR)
SELECT zares FROM table_name_87 WHERE date = "may 21–22"
What is the percentage for Zares on May 21–22?
CREATE TABLE table_name_87 (zares VARCHAR, date VARCHAR)
SELECT MIN(pick__number) FROM table_name_8 WHERE reg_gp < 0
What is the smallest pick with a Reg GP less than 0?
CREATE TABLE table_name_8 (pick__number INTEGER, reg_gp INTEGER)
SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = "Aruba"
What is the total number of languages used in Aruba?
CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)
SELECT frequency FROM table_name_82 WHERE destination = "bangalore"
What is the frequency of the train to Bangalore?
CREATE TABLE table_name_82 (frequency VARCHAR, destination VARCHAR)
SELECT original_air_date FROM table_22904752_1 WHERE written_by = "Sean Whitesell"
When is the original air date written by sean whitesell?
CREATE TABLE table_22904752_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT date_of_appointment FROM table_11206916_2 WHERE outgoing_manager = "Campbell Money"
What is the date of appointment for outgoing manager Campbell Money
CREATE TABLE table_11206916_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(podiums) FROM table_24491017_1 WHERE series = "British F3 National Class"
How many podiums when he was in the british f3 national class series?
CREATE TABLE table_24491017_1 (podiums VARCHAR, series VARCHAR)
SELECT career_games FROM table_name_58 WHERE date_and_opponent = "12/15/92 vs. uw–milwaukee"
Which Career Games has a Date and Opponent of 12/15/92 vs. uw–milwaukee?
CREATE TABLE table_name_58 (career_games VARCHAR, date_and_opponent VARCHAR)
SELECT SUM(heat) FROM table_name_17 WHERE name = "ivet lalova"
What's the sum of all of ivet lalova's Heat stats?
CREATE TABLE table_name_17 (heat INTEGER, name VARCHAR)
SELECT date FROM table_name_29 WHERE republican = "mike huckabee" AND sample_size = 496
What was the date of the poll with a sample size of 496 where Republican Mike Huckabee was chosen?
CREATE TABLE table_name_29 (date VARCHAR, republican VARCHAR, sample_size VARCHAR)
SELECT MIN(wins) FROM table_name_87 WHERE player = "ben crenshaw"
What is the lowest number of wins for ben crenshaw?
CREATE TABLE table_name_87 (wins INTEGER, player VARCHAR)
SELECT country FROM table_name_70 WHERE score = 68 - 71 - 76 = 215
From what country is the player with a score of 68-71-76=215?
CREATE TABLE table_name_70 (country VARCHAR, score VARCHAR)
SELECT clive_churchill_medal FROM table_name_27 WHERE losingteam = "sydney roosters" AND season = 2010
Who wins the clive churchill medal when the losing team is the sydney roosters in 2010?
CREATE TABLE table_name_27 (clive_churchill_medal VARCHAR, losingteam VARCHAR, season VARCHAR)
SELECT season FROM table_name_81 WHERE event_type = "grand prix" AND location = "kuala lumpur"
In what season did he compete in the Grand Prix in Kuala Lumpur?
CREATE TABLE table_name_81 (season VARCHAR, event_type VARCHAR, location VARCHAR)
SELECT MIN(no) FROM table_21979779_1 WHERE production_code = "2T7211"
what is the smallest series episode number whose production code is 2t7211?
CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR)
SELECT MAX(game) FROM table_name_16 WHERE opponent = "new york rangers" AND points > 55
What's the highest game against the New York Rangers with more than 55 points?
CREATE TABLE table_name_16 (game INTEGER, opponent VARCHAR, points VARCHAR)
SELECT Store_Name FROM Drama_Workshop_Groups
Show all the Store_Name of drama workshop groups.
CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR)
SELECT label FROM table_name_10 WHERE catalog = "nebt058"
What label has the catalog nebt058?
CREATE TABLE table_name_10 (label VARCHAR, catalog VARCHAR)
SELECT opponent FROM table_13258876_2 WHERE attendance = 61615
Who did the Seahawks play when the listed attendance was 61615?
CREATE TABLE table_13258876_2 (opponent VARCHAR, attendance VARCHAR)
SELECT MAX(bush_number) FROM table_1756284_1
What was the highest vote number for Bush?
CREATE TABLE table_1756284_1 (bush_number INTEGER)
SELECT competition FROM table_name_50 WHERE date = "26th"
What competition was held on the 26th?
CREATE TABLE table_name_50 (competition VARCHAR, date VARCHAR)
SELECT region FROM table_25042332_27 WHERE automatic_washing_machine = "60.9%"
Name the region for automatic washing machine being 60.9%
CREATE TABLE table_25042332_27 (region VARCHAR, automatic_washing_machine VARCHAR)
SELECT location FROM table_name_3 WHERE date = "1995-06-15"
What Location has a Date of 1995-06-15?
CREATE TABLE table_name_3 (location VARCHAR, date VARCHAR)
SELECT candidates FROM table_1341690_43 WHERE district = "Texas 20"
Name the candidates for texas 20
CREATE TABLE table_1341690_43 (candidates VARCHAR, district VARCHAR)
SELECT office FROM table_1331313_1 WHERE incumbent = "Ramon R. Jimenez, Jr."
who is the the office with incumbent being ramon r. jimenez, jr.
CREATE TABLE table_1331313_1 (office VARCHAR, incumbent VARCHAR)
SELECT first FROM table_name_30 WHERE dob = "5 february 1979"
Which first was born on 5 february 1979?
CREATE TABLE table_name_30 (first VARCHAR, dob VARCHAR)
SELECT estimated_value FROM table_name_79 WHERE first_appearance = "action comics #1"
What is Action Comics #1's estimated value?
CREATE TABLE table_name_79 (estimated_value VARCHAR, first_appearance VARCHAR)