answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT melbourne FROM table_name_92 WHERE gold_coast = "yes" AND adelaide = "no" AND auckland = "no"
yes or no for the melbourne with yes for gold coast, yes for adelaide, no for auckland?
CREATE TABLE table_name_92 (melbourne VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
SELECT surface FROM table_name_66 WHERE outcome = "runner-up" AND partner = "ivan lendl" AND score_in_the_final = "2–6, 6–7"
On what surface was Ivan Lendl a partner with a runner-up outcome and final score of 2–6, 6–7?
CREATE TABLE table_name_66 (surface VARCHAR, score_in_the_final VARCHAR, outcome VARCHAR, partner VARCHAR)
SELECT lineup FROM table_name_12 WHERE match = "27"
What is the Lineup from a Match that is 27?
CREATE TABLE table_name_12 (lineup VARCHAR, match VARCHAR)
SELECT MAX(goals) FROM table_name_34 WHERE club = "total" AND apps < 120
Name the most goals for total club and apps less than 120
CREATE TABLE table_name_34 (goals INTEGER, club VARCHAR, apps VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_89 WHERE director = "gheorghe vitanidis"
What was the film title used in nomination for the film directed by Gheorghe Vitanidis?
CREATE TABLE table_name_89 (film_title_used_in_nomination VARCHAR, director VARCHAR)
SELECT MAX(season) FROM table_name_94 WHERE runners_up = "al ahly"
What is the latest season where Al Ahly is the runners-up?
CREATE TABLE table_name_94 (season INTEGER, runners_up VARCHAR)
SELECT location FROM table_24136365_2 WHERE week = 4
When 4 is the week what is the location?
CREATE TABLE table_24136365_2 (location VARCHAR, week VARCHAR)
SELECT T2.cmi_cross_ref_id, T2.master_customer_id, COUNT(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id
How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n
CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR); CREATE TABLE Business_Rates (cmi_cross_ref_id VARCHAR)
SELECT MAX(matches) FROM table_name_46 WHERE draws < 2 AND efficiency__percentage = "25%"
What is the highest number of matches with less than 2 draws that had an efficiency percent of 25%?
CREATE TABLE table_name_46 (matches INTEGER, draws VARCHAR, efficiency__percentage VARCHAR)
SELECT MIN(position) FROM table_name_6 WHERE bike_no > 10 AND driver___passenger = "nicky pulinx / ondrej cermak" AND points > 244
What is the lowest Postion, when Bike No is greater than 10, when Driver / Passenger is Nicky Pulinx / Ondrej Cermak, and when Points is greater than 244?
CREATE TABLE table_name_6 (position INTEGER, points VARCHAR, bike_no VARCHAR, driver___passenger VARCHAR)
SELECT volume AS :issue FROM table_name_86 WHERE artist = "elton john" AND weeks_on_top = 4
What is Volume:Issue, when Artist is Elton John, and when Weeks on Top is 4?
CREATE TABLE table_name_86 (volume VARCHAR, artist VARCHAR, weeks_on_top VARCHAR)
SELECT surface FROM table_name_17 WHERE score = "6–4, 2–6, 3–6"
What was the Surface when the Score was 6–4, 2–6, 3–6?
CREATE TABLE table_name_17 (surface VARCHAR, score VARCHAR)
SELECT launch_site FROM table_name_86 WHERE date = "unknown" AND rocket = "delta iv" AND satellite = "gps iif-10"
What is the launch site of the delta iv rocket with an unknown date and a gps iif-10 satellite?
CREATE TABLE table_name_86 (launch_site VARCHAR, satellite VARCHAR, date VARCHAR, rocket VARCHAR)
SELECT type FROM table_name_96 WHERE year > 2010 AND location = "justus lipsius building, brussels" AND president = "herman van rompuy (2nd term)" AND date = "28–29 june"
What is the Type with a Year larger than 2010, and a Location with justus lipsius building, brussels, and a President of herman van rompuy (2nd term), and a Date with 28–29 june?
CREATE TABLE table_name_96 (type VARCHAR, date VARCHAR, president VARCHAR, year VARCHAR, location VARCHAR)
SELECT SUM(week) FROM table_name_8 WHERE result = "safe" AND dance = "salsa"
What week was she safe for a salsa dance?
CREATE TABLE table_name_8 (week INTEGER, result VARCHAR, dance VARCHAR)
SELECT company FROM table_name_59 WHERE built = 1998 AND ship = "excellent"
What company built the ship named excellent in 1998?
CREATE TABLE table_name_59 (company VARCHAR, built VARCHAR, ship VARCHAR)
SELECT COUNT(total_atms) FROM table_name_32 WHERE off_site_atms > 3672 AND number_of_branches < 1685
What is the total ATMs with off-site ATMs greater than 3672, and less than 1685 as the number of branches?
CREATE TABLE table_name_32 (total_atms VARCHAR, off_site_atms VARCHAR, number_of_branches VARCHAR)
SELECT COUNT(rank) FROM table_2527063_3 WHERE growth_rate = "14.47"
Name the total number of rank for growth raate for 14.47
CREATE TABLE table_2527063_3 (rank VARCHAR, growth_rate VARCHAR)
SELECT avg FROM table_name_65 WHERE yards = "1"
Tell me the average for 1 yards
CREATE TABLE table_name_65 (avg VARCHAR, yards VARCHAR)
SELECT date FROM table_name_66 WHERE round = "second round"
What is the date of the second round?
CREATE TABLE table_name_66 (date VARCHAR, round VARCHAR)
SELECT award_description_s_ FROM table_name_17 WHERE year = 1989
List the Award Descriptions for the year of 1989.
CREATE TABLE table_name_17 (award_description_s_ VARCHAR, year VARCHAR)
SELECT COUNT(goals_per_match) FROM table_name_12 WHERE name = "cha bum-kun"
What is Cha Bum-Kun's average number of goals per match?
CREATE TABLE table_name_12 (goals_per_match VARCHAR, name VARCHAR)
SELECT COUNT(high_points) FROM table_27756014_1 WHERE date = "October 16"
How many games were played on october 16?
CREATE TABLE table_27756014_1 (high_points VARCHAR, date VARCHAR)
SELECT MIN(pop__2010_) FROM table_name_25 WHERE geo_id = 3805373380 AND water__sqmi_ < 5.729
What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729?
CREATE TABLE table_name_25 (pop__2010_ INTEGER, geo_id VARCHAR, water__sqmi_ VARCHAR)
SELECT MAX(lost) FROM table_name_58 WHERE points > 29 AND against < 19
What is the highest number lost with more than 29 points and an against less than 19?
CREATE TABLE table_name_58 (lost INTEGER, points VARCHAR, against VARCHAR)
SELECT high_rebounds FROM table_13464416_4 WHERE team = "Golden State"
Who had the high rebound total against golden state?
CREATE TABLE table_13464416_4 (high_rebounds VARCHAR, team VARCHAR)
SELECT COUNT(pinyin) FROM table_1638437_2 WHERE simplified = "河西区"
Name the number of pinyin where simplified is 河西区
CREATE TABLE table_1638437_2 (pinyin VARCHAR, simplified VARCHAR)
SELECT content FROM table_name_1 WHERE television_service = "ewtn"
What content is provided by the television service ewtn?
CREATE TABLE table_name_1 (content VARCHAR, television_service VARCHAR)
SELECT nationality FROM table_1013129_1 WHERE nhl_team = "New York Islanders"
The nhl team new york islanders is what nationality?
CREATE TABLE table_1013129_1 (nationality VARCHAR, nhl_team VARCHAR)
SELECT start FROM table_name_72 WHERE qual = "141.033"
What place did Jack McGrath start in when he received a qual score of 141.033?
CREATE TABLE table_name_72 (start VARCHAR, qual VARCHAR)
SELECT us_viewers__million_ FROM table_28760804_1 WHERE production_code = "3X5710"
How many million U.S. viewers saw the episode with production code 3X5710?
CREATE TABLE table_28760804_1 (us_viewers__million_ VARCHAR, production_code VARCHAR)
SELECT score FROM table_name_13 WHERE time = "5:00pm"
Which Score has a Time of 5:00pm?
CREATE TABLE table_name_13 (score VARCHAR, time VARCHAR)
SELECT period FROM table_21100348_10 WHERE average = "44.10"
During what period was the career average 44.10?
CREATE TABLE table_21100348_10 (period VARCHAR, average VARCHAR)
SELECT candidates FROM table_1342256_18 WHERE incumbent = "James R. Domengeaux"
Who are all of the candidates in the election featuring james r. domengeaux?
CREATE TABLE table_1342256_18 (candidates VARCHAR, incumbent VARCHAR)
SELECT english_title FROM table_name_21 WHERE director = "jayme monjardim"
What is the English title of the film Directed by Jayme Monjardim?
CREATE TABLE table_name_21 (english_title VARCHAR, director VARCHAR)
SELECT host FROM table_name_85 WHERE region = "midwest" AND venue = "thomas assembly center"
Tell me the host for midwest thomas assembly center
CREATE TABLE table_name_85 (host VARCHAR, region VARCHAR, venue VARCHAR)
SELECT SUM(played) FROM table_name_51 WHERE goals_against < 34 AND wins < 13
How much Played has Goals against smaller than 34, and Wins smaller than 13?
CREATE TABLE table_name_51 (played INTEGER, goals_against VARCHAR, wins VARCHAR)
SELECT team FROM table_2472711_31 WHERE up_down = "+ 3479"
Which team has an up/down of + 3479?
CREATE TABLE table_2472711_31 (team VARCHAR, up_down VARCHAR)
SELECT country FROM table_name_33 WHERE base = "athens" AND company = "attis theatre"
What is the country of the play based in Athens at the Attis Theatre company?
CREATE TABLE table_name_33 (country VARCHAR, base VARCHAR, company VARCHAR)
SELECT COUNT(attendance) FROM table_name_13 WHERE record = "30-22"
How many people were in attendance on the day there was a 30-22 victory?
CREATE TABLE table_name_13 (attendance VARCHAR, record VARCHAR)
SELECT home_team AS score FROM table_name_4 WHERE venue = "mcg"
What was the score for the home team who plays their matches at the mcg venue?
CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR)
SELECT MIN(goal_difference) FROM table_name_85 WHERE position > 16
What's the lowest goal difference when the position is higher than 16?
CREATE TABLE table_name_85 (goal_difference INTEGER, position INTEGER)
SELECT driver FROM table_name_93 WHERE laps < 22 AND time_retired = "ignition"
What driver had under 22 laps and a Time/Retired of ignition?
CREATE TABLE table_name_93 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT location_attendance FROM table_17103645_10 WHERE score = "65-72"
Name the location attendance for score of 65-72
CREATE TABLE table_17103645_10 (location_attendance VARCHAR, score VARCHAR)
SELECT actor FROM table_name_14 WHERE soap_opera = "the archers" AND character = "martha woodford"
Who's the actor for the Archers having a character of Martha Woodford?
CREATE TABLE table_name_14 (actor VARCHAR, soap_opera VARCHAR, character VARCHAR)
SELECT author FROM table_name_24 WHERE play = "electra"
Who is the author of the Play Electra?
CREATE TABLE table_name_24 (author VARCHAR, play VARCHAR)
SELECT tournament FROM table_name_57 WHERE score = "4–6, 6–4, 6–4"
Score of 4–6, 6–4, 6–4 included which tournament?
CREATE TABLE table_name_57 (tournament VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_name_10 WHERE high_assists = "luke ridnour (10)" AND date = "december 3"
Can you tell me the Location Attendance that has the High assists of luke ridnour (10), and the Date of december 3?
CREATE TABLE table_name_10 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR)
SELECT name FROM table_name_7 WHERE date_of_birth = "1982-01-29"
Who is born on 1982-01-29?
CREATE TABLE table_name_7 (name VARCHAR, date_of_birth VARCHAR)
SELECT MIN(goal) FROM table_name_45 WHERE competition = "2006 fifa world cup qualification"
What is the smallest goal during the 2006 fifa world cup qualification competition?
CREATE TABLE table_name_45 (goal INTEGER, competition VARCHAR)
SELECT diameter__km_ FROM table_name_66 WHERE diameter__mi_ = "8mi" AND gill = "e"
What shows for the Diameter (km) when the Diameter (mi) is 8mi, and a Gill is e?
CREATE TABLE table_name_66 (diameter__km_ VARCHAR, diameter__mi_ VARCHAR, gill VARCHAR)
SELECT points FROM table_14342367_7 WHERE player = "Albert Herrnstein"
How many points did Albert Herrnstein make?
CREATE TABLE table_14342367_7 (points VARCHAR, player VARCHAR)
SELECT MAX(played) FROM table_14323347_1
Name the most played
CREATE TABLE table_14323347_1 (played INTEGER)
SELECT passengers FROM table_name_65 WHERE carriers = "air canada"
Which Passengers have Carriers of air canada?
CREATE TABLE table_name_65 (passengers VARCHAR, carriers VARCHAR)
SELECT name FROM table_name_2 WHERE avg_g < 225.5 AND gp_gs = "8–0"
Avg/G smaller than 225.5, and a GP-GS of 8–0 has what name?
CREATE TABLE table_name_2 (name VARCHAR, avg_g VARCHAR, gp_gs VARCHAR)
SELECT SUM(losses) FROM table_name_80 WHERE goals_against < 34 AND games_played < 8
what is the sum of the losses when the goals against is less than 34 and the games played is less than 8?
CREATE TABLE table_name_80 (losses INTEGER, goals_against VARCHAR, games_played VARCHAR)
SELECT MIN(game) FROM table_name_11 WHERE march > 2 AND opponent = "minnesota north stars"
What is the lowest game number of the game after March 2 with the minnesota north stars as the opponent?
CREATE TABLE table_name_11 (game INTEGER, march VARCHAR, opponent VARCHAR)
SELECT finalist FROM table_name_14 WHERE week = "may 7"
What is the May 7 finalist?
CREATE TABLE table_name_14 (finalist VARCHAR, week VARCHAR)
SELECT MAX(position) FROM table_10160447_1 WHERE winnings = "$50,000"
what's the maximum position with winnings  $50,000
CREATE TABLE table_10160447_1 (position INTEGER, winnings VARCHAR)
SELECT opponent FROM table_24464253_1 WHERE record = "5-4"
Against what opponent did the Wildcats have a record of 5-4?
CREATE TABLE table_24464253_1 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_28 WHERE week = 14
Who was the opponent in week 14?
CREATE TABLE table_name_28 (opponent VARCHAR, week VARCHAR)
SELECT planet AS Type FROM table_name_51 WHERE semimajor_axis___au__ = 0.07
What type of planet has a semimajor axis of 0.07 AU?
CREATE TABLE table_name_51 (planet VARCHAR, semimajor_axis___au__ VARCHAR)
SELECT date FROM table_name_35 WHERE tie_no = "10"
What is the date of game with tie number of 10?
CREATE TABLE table_name_35 (date VARCHAR, tie_no VARCHAR)
SELECT doctor_who_episode FROM table_name_51 WHERE original_airdate__uk_ = "dvd only"
Which Doctor Who episode has a Original airdate (UK) of dvd only?
CREATE TABLE table_name_51 (doctor_who_episode VARCHAR, original_airdate__uk_ VARCHAR)
SELECT netflix FROM table_name_97 WHERE segment_a = "heather gems"
Segment A of heather gems is what netflix episode?
CREATE TABLE table_name_97 (netflix VARCHAR, segment_a VARCHAR)
SELECT release_date FROM table_name_12 WHERE company = "bbc audio" AND writer = "ford, phil phil ford"
What is the release date of the album written by Ford, Phil Phil Ford under BBC Audio?
CREATE TABLE table_name_12 (release_date VARCHAR, company VARCHAR, writer VARCHAR)
SELECT home_team FROM table_name_49 WHERE away_team = "luton town"
What team was the home team when Luton Town was the home team?
CREATE TABLE table_name_49 (home_team VARCHAR, away_team VARCHAR)
SELECT MAX(w) FROM table_29542147_2 WHERE l = 0
What is the highest W of the 0 L?
CREATE TABLE table_29542147_2 (w INTEGER, l VARCHAR)
SELECT position FROM table_name_86 WHERE round > 21
What Position has a Round that's larger than 21?
CREATE TABLE table_name_86 (position VARCHAR, round INTEGER)
SELECT group_12 FROM table_19523142_5 WHERE group_10 = "Persikutim East Kutai"
Who played in group 12 when persikutim east kutai played in group 10?
CREATE TABLE table_19523142_5 (group_12 VARCHAR, group_10 VARCHAR)
SELECT COUNT(lane) FROM table_name_31 WHERE time = "1:56.64" AND rank < 7
What is the lane with a time of 1:56.64, and a tank smaller than 7?
CREATE TABLE table_name_31 (lane VARCHAR, time VARCHAR, rank VARCHAR)
SELECT first_elected FROM table_1341522_38 WHERE opponent = "Ralph Regula (R) 75.0% J. Michael Finn (D) 25.0%"
what's the first elected with opponent being ralph regula (r) 75.0% j. michael finn (d) 25.0%
CREATE TABLE table_1341522_38 (first_elected VARCHAR, opponent VARCHAR)
SELECT partner FROM table_name_12 WHERE date = "6 july 1987"
Who is the partner of the tournament on 6 July 1987?
CREATE TABLE table_name_12 (partner VARCHAR, date VARCHAR)
SELECT MIN(lost) FROM table_name_47 WHERE win__percentage > 47.1 AND matches < 145
Win % larger than 47.1, and a Matches smaller than 145 had what lowest lost?
CREATE TABLE table_name_47 (lost INTEGER, win__percentage VARCHAR, matches VARCHAR)
SELECT Age FROM artist
List the age of all music artists.
CREATE TABLE artist (Age VARCHAR)
SELECT nickname FROM table_2538117_7 WHERE founding_university = "Charlotte, NC"
If the founding university is in Charlotte, NC, what is the nickname?
CREATE TABLE table_2538117_7 (nickname VARCHAR, founding_university VARCHAR)
SELECT opponent_in_the_final FROM table_name_31 WHERE score_in_the_final = "7–5, 6–2"
What Opponent in the final had a match with a Score in the final of 7–5, 6–2?
CREATE TABLE table_name_31 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT argon FROM table_name_56 WHERE neon = "0.484"
Name the Argon which has a Neon of 0.484?
CREATE TABLE table_name_56 (argon VARCHAR, neon VARCHAR)
SELECT celebrity FROM table_name_79 WHERE finished = "6th"
What celebrity finished 6th?
CREATE TABLE table_name_79 (celebrity VARCHAR, finished VARCHAR)
SELECT score FROM table_name_3 WHERE home_team = "wigan athletic"
What is the score of the wigan athletic home team?
CREATE TABLE table_name_3 (score VARCHAR, home_team VARCHAR)
SELECT MIN(year) FROM table_name_8 WHERE structure = "mercury city tower"
What year was the Mercury City Tower?
CREATE TABLE table_name_8 (year INTEGER, structure VARCHAR)
SELECT l_g FROM table_22542179_3 WHERE player = "Rubio"
Name the l g for rubio
CREATE TABLE table_22542179_3 (l_g VARCHAR, player VARCHAR)
SELECT COUNT(DISTINCT team) FROM elimination
What is the number of distinct teams that suffer elimination?
CREATE TABLE elimination (team VARCHAR)
SELECT date FROM table_name_60 WHERE opponent_in_the_final = "antonio veić"
When did Mathieu play against Antonio Veić?
CREATE TABLE table_name_60 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT surface FROM table_name_51 WHERE opponent_in_the_final = "wynne prakusya"
Which surface has wynne prakusya as the opponent in the final?
CREATE TABLE table_name_51 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT production__hectolitres_ FROM table_29012710_1 WHERE province = "New Brunswick"
what is the amount where the area is new brunswick
CREATE TABLE table_29012710_1 (production__hectolitres_ VARCHAR, province VARCHAR)
SELECT written_by FROM table_26198709_1 WHERE us_viewers__million_ = "18.07"
Who wrote the episode with 18.07 million viewers?
CREATE TABLE table_26198709_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT 2005 FROM table_name_25 WHERE 2007 = "91.100"
What is the 2005 Lukoil oil prodroduction when in 2007 oil production 91.100 million tonnes?
CREATE TABLE table_name_25 (Id VARCHAR)
SELECT event FROM table_name_98 WHERE opponent = "jorge gurgel"
What event did Diego Saraiva fight jorge gurgel?
CREATE TABLE table_name_98 (event VARCHAR, opponent VARCHAR)
SELECT reference FROM table_30011_2 WHERE type_and_usage = "Germanium small-signal RF transistor"
What is every reference for type and usage of Germanium small-signal RF transistor?
CREATE TABLE table_30011_2 (reference VARCHAR, type_and_usage VARCHAR)
SELECT COUNT(opponent) FROM table_13258823_2 WHERE game_site = "Arrowhead Stadium"
Name the number of opponent with arrowhead stadium
CREATE TABLE table_13258823_2 (opponent VARCHAR, game_site VARCHAR)
SELECT high_rebounds FROM table_name_53 WHERE record = "6-14"
What is the highest number of rebounds of the game with a 6-14 record?
CREATE TABLE table_name_53 (high_rebounds VARCHAR, record VARCHAR)
SELECT opponents FROM table_name_33 WHERE round = "final"
Which opponent made it to the final round?
CREATE TABLE table_name_33 (opponents VARCHAR, round VARCHAR)
SELECT MAX(game) FROM table_name_51 WHERE january = 28
Which Game is the highest that has a January of 28?
CREATE TABLE table_name_51 (game INTEGER, january VARCHAR)
SELECT original_air_date FROM table_name_55 WHERE production_code = "2395120"
What was the original air date of the episode with production code 2395120?
CREATE TABLE table_name_55 (original_air_date VARCHAR, production_code VARCHAR)
SELECT COUNT(crowd) FROM table_name_17 WHERE away_team = "geelong"
What is the total crowd size that saw Geelong play as the away team?
CREATE TABLE table_name_17 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(year) FROM table_name_42 WHERE wins = 0 AND team = "ajs" AND points < 12
What is the year that there were 0 wins, team AJS, and under 12 points?
CREATE TABLE table_name_42 (year VARCHAR, points VARCHAR, wins VARCHAR, team VARCHAR)
SELECT pictorials FROM table_name_84 WHERE interview_subject = "jesse jackson"
In the issue in which the Interview subject was Jesse Jackson, who were there Pictorials of?
CREATE TABLE table_name_84 (pictorials VARCHAR, interview_subject VARCHAR)
SELECT country FROM table_name_19 WHERE supermarkets = "50"
What country has 50 supermarkets?
CREATE TABLE table_name_19 (country VARCHAR, supermarkets VARCHAR)
SELECT decay FROM table_2150068_1 WHERE nssdc_id = "1990-081C"
What is the decay for the sattelite with an id that is 1990-081c?
CREATE TABLE table_2150068_1 (decay VARCHAR, nssdc_id VARCHAR)