answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT pitcher FROM table_19839391_3 WHERE seasons = "1970"
List the pitchers for the 1970 season
CREATE TABLE table_19839391_3 (pitcher VARCHAR, seasons VARCHAR)
SELECT COUNT(miles__km_) FROM table_2196127_1 WHERE race_time = "3:00:46"
How many numbers were recorded under miles for the 3:00:46 race time?
CREATE TABLE table_2196127_1 (miles__km_ VARCHAR, race_time VARCHAR)
SELECT date FROM table_name_78 WHERE venue = "lord's"
Name the date for venue of lord's
CREATE TABLE table_name_78 (date VARCHAR, venue VARCHAR)
SELECT 2007 FROM table_name_48 WHERE 2006 = "4r" AND 2004 = "1r" AND 2009 = "4r"
What is the 2007 value with a 4r in 2006, a 1r in 2004, and a 4r in 2009?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT season FROM table_name_18 WHERE points > 21 AND finish = "6th north"
What season has a 6th north finish and more than 21 points?
CREATE TABLE table_name_18 (season VARCHAR, points VARCHAR, finish VARCHAR)
SELECT wii_points FROM table_13663434_1 WHERE title_and_source = "Tsūshin Taikyoku: Igo Dōjō 2700-Mon"
what's the wii points with title and source being tsūshin taikyoku: igo dōjō 2700-mon
CREATE TABLE table_13663434_1 (wii_points VARCHAR, title_and_source VARCHAR)
SELECT southbridge FROM table_name_7 WHERE model = "amd-640 chipset"
What shows for Southbridge when the Model number is amd-640 chipset?
CREATE TABLE table_name_7 (southbridge VARCHAR, model VARCHAR)
SELECT network FROM table_name_14 WHERE city_of_license = "pachuca, hidalgo"
What's the network in Pachuca, Hidalgo?
CREATE TABLE table_name_14 (network VARCHAR, city_of_license VARCHAR)
SELECT AVG(average_population__x_1000_) FROM table_name_40 WHERE deaths = "3 557" AND crude_death_rate__per_1000_ < 11.9
What is the average population when deaths are 3 557 and crude death date is less than 11.9?
CREATE TABLE table_name_40 (average_population__x_1000_ INTEGER, deaths VARCHAR, crude_death_rate__per_1000_ VARCHAR)
SELECT AVG(game) FROM table_name_77 WHERE record = "30-22"
What is the game number when the record is 30-22?
CREATE TABLE table_name_77 (game INTEGER, record VARCHAR)
SELECT headquarters FROM table_name_23 WHERE employees__world_ = 100
Which HQ is associated with a number of employees of 100?
CREATE TABLE table_name_23 (headquarters VARCHAR, employees__world_ VARCHAR)
SELECT free AS polite FROM table_name_40 WHERE genitive_3 = "*n(i)-ami"
Which Free polite has a Genitive 3 of *n(i)-ami?
CREATE TABLE table_name_40 (free VARCHAR, genitive_3 VARCHAR)
SELECT constructor FROM table_23548160_1 WHERE year = 1975
What was the constructor in 1975?
CREATE TABLE table_23548160_1 (constructor VARCHAR, year VARCHAR)
SELECT record FROM table_22879323_8 WHERE team = "Memphis"
What was the record in the game against Memphis?
CREATE TABLE table_22879323_8 (record VARCHAR, team VARCHAR)
SELECT manufacturer FROM table_name_25 WHERE quantity_made = "2" AND year_made = "1884"
What is Manufacturer, when Quantity Made is 2, and when Year Made is 1884?
CREATE TABLE table_name_25 (manufacturer VARCHAR, quantity_made VARCHAR, year_made VARCHAR)
SELECT away_team AS score FROM table_name_23 WHERE away_team = "hawthorn"
What was the away team's score against Hawthorn?
CREATE TABLE table_name_23 (away_team VARCHAR)
SELECT style FROM table_name_31 WHERE name = "giuseppe bausilio"
What is the style for Giuseppe Bausilio?
CREATE TABLE table_name_31 (style VARCHAR, name VARCHAR)
SELECT game_site FROM table_17781886_1 WHERE date = "December 12, 1965"
Where was the December 12, 1965 game?
CREATE TABLE table_17781886_1 (game_site VARCHAR, date VARCHAR)
SELECT MAX(cuts_made) FROM table_name_26 WHERE top_25 < 3
Which Cuts made has a Top-25 smaller than 3?
CREATE TABLE table_name_26 (cuts_made INTEGER, top_25 INTEGER)
SELECT COUNT(matches) FROM table_name_24 WHERE runs < 6106 AND inns < 146
Runs smaller than 6106, and Inns smaller than 146 has what total number of matches?
CREATE TABLE table_name_24 (matches VARCHAR, runs VARCHAR, inns VARCHAR)
SELECT result FROM table_name_18 WHERE opponent = "chicago bears"
WHAT IS THE RESULT WHEN THE OPPONENT WAS CHICAGO BEARS?
CREATE TABLE table_name_18 (result VARCHAR, opponent VARCHAR)
SELECT horse__power FROM table_23614702_2 WHERE warship = "Covadonga"
How man horse power did the ship covadonga have?
CREATE TABLE table_23614702_2 (horse__power VARCHAR, warship VARCHAR)
SELECT athlete FROM table_name_35 WHERE country = "egypt"
Which athlete represented the country of egypt?
CREATE TABLE table_name_35 (athlete VARCHAR, country VARCHAR)
SELECT COUNT(*) FROM Customers
How many customers do we have?
CREATE TABLE Customers (Id VARCHAR)
SELECT set_2 FROM table_name_48 WHERE time = "18:00" AND set_1 = "18–25"
What is the score for set 2 when the time is 18:00 and the score of set 1 is 18–25?
CREATE TABLE table_name_48 (set_2 VARCHAR, time VARCHAR, set_1 VARCHAR)
SELECT december FROM table_15945862_1 WHERE september = "17.1"
What septembers are 17.1 in December?
CREATE TABLE table_15945862_1 (december VARCHAR, september VARCHAR)
SELECT name FROM event ORDER BY YEAR DESC
List all the event names by year from the most recent to the oldest.
CREATE TABLE event (name VARCHAR, YEAR VARCHAR)
SELECT suburb FROM table_name_60 WHERE roll = 741
What is the name of the suburb with a roll of 741?
CREATE TABLE table_name_60 (suburb VARCHAR, roll VARCHAR)
SELECT version FROM table_name_34 WHERE developer = "dino games" AND title = "metronome"
What Version has a Developer of dino games, and a Title of metronome?
CREATE TABLE table_name_34 (version VARCHAR, developer VARCHAR, title VARCHAR)
SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry
Please show each industry and the corresponding number of companies in that industry.
CREATE TABLE Companies (Industry VARCHAR)
SELECT report FROM table_2266230_1 WHERE year = "2003"
Name the report for 2003
CREATE TABLE table_2266230_1 (report VARCHAR, year VARCHAR)
SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name
Find the average prices of all products from each manufacture, and list each company's name.
CREATE TABLE products (price INTEGER, Manufacturer VARCHAR); CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
SELECT titles FROM table_12262182_2 WHERE date = "1997-04-12"
What titles were fought for on 1997-04-12?
CREATE TABLE table_12262182_2 (titles VARCHAR, date VARCHAR)
SELECT roll FROM table_name_86 WHERE area = "aramoho" AND decile = 1
What is the roll number of the school in Aramoho with a decile of 1?
CREATE TABLE table_name_86 (roll VARCHAR, area VARCHAR, decile VARCHAR)
SELECT COUNT(district) FROM table_1341453_7 WHERE incumbent = "Gary Condit"
How many districts does gary condit represent?
CREATE TABLE table_1341453_7 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(rank) FROM table_name_21 WHERE time = "3:43.491"
What is the Rank of the Athletes with a Time of 3:43.491?
CREATE TABLE table_name_21 (rank VARCHAR, time VARCHAR)
SELECT MIN(league) FROM table_17505751_5 WHERE total = 8 AND copa_del_rey = 0
when the total is 8 and copa del rey is 0 what is the minimum league
CREATE TABLE table_17505751_5 (league INTEGER, total VARCHAR, copa_del_rey VARCHAR)
SELECT team FROM table_name_55 WHERE winner = "dick johnson"
What is the team of winner Dick Johnson?
CREATE TABLE table_name_55 (team VARCHAR, winner VARCHAR)
SELECT SUM(rank) FROM table_name_15 WHERE years = "1996–2012" AND apps > 340
What is the sum of rank with years 1996–2012 and apps greater than 340?
CREATE TABLE table_name_15 (rank INTEGER, years VARCHAR, apps VARCHAR)
SELECT name FROM table_name_31 WHERE province = "quebec" AND appointed = "october 21, 2011"
Who was appointed on October 21, 2011 from Quebec?
CREATE TABLE table_name_31 (name VARCHAR, province VARCHAR, appointed VARCHAR)
SELECT COUNT(total) FROM table_name_68 WHERE gold < 1 AND silver > 0 AND rank = "14" AND nation = "afghanistan"
What is the total number of Total, when Gold is less than 1, when Silver is greater than 0, when Rank is 14, and when Nation is Afghanistan?
CREATE TABLE table_name_68 (total VARCHAR, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT nickname FROM table_12936521_2 WHERE institution = "University of Massachusetts Lowell (UMass Lowell)"
What's the nickname of the University of Massachusetts Lowell (UMass Lowell)?
CREATE TABLE table_12936521_2 (nickname VARCHAR, institution VARCHAR)
SELECT SUM(county) FROM table_name_54 WHERE total = 2 AND city = 0 AND town < 1
How many counties have 2 as the total, 0 as the city with a town less than 1?
CREATE TABLE table_name_54 (county INTEGER, town VARCHAR, total VARCHAR, city VARCHAR)
SELECT airport FROM table_name_31 WHERE iata = "pen"
Which airport's IATA is pen?
CREATE TABLE table_name_31 (airport VARCHAR, iata VARCHAR)
SELECT incumbent FROM table_name_55 WHERE winner = "arthur osborne"
Who was the incumbent when Arthur Osborne won the election?
CREATE TABLE table_name_55 (incumbent VARCHAR, winner VARCHAR)
SELECT COUNT(bowler) FROM table_22962745_35 WHERE batsmen = "David Hussey Azhar Mahmood Gurkeerat Singh"
How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen?
CREATE TABLE table_22962745_35 (bowler VARCHAR, batsmen VARCHAR)
SELECT MIN(goals_for) FROM table_name_73 WHERE tied > 15
What's the least amount of goals for a game that had a tied bigger than 15?
CREATE TABLE table_name_73 (goals_for INTEGER, tied INTEGER)
SELECT label FROM table_name_48 WHERE formats = "cd" AND format = "album" AND year = 2008
Tell me the label for formats of cd and album and year of 2008
CREATE TABLE table_name_48 (label VARCHAR, year VARCHAR, formats VARCHAR, format VARCHAR)
SELECT song_sung FROM table_name_17 WHERE artist = "luther vandross" AND week = "top 20"
Which song was sung by Artist Luther Vandross in the Week Top 20?
CREATE TABLE table_name_17 (song_sung VARCHAR, artist VARCHAR, week VARCHAR)
SELECT total FROM table_name_41 WHERE name = "norikazu murakami"
What is Norikazu Murakami's total?
CREATE TABLE table_name_41 (total VARCHAR, name VARCHAR)
SELECT MIN(top_division_titles) FROM table_11250_4
What is the least top division titles?
CREATE TABLE table_11250_4 (top_division_titles INTEGER)
SELECT bullet_weight FROM table_name_99 WHERE source = "hornady"
What is Bullet weight, when Source is hornady?
CREATE TABLE table_name_99 (bullet_weight VARCHAR, source VARCHAR)
SELECT venue FROM table_name_42 WHERE away_team = "fitzroy"
What venue was the game played in when the away team was fitzroy?
CREATE TABLE table_name_42 (venue VARCHAR, away_team VARCHAR)
SELECT authority FROM table_name_32 WHERE name = "whakamaru school"
What is the Whakamaru school's authority?
CREATE TABLE table_name_32 (authority VARCHAR, name VARCHAR)
SELECT variant__with_niqqud__ FROM table_name_77 WHERE phonetic_realisation = "[[[|v]]]"
What is the variant with niqqud for a phonetic realisation of [[[|v]]]?
CREATE TABLE table_name_77 (variant__with_niqqud__ VARCHAR, phonetic_realisation VARCHAR)
SELECT date FROM table_27700530_10 WHERE high_assists = "Jameer Nelson (10)"
What is the date when jameer nelson (10) had the high assists?
CREATE TABLE table_27700530_10 (date VARCHAR, high_assists VARCHAR)
SELECT odds FROM table_name_14 WHERE finish = "1/4h"
What were the odds for the finish of 1/4h?
CREATE TABLE table_name_14 (odds VARCHAR, finish VARCHAR)
SELECT SUM(earnings_per_share__p_) FROM table_name_89 WHERE year_ended = "2008" AND revenue__£million_ < 4 OFFSET 177
When revenue is smaller than 4,177 million in year 2008, what is the sum of earnings per share?
CREATE TABLE table_name_89 (earnings_per_share__p_ INTEGER, year_ended VARCHAR, revenue__£million_ VARCHAR)
SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = "Africa"
How many type of governments are in Africa?
CREATE TABLE country (GovernmentForm VARCHAR, Continent VARCHAR)
SELECT attendance FROM table_name_69 WHERE week < 5 AND result = "bye"
How many were in attendance in a week lower than 5 with a Bye result?
CREATE TABLE table_name_69 (attendance VARCHAR, week VARCHAR, result VARCHAR)
SELECT record FROM table_name_40 WHERE december = 3
What was the record on December 3?
CREATE TABLE table_name_40 (record VARCHAR, december VARCHAR)
SELECT to_par FROM table_name_89 WHERE year_s__won = "1964"
Which To par has a Year(s) won of 1964?
CREATE TABLE table_name_89 (to_par VARCHAR, year_s__won VARCHAR)
SELECT date FROM table_name_55 WHERE venue = "junction oval"
What is the date of the game at Junction Oval?
CREATE TABLE table_name_55 (date VARCHAR, venue VARCHAR)
SELECT venue FROM table_name_68 WHERE crowd > 20 OFFSET 000
Which venue had a crowd larger than 20,000?
CREATE TABLE table_name_68 (venue VARCHAR, crowd INTEGER)
SELECT SUM(pick) FROM table_name_25 WHERE position = "lw"
What is the sum of the pick of the lw position player?
CREATE TABLE table_name_25 (pick INTEGER, position VARCHAR)
SELECT record FROM table_name_63 WHERE loss = "plesac (1-5)"
For the Loss of Plesac (1-5), what is the Record?
CREATE TABLE table_name_63 (record VARCHAR, loss VARCHAR)
SELECT nationality FROM table_2886617_3 WHERE position = "Left Wing" AND college_junior_club_team = "Portland Winterhawks (WHL)"
Which nationality has left wing as the position and college/junior/team is portland winterhawks (whl)?
CREATE TABLE table_2886617_3 (nationality VARCHAR, position VARCHAR, college_junior_club_team VARCHAR)
SELECT COUNT(sp) FROM table_22265261_1 WHERE position = "2nd"
What was the Sp of the 2nd Position?
CREATE TABLE table_22265261_1 (sp VARCHAR, position VARCHAR)
SELECT team FROM table_name_96 WHERE high_rebounds = "smith (10)"
Name the team which has high rebounds of smith (10)
CREATE TABLE table_name_96 (team VARCHAR, high_rebounds VARCHAR)
SELECT SUM(votes) FROM table_name_66 WHERE date = "1956" AND _percentage_of_national_vote > 11.47
How many votes were tallied in 1956 with a % of national vote larger than 11.47?
CREATE TABLE table_name_66 (votes INTEGER, date VARCHAR, _percentage_of_national_vote VARCHAR)
SELECT losing_bonus FROM table_name_32 WHERE points = "0"
If the points were 0, what was the losing bonus?
CREATE TABLE table_name_32 (losing_bonus VARCHAR, points VARCHAR)
SELECT MIN(date) FROM table_name_2 WHERE catalog = "3645" AND format = "cd" AND label = "luaka bop"
what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label?
CREATE TABLE table_name_2 (date INTEGER, label VARCHAR, catalog VARCHAR, format VARCHAR)
SELECT class FROM table_name_75 WHERE power_output__kw_ > 700 AND number_in_class = 48
Which class has a power output larger than 700 and a class of 48?
CREATE TABLE table_name_75 (class VARCHAR, power_output__kw_ VARCHAR, number_in_class VARCHAR)
SELECT regular_season_winner FROM table_22779004_1 WHERE tournament_winner = "Maryland"
Who won the regular season when Maryland won the tournament?
CREATE TABLE table_22779004_1 (regular_season_winner VARCHAR, tournament_winner VARCHAR)
SELECT no_in_series FROM table_18428024_3 WHERE directed_by = "John Banas"
How many series did John Banas direct?
CREATE TABLE table_18428024_3 (no_in_series VARCHAR, directed_by VARCHAR)
SELECT MIN(points) FROM table_25647137_2 WHERE player = "Robert Stenberg"
How many points did robert stenberg have?
CREATE TABLE table_25647137_2 (points INTEGER, player VARCHAR)
SELECT order__number FROM table_26250155_1 WHERE theme = "Billboard Hot 100 Hits" AND original_artist = "Sixpence None the Richer"
What is the order number of the Billboard Hot 100 Hits theme and the original artist was Sixpence None the Richer?
CREATE TABLE table_26250155_1 (order__number VARCHAR, theme VARCHAR, original_artist VARCHAR)
SELECT opponent FROM table_19789597_5 WHERE date = "June 12"
Name the opponent for june 12
CREATE TABLE table_19789597_5 (opponent VARCHAR, date VARCHAR)
SELECT game_site FROM table_name_98 WHERE attendance = "11,309"
Where did the Jet's play with an attendance of 11,309?
CREATE TABLE table_name_98 (game_site VARCHAR, attendance VARCHAR)
SELECT january FROM table_name_59 WHERE march = "alexandria karlsen"
Who is the January playmate with a March playmate Alexandria Karlsen?
CREATE TABLE table_name_59 (january VARCHAR, march VARCHAR)
SELECT MAX(attendance) FROM table_name_93 WHERE round = "group e"
What is the highest attendance among Group E games?
CREATE TABLE table_name_93 (attendance INTEGER, round VARCHAR)
SELECT SUM(game) FROM table_name_50 WHERE record = "14–10–4" AND points < 32
Which Game has a Record of 14–10–4, and Points smaller than 32?
CREATE TABLE table_name_50 (game INTEGER, record VARCHAR, points VARCHAR)
SELECT points_for FROM table_12886178_4 WHERE points = "41" AND won = "8"
What's the points for count for the club with 41 points and 8 won games?
CREATE TABLE table_12886178_4 (points_for VARCHAR, points VARCHAR, won VARCHAR)
SELECT score FROM table_name_64 WHERE country = "scotland"
Name the score for scotland
CREATE TABLE table_name_64 (score VARCHAR, country VARCHAR)
SELECT host_city FROM table_name_35 WHERE games = "vii"
Can you tell me the Host City that has the Games of vii?
CREATE TABLE table_name_35 (host_city VARCHAR, games VARCHAR)
SELECT MIN(total) FROM table_name_40 WHERE gold = 8 AND silver < 4
Who scored the lowest with 8 gold medals and less than 4 silver medals?
CREATE TABLE table_name_40 (total INTEGER, gold VARCHAR, silver VARCHAR)
SELECT home_team FROM table_name_8 WHERE venue = "brunswick street oval"
Which home team has the Brunswick Street Oval venue?
CREATE TABLE table_name_8 (home_team VARCHAR, venue VARCHAR)
SELECT location FROM table_25668203_2 WHERE most_laps_led = "Patrick McKenna"
What location(s) did patrick mckenna lead the most laps?
CREATE TABLE table_25668203_2 (location VARCHAR, most_laps_led VARCHAR)
SELECT outcome FROM table_name_40 WHERE tournament = "san diego" AND opponent = "ann grossman"
what is the outcome when the tournament is san diego and the opponent is ann grossman?
CREATE TABLE table_name_40 (outcome VARCHAR, tournament VARCHAR, opponent VARCHAR)
SELECT position FROM table_name_6 WHERE player = "ryan russell"
What Position is Ryan Russell?
CREATE TABLE table_name_6 (position VARCHAR, player VARCHAR)
SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = "Spain" AND T1.year > 2000
What are the unique names of races that held after 2000 and the circuits were in Spain?
CREATE TABLE races (name VARCHAR, circuitid VARCHAR, year VARCHAR); CREATE TABLE circuits (circuitid VARCHAR, country VARCHAR)
SELECT driver FROM table_name_19 WHERE fin_pos = "14"
Who was the driver who had a final position of 14?
CREATE TABLE table_name_19 (driver VARCHAR, fin_pos VARCHAR)
SELECT MAX(pa) FROM table_15597975_2 WHERE stolen_ends = 5
When the stolen ends equal 5 whats the amount of pa?
CREATE TABLE table_15597975_2 (pa INTEGER, stolen_ends VARCHAR)
SELECT monument_name FROM table_name_95 WHERE year_built > 1887 AND county = "warren"
What Monument was built after 1887 in Warren County?
CREATE TABLE table_name_95 (monument_name VARCHAR, year_built VARCHAR, county VARCHAR)
SELECT venue FROM table_name_19 WHERE host = "stanford university"
What is the venue at Stanford University?
CREATE TABLE table_name_19 (venue VARCHAR, host VARCHAR)
SELECT AVG(attendance) FROM table_name_25 WHERE week = 8
Which Attendance has a Week of 8?
CREATE TABLE table_name_25 (attendance INTEGER, week VARCHAR)
SELECT proto_semitic FROM table_26919_7 WHERE english = "house"
If in English it's house, what is it in proto-semitic?
CREATE TABLE table_26919_7 (proto_semitic VARCHAR, english VARCHAR)
SELECT venue FROM table_name_85 WHERE extra = "45.08 s"
What venue has an extra of 45.08 S?
CREATE TABLE table_name_85 (venue VARCHAR, extra VARCHAR)
SELECT team FROM table_name_58 WHERE lost < 13 AND position < 4 AND difference = "42"
What is the Team when the lost is less than 13, and the position is less than 4, with a Difference of 42?
CREATE TABLE table_name_58 (team VARCHAR, difference VARCHAR, lost VARCHAR, position VARCHAR)
SELECT city_of_license FROM table_name_68 WHERE call_sign = "k241an"
Which City of license has a Call sign of k241an?
CREATE TABLE table_name_68 (city_of_license VARCHAR, call_sign VARCHAR)