answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(year_named) FROM table_16799784_12 WHERE name = "Tie Fluctus"
What is the highest year named for the name Tie Fluctus?
CREATE TABLE table_16799784_12 (year_named INTEGER, name VARCHAR)
SELECT length FROM table_name_36 WHERE writer = "james swallow" AND release > 2.1
What was the length when James Swallow had a release longer than 2.1?
CREATE TABLE table_name_36 (length VARCHAR, writer VARCHAR, release VARCHAR)
SELECT AVG(cuts_made) FROM table_name_96 WHERE wins = 2 AND top_5 < 7
How many vuts made for a player with 2 wins and under 7 top 5s?
CREATE TABLE table_name_96 (cuts_made INTEGER, wins VARCHAR, top_5 VARCHAR)
SELECT team FROM table_name_44 WHERE round_winner = "john bowe" AND circuit = "winton motor raceway"
On what team did John Bowe round winner at Winton Motor Raceway belong to?
CREATE TABLE table_name_44 (team VARCHAR, round_winner VARCHAR, circuit VARCHAR)
SELECT 2008 FROM table_name_17 WHERE 2011 = "1r" AND 2010 = "2r" AND tournament = "us open"
What's the 2008 of the US Open when 2010 was 2R and 2011 was 1R?
CREATE TABLE table_name_17 (tournament VARCHAR)
SELECT Join_Year FROM pilot ORDER BY Rank LIMIT 1
What is the joined year of the pilot of the highest rank?
CREATE TABLE pilot (Join_Year VARCHAR, Rank VARCHAR)
SELECT 2007 FROM table_name_27 WHERE tournament = "madrid"
What is 2007, when Tournament is "Madrid"?
CREATE TABLE table_name_27 (tournament VARCHAR)
SELECT SUM(games) FROM table_name_30 WHERE Pwin_percentage = — AND term_[c_] = "1987–1988" AND win_percentage < 0.506
What is the sum of the game with a PWin% of —, Term [c] of 1987–1988, and Win% less than 0.506?
CREATE TABLE table_name_30 (games INTEGER, win_percentage VARCHAR, Pwin_percentage VARCHAR, — VARCHAR, term_ VARCHAR, c_ VARCHAR)
SELECT location__population_ FROM table_262534_2 WHERE institution = "Bluefield College"
What is the location and population of the institution called Bluefield College?
CREATE TABLE table_262534_2 (location__population_ VARCHAR, institution VARCHAR)
SELECT MIN(televotes) FROM table_name_54 WHERE performer = "monika sokolovska" AND rank > 15
Name the lowest Televotes which has monika sokolovska and a Rank larger than 15?
CREATE TABLE table_name_54 (televotes INTEGER, performer VARCHAR, rank VARCHAR)
SELECT governments FROM table_name_60 WHERE party = "yisrael beiteinu"
Which goverment had a party of yisrael beiteinu?
CREATE TABLE table_name_60 (governments VARCHAR, party VARCHAR)
SELECT channel_tv___dt__ FROM table_11147852_1 WHERE year_of_affiliation = "2002"
What channels have stations that were affiliated in 2002?
CREATE TABLE table_11147852_1 (channel_tv___dt__ VARCHAR, year_of_affiliation VARCHAR)
SELECT asset_id, asset_details, asset_make, asset_model FROM Assets
List the asset id, details, make and model for every asset.
CREATE TABLE Assets (asset_id VARCHAR, asset_details VARCHAR, asset_make VARCHAR, asset_model VARCHAR)
SELECT rnd FROM table_name_18 WHERE college = "northern colorado"
What is Northern Colorado's Rnd.?
CREATE TABLE table_name_18 (rnd VARCHAR, college VARCHAR)
SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150
Find the name of companies whose revenue is between 100 and 150.
CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases
What are the details of all sales and purchases?
CREATE TABLE purchases (sales_details VARCHAR, purchase_details VARCHAR); CREATE TABLE sales (sales_details VARCHAR, purchase_details VARCHAR)
SELECT COUNT(record) FROM table_17058151_7 WHERE game = 43
How many games was game 43?
CREATE TABLE table_17058151_7 (record VARCHAR, game VARCHAR)
SELECT club FROM table_12792876_2 WHERE points_against = "714"
Which club gave up 714 points?
CREATE TABLE table_12792876_2 (club VARCHAR, points_against VARCHAR)
SELECT COUNT(company) FROM table_20174050_24 WHERE title = "Deadly Download"
how many companies released an audiobook titled deadly download
CREATE TABLE table_20174050_24 (company VARCHAR, title VARCHAR)
SELECT MIN(diameter__km_) FROM table_name_78 WHERE latitude = "52.0s"
WHAT IS THE LOWEST DIAMETER FOR A LATITIDE OF 52.0S?
CREATE TABLE table_name_78 (diameter__km_ INTEGER, latitude VARCHAR)
SELECT party FROM table_1341897_6 WHERE district = "Arkansas 2"
What party did the incumbent in the Arkansas 2 district belong to?
CREATE TABLE table_1341897_6 (party VARCHAR, district VARCHAR)
SELECT title FROM table_name_93 WHERE termination_of_mission = "august 13, 1854"
What Title has a Termination of Mission for August 13, 1854?
CREATE TABLE table_name_93 (title VARCHAR, termination_of_mission VARCHAR)
SELECT saturday_saturnus___saturn_ FROM table_1277350_1 WHERE wednesday_mercurius__mercury_ = "Mercuridi"
what's the saturday saturnus ( saturn) with wednesday mercurius (mercury) being mercuridi
CREATE TABLE table_1277350_1 (saturday_saturnus___saturn_ VARCHAR, wednesday_mercurius__mercury_ VARCHAR)
SELECT COUNT(played) FROM table_12886178_5 WHERE tries_for = "50"
How many clubs have tries for count of 50?
CREATE TABLE table_12886178_5 (played VARCHAR, tries_for VARCHAR)
SELECT COUNT(citrate) FROM table_16083989_1 WHERE species = "Salmonella spp."
What is the result for salmonella spp. if you use citrate?
CREATE TABLE table_16083989_1 (citrate VARCHAR, species VARCHAR)
SELECT MIN(game) FROM table_23186738_9 WHERE score = "L 93–109 (OT)"
Name the least game for score of l 93–109 (ot)
CREATE TABLE table_23186738_9 (game INTEGER, score VARCHAR)
SELECT couple FROM table_19744915_22 WHERE vote_percentage = "21.843%"
What couple had vote percentage of 21.843%?
CREATE TABLE table_19744915_22 (couple VARCHAR, vote_percentage VARCHAR)
SELECT MIN(no) FROM table_29329432_1 WHERE production_code = "3X6266"
Name the least number for production code 3x6266
CREATE TABLE table_29329432_1 (no INTEGER, production_code VARCHAR)
SELECT date FROM table_name_50 WHERE beat_by = "won" AND location = "chs"
What was the date in which Chic won at CHS?
CREATE TABLE table_name_50 (date VARCHAR, beat_by VARCHAR, location VARCHAR)
SELECT MAX(gold) FROM table_name_1 WHERE total < 171 AND nation = "united states" AND bronze < 9
The United States, with a total medal count of less than 171, and a bronze medal count less than 9, has how many gold medals?
CREATE TABLE table_name_1 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)
SELECT directed_by FROM table_26561498_1 WHERE production_code = 176452
who directed and produced 176452?
CREATE TABLE table_26561498_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT COUNT(bronze) FROM table_name_15 WHERE silver > 2
What is the total of bronze that has more silvers than 2?
CREATE TABLE table_name_15 (bronze VARCHAR, silver INTEGER)
SELECT AVG(episodes) FROM table_name_65 WHERE last_airdate = "april 29, 1986"
How many episodes were in the season that ended on April 29, 1986?
CREATE TABLE table_name_65 (episodes INTEGER, last_airdate VARCHAR)
SELECT points_against FROM table_name_38 WHERE matches = "16"
How many against points for 16 matches?
CREATE TABLE table_name_38 (points_against VARCHAR, matches VARCHAR)
SELECT MAX(week) FROM table_14940519_1 WHERE date = "September 25, 1983"
Name the least week for september 25, 1983
CREATE TABLE table_14940519_1 (week INTEGER, date VARCHAR)
SELECT date FROM table_name_88 WHERE result = "l 14–13"
Which Date has a Result of l 14–13?
CREATE TABLE table_name_88 (date VARCHAR, result VARCHAR)
SELECT MAX(game) FROM table_name_78 WHERE time = "2:44"
What is the highest game number that had a time of 2:44?
CREATE TABLE table_name_78 (game INTEGER, time VARCHAR)
SELECT COUNT(episode) FROM table_23292220_6 WHERE seans_team = "Vanessa Feltz and Lee Mack"
In how many episodes were Vanessa Feltz and Lee Mack the team for Sean?
CREATE TABLE table_23292220_6 (episode VARCHAR, seans_team VARCHAR)
SELECT first_elected FROM table_1341930_11 WHERE district = "Georgia 4"
What is the first elected for georgia 4?
CREATE TABLE table_1341930_11 (first_elected VARCHAR, district VARCHAR)
SELECT MIN(year) FROM table_name_74 WHERE gold = "south korea" AND bronze = "malaysia"
What was the first year that South Korea won gold and Malaysia won bronze?
CREATE TABLE table_name_74 (year INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT equipment FROM table_16941304_4 WHERE bike_no = 6
Name the equipment for bike number 6
CREATE TABLE table_16941304_4 (equipment VARCHAR, bike_no VARCHAR)
SELECT home FROM table_name_26 WHERE record = "11–8–2"
What team was the home team when the record was 11–8–2?
CREATE TABLE table_name_26 (home VARCHAR, record VARCHAR)
SELECT channel FROM table_name_10 WHERE analogue_terrestrial_channel = "n/a" AND internet = "itv.com" AND position > 6 AND digital_terrestrial_channel = "6 27 (+1)"
What is the channel when the analogue terrestrial channel shows n/a, and the internet is itv.com, with a position larger than 6, and digital terrestrial channel is 6 27 (+1)?
CREATE TABLE table_name_10 (channel VARCHAR, digital_terrestrial_channel VARCHAR, position VARCHAR, analogue_terrestrial_channel VARCHAR, internet VARCHAR)
SELECT headquarter FROM manufacturers WHERE founder = 'James'
Where is the headquarter of the company founded by James?
CREATE TABLE manufacturers (headquarter VARCHAR, founder VARCHAR)
SELECT home_team AS score FROM table_name_93 WHERE home_team = "richmond"
What is richmond's score as the home team?
CREATE TABLE table_name_93 (home_team VARCHAR)
SELECT fastest_lap FROM table_name_40 WHERE winning_driver = "al unser"
Who had the fastest lap when Al Unser won?
CREATE TABLE table_name_40 (fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT record FROM table_name_90 WHERE visitor = "atlanta hawks"
What was the record when the visitor was Atlanta Hawks?
CREATE TABLE table_name_90 (record VARCHAR, visitor VARCHAR)
SELECT COUNT(tonioli) FROM table_18595004_7 WHERE week__number = 3
How many sets of marks does Tonioli get in week 3?
CREATE TABLE table_18595004_7 (tonioli VARCHAR, week__number VARCHAR)
SELECT r_z___arcsecond__ FROM table_15318324_1 WHERE target_datum = "Ireland 1965"
How many values of r z(arcsecond) are associated with a target datum of Ireland 1965?
CREATE TABLE table_15318324_1 (r_z___arcsecond__ VARCHAR, target_datum VARCHAR)
SELECT COUNT(media_market_ranking) FROM table_1205598_1 WHERE nhl_team_s_ = "Blackhawks"
What is the media market ranking for the Blackhawks?
CREATE TABLE table_1205598_1 (media_market_ranking VARCHAR, nhl_team_s_ VARCHAR)
SELECT game FROM table_20850527_1 WHERE opponent = "Purdue"
What game number did the Wildcats play Purdue?
CREATE TABLE table_20850527_1 (game VARCHAR, opponent VARCHAR)
SELECT MIN(wins) FROM table_name_19 WHERE year = 1988
What were the least Wins in 1988?
CREATE TABLE table_name_19 (wins INTEGER, year VARCHAR)
SELECT SUM(year) FROM table_name_3 WHERE artist = "claudia beni"
How many years have claudia beni as the artist?
CREATE TABLE table_name_3 (year INTEGER, artist VARCHAR)
SELECT location_attendance FROM table_10812293_3 WHERE date = "November 20"
Where was the game on November 20?
CREATE TABLE table_10812293_3 (location_attendance VARCHAR, date VARCHAR)
SELECT hot_digital_songs_reaction FROM table_name_89 WHERE hot_100_reaction = "2 (+1)"
What digital reaction has hot 100 reaction of 2 (+1)?
CREATE TABLE table_name_89 (hot_digital_songs_reaction VARCHAR, hot_100_reaction VARCHAR)
SELECT COUNT(year) FROM table_name_34 WHERE score = 269
What year was the score 269?
CREATE TABLE table_name_34 (year VARCHAR, score VARCHAR)
SELECT score FROM table_name_52 WHERE home = "quebec nordiques" AND visitor = "vancouver blazers" AND date = "february 28"
Which Score has a Home of quebec nordiques, and a Visitor of vancouver blazers on february 28?
CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT name, TYPE, flag FROM ship ORDER BY built_year DESC LIMIT 1
Find the name, type, and flag of the ship that is built in the most recent year.
CREATE TABLE ship (name VARCHAR, TYPE VARCHAR, flag VARCHAR, built_year VARCHAR)
SELECT home_team AS score FROM table_16388398_1 WHERE away_team = "Sydney"
What was the score for the home team when the away team was Sydney?
CREATE TABLE table_16388398_1 (home_team VARCHAR, away_team VARCHAR)
SELECT model FROM table_name_52 WHERE cpu_speed = "133mhz"
Which model has a CPU speed of 133mhz?
CREATE TABLE table_name_52 (model VARCHAR, cpu_speed VARCHAR)
SELECT first_member FROM table_name_95 WHERE election = "1871 by-election"
What is First Member, when Election is "1871 by-election"?
CREATE TABLE table_name_95 (first_member VARCHAR, election VARCHAR)
SELECT winners FROM table_name_47 WHERE third_place = "0" AND team = "minas"
How many winners did Minas, which has 0 third places, have?
CREATE TABLE table_name_47 (winners VARCHAR, third_place VARCHAR, team VARCHAR)
SELECT score FROM table_name_16 WHERE tie_no = "16"
What was the score in Tie number 16?
CREATE TABLE table_name_16 (score VARCHAR, tie_no VARCHAR)
SELECT time_retired FROM table_name_22 WHERE laps = "77" AND grid = "11"
Who retired at lap 77 and was grid 11?
CREATE TABLE table_name_22 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT tournament_location FROM table_15315276_1 WHERE champion = "Misun Cho"
Where was the tournament located when Misun Cho won the championship?
CREATE TABLE table_15315276_1 (tournament_location VARCHAR, champion VARCHAR)
SELECT COUNT(withdrawn) FROM table_name_19 WHERE lswr_no > 210 AND to_iow = 1923
What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923?
CREATE TABLE table_name_19 (withdrawn VARCHAR, lswr_no VARCHAR, to_iow VARCHAR)
SELECT status FROM table_name_22 WHERE area_km_2 > 10.9 AND census_ranking = "4,674 of 5,008"
What status has an area km 2 greater than 10.9, with 4,674 of 5,008 as the census ranking
CREATE TABLE table_name_22 (status VARCHAR, area_km_2 VARCHAR, census_ranking VARCHAR)
SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID
What are the names of perpetrators?
CREATE TABLE perpetrator (People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT position FROM table_1213511_7 WHERE player = "Al Simmons"
what are all the position where player is al simmons
CREATE TABLE table_1213511_7 (position VARCHAR, player VARCHAR)
SELECT method FROM table_name_82 WHERE round > 1 AND event = "k-1 andy memorial 2001 japan gp final"
What is the method of the match after round 1 in the k-1 andy memorial 2001 japan gp final?
CREATE TABLE table_name_82 (method VARCHAR, round VARCHAR, event VARCHAR)
SELECT visitor FROM table_name_6 WHERE venue = "axa sports center" AND round = 20
Who is the visitor at the axa sports center in round 20?
CREATE TABLE table_name_6 (visitor VARCHAR, venue VARCHAR, round VARCHAR)
SELECT place FROM table_name_31 WHERE player = "corey pavin"
What place is Corey Pavin in?
CREATE TABLE table_name_31 (place VARCHAR, player VARCHAR)
SELECT * FROM employees WHERE hire_date < '2002-06-21'
display all the details from Employees table for those employees who was hired before 2002-06-21.
CREATE TABLE employees (hire_date INTEGER)
SELECT city FROM table_name_18 WHERE prize = "$146,000"
What is City, when Prize is "$146,000"?
CREATE TABLE table_name_18 (city VARCHAR, prize VARCHAR)
SELECT AVG(year) FROM table_name_59 WHERE entrant = "elf team tyrrell" AND points = "34"
What year did Elf Team Tyrrell have 34 points?
CREATE TABLE table_name_59 (year INTEGER, entrant VARCHAR, points VARCHAR)
SELECT MAX(bronze) FROM table_name_66 WHERE gold > 22 AND rank < 2
How many bronzes for nations with over 22 golds and ranked under 2?
CREATE TABLE table_name_66 (bronze INTEGER, gold VARCHAR, rank VARCHAR)
SELECT time_retired FROM table_name_86 WHERE laps = 75 AND driver = "pedro de la rosa"
Which time/retired had 75 laps and Pedro de la Rosa as a driver?
CREATE TABLE table_name_86 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT MIN(innings) FROM table_2985664_8
What is the lowest value for innings?
CREATE TABLE table_2985664_8 (innings INTEGER)
SELECT 2014 FROM table_name_23 WHERE 2013 = "jarrah rubinstein"
Who held the same position in 2014 that Jarrah Rubinstein held in 2013?
CREATE TABLE table_name_23 (Id VARCHAR)
SELECT date FROM table_name_36 WHERE time = "16:24.12"
On what date was the time of 16:24.12 achieved?
CREATE TABLE table_name_36 (date VARCHAR, time VARCHAR)
SELECT on_air_id FROM table_name_24 WHERE frequency = "105.9" AND purpose = "commercial"
What is the On-air ID with the frequency of 105.9, and purpose of commercial?
CREATE TABLE table_name_24 (on_air_id VARCHAR, frequency VARCHAR, purpose VARCHAR)
SELECT directed_by FROM table_23958944_5 WHERE no_by_season = 21
Who directed episode 21?
CREATE TABLE table_23958944_5 (directed_by VARCHAR, no_by_season VARCHAR)
SELECT mlb_draft FROM table_name_80 WHERE school = "seton hall preparatory school"
What is the MLB Draft status of the person who attended Seton Hall Preparatory School?
CREATE TABLE table_name_80 (mlb_draft VARCHAR, school VARCHAR)
SELECT score_in_the_final FROM table_22597626_2 WHERE partner = "Woodforde"
What is the final score if the partner is Woodforde?
CREATE TABLE table_22597626_2 (score_in_the_final VARCHAR, partner VARCHAR)
SELECT sales FROM table_name_7 WHERE peak_position = "#24"
Name the sales with peak position of #24
CREATE TABLE table_name_7 (sales VARCHAR, peak_position VARCHAR)
SELECT score FROM table_27734286_1 WHERE date = "October 7"
What`s the score in October 7.
CREATE TABLE table_27734286_1 (score VARCHAR, date VARCHAR)
SELECT COUNT(Last) AS runners_up FROM table_name_42 WHERE last_win = "1999" AND runners_up > 1
What number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1?
CREATE TABLE table_name_42 (Last VARCHAR, last_win VARCHAR, runners_up VARCHAR)
SELECT result_f_a FROM table_name_60 WHERE date = "17 december 2002"
What is the result F_A on 17 December 2002?
CREATE TABLE table_name_60 (result_f_a VARCHAR, date VARCHAR)
SELECT AVG(round) FROM table_name_13 WHERE player = "sammy morris"
What is the average round of player Sammy Morris?
CREATE TABLE table_name_13 (round INTEGER, player VARCHAR)
SELECT fifth_district FROM table_name_23 WHERE second_district = "paul leidig"
Who's the Fifth District with a Second District of paul leidig?
CREATE TABLE table_name_23 (fifth_district VARCHAR, second_district VARCHAR)
SELECT MIN(floors) FROM table_name_29 WHERE feet > 262 AND name = "standard bank building" AND metres > 138.8
What's the lowest Floors with Feet that's larger htan 262, has a Name of Standard Bank Building, and Metres that's larger htan 138.8?
CREATE TABLE table_name_29 (floors INTEGER, metres VARCHAR, feet VARCHAR, name VARCHAR)
SELECT nationality FROM table_11545282_17 WHERE years_for_jazz = "1987-89"
Name the nationality who played for 1987-89?
CREATE TABLE table_11545282_17 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT attack FROM table_name_71 WHERE source = "nciom"
What Attack has a Source of NCIOM?
CREATE TABLE table_name_71 (attack VARCHAR, source VARCHAR)
SELECT record FROM table_27723228_8 WHERE high_points = "Chris Paul (16)"
What was the record when chris paul (16) had the high points?
CREATE TABLE table_27723228_8 (record VARCHAR, high_points VARCHAR)
SELECT COUNT(total) FROM table_21249915_1 WHERE department = "La Paz"
How many total catagories are there for La Paz?
CREATE TABLE table_21249915_1 (total VARCHAR, department VARCHAR)
SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT MIN(YEAR) FROM PersonFriend WHERE friend = 'Alice')
Find the name of persons who are friends with Alice for the shortest years.
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, YEAR INTEGER)
SELECT round FROM table_name_68 WHERE player = "zack walz"
Name the Round which has a Player of zack walz?
CREATE TABLE table_name_68 (round VARCHAR, player VARCHAR)
SELECT event FROM table_name_9 WHERE round = "1" AND opponent = "lance wipf"
What was the event for round 1 against Lance Wipf?
CREATE TABLE table_name_9 (event VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT venue FROM table_name_58 WHERE year = 2009 AND home_team = "st. louis rams"
What is the Venue of the 2009 St. Louis Rams Home game?
CREATE TABLE table_name_58 (venue VARCHAR, year VARCHAR, home_team VARCHAR)
SELECT team FROM table_name_70 WHERE home = "stirling"
What is the name of the team from Stirling?
CREATE TABLE table_name_70 (team VARCHAR, home VARCHAR)