answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT glendale_principal FROM table_name_58 WHERE ms_principal = "greg smorel" AND hs_principal = "joleen reinholz" AND year = "2006-2007"
Who is the Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007?
CREATE TABLE table_name_58 (glendale_principal VARCHAR, year VARCHAR, ms_principal VARCHAR, hs_principal VARCHAR)
SELECT MAX(evening_gown) FROM table_name_38 WHERE average < 8.793 AND swimsuit < 8.12 AND interview = 8.51
Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12
CREATE TABLE table_name_38 (evening_gown INTEGER, interview VARCHAR, average VARCHAR, swimsuit VARCHAR)
SELECT COUNT(draws) FROM table_14889048_1 WHERE conceded = 25
Name the number of draws for when conceded is 25
CREATE TABLE table_14889048_1 (draws VARCHAR, conceded VARCHAR)
SELECT COUNT(laps) FROM table_name_12 WHERE team = "team player's" AND grid = 9 AND points > 10
What is the total number of laps for a team of team player's, and has a grid of 9, and points larger than 10?
CREATE TABLE table_name_12 (laps VARCHAR, points VARCHAR, team VARCHAR, grid VARCHAR)
SELECT score FROM table_name_2 WHERE surface = "hard" AND opponent_in_the_final = "elena likhovtseva"
What is the score of the match played on a hard surface with an opponent in the final of Elena Likhovtseva?
CREATE TABLE table_name_2 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT nhl_team FROM table_2850912_10 WHERE player = "Joakim Persson"
Which team drafted Joakim Persson?
CREATE TABLE table_2850912_10 (nhl_team VARCHAR, player VARCHAR)
SELECT laps FROM table_name_48 WHERE manufacturer = "aprilia" AND rider = "sergio gadea"
Which Laps have a Manufacturer of aprilia, and a Rider of sergio gadea?
CREATE TABLE table_name_48 (laps VARCHAR, manufacturer VARCHAR, rider VARCHAR)
SELECT venue FROM table_name_4 WHERE rank = "3"
Which venue is rank 3?
CREATE TABLE table_name_4 (venue VARCHAR, rank VARCHAR)
SELECT team FROM table_2175685_1 WHERE race_time = "3:12:30"
What team won when the race time was 3:12:30?
CREATE TABLE table_2175685_1 (team VARCHAR, race_time VARCHAR)
SELECT week FROM table_name_91 WHERE opponent = "san diego chargers"
Which week was the game against the San Diego Chargers?
CREATE TABLE table_name_91 (week VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_88 WHERE visitor = "boston"
What was the cougars record during the game where Boston were the visitors?
CREATE TABLE table_name_88 (record VARCHAR, visitor VARCHAR)
SELECT format FROM table_name_92 WHERE region = "united states" AND date = "august 11, 2009"
Which format had a United States region and a date of August 11, 2009?
CREATE TABLE table_name_92 (format VARCHAR, region VARCHAR, date VARCHAR)
SELECT COUNT(record) FROM table_17058116_6 WHERE team = "Charlotte"
How many times did the team play charlotte?
CREATE TABLE table_17058116_6 (record VARCHAR, team VARCHAR)
SELECT competition FROM table_name_88 WHERE score = "4-0"
Which competition has 4-0 as the score?
CREATE TABLE table_name_88 (competition VARCHAR, score VARCHAR)
SELECT venue FROM table_name_95 WHERE city = "durham"
What venue is in the city of Durham?
CREATE TABLE table_name_95 (venue VARCHAR, city VARCHAR)
SELECT entrant FROM table_name_17 WHERE chassis = "maserati 250f" AND year < 1957 AND points < 6
What entrant had a Maserati 250F chassis and fewer than 6 points before 1957?
CREATE TABLE table_name_17 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT release_date FROM table_name_98 WHERE developer_s_ = "masthead studios"
When did Masthead Studios release their game?
CREATE TABLE table_name_98 (release_date VARCHAR, developer_s_ VARCHAR)
SELECT MAX(rank) FROM table_1682026_7 WHERE industry = "Oil and gas" AND headquarters = "Netherlands"
What is the highest rank of a company in the oil and gas industry headquartered in Netherlands?
CREATE TABLE table_1682026_7 (rank INTEGER, industry VARCHAR, headquarters VARCHAR)
SELECT reference FROM table_name_39 WHERE japanese_title = "アイシテル"
What reference is used with the title アイシテル?
CREATE TABLE table_name_39 (reference VARCHAR, japanese_title VARCHAR)
SELECT circuit FROM table_25531112_2 WHERE event = "Clipsal 500"
What circuit was the Clipsal 500 on?
CREATE TABLE table_25531112_2 (circuit VARCHAR, event VARCHAR)
SELECT MIN(population) FROM table_1417184_1 WHERE canton = "Redange"
what is the minimum population with canton being redange
CREATE TABLE table_1417184_1 (population INTEGER, canton VARCHAR)
SELECT railway_number_s_ FROM table_name_19 WHERE quantity = 3
Which railway number has 3 quantity?
CREATE TABLE table_name_19 (railway_number_s_ VARCHAR, quantity VARCHAR)
SELECT wkts FROM table_name_13 WHERE econ = "4.23"
Tell me the wkts for econ of 4.23
CREATE TABLE table_name_13 (wkts VARCHAR, econ VARCHAR)
SELECT attendance FROM table_name_47 WHERE opponent = "houston oilers"
What is the attendance when the opponent was the Houston Oilers?
CREATE TABLE table_name_47 (attendance VARCHAR, opponent VARCHAR)
SELECT points FROM table_name_86 WHERE games = "363"
How many points were scored by the player who played 363 games?
CREATE TABLE table_name_86 (points VARCHAR, games VARCHAR)
SELECT fsb_ht_frequency__mhz_ FROM table_name_79 WHERE sata > 6 AND memory = "ddr 266/333/400 registered/ecc"
Which FSB/HT frequency (MHz) has a SATA larger than 6 and DDR 266/333/400 Registered/ECC memory?
CREATE TABLE table_name_79 (fsb_ht_frequency__mhz_ VARCHAR, sata VARCHAR, memory VARCHAR)
SELECT removal_treaty__year_signed_ FROM table_name_32 WHERE nation = "chickasaw"
Which removal treaty covered the chickasaw nation?
CREATE TABLE table_name_32 (removal_treaty__year_signed_ VARCHAR, nation VARCHAR)
SELECT result FROM table_name_26 WHERE venue = "home"
What is the result with a home venue?
CREATE TABLE table_name_26 (result VARCHAR, venue VARCHAR)
SELECT club FROM table_name_90 WHERE established > 2000 AND sport = "soccer" AND venue = "kuntz stadium"
What is the Club that has an Established more than 2000 for soccer plated in kuntz stadium?
CREATE TABLE table_name_90 (club VARCHAR, venue VARCHAR, established VARCHAR, sport VARCHAR)
SELECT class FROM table_14342367_13 WHERE position = "Right tackle"
What was the class of the player who played right tackle?
CREATE TABLE table_14342367_13 (class VARCHAR, position VARCHAR)
SELECT COUNT(location) FROM table_24123547_2 WHERE week = 7
How many locations did the team play at on week 7?
CREATE TABLE table_24123547_2 (location VARCHAR, week VARCHAR)
SELECT niederbayern FROM table_23224961_1 WHERE oberbayern_b = "ESV Ingolstadt"
When esv ingolstadt is the oberbayern b what is the niederbayern?
CREATE TABLE table_23224961_1 (niederbayern VARCHAR, oberbayern_b VARCHAR)
SELECT AVG(gold) FROM table_name_99 WHERE silver < 13 AND total > 18 AND bronze < 8
What is the average number of gold medals won among participants that won less than 13 silver, less than 8 bronze, and more than 18 medals overall?
CREATE TABLE table_name_99 (gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT race_caller FROM table_22514845_4 WHERE s_host = "Jim McKay and Al Michaels" AND year = 1987
Who is the race caller when jim mckay and al michaels were s hosts in the year 1987?
CREATE TABLE table_22514845_4 (race_caller VARCHAR, s_host VARCHAR, year VARCHAR)
SELECT occupied_territory FROM table_10335_1 WHERE estimated_deaths = "600,000"
what's the occupied territory with estimated deaths of 600,000
CREATE TABLE table_10335_1 (occupied_territory VARCHAR, estimated_deaths VARCHAR)
SELECT time FROM table_name_66 WHERE rider = "anthony west"
Which time has a Rider of anthony west?
CREATE TABLE table_name_66 (time VARCHAR, rider VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_65 WHERE original_title = "sedamdeset i dva dana"
What is the film title used for nomination with the original title sedamdeset i dva dana?
CREATE TABLE table_name_65 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT AVG(league) AS Cup FROM table_name_64 WHERE fa_cup > 0 AND league = 5
How many league cup goals on average for players with over 0 FA cup and 5 league goals?
CREATE TABLE table_name_64 (league INTEGER, fa_cup VARCHAR)
SELECT network FROM table_name_70 WHERE title = "schlag den raab"
Which network aired the program Schlag den Raab?
CREATE TABLE table_name_70 (network VARCHAR, title VARCHAR)
SELECT name FROM table_name_98 WHERE location = "angola" AND entered_service = "1988"
Which is located in Angola and entered service in 1988?
CREATE TABLE table_name_98 (name VARCHAR, location VARCHAR, entered_service VARCHAR)
SELECT nationality FROM table_name_6 WHERE college_junior_club_team__league_ = "peterborough petes (ohl)"
What is the nationality of the player who played for the Peterborough Petes (OHL)?
CREATE TABLE table_name_6 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT title FROM table_2701851_5 WHERE production_code = "404a"
What was the title for the episode with the production code 404a?
CREATE TABLE table_2701851_5 (title VARCHAR, production_code VARCHAR)
SELECT player FROM table_name_16 WHERE round = "7" AND pick > 187 AND nationality = "united states" AND draft > 2000
Which Player has a Round of 7, a Pick larger than 187, a Nationality of united states, and a Draft larger than 2000?
CREATE TABLE table_name_16 (player VARCHAR, draft VARCHAR, nationality VARCHAR, round VARCHAR, pick VARCHAR)
SELECT AVG(points) FROM table_name_30 WHERE driver = "tristan gommendy"
What is the average point count for tristan gommendy?
CREATE TABLE table_name_30 (points INTEGER, driver VARCHAR)
SELECT location FROM table_1090916_2 WHERE status = "In service as coaching stock"
What is the location when the status is in service as coaching stock?
CREATE TABLE table_1090916_2 (location VARCHAR, status VARCHAR)
SELECT SUM(attendance) FROM table_name_83 WHERE location = "oakland-alameda county coliseum" AND game = 2
What is the number of people in attendance at Oakland-Alameda County Coliseum, and game is 2?
CREATE TABLE table_name_83 (attendance INTEGER, location VARCHAR, game VARCHAR)
SELECT original_air_date FROM table_24425976_2 WHERE production_code = "108"
What original air date was for the episode with production code of 108?
CREATE TABLE table_24425976_2 (original_air_date VARCHAR, production_code VARCHAR)
SELECT cause FROM table_name_91 WHERE discipline = "touring car racing"
For what cause is Touring Car Racing the discipline?
CREATE TABLE table_name_91 (cause VARCHAR, discipline VARCHAR)
SELECT MAX(band) FROM table_name_22 WHERE system = "gsm-450"
What band is the highest and has a System of gsm-450?
CREATE TABLE table_name_22 (band INTEGER, system VARCHAR)
SELECT writer FROM table_name_20 WHERE arranger = "tarek akef" AND length = "4:58"
Who was the writer that worked with arranger Tarek Akef on a 4:58 song?
CREATE TABLE table_name_20 (writer VARCHAR, arranger VARCHAR, length VARCHAR)
SELECT try_bonus FROM table_name_67 WHERE points = "58"
What is the try bonus when there were 58 points?
CREATE TABLE table_name_67 (try_bonus VARCHAR, points VARCHAR)
SELECT AVG(number_of_households) FROM table_name_61 WHERE per_capita_income = "$21,571" AND population < 9 OFFSET 783
Which Number of households has Per capita income of $21,571, and a Population smaller than 9,783?
CREATE TABLE table_name_61 (number_of_households INTEGER, per_capita_income VARCHAR, population VARCHAR)
SELECT city FROM table_name_54 WHERE school = "indianapolis brebeuf"
Which City has a School of indianapolis brebeuf?
CREATE TABLE table_name_54 (city VARCHAR, school VARCHAR)
SELECT MIN(crowd) FROM table_name_32 WHERE home_team = "north melbourne"
What was the lowest Crowd Size for the Home Team of North Melbourne?
CREATE TABLE table_name_32 (crowd INTEGER, home_team VARCHAR)
SELECT villages FROM table_19457_1 WHERE state_region = "Magway Region"
How many villages are there in the Magway region?
CREATE TABLE table_19457_1 (villages VARCHAR, state_region VARCHAR)
SELECT COUNT(round) FROM table_name_77 WHERE position = "2b"
What is the total number of Round, when Position is 2B?
CREATE TABLE table_name_77 (round VARCHAR, position VARCHAR)
SELECT country FROM table_name_6 WHERE place = "t5"
Which country placed t5?
CREATE TABLE table_name_6 (country VARCHAR, place VARCHAR)
SELECT last_current_driver_s__3_november_2013 FROM table_27279050_3 WHERE first_driver_s_ = "Marlon Stöckinger , Kotaro Sakurai ( 2011 )"
Who is the last/current driver(s) 3 november 2013 when first driver(s) is marlon stöckinger , kotaro sakurai ( 2011 )?
CREATE TABLE table_27279050_3 (last_current_driver_s__3_november_2013 VARCHAR, first_driver_s_ VARCHAR)
SELECT SUM(laps) FROM table_name_68 WHERE grid > 7 AND constructor = "lotus - ford" AND time_retired = "+ 2 laps"
How many laps with a grid larger than 7 did a Lotus - Ford do with a Time/Retired of + 2 laps?
CREATE TABLE table_name_68 (laps INTEGER, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR)
SELECT AVG(date) FROM table_name_13 WHERE u_boats_destroyed__kuk_ = "2" AND tonnage = "1,514,050"
What is listed as the average Date that has U-boats destroyed (KuK) of 2 with Tonnage of 1,514,050?
CREATE TABLE table_name_13 (date INTEGER, u_boats_destroyed__kuk_ VARCHAR, tonnage VARCHAR)
SELECT nickname FROM table_name_76 WHERE years_in_competition = "1982-1994"
What is the Nickname in the Competition of 1982-1994?
CREATE TABLE table_name_76 (nickname VARCHAR, years_in_competition VARCHAR)
SELECT COUNT(stage) FROM table_26010857_13 WHERE teams_classification = "Cervélo TestTeam"
What is the number of stages where the teams classification leader is Cervélo Testteam?
CREATE TABLE table_26010857_13 (stage VARCHAR, teams_classification VARCHAR)
SELECT MIN(elected) FROM table_13870048_3 WHERE incumbent = "Gregory W. Meeks"
what was the lowest numbers for the winner gregory w. meeks
CREATE TABLE table_13870048_3 (elected INTEGER, incumbent VARCHAR)
SELECT position FROM table_name_31 WHERE college = "colorado"
Which Position has a College of colorado?
CREATE TABLE table_name_31 (position VARCHAR, college VARCHAR)
SELECT length_fuel FROM table_name_91 WHERE floor_styling = "high" AND year_built = "2000-2003"
What is the Length/Fuel of the bus built between 2000-2003 with a high Floor Styling?
CREATE TABLE table_name_91 (length_fuel VARCHAR, floor_styling VARCHAR, year_built VARCHAR)
SELECT MAX(races) FROM table_name_27 WHERE position = "1st" AND podiums < 10
What's the most races with less than 10 podiums and 1st position?
CREATE TABLE table_name_27 (races INTEGER, position VARCHAR, podiums VARCHAR)
SELECT date FROM table_name_55 WHERE record = "41-46"
Which date has a Record of 41-46?
CREATE TABLE table_name_55 (date VARCHAR, record VARCHAR)
SELECT hawthorn_score FROM table_28211103_1 WHERE year = 2000
What is the hawthorn score at the year 2000?
CREATE TABLE table_28211103_1 (hawthorn_score VARCHAR, year VARCHAR)
SELECT episode_air_date FROM table_11129123_1 WHERE callback_venue = "Rancho Bernardo Inn"
When did the callbacks from rancho bernardo inn air
CREATE TABLE table_11129123_1 (episode_air_date VARCHAR, callback_venue VARCHAR)
SELECT opponent FROM table_name_52 WHERE score = "3–6, 5–7"
Which Opponent has a Score of 3–6, 5–7?
CREATE TABLE table_name_52 (opponent VARCHAR, score VARCHAR)
SELECT MIN(wins) FROM table_name_17 WHERE goals_against < 39 AND losses > 2 AND ties > 0
What has the lowest number of wins with GA smaller than 39, more than 2 losses, and ties greater than 0?
CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, goals_against VARCHAR, losses VARCHAR)
SELECT successor FROM table_225205_4 WHERE reason_for_change = "Died November 11, 1845"
Who is the successor when the reason for change is died November 11, 1845?
CREATE TABLE table_225205_4 (successor VARCHAR, reason_for_change VARCHAR)
SELECT original_air_date FROM table_28859177_3 WHERE directed_by = "Graeme Clifford" AND written_by = "Lindsay Sturman"
What is the original air date for episode graeme clifford directed and lindsay sturman wrote?
CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT name FROM table_name_7 WHERE points = 151.66
Tell me the name with points of 151.66
CREATE TABLE table_name_7 (name VARCHAR, points VARCHAR)
SELECT website FROM table_name_81 WHERE webcast = "listen live" AND frequency = 99.3
What's the website for the Listen Live webcast on the 99.3 frequency?
CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR)
SELECT us_viewers__million_ FROM table_26961951_4 WHERE written_by = "Alison McDonald"
How many viewers in millions did the Alison McDonald episode get?
CREATE TABLE table_26961951_4 (us_viewers__million_ VARCHAR, written_by VARCHAR)
SELECT format FROM table_10333757_1 WHERE branding = "1290 WKBK W281AU 104.1"
What is the Format for Branding of 1290 wkbk w281au 104.1?
CREATE TABLE table_10333757_1 (format VARCHAR, branding VARCHAR)
SELECT water__sqmi_ FROM table_18600760_20 WHERE latitude = "48.423224"
What is the water area (sqmi) for the township at latitude 48.423224?
CREATE TABLE table_18600760_20 (water__sqmi_ VARCHAR, latitude VARCHAR)
SELECT country FROM table_1949994_7 WHERE end_date = "June 25"
Where was the season that ended on June 25 located?
CREATE TABLE table_1949994_7 (country VARCHAR, end_date VARCHAR)
SELECT MAX(round) FROM table_name_80 WHERE location = "las vegas, nevada, united states" AND event = "wec 25"
What is the highest round in the Wec 25 match in Las Vegas, Nevada, United States?
CREATE TABLE table_name_80 (round INTEGER, location VARCHAR, event VARCHAR)
SELECT driver FROM table_name_69 WHERE zan_2 = "5"
What driver has 5 as the zan 2?
CREATE TABLE table_name_69 (driver VARCHAR, zan_2 VARCHAR)
SELECT rank FROM table_name_15 WHERE total > 4 AND nation = "spain"
Spain with a total of more than 4 medals is in what rank?
CREATE TABLE table_name_15 (rank VARCHAR, total VARCHAR, nation VARCHAR)
SELECT open_cup FROM table_name_98 WHERE playoffs = "2nd round"
What was the Rampage's status in the Open Cup in the year that they made it to the 2nd round of the playoffs?
CREATE TABLE table_name_98 (open_cup VARCHAR, playoffs VARCHAR)
SELECT original_air_date FROM table_11951237_3 WHERE directed_by = "Timothy Van Patten"
What is theoriginal air date of the episode directed by timothy van patten?
CREATE TABLE table_11951237_3 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT venue FROM table_name_30 WHERE result = "2nd" AND extra = "4 x 100 m relay"
what is the venue when the result is 2nd and extra is 4 x 100 m relay?
CREATE TABLE table_name_30 (venue VARCHAR, result VARCHAR, extra VARCHAR)
SELECT result FROM table_22736523_1 WHERE order__number = "10" AND song_choice = "Coba"
If the song choice is Coba and the order number is 10, what is the result?
CREATE TABLE table_22736523_1 (result VARCHAR, order__number VARCHAR, song_choice VARCHAR)
SELECT year FROM table_name_84 WHERE date = "not played"
what is the year when the date is not played?
CREATE TABLE table_name_84 (year VARCHAR, date VARCHAR)
SELECT republican_ticket FROM table_name_61 WHERE socialist_ticket = "frank r. crosswaith"
Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?
CREATE TABLE table_name_61 (republican_ticket VARCHAR, socialist_ticket VARCHAR)
SELECT record FROM table_name_89 WHERE visitor = "magic"
Which record has a Visitor of magic?
CREATE TABLE table_name_89 (record VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_57 WHERE away_team = "south melbourne"
If the Away team was south melbourne what Date did they play?
CREATE TABLE table_name_57 (date VARCHAR, away_team VARCHAR)
SELECT MIN(new_adherents_per_year) FROM table_28137918_5
Name the least amount of new adherents per year
CREATE TABLE table_28137918_5 (new_adherents_per_year INTEGER)
SELECT MAX(pick) FROM table_name_79 WHERE player = "steve bartalo"
When was steve bartalo picked?
CREATE TABLE table_name_79 (pick INTEGER, player VARCHAR)
SELECT Season AS episode__number FROM table_2623498_4 WHERE written_by = "Mark Drop"
Which episodes in season 3 were written by Mark Drop?
CREATE TABLE table_2623498_4 (Season VARCHAR, written_by VARCHAR)
SELECT shot__percentage FROM table_1644876_2 WHERE locale = Switzerland
What are the shot percentages for teams that played in switzerland?
CREATE TABLE table_1644876_2 (shot__percentage VARCHAR, locale VARCHAR, Switzerland VARCHAR)
SELECT music FROM table_name_6 WHERE style = "samba"
WHAT IS THE MUSIC WITH SAMBA?
CREATE TABLE table_name_6 (music VARCHAR, style VARCHAR)
SELECT score FROM table_name_66 WHERE date = "november 15"
what is the score on november 15
CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR)
SELECT height FROM table_name_38 WHERE date_of_birth = "1982-07-05"
What is the Height of the Player with a Date of Birth of 1982-07-05?
CREATE TABLE table_name_38 (height VARCHAR, date_of_birth VARCHAR)
SELECT MIN(4 AS _car_sets) FROM table_19255192_2
Name the least 4 car sets
CREATE TABLE table_19255192_2 (Id VARCHAR)
SELECT COUNT(overall) FROM table_name_38 WHERE pick = 1 AND name = "cecil martin"
With the pick of 1 Cecil Martin has what number as the overall?
CREATE TABLE table_name_38 (overall VARCHAR, pick VARCHAR, name VARCHAR)
SELECT japanese_name FROM table_name_46 WHERE korean_name = "chungcheong-bukdo"
What is the Japanese name of the Province with a Korean name of Chungcheong-Bukdo?
CREATE TABLE table_name_46 (japanese_name VARCHAR, korean_name VARCHAR)