question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the highest number any of the players were picked at?
CREATE TABLE table_21321804_3 (pick__number INTEGER)
SELECT MAX(pick__number) FROM table_21321804_3
Which Event has a Round of 1, and a Record of 2–0?
CREATE TABLE table_name_70 (event VARCHAR, round VARCHAR, record VARCHAR)
SELECT event FROM table_name_70 WHERE round = "1" AND record = "2–0"
What is the latest first elected?
CREATE TABLE table_2668405_17 (first_elected INTEGER)
SELECT MAX(first_elected) FROM table_2668405_17
What is Southern Illinois University Edwardsville's affiliation?
CREATE TABLE table_name_48 (affiliation VARCHAR, institution VARCHAR)
SELECT affiliation FROM table_name_48 WHERE institution = "southern illinois university edwardsville"
Name the position of pick 234
CREATE TABLE table_name_67 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_67 WHERE pick = "234"
What was the date when the Twins had a record of 44-37?
CREATE TABLE table_name_93 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_93 WHERE record = "44-37"
What is the sum of losses that have points of 11 and more than 1 draw?
CREATE TABLE table_name_86 (lost INTEGER, points VARCHAR, drawn VARCHAR)
SELECT SUM(lost) FROM table_name_86 WHERE points = 11 AND drawn > 1
What was the total crowd size for the him team footscray?
CREATE TABLE table_name_95 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_95 WHERE home_team = "footscray"
What is the lowest number of games with less than 1 loss?
CREATE TABLE table_name_12 (games INTEGER, lost INTEGER)
SELECT MIN(games) FROM table_name_12 WHERE lost < 1
Name the site with game of game 6
CREATE TABLE table_name_49 (site VARCHAR, game VARCHAR)
SELECT site FROM table_name_49 WHERE game = "game 6"
What is the lowest round of player chris burkett?
CREATE TABLE table_name_99 (round INTEGER, player VARCHAR)
SELECT MIN(round) FROM table_name_99 WHERE player = "chris burkett"
What Date is listed for the Region of France and Catalog of 82876-70291-2?
CREATE TABLE table_name_48 (date VARCHAR, region VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_48 WHERE region = "france" AND catalog = "82876-70291-2"
If the round is the semi-finals, what are the new entries this round?
CREATE TABLE table_1859269_1 (new_entries_this_round VARCHAR, round VARCHAR)
SELECT new_entries_this_round FROM table_1859269_1 WHERE round = "Semi-finals"
Name the reason for change when George W. Greene (D) was the vacator.
CREATE TABLE table_2417345_4 (reason_for_change VARCHAR, vacator VARCHAR)
SELECT reason_for_change FROM table_2417345_4 WHERE vacator = "George W. Greene (D)"
What are the career and other notes for wrestlers whose stable is oguruma?
CREATE TABLE table_1557974_1 (career_and_other_notes VARCHAR, stable VARCHAR)
SELECT career_and_other_notes FROM table_1557974_1 WHERE stable = "Oguruma"
Which Opponent has a Result of 0-3?
CREATE TABLE table_name_98 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_98 WHERE result = "0-3"
Find the names of all modern rooms with a base price below $160 and two beds.
CREATE TABLE Rooms (roomName VARCHAR, decor VARCHAR, basePrice VARCHAR, beds VARCHAR)
SELECT roomName FROM Rooms WHERE basePrice < 160 AND beds = 2 AND decor = 'modern'
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 SUM(game) FROM table_name_50 WHERE record = "14–10–4" AND points < 32
What is the location of the institution barton college
CREATE TABLE table_11658094_1 (location VARCHAR, institution VARCHAR)
SELECT location FROM table_11658094_1 WHERE institution = "Barton College"
How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.
CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR)
SELECT T1.staff_name, COUNT(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name
Name the state class for iowa admitted to the union december 28, 1846
CREATE TABLE table_225205_3 (state__class_ VARCHAR, reason_for_change VARCHAR)
SELECT state__class_ FROM table_225205_3 WHERE reason_for_change = "Iowa admitted to the Union December 28, 1846"
What is the result of the Europe/Africa Group I, play-off competition?
CREATE TABLE table_name_23 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_23 WHERE competition = "europe/africa group i, play-off"
Can you tell me the Score that has the Date of 05 dec?
CREATE TABLE table_name_28 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_28 WHERE date = "05 dec"
What year had the Chassis of march 762 and more than 0 points?
CREATE TABLE table_name_64 (year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT COUNT(year) FROM table_name_64 WHERE chassis = "march 762" AND points > 0
Which Country has a Score of 67?
CREATE TABLE table_name_84 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_84 WHERE score = 67
What is the average opened year of line e, which had their last extension before 2003?
CREATE TABLE table_name_40 (opened INTEGER, line_name VARCHAR, last_extension VARCHAR)
SELECT AVG(opened) FROM table_name_40 WHERE line_name = "line e" AND last_extension < 2003
What is the number of the dail with 61 seats?
CREATE TABLE table_name_55 (dáil VARCHAR, seats VARCHAR)
SELECT dáil FROM table_name_55 WHERE seats = 61
What is the date of the 1986 FIFA World Cup?
CREATE TABLE table_name_19 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_19 WHERE competition = "1986 fifa world cup"
When the ability is 32, what is the leadership ability?
CREATE TABLE table_1855342_5 (leadership_ability INTEGER, overall_ability VARCHAR)
SELECT MAX(leadership_ability) FROM table_1855342_5 WHERE overall_ability = 32
Name the Place of england with a Score larger than 66?
CREATE TABLE table_name_3 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT place FROM table_name_3 WHERE country = "england" AND score > 66
What is the home team score when played at mcg?
CREATE TABLE table_name_24 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_24 WHERE venue = "mcg"
What's the tie number when the away team was Mansfield Town?
CREATE TABLE table_name_3 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_3 WHERE away_team = "mansfield town"
Count the Prominence (m) of Col (m) smaller than 0?
CREATE TABLE table_name_9 (prominence__m_ INTEGER, col__m_ INTEGER)
SELECT AVG(prominence__m_) FROM table_name_9 WHERE col__m_ < 0
What is the lowest number of points of any team with less than 6 draws and less than 18 matches played?
CREATE TABLE table_name_3 (points INTEGER, drawn VARCHAR, played VARCHAR)
SELECT MIN(points) FROM table_name_3 WHERE drawn < 6 AND played < 18
kenneth mcalpine drove from which entrant?
CREATE TABLE table_name_23 (entrant VARCHAR, driver VARCHAR)
SELECT entrant FROM table_name_23 WHERE driver = "kenneth mcalpine"
Which Sport has a League of continental basketball league, and a Venue of avalon middle school?
CREATE TABLE table_name_11 (sport VARCHAR, league VARCHAR, venue VARCHAR)
SELECT sport FROM table_name_11 WHERE league = "continental basketball league" AND venue = "avalon middle school"
Which constructor was present at the Redex Trophy race?
CREATE TABLE table_1140114_5 (constructor VARCHAR, race_name VARCHAR)
SELECT constructor FROM table_1140114_5 WHERE race_name = "RedeX Trophy"
How many assists per game have 4.2 rebounds per game?
CREATE TABLE table_2387461_1 (assists_per_game VARCHAR, rebounds_per_game VARCHAR)
SELECT assists_per_game FROM table_2387461_1 WHERE rebounds_per_game = "4.2"
What is the sum of the grid of driver ryan hunter-reay, who has more than 24 points?
CREATE TABLE table_name_7 (grid INTEGER, driver VARCHAR, points VARCHAR)
SELECT SUM(grid) FROM table_name_7 WHERE driver = "ryan hunter-reay" AND points > 24
What is Runner(s)-up, when Tournament is MCI Classic?
CREATE TABLE table_name_75 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT runner_s__up FROM table_name_75 WHERE tournament = "mci classic"
What is the largest number for SHTS for the San Jose earthquakes with MINS larger than 2700?
CREATE TABLE table_name_23 (shts INTEGER, club VARCHAR, mins VARCHAR)
SELECT MAX(shts) FROM table_name_23 WHERE club = "san jose earthquakes" AND mins > 2700
When was the match that had Shaun Murphy as runner-up?
CREATE TABLE table_name_31 (date VARCHAR, runner_up VARCHAR)
SELECT date FROM table_name_31 WHERE runner_up = "shaun murphy"
What's the release price (USD) for part number hh80557pg0491m?
CREATE TABLE table_name_98 (release_price___usd__ VARCHAR, part_number_s_ VARCHAR)
SELECT release_price___usd__ FROM table_name_98 WHERE part_number_s_ = "hh80557pg0491m"
display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara.
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, department_id VARCHAR)
SELECT first_name, last_name, hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = "Clara") AND first_name <> "Clara"
Which potential's period 5 is 4 and has an element of antimony?
CREATE TABLE table_name_81 (potential VARCHAR, period VARCHAR, element VARCHAR)
SELECT potential FROM table_name_81 WHERE period = 5 AND element = "antimony"
What is the lowest wins with points larger than 46, and a rank of 10th?
CREATE TABLE table_name_55 (wins INTEGER, points VARCHAR, rank VARCHAR)
SELECT MIN(wins) FROM table_name_55 WHERE points > 46 AND rank = "10th"
What is the vacancy date of Dundee?
CREATE TABLE table_name_75 (date_of_vacancy VARCHAR, team VARCHAR)
SELECT date_of_vacancy FROM table_name_75 WHERE team = "dundee"
what is the crashandride cymbalpads for the drumset name td-9k2
CREATE TABLE table_2889300_6 (crashandride_cymbalpads VARCHAR, drumset_name VARCHAR)
SELECT crashandride_cymbalpads FROM table_2889300_6 WHERE drumset_name = "TD-9K2"
What was the outcome of the match against Stacy Margolin?
CREATE TABLE table_name_79 (outcome VARCHAR, opponent VARCHAR)
SELECT outcome FROM table_name_79 WHERE opponent = "stacy margolin"
Show all member names who are not in charge of any event.
CREATE TABLE member (member_name VARCHAR); CREATE TABLE party_events (member_in_charge_id VARCHAR); CREATE TABLE member (member_name VARCHAR, member_id VARCHAR)
SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id
Who was the radio commentator when the final television commentator was John Dunn?
CREATE TABLE table_17766232_7 (radio_commentator VARCHAR, final_television_commentator VARCHAR)
SELECT radio_commentator FROM table_17766232_7 WHERE final_television_commentator = "John Dunn"
Which nation has a Bronze and Silver smaller than 1 and a Gold larger than 1?
CREATE TABLE table_name_87 (nation VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT nation FROM table_name_87 WHERE bronze < 1 AND silver < 1 AND gold > 1
What is the name for the listed date of 11/21/1989?
CREATE TABLE table_name_42 (name VARCHAR, listed VARCHAR)
SELECT name FROM table_name_42 WHERE listed = "11/21/1989"
What top round has a pick smaller than 2?
CREATE TABLE table_name_7 (round INTEGER, pick INTEGER)
SELECT MAX(round) FROM table_name_7 WHERE pick < 2
What is the maximum fc matches at the racecourse?
CREATE TABLE table_1176371_1 (fc_matches INTEGER, name_of_ground VARCHAR)
SELECT MAX(fc_matches) FROM table_1176371_1 WHERE name_of_ground = "The Racecourse"
Scott Dixon had how many Grid positions?
CREATE TABLE table_17244483_1 (grid VARCHAR, driver VARCHAR)
SELECT COUNT(grid) FROM table_17244483_1 WHERE driver = "Scott Dixon"
Wins of 3, and a Pos. larger than 3 is what average loses?
CREATE TABLE table_name_75 (loses INTEGER, wins VARCHAR, pos VARCHAR)
SELECT AVG(loses) FROM table_name_75 WHERE wins = 3 AND pos > 3
Name the lowest league for play-offs more than 0 and total of 25
CREATE TABLE table_name_88 (league INTEGER, play_offs VARCHAR, total VARCHAR)
SELECT MIN(league) FROM table_name_88 WHERE play_offs > 0 AND total = 25
How many rounds were there a height of 6'5?
CREATE TABLE table_20860739_1 (round VARCHAR, height VARCHAR)
SELECT round FROM table_20860739_1 WHERE height = "6'5"
What is the sum of lap for the Dale Coyne Racing Team, and 0 points?
CREATE TABLE table_name_8 (laps INTEGER, team VARCHAR, points VARCHAR)
SELECT SUM(laps) FROM table_name_8 WHERE team = "dale coyne racing" AND points = 0
What is maximum and minimum RAM size of phone produced by company named "Nokia Corporation"?
CREATE TABLE phone (chip_model VARCHAR, Company_name VARCHAR); CREATE TABLE chip_model (RAM_MiB INTEGER, Model_name VARCHAR)
SELECT MAX(T1.RAM_MiB), MIN(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = "Nokia Corporation"
Which model has a top speed of 231km/h (143mph)?
CREATE TABLE table_name_37 (model VARCHAR, top_speed VARCHAR)
SELECT model FROM table_name_37 WHERE top_speed = "231km/h (143mph)"
What is Record, when Event is "UFC 40"?
CREATE TABLE table_name_57 (record VARCHAR, event VARCHAR)
SELECT record FROM table_name_57 WHERE event = "ufc 40"
How many turbine manufacturers installed a capacity of 189 MW?
CREATE TABLE table_24837750_1 (turbine_manufacturer VARCHAR, installed_capacity__mw_ VARCHAR)
SELECT COUNT(turbine_manufacturer) FROM table_24837750_1 WHERE installed_capacity__mw_ = "189"
What team has a Score of l 88–94 (ot)?
CREATE TABLE table_name_98 (team VARCHAR, score VARCHAR)
SELECT team FROM table_name_98 WHERE score = "l 88–94 (ot)"
Which Attendance is the highest one that has a Record of 37-38?
CREATE TABLE table_name_45 (attendance INTEGER, record VARCHAR)
SELECT MAX(attendance) FROM table_name_45 WHERE record = "37-38"
How many times was there a class A winner when Gregory-Portland was the class AAAA?
CREATE TABLE table_14603057_2 (class_a VARCHAR, class_aAAA VARCHAR, Gregory VARCHAR, Portland VARCHAR)
SELECT COUNT(class_a) FROM table_14603057_2 WHERE class_aAAA = Gregory - Portland
What was the first game in which Weekes scored the decision goal and the record was 7-4-2?
CREATE TABLE table_name_92 (game INTEGER, decision VARCHAR, record VARCHAR)
SELECT MIN(game) FROM table_name_92 WHERE decision = "weekes" AND record = "7-4-2"
Please show the most common status of roller coasters.
CREATE TABLE roller_coaster (Status VARCHAR)
SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1
Find the male friend of Alice whose job is a doctor?
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, job VARCHAR, gender VARCHAR)
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor'
What's the nominee for best supporting actress?
CREATE TABLE table_name_86 (nominee VARCHAR, category VARCHAR)
SELECT nominee FROM table_name_86 WHERE category = "best supporting actress"
What player has a To par of –2, and a Score of 73-65=138?
CREATE TABLE table_name_61 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_61 WHERE to_par = "–2" AND score = 73 - 65 = 138
In which event did he place 6th in 1971?
CREATE TABLE table_name_98 (event VARCHAR, year VARCHAR, result VARCHAR)
SELECT event FROM table_name_98 WHERE year = 1971 AND result = "6th"
what is the district with the candidates edward boland (d) unopposed?
CREATE TABLE table_1341690_21 (district VARCHAR, candidates VARCHAR)
SELECT district FROM table_1341690_21 WHERE candidates = "Edward Boland (D) Unopposed"
WHAT PLAYER HAS A PICK SMALLER THAN 110, AND DUKE AS COLLEGE?
CREATE TABLE table_name_97 (player VARCHAR, pick VARCHAR, college VARCHAR)
SELECT player FROM table_name_97 WHERE pick < 110 AND college = "duke"
1996[2] larger than 68, and a 1990 smaller than 352, and a 1970 larger than 105, and a 1950 of 119 is the sum of what 1980?
CREATE TABLE table_name_6 (Id VARCHAR)
SELECT SUM(1980) FROM table_name_6 WHERE 1996[2] > 68 AND 1990 < 352 AND 1970 > 105 AND 1950 = 119
What was the date of the Cross Code debut that had an Int'l Debut in the year 2008?
CREATE TABLE table_name_20 (date VARCHAR, year VARCHAR)
SELECT date FROM table_name_20 WHERE year = "2008"
what's the regionalliga west/südwest with regionalliga süd being stuttgarter kickers
CREATE TABLE table_14242137_11 (regionalliga_west_südwest VARCHAR, regionalliga_süd VARCHAR)
SELECT regionalliga_west_südwest FROM table_14242137_11 WHERE regionalliga_süd = "Stuttgarter Kickers"
What's the total of number of FA Cup that has a League small than 29 with Play-offs less than 0?
CREATE TABLE table_name_50 (fa_cup VARCHAR, league VARCHAR, play_offs VARCHAR)
SELECT COUNT(fa_cup) FROM table_name_50 WHERE league < 29 AND play_offs < 0
What is the result for california 2?
CREATE TABLE table_1342338_6 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1342338_6 WHERE district = "California 2"
What's the Time/Retired of Ivan Capelli?
CREATE TABLE table_name_61 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_61 WHERE driver = "ivan capelli"
Which assist/pass is in Ferreiras?
CREATE TABLE table_name_80 (assist_pass VARCHAR, location VARCHAR)
SELECT assist_pass FROM table_name_80 WHERE location = "ferreiras"
Who is the second where the third of Kelly Wood (e) Anna Sloan (Jr)?
CREATE TABLE table_name_80 (second VARCHAR, third VARCHAR)
SELECT second FROM table_name_80 WHERE third = "kelly wood (e) anna sloan (jr)"
What was the country when the margin was 2 strokes, and when the score was 276 (-4)?
CREATE TABLE table_name_45 (country VARCHAR, margin VARCHAR, score VARCHAR)
SELECT country FROM table_name_45 WHERE margin = "2 strokes" AND score = "276 (-4)"
What is the 1st leg score when US Mbila Nzambi is team 1?
CREATE TABLE table_name_3 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = "us mbila nzambi"
Who wrote the episode that had a production code of 3ajn20?
CREATE TABLE table_23242968_1 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_23242968_1 WHERE production_code = "3AJN20"
What is the record of the game with a 110-106 score?
CREATE TABLE table_name_89 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_89 WHERE score = "110-106"
What was the home teams score when the VFL played Princes Park?
CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_76 WHERE venue = "princes park"
What category was the the participant/recipient otōto?
CREATE TABLE table_26282750_1 (category VARCHAR, participants_recipients VARCHAR)
SELECT category FROM table_26282750_1 WHERE participants_recipients = "Otōto"
Which team was the second semi finalist in 2007?
CREATE TABLE table_11214772_2 (semi_finalist__number2 VARCHAR, year VARCHAR)
SELECT semi_finalist__number2 FROM table_11214772_2 WHERE year = 2007
How many original air dates for the episode written by David H. Goodman & Andrew Kreisberg?
CREATE TABLE table_24649082_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT COUNT(original_air_date) FROM table_24649082_1 WHERE written_by = "David H. Goodman & Andrew Kreisberg"
What was the production code of the episode ranked 28?
CREATE TABLE table_26200084_1 (production_code VARCHAR, rank__week_ VARCHAR)
SELECT production_code FROM table_26200084_1 WHERE rank__week_ = "28"
If the top team in regular season (points) is the New York Cosmos (200 points), what is the winner (number of titles)?
CREATE TABLE table_237757_3 (winner__number_of_titles_ VARCHAR, top_team_in_regular_season__points_ VARCHAR)
SELECT winner__number_of_titles_ FROM table_237757_3 WHERE top_team_in_regular_season__points_ = "New York Cosmos (200 points)"
Name the sum of gold which has a silver more than 1
CREATE TABLE table_name_23 (gold INTEGER, silver INTEGER)
SELECT SUM(gold) FROM table_name_23 WHERE silver > 1
How many floors does the Blue Diamond have?
CREATE TABLE table_name_92 (floors INTEGER, name VARCHAR)
SELECT SUM(floors) FROM table_name_92 WHERE name = "blue diamond"
Name the driver/passenger for 6 position
CREATE TABLE table_16729457_16 (driver___passenger VARCHAR, position VARCHAR)
SELECT driver___passenger FROM table_16729457_16 WHERE position = 6
Who was the opponent before week 6 at cleveland municipal stadium?
CREATE TABLE table_name_19 (opponent VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT opponent FROM table_name_19 WHERE week < 6 AND game_site = "cleveland municipal stadium"
What is the score of the match on September 24, 2006?
CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_50 WHERE date = "september 24, 2006"
How much money does player horton smith have?
CREATE TABLE table_name_62 (money___$__ VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_62 WHERE player = "horton smith"
What is the Runner-up on April 11?
CREATE TABLE table_name_36 (runner_up VARCHAR, week VARCHAR)
SELECT runner_up FROM table_name_36 WHERE week = "april 11"