answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT mls_team FROM table_name_3 WHERE pick__number = 32
Which MLS team had a pick number of 32?
CREATE TABLE table_name_3 (mls_team VARCHAR, pick__number VARCHAR)
SELECT AVG(total) FROM table_name_8 WHERE 2010 = "1st"
What is the average total that is 1st in 2010?
CREATE TABLE table_name_8 (total INTEGER)
SELECT orbital_regime FROM table_name_76 WHERE launches > 4 AND failures < 2
What is the orbital regime of launches greater than 4 and failures less than 2?
CREATE TABLE table_name_76 (orbital_regime VARCHAR, launches VARCHAR, failures VARCHAR)
SELECT volume FROM table_17941111_2 WHERE co_2 = "168 g/km"
Name the volume for co 2 for 168 g/km
CREATE TABLE table_17941111_2 (volume VARCHAR, co_2 VARCHAR)
SELECT AVG(drawn) FROM table_name_58 WHERE difference = "14"
Which Drawn has a Difference of 14?
CREATE TABLE table_name_58 (drawn INTEGER, difference VARCHAR)
SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player)
List the names of people that are not poker players.
CREATE TABLE poker_player (Name VARCHAR, People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT MAX(season) FROM table_2140071_7
What is the newest season?
CREATE TABLE table_2140071_7 (season INTEGER)
SELECT representative FROM table_name_10 WHERE termination_of_mission = "may 24, 1905"
Which Representative has a Termination of Mission as May 24, 1905?
CREATE TABLE table_name_10 (representative VARCHAR, termination_of_mission VARCHAR)
SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50
Find the name of airports whose altitude is between -50 and 50.
CREATE TABLE airports (name VARCHAR, elevation INTEGER)
SELECT team FROM table_name_98 WHERE position_in_table = "12th" AND replaced_by = "ove pedersen"
WHAT TEAM HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN?
CREATE TABLE table_name_98 (team VARCHAR, position_in_table VARCHAR, replaced_by VARCHAR)
SELECT player FROM table_name_32 WHERE to_par = "+1" AND country = "united states" AND score = 71 - 70 = 141
What is Player, when To Par is "+1", when Country is "United States", and when Score is "71-70=141"?
CREATE TABLE table_name_32 (player VARCHAR, to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT playoffs FROM table_1427998_1 WHERE team_name = "Bay Area Seals"
What was the playoff result for the team name of bay area seals
CREATE TABLE table_1427998_1 (playoffs VARCHAR, team_name VARCHAR)
SELECT location FROM table_name_38 WHERE silver = "david mccann" AND gold = "morgan fox"
What location did david mccann receive a siver and morgan fox win the gold?
CREATE TABLE table_name_38 (location VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT MAX(pick) FROM table_name_39 WHERE position = "g/f"
What is the highest Pick, when Position is "G/F"?
CREATE TABLE table_name_39 (pick INTEGER, position VARCHAR)
SELECT COUNT(wins) FROM table_name_28 WHERE top_25 > 6 AND cuts_made < 13
In the tournament with more than 6 top-25's and less than 13 cuts made, how many wins were there?
CREATE TABLE table_name_28 (wins VARCHAR, top_25 VARCHAR, cuts_made VARCHAR)
SELECT MIN(width__inches_) FROM table_name_36 WHERE length__feet_ > 25 AND numbers = "401-484"
On buses ranging in numbr 401-484, what is the lowest width that one longer thna 25 feet can have?
CREATE TABLE table_name_36 (width__inches_ INTEGER, length__feet_ VARCHAR, numbers VARCHAR)
SELECT sydney FROM table_name_53 WHERE perth = "no" AND adelaide = "no" AND melbourne = "yes" AND gold_coast = "yes"
Name the sydney with perth of no, adelaide of no with melbourne of yes and gold coast of yes
CREATE TABLE table_name_53 (sydney VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, perth VARCHAR, adelaide VARCHAR)
SELECT release_date FROM table_12588029_3 WHERE year = 2003
What are the release dates for songs in 2003?
CREATE TABLE table_12588029_3 (release_date VARCHAR, year VARCHAR)
SELECT venue FROM table_name_83 WHERE notes = "2:28:31"
Which Venue has a Notes of 2:28:31?
CREATE TABLE table_name_83 (venue VARCHAR, notes VARCHAR)
SELECT col_location FROM table_2731431_1 WHERE location = "France / Italy"
What is the col location for the location of france / italy?
CREATE TABLE table_2731431_1 (col_location VARCHAR, location VARCHAR)
SELECT years_available FROM table_2889300_6 WHERE kickdrum_pad = "Rubber"
in which year was available the rubber as kickdrum pad
CREATE TABLE table_2889300_6 (years_available VARCHAR, kickdrum_pad VARCHAR)
SELECT year FROM table_14903491_1 WHERE womens_doubles = "Victoria Hristova Neli Nedialkova"
Name the year for victoria hristova neli nedialkova
CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR)
SELECT background FROM table_name_82 WHERE hometown = "barrington, illinois"
What is the Background of the Candidate from Barrington, Illinois?
CREATE TABLE table_name_82 (background VARCHAR, hometown VARCHAR)
SELECT outcome FROM table_22834834_3 WHERE score_in_the_final = "6–3, 6–2"
Which outcomes have a final score of 6–3, 6–2?
CREATE TABLE table_22834834_3 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT score FROM table_name_1 WHERE team = "@ portland"
What is the Score with a Team that is @ portland?
CREATE TABLE table_name_1 (score VARCHAR, team VARCHAR)
SELECT away_team AS score FROM table_name_9 WHERE home_team = "hawthorn"
What was the away team's score against Hawthorn?
CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR)
SELECT team_1 FROM table_name_69 WHERE team_2 = "brest hc meshkov"
What is the Team 1 with a Team 2 with brest hc meshkov?
CREATE TABLE table_name_69 (team_1 VARCHAR, team_2 VARCHAR)
SELECT game_site FROM table_17765888_1 WHERE opponent = "Dallas Texans"
What was the game site against the Dallas Texans?
CREATE TABLE table_17765888_1 (game_site VARCHAR, opponent VARCHAR)
SELECT date_of_appointment FROM table_18795125_6 WHERE position_in_table = "23rd"
What was the date of appointment for the manager of the 23rd team?
CREATE TABLE table_18795125_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)
SELECT score FROM table_name_44 WHERE loss = "kern (0-2)"
What was the score of the game when there was a loss of Kern (0-2)?
CREATE TABLE table_name_44 (score VARCHAR, loss VARCHAR)
SELECT played FROM table_name_76 WHERE try_bonus = "6" AND drawn = "0"
Name the played with try bonus of 6 and drawn of 0
CREATE TABLE table_name_76 (played VARCHAR, try_bonus VARCHAR, drawn VARCHAR)
SELECT colours FROM table_name_26 WHERE head_coach = "benedikt guðmundsson"
What are the colours of the team with benedikt guðmundsson as head coach?
CREATE TABLE table_name_26 (colours VARCHAR, head_coach VARCHAR)
SELECT COUNT(reason_for_change) FROM table_2192067_4 WHERE date_successor_seated = "June 8, 1876"
what is the total number of reasons for change where the date the successor was seated is june 8, 1876?
CREATE TABLE table_2192067_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT athlete FROM table_name_43 WHERE result = 18.55
Which athlete, has an 18.55 result
CREATE TABLE table_name_43 (athlete VARCHAR, result VARCHAR)
SELECT name_of_kingdom FROM table_name_65 WHERE capital = "suin"
Which kingdom has Suin as its capital?
CREATE TABLE table_name_65 (name_of_kingdom VARCHAR, capital VARCHAR)
SELECT colours FROM table_name_93 WHERE house_name = "ogun"
What colours have a House Name of ogun?
CREATE TABLE table_name_93 (colours VARCHAR, house_name VARCHAR)
SELECT ship FROM table_name_5 WHERE pennant_number = "h05"
What ship has a pennant number h05?
CREATE TABLE table_name_5 (ship VARCHAR, pennant_number VARCHAR)
SELECT club__city_town_ FROM table_14181578_1 WHERE goals_for_against = "14-2"
who is the the club (city/town) with goals for/against being 14-2
CREATE TABLE table_14181578_1 (club__city_town_ VARCHAR, goals_for_against VARCHAR)
SELECT current_club FROM table_name_31 WHERE height < 1.92 AND year_born > 1978
What player was born in 1978 and smaller than 1.92?
CREATE TABLE table_name_31 (current_club VARCHAR, height VARCHAR, year_born VARCHAR)
SELECT company FROM table_name_86 WHERE assets__billion_$_ < 235.45 AND sales__billion_$_ > 159.29 AND industry = "oil and gas" AND profits__billion_$_ = 19.28
Which company in the oil and gas industry has assets (billion $) under 235.45, sales (billion $) larger than 159.29 and brings in profits (billion $) of 19.28?
CREATE TABLE table_name_86 (company VARCHAR, profits__billion_$_ VARCHAR, industry VARCHAR, assets__billion_$_ VARCHAR, sales__billion_$_ VARCHAR)
SELECT attendance FROM table_name_76 WHERE date = "september 12"
What was the total attendance on September 12?
CREATE TABLE table_name_76 (attendance VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_5 WHERE away_team = "footscray"
Who played as the home team when Footscray was the away team?
CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(debut_album) FROM table_1646960_3 WHERE winner = "Mike Mohede"
How many debut albums did mike mohede have?
CREATE TABLE table_1646960_3 (debut_album VARCHAR, winner VARCHAR)
SELECT played FROM table_20760802_1 WHERE lost = "4" AND drawn = "1"
What is the total of played where lost equals 4 and drawn equals 1?
CREATE TABLE table_20760802_1 (played VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT trailers FROM table_name_47 WHERE formed_from = "pan/pul/res cars"
Name the trailers for formed from pan/pul/res cars
CREATE TABLE table_name_47 (trailers VARCHAR, formed_from VARCHAR)
SELECT kickoff FROM table_name_30 WHERE date = "october 22, 2000"
What is the kickoff for the game on october 22, 2000?
CREATE TABLE table_name_30 (kickoff VARCHAR, date VARCHAR)
SELECT highest_point FROM table_24285393_1 WHERE country_or_region = "Latvia"
What are the highest point in latvia
CREATE TABLE table_24285393_1 (highest_point VARCHAR, country_or_region VARCHAR)
SELECT winner FROM table_name_89 WHERE fastest_lap = "katsuyuki hiranaka"
Who was the winner when Katsuyuki Hiranaka had the fastest lap?
CREATE TABLE table_name_89 (winner VARCHAR, fastest_lap VARCHAR)
SELECT result_margin FROM table_24919137_2 WHERE broadcaster = "Fox Sports 1" AND venue = "MCG"
What is the result/margin when fox sports 1 broadcast the game played at mcg?
CREATE TABLE table_24919137_2 (result_margin VARCHAR, broadcaster VARCHAR, venue VARCHAR)
SELECT COUNT(location_attendance) FROM table_17326036_6 WHERE date = "December 5"
How many location attendance was recorded for December 5?
CREATE TABLE table_17326036_6 (location_attendance VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_60 WHERE date = "april 27"
Name the opponent on april 27
CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR)
SELECT venue FROM table_name_13 WHERE home_team = "south melbourne"
Where was South Melbourne played?
CREATE TABLE table_name_13 (venue VARCHAR, home_team VARCHAR)
SELECT MAX(week) FROM table_13258806_2 WHERE date = "October 4, 1987"
During what weak of the season was the game played on october 4, 1987?
CREATE TABLE table_13258806_2 (week INTEGER, date VARCHAR)
SELECT result FROM table_name_23 WHERE score = "1–1"
Which result has a Score of 1–1?
CREATE TABLE table_name_23 (result VARCHAR, score VARCHAR)
SELECT club FROM table_name_69 WHERE lead = "jamie korab"
Which club has Jamie Korab as Lead?
CREATE TABLE table_name_69 (club VARCHAR, lead VARCHAR)
SELECT AVG(december) FROM table_name_79 WHERE game = 30
What is average December when game is 30?
CREATE TABLE table_name_79 (december INTEGER, game VARCHAR)
SELECT record FROM table_name_54 WHERE week < 5 AND game_site = "bye"
What is the record of the game before week 5 and a bye game site?
CREATE TABLE table_name_54 (record VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT wrestler FROM table_name_41 WHERE date = "october 11, 2008"
Who has a date of october 11, 2008?
CREATE TABLE table_name_41 (wrestler VARCHAR, date VARCHAR)
SELECT SUM(capacity) FROM table_name_58 WHERE team = "denizlispor"
What is the sum of Capacity, when Team is "Denizlispor"?
CREATE TABLE table_name_58 (capacity INTEGER, team VARCHAR)
SELECT role FROM table_name_57 WHERE genre = "drama" AND year = 1973
What drama role does she play in 1973?
CREATE TABLE table_name_57 (role VARCHAR, genre VARCHAR, year VARCHAR)
SELECT award FROM table_name_85 WHERE result = "nominated" AND year = 2003
Which Award has a Result of nominated, and a Year of 2003?
CREATE TABLE table_name_85 (award VARCHAR, result VARCHAR, year VARCHAR)
SELECT report FROM table_20884163_2 WHERE race_title = "Winton"
What was the report for the winton race?
CREATE TABLE table_20884163_2 (report VARCHAR, race_title VARCHAR)
SELECT english_translation FROM table_name_93 WHERE simplified_chinese = "山鬼"
What is the English translation of 山鬼?
CREATE TABLE table_name_93 (english_translation VARCHAR, simplified_chinese VARCHAR)
SELECT divisional_record FROM table_name_58 WHERE away_team = "dallas"
Can you tell me the Divisional Record that has the Away Team of dallas?
CREATE TABLE table_name_58 (divisional_record VARCHAR, away_team VARCHAR)
SELECT tournament FROM table_29296103_10 WHERE champion = "Pat Cash 4–6, 6–4, 6–3"
which tournament was the champion pat cash 4–6, 6–4, 6–3?
CREATE TABLE table_29296103_10 (tournament VARCHAR, champion VARCHAR)
SELECT venue FROM table_name_50 WHERE score = "3 runs" AND city = "buxton"
Where in Buxton has 3 runs?
CREATE TABLE table_name_50 (venue VARCHAR, score VARCHAR, city VARCHAR)
SELECT try_bonus FROM table_name_83 WHERE played = "18" AND points_for = "204"
What try bonus has 18 as the played of and 204 as the points?
CREATE TABLE table_name_83 (try_bonus VARCHAR, played VARCHAR, points_for VARCHAR)
SELECT format FROM table_name_11 WHERE owner = "cherry creek radio" AND frequency = "0 92.1 fm"
What is the format for Cherry Creek Radio with frequency of 0 92.1 fm?
CREATE TABLE table_name_11 (format VARCHAR, owner VARCHAR, frequency VARCHAR)
SELECT league_a FROM table_name_47 WHERE fa_cup = "6 (20)"
What shows for the League when the FA Cup is 6 (20)?
CREATE TABLE table_name_47 (league_a VARCHAR, fa_cup VARCHAR)
SELECT SUM(pick) FROM table_name_94 WHERE name = "darryl pounds" AND overall > 68
What is the sum of the pick of darryl pounds, who has an overall greater than 68?
CREATE TABLE table_name_94 (pick INTEGER, name VARCHAR, overall VARCHAR)
SELECT relation FROM table_name_12 WHERE year > 2000 AND length = "8 x 20 mins"
Which Relation has a Year larger than 2000, and a Length of 8 x 20 mins?
CREATE TABLE table_name_12 (relation VARCHAR, year VARCHAR, length VARCHAR)
SELECT average FROM table_name_47 WHERE matches = "11"
What is the average when the matches are 11?
CREATE TABLE table_name_47 (average VARCHAR, matches VARCHAR)
SELECT cover_date FROM table_1217448_1 WHERE character_s_ = "Sandman (Wesley Dodds)"
what's the cover date where character(s) is sandman (wesley dodds)
CREATE TABLE table_1217448_1 (cover_date VARCHAR, character_s_ VARCHAR)
SELECT winner FROM table_22384475_1 WHERE margin = "131 runs"
Who won the match when the margin was 131 runs?
CREATE TABLE table_22384475_1 (winner VARCHAR, margin VARCHAR)
SELECT constructor FROM table_name_55 WHERE grid < 3 AND time_retired = "1:34:31.522"
Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?
CREATE TABLE table_name_55 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT COUNT(rnd) FROM table_22670216_1 WHERE track = "Ontario Motor Speedway" AND pole_position = "Johnny Rutherford"
If the pole position is Johnny Rutherford and the track is the Ontario Motor Speedway, what is the RND total number?
CREATE TABLE table_22670216_1 (rnd VARCHAR, track VARCHAR, pole_position VARCHAR)
SELECT mediator FROM table_1315616_1 WHERE kōhaku__number = 53
Who was the mediator in kōhaku number 53?
CREATE TABLE table_1315616_1 (mediator VARCHAR, kōhaku__number VARCHAR)
SELECT horizontal_order FROM table_233830_1 WHERE channels = "WXYZRSTUVPQ"
If the channels is wxyzrstuvpq, what is the horizontal order?
CREATE TABLE table_233830_1 (horizontal_order VARCHAR, channels VARCHAR)
SELECT problem_log_id, problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1
What is the oldest log id and its corresponding problem id?
CREATE TABLE problem_log (problem_log_id VARCHAR, problem_id VARCHAR, log_entry_date VARCHAR)
SELECT opponents_in_the_final FROM table_2362486_1 WHERE score_in_the_final = "6–4, 2–6, 6–4, 7–6(3)"
Who were the opponents in the final where the score was 6–4, 2–6, 6–4, 7–6(3)?
CREATE TABLE table_2362486_1 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT presentation_of_credentials FROM table_name_55 WHERE appointed_by = "benjamin harrison"
Which Presentation of Credentials is listed for the Appointed by Benjamin Harrison?
CREATE TABLE table_name_55 (presentation_of_credentials VARCHAR, appointed_by VARCHAR)
SELECT story AS code FROM table_name_38 WHERE date = "2002-12"
What is the story code of the story published on 2002-12?
CREATE TABLE table_name_38 (story VARCHAR, date VARCHAR)
SELECT constructor FROM table_name_2 WHERE grid > 14 AND laps > 93 AND rank > 25
Which constructor had a grid number bigger than 14, laps of more than 93, and rank higher than 25?
CREATE TABLE table_name_2 (constructor VARCHAR, rank VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT open_cup FROM table_name_61 WHERE playoffs = "conference semifinal" AND year = 2012
In 2012, which round in the Open Cup did Real Colorado Foxes make it to the conference semifinal?
CREATE TABLE table_name_61 (open_cup VARCHAR, playoffs VARCHAR, year VARCHAR)
SELECT SUM(game) FROM table_name_46 WHERE score = "87-92"
What is the Game # that scored 87-92?
CREATE TABLE table_name_46 (game INTEGER, score VARCHAR)
SELECT position FROM table_name_64 WHERE venue = "debrecen, hungary"
What Position is listed against a Venue of Debrecen, Hungary
CREATE TABLE table_name_64 (position VARCHAR, venue VARCHAR)
SELECT artist FROM table_21378339_5 WHERE televotes = 1595
Name the artist for 1595 televotes
CREATE TABLE table_21378339_5 (artist VARCHAR, televotes VARCHAR)
SELECT tyre FROM table_name_58 WHERE fastest_lap = "bruce mclaren"
What is the tyre on the race where Bruce Mclaren had the fastest lap?
CREATE TABLE table_name_58 (tyre VARCHAR, fastest_lap VARCHAR)
SELECT round FROM table_name_26 WHERE opponent = "joe stevenson"
What was the round when he fought Joe Stevenson?
CREATE TABLE table_name_26 (round VARCHAR, opponent VARCHAR)
SELECT away_team AS score FROM table_name_85 WHERE away_team = "richmond"
What was the score of the away team when Richmond played?
CREATE TABLE table_name_85 (away_team VARCHAR)
SELECT COUNT(district) FROM table_25030512_41 WHERE incumbent = "Bill Shuster"
Name the number of district for bill shuster
CREATE TABLE table_25030512_41 (district VARCHAR, incumbent VARCHAR)
SELECT MIN(wins) FROM table_24596664_1
Name the least wins
CREATE TABLE table_24596664_1 (wins INTEGER)
SELECT writer_s_ FROM table_13403120_1 WHERE prodcode = "30-17"
who is the writer of the episode with prod.code 30-17
CREATE TABLE table_13403120_1 (writer_s_ VARCHAR, prodcode VARCHAR)
SELECT name FROM table_name_33 WHERE year < 1973 AND address = "123 south broad street"
What is the 123 south broad street address name before 1973?
CREATE TABLE table_name_33 (name VARCHAR, year VARCHAR, address VARCHAR)
SELECT COUNT(location_attendance) FROM table_23286158_10 WHERE high_assists = "Brandon Roy (6)" AND game = 78
When 78 is the game and brandon roy (6) has the highest amount of assists how many locations/attendances are there?
CREATE TABLE table_23286158_10 (location_attendance VARCHAR, high_assists VARCHAR, game VARCHAR)
SELECT driver FROM table_name_39 WHERE time_retired = "off course"
Which driver had a time off course?
CREATE TABLE table_name_39 (driver VARCHAR, time_retired VARCHAR)
SELECT home_ground FROM table_name_39 WHERE location = "n/a" AND club = "kcdrsc"
What is the Home Ground with the Location n/a for the Club kcdrsc?
CREATE TABLE table_name_39 (home_ground VARCHAR, location VARCHAR, club VARCHAR)
SELECT matches FROM table_name_16 WHERE prize_money = "£1,000,000"
What is the Match with a Prize of money that is £1,000,000?
CREATE TABLE table_name_16 (matches VARCHAR, prize_money VARCHAR)
SELECT film FROM table_name_31 WHERE "year" = "year"
When the year is year what was the film?
CREATE TABLE table_name_31 (film VARCHAR)
SELECT MAX(weeks_in_top_10) FROM table_27813010_2 WHERE artist = "Peter Kay"
How many weeks in the top 10 was spent by a song performed by Peter Kay?
CREATE TABLE table_27813010_2 (weeks_in_top_10 INTEGER, artist VARCHAR)