answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT 2011 FROM table_name_90 WHERE 2007 = "q3"
WHAT IS THE 2011 PERFORMANCE WITH A 2007 OF Q3?
CREATE TABLE table_name_90 (Id VARCHAR)
SELECT nhl_team FROM table_name_49 WHERE pick__number = "89"
Which NHL team got pick 89?
CREATE TABLE table_name_49 (nhl_team VARCHAR, pick__number VARCHAR)
SELECT home FROM table_name_42 WHERE visitor = "ny rangers" AND series = "flyers win 4–3"
Which Home has a Visitor of ny rangers, and a Series of flyers win 4–3?
CREATE TABLE table_name_42 (home VARCHAR, visitor VARCHAR, series VARCHAR)
SELECT result FROM table_26250253_1 WHERE week__number = "Top 12"
Where the week # is Top 12, what is the result?
CREATE TABLE table_26250253_1 (result VARCHAR, week__number VARCHAR)
SELECT capacity_percentage FROM table_28884858_1 WHERE total_attendance = 509940
What is the capacity percentage when the total attendance is 509940?
CREATE TABLE table_28884858_1 (capacity_percentage VARCHAR, total_attendance VARCHAR)
SELECT COUNT(club) FROM table_27293285_4 WHERE lost = "16"
Name the total number of club for lost being 16
CREATE TABLE table_27293285_4 (club VARCHAR, lost VARCHAR)
SELECT MAX(crowd) FROM table_name_40 WHERE away_team = "south melbourne"
What was the biggest crowd when the away team of south melbourne played there?
CREATE TABLE table_name_40 (crowd INTEGER, away_team VARCHAR)
SELECT transfer_window FROM table_name_1 WHERE name = "steven thompson"
What is the transfer window for Steven Thompson?
CREATE TABLE table_name_1 (transfer_window VARCHAR, name VARCHAR)
SELECT T1.professional_id, T1.role_code, T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2
Which professionals have done at least two treatments? List the professional's id, role, and first name.
CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, first_name VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)
SELECT COUNT(team) FROM table_19908313_2 WHERE listed_owner_s_ = "Jeff Wyler"
How many teams does Jeff Wyler own?
CREATE TABLE table_19908313_2 (team VARCHAR, listed_owner_s_ VARCHAR)
SELECT opponent FROM table_24852001_2 WHERE attendance = 16115
Who were the opponents that had an attendance of exactly 16115?
CREATE TABLE table_24852001_2 (opponent VARCHAR, attendance VARCHAR)
SELECT player_name FROM table_20871703_1 WHERE college = "Eastern Michigan"
Who is the player name when eastern michigan is the college?
CREATE TABLE table_20871703_1 (player_name VARCHAR, college VARCHAR)
SELECT name AS origin FROM table_16799784_8 WHERE name = "Keller Patera"
What is the origin of the name of Keller Patera?
CREATE TABLE table_16799784_8 (name VARCHAR)
SELECT circuit FROM table_name_68 WHERE team = "winfield team nissan" AND series = "tooheys 1000"
Which circuit did winfield team nissan win for the tooheys 1000?
CREATE TABLE table_name_68 (circuit VARCHAR, team VARCHAR, series VARCHAR)
SELECT block FROM table_name_23 WHERE cospar_id = "1995-060a"
What block has a COSPAR ID of 1995-060a?
CREATE TABLE table_name_23 (block VARCHAR, cospar_id VARCHAR)
SELECT coverage__transmitter_site_ FROM table_name_69 WHERE power__kw_ = "10kw" AND callsign = "dyfx-tv"
What is Coverage (Transmitter Site), when Power (kW) is "10kW", and when Callsign is "DYFX-TV"?
CREATE TABLE table_name_69 (coverage__transmitter_site_ VARCHAR, power__kw_ VARCHAR, callsign VARCHAR)
SELECT winner FROM table_name_97 WHERE finalist = "andre agassi"
WHo is the Winner of andre agassi Finalist?
CREATE TABLE table_name_97 (winner VARCHAR, finalist VARCHAR)
SELECT award FROM table_name_21 WHERE category = "best actress"
For what award was there a nomination for Best Actress?
CREATE TABLE table_name_21 (award VARCHAR, category VARCHAR)
SELECT pick__number FROM table_name_45 WHERE college = "central missouri state"
What is the pick number for the College of Central Missouri State?
CREATE TABLE table_name_45 (pick__number VARCHAR, college VARCHAR)
SELECT time_retired FROM table_name_70 WHERE driver = "riccardo patrese"
Tell me the time/retired for riccardo patrese
CREATE TABLE table_name_70 (time_retired VARCHAR, driver VARCHAR)
SELECT COUNT(open_2nd_viii) FROM table_11318462_5 WHERE u15_3rd_iv = "GT"
how many open 2nd viii had u15 3rd iv being gt
CREATE TABLE table_11318462_5 (open_2nd_viii VARCHAR, u15_3rd_iv VARCHAR)
SELECT COUNT(position) FROM table_25740774_1 WHERE season = 2010
How many positions are shown for the 2010 season?
CREATE TABLE table_25740774_1 (position VARCHAR, season VARCHAR)
SELECT date FROM table_name_17 WHERE home = "suns"
On what date was there a competition in which the home team was the Suns?
CREATE TABLE table_name_17 (date VARCHAR, home VARCHAR)
SELECT date_withdrawn FROM table_17607663_1 WHERE secr_no = 771
What is the withdraw date for secr no. 771?
CREATE TABLE table_17607663_1 (date_withdrawn VARCHAR, secr_no VARCHAR)
SELECT COUNT(year) FROM table_name_49 WHERE laps = 71
How many years was the number of laps 71?
CREATE TABLE table_name_49 (year VARCHAR, laps VARCHAR)
SELECT nationality FROM table_name_86 WHERE name = "assyrian"
Which Nationality has a Name of assyrian?
CREATE TABLE table_name_86 (nationality VARCHAR, name VARCHAR)
SELECT place FROM table_name_95 WHERE player = "bob tway"
Where does Bob Tway Place?
CREATE TABLE table_name_95 (place VARCHAR, player VARCHAR)
SELECT label FROM table_name_20 WHERE format = "cd single"
What label has cd single as the format?
CREATE TABLE table_name_20 (label VARCHAR, format VARCHAR)
SELECT award_ceremony FROM table_name_52 WHERE category = "outstanding actress in a musical" AND nominee = "kristin chenoweth"
What year was Kristin Chenoweth nominated in the category of outstanding actress in a musical?
CREATE TABLE table_name_52 (award_ceremony VARCHAR, category VARCHAR, nominee VARCHAR)
SELECT date FROM table_name_95 WHERE home = "boston bruins"
When were the boston bruins the home team?
CREATE TABLE table_name_95 (date VARCHAR, home VARCHAR)
SELECT player FROM table_22824297_1 WHERE hometown = "Carbondale, Illinois"
Who are all players from hometown of Carbondale, Illinois?
CREATE TABLE table_22824297_1 (player VARCHAR, hometown VARCHAR)
SELECT MIN(number_of_carriers) FROM table_2394927_1
What is the lowest number of carriers?
CREATE TABLE table_2394927_1 (number_of_carriers INTEGER)
SELECT score FROM table_name_54 WHERE player = "steve stricker"
What did Steve Stricker score?
CREATE TABLE table_name_54 (score VARCHAR, player VARCHAR)
SELECT scorers FROM table_name_31 WHERE opponent = "west germany" AND date = "october 7"
What shows for Scorers when the Opponent was west germany on October 7?
CREATE TABLE table_name_31 (scorers VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT AVG(region) FROM table_name_43 WHERE area__km_2__ = 451.79 AND population < 496 OFFSET 257
What is the average region that has an Area (km 2 ) of 451.79, and a Population under 496,257?
CREATE TABLE table_name_43 (region INTEGER, area__km_2__ VARCHAR, population VARCHAR)
SELECT MIN(founded) FROM table_10082596_1 WHERE school = "Lindenwood University"
In what year was Lindenwood University founded?
CREATE TABLE table_10082596_1 (founded INTEGER, school VARCHAR)
SELECT 2002 FROM table_name_69 WHERE 2007 = "8–4"
2007 of 8–4 is involved in what 2002?
CREATE TABLE table_name_69 (Id VARCHAR)
SELECT venue FROM table_name_15 WHERE batting_team = "india" AND batting_partners = "sachin tendulkar and rahul dravid"
In what venue was the Batting team India who featured partners Sachin Tendulkar and Rahul Dravid?
CREATE TABLE table_name_15 (venue VARCHAR, batting_team VARCHAR, batting_partners VARCHAR)
SELECT MIN(week) FROM table_24136814_3
What is he smallest numbered week?
CREATE TABLE table_24136814_3 (week INTEGER)
SELECT hometown FROM table_name_54 WHERE college = "washington"
What is the hometown for the player that went to the college of washington
CREATE TABLE table_name_54 (hometown VARCHAR, college VARCHAR)
SELECT venue FROM table_name_93 WHERE founded > 1967 AND league = "north american soccer league"
Which venue was founded after 1967 and had the league North American Soccer League?
CREATE TABLE table_name_93 (venue VARCHAR, founded VARCHAR, league VARCHAR)
SELECT location_attendance FROM table_17058226_8 WHERE team = "Utah"
Where are all of Utah's games held and how many have attended?
CREATE TABLE table_17058226_8 (location_attendance VARCHAR, team VARCHAR)
SELECT opponents_in_final FROM table_name_19 WHERE score_in_final = "7–5, 1–6 4–6"
Which Opponents in Final has a Score in Final of 7–5, 1–6 4–6?
CREATE TABLE table_name_19 (opponents_in_final VARCHAR, score_in_final VARCHAR)
SELECT AVG(year_joined) FROM table_name_43 WHERE county = 277
What is the average year joined of the 277 county?
CREATE TABLE table_name_43 (year_joined INTEGER, county VARCHAR)
SELECT SUM(laps) FROM table_name_17 WHERE co_drivers = "oliver gavin jan magnussen" AND class = "gts" AND year < 2004
Name the sum of Laps for co-drivers of oliver gavin jan magnussen and class of gts with year less than 2004
CREATE TABLE table_name_17 (laps INTEGER, year VARCHAR, co_drivers VARCHAR, class VARCHAR)
SELECT gtype FROM Video_games WHERE gname = "Call of Destiny"
What is the type of video game Call of Destiny.
CREATE TABLE Video_games (gtype VARCHAR, gname VARCHAR)
SELECT result FROM table_name_46 WHERE week = 4
Tell me the result for week of 4
CREATE TABLE table_name_46 (result VARCHAR, week VARCHAR)
SELECT city FROM table_name_96 WHERE icao = "vccj"
Which city has an ICAO of VCCJ?
CREATE TABLE table_name_96 (city VARCHAR, icao VARCHAR)
SELECT icao FROM table_name_74 WHERE airport = "lilongwe international airport"
Name the ICAO for lilongwe international airport
CREATE TABLE table_name_74 (icao VARCHAR, airport VARCHAR)
SELECT power FROM table_21021796_1 WHERE torque = "N·m (lb·ft) @1600–2400 rpm" AND applications = "2000 W90x Sprinter"
If torque is n·m (lb·ft) @1600–2400 rpm and applications is 2000 w90x sprinter, what is the power?
CREATE TABLE table_21021796_1 (power VARCHAR, torque VARCHAR, applications VARCHAR)
SELECT country FROM table_name_99 WHERE player = "tom watson"
What is Country, when Player is "Tom Watson"?
CREATE TABLE table_name_99 (country VARCHAR, player VARCHAR)
SELECT college FROM table_16575609_4 WHERE cfl_team = "Calgary Stampeders"
Name the college for calgary stampeders
CREATE TABLE table_16575609_4 (college VARCHAR, cfl_team VARCHAR)
SELECT MIN(season) FROM table_16857_2
When was the first season?
CREATE TABLE table_16857_2 (season INTEGER)
SELECT date FROM table_name_49 WHERE score = "9-2"
Name the date with score of 9-2
CREATE TABLE table_name_49 (date VARCHAR, score VARCHAR)
SELECT visitor FROM table_name_69 WHERE date = "january 10"
Which team was the visitor on January 10?
CREATE TABLE table_name_69 (visitor VARCHAR, date VARCHAR)
SELECT d_50 FROM table_name_65 WHERE d_41 = "d 41"
What is the D 50 when the D 41 is d 41?
CREATE TABLE table_name_65 (d_50 VARCHAR, d_41 VARCHAR)
SELECT AVG(pick__number) FROM table_name_95 WHERE reg_gp = 0 AND pl_gp > 0
Which mean pick number had a Reg GP of 0, and a Pl GP that was bigger than 0?
CREATE TABLE table_name_95 (pick__number INTEGER, reg_gp VARCHAR, pl_gp VARCHAR)
SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE episode_number = 22
How many original air dates were there for episode 22?
CREATE TABLE table_24798489_2 (original_airdate VARCHAR, episode_number VARCHAR)
SELECT COUNT(weight) FROM table_name_53 WHERE team = "philadelphia 76ers"
What is the weight of the player from the Philadelphia 76ers?
CREATE TABLE table_name_53 (weight VARCHAR, team VARCHAR)
SELECT new_returning_same_network FROM table_169766_13 WHERE previous_network = "NBC"
For the NBC network, what was the new/returning/same network status?
CREATE TABLE table_169766_13 (new_returning_same_network VARCHAR, previous_network VARCHAR)
SELECT builder FROM table_name_84 WHERE built = "1920"
Who was the builder in 1920?
CREATE TABLE table_name_84 (builder VARCHAR, built VARCHAR)
SELECT SUM(mach) FROM table_name_88 WHERE vehicle_flight__number = "m2-f2 #8" AND altitude__meters_ > 13 OFFSET 716
What is the Mach with Vehicle Flight # m2-f2 #8 and an Altitude (meters) greater than 13,716?
CREATE TABLE table_name_88 (mach INTEGER, vehicle_flight__number VARCHAR, altitude__meters_ VARCHAR)
SELECT COUNT(silver) FROM table_name_53 WHERE bronze > 2 AND gold > 7
How many silver for the team with more than 2 bronze and more than 7 gold?
CREATE TABLE table_name_53 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT record FROM table_name_24 WHERE event = "shido usa mma" AND opponent = "raphael assunção"
what is the record when the event is shido usa mma and the opponent is raphael assunção?
CREATE TABLE table_name_24 (record VARCHAR, event VARCHAR, opponent VARCHAR)
SELECT term_in_office FROM table_name_65 WHERE electorate = "hinkler"
Which term in office has an Electorate of hinkler?
CREATE TABLE table_name_65 (term_in_office VARCHAR, electorate VARCHAR)
SELECT original_air_date FROM table_25923164_1 WHERE written_by = "Amanda Segel"
What was the original air date of the episode written by amanda segel?
CREATE TABLE table_25923164_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT wysiwyg_editor FROM table_name_75 WHERE image_attachment = "yes" AND calendar = "plugin"
Which WYSIWYG Editor has an Image attachment of yes, and a Calendar of plugin?
CREATE TABLE table_name_75 (wysiwyg_editor VARCHAR, image_attachment VARCHAR, calendar VARCHAR)
SELECT state FROM table_1416612_1 WHERE highest_point = "Mount Katahdin"
what's the state with highest point being mount katahdin
CREATE TABLE table_1416612_1 (state VARCHAR, highest_point VARCHAR)
SELECT COUNT(established) FROM table_name_65 WHERE sport = "soccer" AND venue = "kuntz stadium"
What is the total number of Established for soccer plated in kuntz stadium?
CREATE TABLE table_name_65 (established VARCHAR, sport VARCHAR, venue VARCHAR)
SELECT MAX(silver) FROM table_name_15 WHERE nation = "south korea" AND gold < 1
How many silvers for south korea with under 1 gold medal?
CREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT mountain_peak FROM table_name_67 WHERE rank = 49
Name the mountain peak of 49 rank
CREATE TABLE table_name_67 (mountain_peak VARCHAR, rank VARCHAR)
SELECT COUNT(round) FROM table_name_18 WHERE method = "submission (punches)"
What round was the method submission (punches)?
CREATE TABLE table_name_18 (round VARCHAR, method VARCHAR)
SELECT result FROM table_name_61 WHERE date = "2008-12-23"
Tell me the result for 2008-12-23
CREATE TABLE table_name_61 (result VARCHAR, date VARCHAR)
SELECT no_in_series FROM table_25276528_2 WHERE written_by = "Kim Weiskopf and Jeff Franklin"
Kim Weiskopf and Jeff Franklin wrote all the no. in series.
CREATE TABLE table_25276528_2 (no_in_series VARCHAR, written_by VARCHAR)
SELECT SUM(played) FROM table_name_81 WHERE points_1 = "53" AND position > 3
WHAT IS THE SUM PLAYED WITH POINTS 1 OF 53, AND POSITION LARGER THAN 3?
CREATE TABLE table_name_81 (played INTEGER, points_1 VARCHAR, position VARCHAR)
SELECT AVG(votes) FROM table_name_58 WHERE place < 6 AND producer = "carlos coelho" AND draw > 5
How many average votes did producer carlos coelho have in a higher place than 6 and with a draw larger than 5?
CREATE TABLE table_name_58 (votes INTEGER, draw VARCHAR, place VARCHAR, producer VARCHAR)
SELECT MIN(took_office) FROM table_name_2 WHERE district = 22
What is the earliest date of taking office for district 22?
CREATE TABLE table_name_2 (took_office INTEGER, district VARCHAR)
SELECT topic_of_the_show FROM table_name_5 WHERE date = "march 15, 2008"
What was the topic of the show on March 15, 2008?
CREATE TABLE table_name_5 (topic_of_the_show VARCHAR, date VARCHAR)
SELECT date FROM table_name_44 WHERE series = "tooheys 1000"
What is the date for the tooheys 1000?
CREATE TABLE table_name_44 (date VARCHAR, series VARCHAR)
SELECT AVG(gold) FROM table_name_98 WHERE nation = "soviet union"
How many Gold medals did the Soviet Union receive?
CREATE TABLE table_name_98 (gold INTEGER, nation VARCHAR)
SELECT away_team FROM table_name_81 WHERE ground = "waverley park" AND home_team = "hawthorn"
Name the Away team which has a Ground of waverley park, and a Home team of hawthorn?
CREATE TABLE table_name_81 (away_team VARCHAR, ground VARCHAR, home_team VARCHAR)
SELECT no_s_ FROM table_11734041_9 WHERE school_club_team_country = "Southern University"
What is the number of the player who went to Southern University?
CREATE TABLE table_11734041_9 (no_s_ VARCHAR, school_club_team_country VARCHAR)
SELECT COUNT(episode_number) FROM table_name_80 WHERE audience_share__average_ = "10%"
What episode number has an audience share of 10%?
CREATE TABLE table_name_80 (episode_number VARCHAR, audience_share__average_ VARCHAR)
SELECT score FROM table_name_43 WHERE opponent_in_the_final = "marcos daniel"
In what score did the match against Marcos Daniel end?
CREATE TABLE table_name_43 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT year FROM table_name_75 WHERE laps = 134
What year had 134 laps?
CREATE TABLE table_name_75 (year VARCHAR, laps VARCHAR)
SELECT venue FROM table_name_3 WHERE city = "villanova"
Which venue is in the city of Villanova?
CREATE TABLE table_name_3 (venue VARCHAR, city VARCHAR)
SELECT COUNT(heat) FROM table_name_64 WHERE time = "2:08.54"
What's the heat that was timed 2:08.54?
CREATE TABLE table_name_64 (heat VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_24 WHERE ship = "appam"
what is the nationality of the ship appam?
CREATE TABLE table_name_24 (nationality VARCHAR, ship VARCHAR)
SELECT call_sign FROM table_name_25 WHERE format = "classic country"
What is the call sign of the Classic Country Music station?
CREATE TABLE table_name_25 (call_sign VARCHAR, format VARCHAR)
SELECT player FROM table_2508633_3 WHERE college = "Tennessee"
Which player went to college at Tennessee?
CREATE TABLE table_2508633_3 (player VARCHAR, college VARCHAR)
SELECT COUNT(district) FROM table_1341930_24 WHERE incumbent = "W. Arthur Winstead"
How many districts have W. Arthur Winstead as elected official?
CREATE TABLE table_1341930_24 (district VARCHAR, incumbent VARCHAR)
SELECT city FROM table_name_32 WHERE date = "april 29"
What city played on april 29?
CREATE TABLE table_name_32 (city VARCHAR, date VARCHAR)
SELECT notes FROM table_name_41 WHERE competition = "all-africa games" AND year < 2007
What were the notes of the All-Africa Games before 2007?
CREATE TABLE table_name_41 (notes VARCHAR, competition VARCHAR, year VARCHAR)
SELECT decor, COUNT(*) FROM Rooms WHERE bedType = "King" GROUP BY decor
Find the number of rooms with king bed for each decor type.
CREATE TABLE Rooms (decor VARCHAR, bedType VARCHAR)
SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id
Show all product names without an order.
CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE Order_items (product_id VARCHAR); CREATE TABLE Products (product_name VARCHAR)
SELECT date FROM table_name_9 WHERE record = "46-31"
What was the date of the game when the record was 46-31?
CREATE TABLE table_name_9 (date VARCHAR, record VARCHAR)
SELECT round FROM table_name_63 WHERE opponent = "dustin hazelett"
In which round was Dustin Hazelett the opponent?
CREATE TABLE table_name_63 (round VARCHAR, opponent VARCHAR)
SELECT crowd FROM table_name_22 WHERE venue = "mcg"
In the game with the venue of mcg, what was the attendance?
CREATE TABLE table_name_22 (crowd VARCHAR, venue VARCHAR)
SELECT MAX(established) FROM table_142950_1 WHERE location = "Leicester"
What is the year leicester was established?
CREATE TABLE table_142950_1 (established INTEGER, location VARCHAR)
SELECT airing_date FROM table_name_91 WHERE number_of_episodes = 20 AND genre = "costume comedy"
What is the airing date for costume comedy that has 20 episodes?
CREATE TABLE table_name_91 (airing_date VARCHAR, number_of_episodes VARCHAR, genre VARCHAR)