answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT sydney FROM table_name_94 WHERE melbourne = "no" AND auckland = "yes"
Which Sydney's Melbourne was no, when Auckland was yes?
CREATE TABLE table_name_94 (sydney VARCHAR, melbourne VARCHAR, auckland VARCHAR)
SELECT outcome FROM table_2139023_2 WHERE championship = "Australian championships"
What was the result of the Australian Championships?
CREATE TABLE table_2139023_2 (outcome VARCHAR, championship VARCHAR)
SELECT semi_final_second_television_commentator FROM table_name_51 WHERE final_television_commentator = "graham norton" AND spokesperson = "scott mills" AND year_s_ < 2013
Who is the semi-final second television commentator with graham norton as the final television commentator and scott mills as the spokesperson before 2013?
CREATE TABLE table_name_51 (semi_final_second_television_commentator VARCHAR, year_s_ VARCHAR, final_television_commentator VARCHAR, spokesperson VARCHAR)
SELECT MIN(u_wins) FROM table_name_52 WHERE alianza_wins > 0 AND alianza_goals > 25 AND draws = 99
What is the lowest U Wins, when Alianza Wins is greater than 0, when Alianza Goals is greater than 25, and when Draws is "99"?
CREATE TABLE table_name_52 (u_wins INTEGER, draws VARCHAR, alianza_wins VARCHAR, alianza_goals VARCHAR)
SELECT COUNT(result) FROM table_26263322_1 WHERE background = "University Student"
How many times was the background university student?
CREATE TABLE table_26263322_1 (result VARCHAR, background VARCHAR)
SELECT womens_doubles FROM table_27753492_2 WHERE mixed_doubles = "Sudket Prapakamol Saralee Thungthongkam"
Who is the women's doubles when the mixed doubles are sudket prapakamol saralee thungthongkam?
CREATE TABLE table_27753492_2 (womens_doubles VARCHAR, mixed_doubles VARCHAR)
SELECT MIN(draw) FROM table_name_76 WHERE english_translation = "someone like you"
For the English translation Someone Like You, what is the lowest draw?
CREATE TABLE table_name_76 (draw INTEGER, english_translation VARCHAR)
SELECT date FROM table_name_86 WHERE high_rebounds = "yao ming (10)"
What is Date, when High Rebounds is "Yao Ming (10)"?
CREATE TABLE table_name_86 (date VARCHAR, high_rebounds VARCHAR)
SELECT nhl_team FROM table_1965650_8 WHERE player = "Jim Koleff"
What NHL team did jim koleff play on?
CREATE TABLE table_1965650_8 (nhl_team VARCHAR, player VARCHAR)
SELECT dutch FROM table_name_66 WHERE old_english = "/d/"
What's the Dutch when then Old English is /d/?
CREATE TABLE table_name_66 (dutch VARCHAR, old_english VARCHAR)
SELECT MIN(pick) FROM table_name_12 WHERE name = "adam gettis"
what is the pick for adam gettis?
CREATE TABLE table_name_12 (pick INTEGER, name VARCHAR)
SELECT COUNT(unemployment_rate) FROM table_22815568_12 WHERE population = 34024
Name the unemployment rate for 34024
CREATE TABLE table_22815568_12 (unemployment_rate VARCHAR, population VARCHAR)
SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Boeing 737-800" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Airbus A340-300"
Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.
CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
SELECT match FROM table_name_91 WHERE points = "8"
What match had 8 points?
CREATE TABLE table_name_91 (match VARCHAR, points VARCHAR)
SELECT record FROM table_name_49 WHERE points < 40 AND game > 25 AND score = "2–0"
Which Record has Points smaller than 40, and a Game larger than 25, and a Score of 2–0?
CREATE TABLE table_name_49 (record VARCHAR, score VARCHAR, points VARCHAR, game VARCHAR)
SELECT host_s_ FROM table_16884579_1 WHERE network = "Prime"
Name the host for prime
CREATE TABLE table_16884579_1 (host_s_ VARCHAR, network VARCHAR)
SELECT MIN(year) FROM table_22839669_12 WHERE money_list_rank = 3
In what year was his money list rank 3?
CREATE TABLE table_22839669_12 (year INTEGER, money_list_rank VARCHAR)
SELECT COUNT(DISTINCT FacID) FROM Faculty_participates_in
How many faculty members participate in an activity?
CREATE TABLE Faculty_participates_in (FacID VARCHAR)
SELECT date FROM table_name_65 WHERE team = "accrington" AND venue = "home"
What was the date of the home game against Accrington?
CREATE TABLE table_name_65 (date VARCHAR, team VARCHAR, venue VARCHAR)
SELECT driver FROM table_name_27 WHERE chassis = "t45 t44" AND rounds = "7"
What was the driver with chassis of t45 t44 and rounds of 7?
CREATE TABLE table_name_27 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR)
SELECT COUNT(crest_length__meters_) FROM table_name_87 WHERE year_of_construction > 1957 AND name = "mattmark"
Tell me the total number of crest length for year construction larger than 1957 for mattmark
CREATE TABLE table_name_87 (crest_length__meters_ VARCHAR, year_of_construction VARCHAR, name VARCHAR)
SELECT MAX(rank) FROM table_name_31 WHERE runner__up < 0
Which Rank has a Runner -up smaller than 0?
CREATE TABLE table_name_31 (rank INTEGER, runner__up INTEGER)
SELECT MAX(l) FROM table_29542147_2
What is the highest L of the tournament?
CREATE TABLE table_29542147_2 (l INTEGER)
SELECT 2002 FROM table_name_38 WHERE 2006 = "a" AND 2010 = "q1"
What is the 2002 result when 2006 is A and 2010 is Q1?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT area__km_2__ FROM table_210279_2 WHERE barangay = "Guadalupe Viejo"
what is the area where barangay is guadalupe viejo?
CREATE TABLE table_210279_2 (area__km_2__ VARCHAR, barangay VARCHAR)
SELECT player FROM table_name_39 WHERE score = 70 - 73 - 69 - 72 = 284
What player scored 70-73-69-72=284?
CREATE TABLE table_name_39 (player VARCHAR, score VARCHAR)
SELECT MIN(goals_for) FROM table_name_32 WHERE goals_against = 70 AND ties < 0
what is the least number of goals for when the goals against is 70 and the ties less than 0?
CREATE TABLE table_name_32 (goals_for INTEGER, goals_against VARCHAR, ties VARCHAR)
SELECT position FROM table_name_14 WHERE overall < 64 AND round = 1
Which position has an Overall smaller than 64, and a Round of 1?
CREATE TABLE table_name_14 (position VARCHAR, overall VARCHAR, round VARCHAR)
SELECT round_4 FROM table_name_45 WHERE round_1 > 19 AND round_2 = "27"
Round 4 for larger than 19 Round 1 and a 27 Round 2?
CREATE TABLE table_name_45 (round_4 VARCHAR, round_1 VARCHAR, round_2 VARCHAR)
SELECT erp__analog__digital_ FROM table_name_27 WHERE region_served = "rockhampton"
What is the ERP for the Rockhampton region?
CREATE TABLE table_name_27 (erp__analog__digital_ VARCHAR, region_served VARCHAR)
SELECT MIN(crowd) FROM table_name_77 WHERE venue = "windy hill"
What was the lowest attendance at Windy Hill?
CREATE TABLE table_name_77 (crowd INTEGER, venue VARCHAR)
SELECT entrant FROM table_name_47 WHERE engine = "vanwall straight-4"
Which Entrant has a vanwall straight-4 engine?
CREATE TABLE table_name_47 (entrant VARCHAR, engine VARCHAR)
SELECT format FROM table_1000181_1 WHERE state_territory = "South Australia"
What is the format for South Australia?
CREATE TABLE table_1000181_1 (format VARCHAR, state_territory VARCHAR)
SELECT launched FROM table_name_94 WHERE name = "garibaldets (гарибальдиец)"
when was garibaldets (гарибальдиец) launched?
CREATE TABLE table_name_94 (launched VARCHAR, name VARCHAR)
SELECT opponent FROM table_name_26 WHERE record = "1–3–0"
Who is the Opponent in the game with a Record of 1–3–0?
CREATE TABLE table_name_26 (opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_99 WHERE loss = "drese (2-2)"
What was the score of the game that had a loss of Drese (2-2)?
CREATE TABLE table_name_99 (score VARCHAR, loss VARCHAR)
SELECT Date_of_ceremony, RESULT FROM music_festival
Return the dates of ceremony and the results of all music festivals
CREATE TABLE music_festival (Date_of_ceremony VARCHAR, RESULT VARCHAR)
SELECT being__qualities_ FROM table_name_52 WHERE having__things_ = "language, religions, work, customs, values, norms"
Name the being for having things of language, religions, work, customs, values, norms?
CREATE TABLE table_name_52 (being__qualities_ VARCHAR, having__things_ VARCHAR)
SELECT losing_bonus FROM table_name_31 WHERE points_for = "190"
WHAT IS THE LOSING BONUS WITH 190 POINTS?
CREATE TABLE table_name_31 (losing_bonus VARCHAR, points_for VARCHAR)
SELECT AVG(laps) FROM table_name_42 WHERE driver = "niki lauda" AND grid < 3
How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?
CREATE TABLE table_name_42 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT MIN(grid) FROM table_name_31 WHERE laps = 10 AND driver = "jonathan summerton"
What is the smallest grid number that had 10 laps listed with Jonathan Summerton as the driver?
CREATE TABLE table_name_31 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT MAX(attendance) FROM table_name_25 WHERE week = 9
What was the Attendance on Week 9?
CREATE TABLE table_name_25 (attendance INTEGER, week VARCHAR)
SELECT description FROM table_15162503_1 WHERE viewers_selection = "Nan"
What was the description when the viewers selected Nan?
CREATE TABLE table_15162503_1 (description VARCHAR, viewers_selection VARCHAR)
SELECT clubdesc FROM club WHERE clubname = "Pen and Paper Gaming"
Find the description of the club "Pen and Paper Gaming".
CREATE TABLE club (clubdesc VARCHAR, clubname VARCHAR)
SELECT team AS captain FROM table_26593762_2 WHERE manager = "Dave Jones"
Who is the captain of Dave Jones' team?
CREATE TABLE table_26593762_2 (team VARCHAR, manager VARCHAR)
SELECT city FROM table_name_84 WHERE venue = "hayman hall (tom gola arena)"
In which city is Hayman Hall (Tom Gola Arena) located?
CREATE TABLE table_name_84 (city VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_59 WHERE week = 14
Tell me the opponent of week 14
CREATE TABLE table_name_59 (opponent VARCHAR, week VARCHAR)
SELECT COUNT(total) FROM table_name_23 WHERE first_round = "0" AND finals < 5
Can you tell me the total number of Total that has the First round of 0, and the Finals smaller than 5?
CREATE TABLE table_name_23 (total VARCHAR, first_round VARCHAR, finals VARCHAR)
SELECT country FROM table_14752049_6 WHERE change__2011_to_2012_ = "+13.4%"
When the change (2011 to 2012) is +13.4% what is the country?
CREATE TABLE table_14752049_6 (country VARCHAR, change__2011_to_2012_ VARCHAR)
SELECT MAX(attendance) FROM table_name_15 WHERE game < 1
Tell me the most attendance for game less than 1
CREATE TABLE table_name_15 (attendance INTEGER, game INTEGER)
SELECT region FROM table_name_1 WHERE host = "university of southern california"
What region is the host university of southern california located?
CREATE TABLE table_name_1 (region VARCHAR, host VARCHAR)
SELECT director FROM table_name_90 WHERE title = "the fugitive"
What is the Director of the Film The Fugitive?
CREATE TABLE table_name_90 (director VARCHAR, title VARCHAR)
SELECT SUM(grid) FROM table_name_84 WHERE driver = "giancarlo fisichella"
Tell me the sum of Grid for giancarlo fisichella
CREATE TABLE table_name_84 (grid INTEGER, driver VARCHAR)
SELECT university FROM table_27369069_1 WHERE soccer_stadium = "Moncton Stadium"
Which University's soccer stadium in named Moncton Stadium?
CREATE TABLE table_27369069_1 (university VARCHAR, soccer_stadium VARCHAR)
SELECT record FROM table_name_6 WHERE leading_scorer = "antawn jamison (14)"
What is the record when the leading scorer is Antawn Jamison (14)?
CREATE TABLE table_name_6 (record VARCHAR, leading_scorer VARCHAR)
SELECT score FROM table_name_95 WHERE date = "october 7"
What is the score on october 7?
CREATE TABLE table_name_95 (score VARCHAR, date VARCHAR)
SELECT current_club FROM table_name_87 WHERE height < 1.9500000000000002 AND position = "pg/sg"
What is the Current Club of the PG/SG player with a Height of less than 1.9500000000000002?
CREATE TABLE table_name_87 (current_club VARCHAR, height VARCHAR, position VARCHAR)
SELECT sspec_number FROM table_name_68 WHERE model_number = "atom n475"
What is sSpec Number, when Model Number is Atom N475?
CREATE TABLE table_name_68 (sspec_number VARCHAR, model_number VARCHAR)
SELECT to_par FROM table_name_53 WHERE score = 67 - 67 = 134
What is the to par for the player with score of 67-67=134?
CREATE TABLE table_name_53 (to_par VARCHAR, score VARCHAR)
SELECT visitor FROM table_name_64 WHERE home = "bulls"
Which Visitor has a Home of bulls?
CREATE TABLE table_name_64 (visitor VARCHAR, home VARCHAR)
SELECT player FROM table_name_99 WHERE college = "wyoming"
Which player went to the College of Wyoming?
CREATE TABLE table_name_99 (player VARCHAR, college VARCHAR)
SELECT AVG(mintage) FROM table_name_75 WHERE artist = "celia godkin" AND year < 2010
What was the average mintage for that of artist Celia Godkin, before the year 2010?
CREATE TABLE table_name_75 (mintage INTEGER, artist VARCHAR, year VARCHAR)
SELECT SUM(laps) FROM table_name_90 WHERE pos = "6th" AND year = 1998
How many laps did the 6th placed in 1998 complete?
CREATE TABLE table_name_90 (laps INTEGER, pos VARCHAR, year VARCHAR)
SELECT MAX(joined_prsl) FROM table_name_31 WHERE founded = 2007 AND stadium = "roberto clemente stadium 1"
when is the latest to join prsl when founded in 2007 and the stadium is roberto clemente stadium 1?
CREATE TABLE table_name_31 (joined_prsl INTEGER, founded VARCHAR, stadium VARCHAR)
SELECT nationality FROM table_name_73 WHERE years_for_jazz = "1974-79"
What is the nationality of the player on the Jazz from 1974-79?
CREATE TABLE table_name_73 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT traditional_chinese FROM table_name_14 WHERE standard_order > 9 AND simplified_chinese = "国殇"
What is the Traditional Chinese of 国殇 which is over 9?
CREATE TABLE table_name_14 (traditional_chinese VARCHAR, standard_order VARCHAR, simplified_chinese VARCHAR)
SELECT opponent FROM table_name_64 WHERE date = "17 november 2002"
Which Opponent is on 17 november 2002?
CREATE TABLE table_name_64 (opponent VARCHAR, date VARCHAR)
SELECT AVG(bronze) FROM table_name_18 WHERE silver = 0 AND total < 1
What is the average value of Bronze when silver is 0 and the total is less than 1?
CREATE TABLE table_name_18 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT team FROM table_name_72 WHERE points < 167 AND class = "250cc"
Which team had fewer than 167 points in the 250cc class?
CREATE TABLE table_name_72 (team VARCHAR, points VARCHAR, class VARCHAR)
SELECT MAX(no) FROM table_23294081_11
What is the highest episode number?
CREATE TABLE table_23294081_11 (no INTEGER)
SELECT SUM(year_left) FROM table_name_71 WHERE location = "culver"
What year did Culver leave?
CREATE TABLE table_name_71 (year_left INTEGER, location VARCHAR)
SELECT pos FROM table_name_35 WHERE year = 1997
What was the position in 1997?
CREATE TABLE table_name_35 (pos VARCHAR, year VARCHAR)
SELECT MAX(rank) FROM table_name_52 WHERE name = "travis watson" AND games < 14
What is the highest Rank, when Name is Travis Watson, and when Games is less than 14?
CREATE TABLE table_name_52 (rank INTEGER, name VARCHAR, games VARCHAR)
SELECT high_rebounds FROM table_27700375_10 WHERE game = 69
who had high rebounds at game 69?
CREATE TABLE table_27700375_10 (high_rebounds VARCHAR, game VARCHAR)
SELECT plural FROM table_name_33 WHERE singular = "tor (your)"
What is Plural, when Singular is tor (your)?
CREATE TABLE table_name_33 (plural VARCHAR, singular VARCHAR)
SELECT score FROM table_name_76 WHERE tournament = "tanjung selor, indonesia"
What Score has a Tournament of tanjung selor, indonesia?
CREATE TABLE table_name_76 (score VARCHAR, tournament VARCHAR)
SELECT college_junior_club_team FROM table_name_11 WHERE round = 2
Which College/junior/club team has a Round of 2?
CREATE TABLE table_name_11 (college_junior_club_team VARCHAR, round VARCHAR)
SELECT the_wørd FROM table_25691838_6 WHERE production_code = 6084
What was The Word for production code 6084?
CREATE TABLE table_25691838_6 (the_wørd VARCHAR, production_code VARCHAR)
SELECT opponent FROM table_name_80 WHERE date = "december 18, 2005"
Who was the opponent on December 18, 2005?
CREATE TABLE table_name_80 (opponent VARCHAR, date VARCHAR)
SELECT SUM(bronze) FROM table_name_70 WHERE total > 2 AND gold > 2
How many bronze medals were won when the total was larger than 2 and the more than 2 gold medals were won?
CREATE TABLE table_name_70 (bronze INTEGER, total VARCHAR, gold VARCHAR)
SELECT italian FROM table_name_44 WHERE common_english = "glarus"
What is the italian word for Glarus?
CREATE TABLE table_name_44 (italian VARCHAR, common_english VARCHAR)
SELECT MAX(wins) FROM table_name_76 WHERE top_25 = 13 AND events < 32
What is the highest number of wins that has a top-25 of 13 and events less than 32?
CREATE TABLE table_name_76 (wins INTEGER, top_25 VARCHAR, events VARCHAR)
SELECT winnings FROM table_21297652_1 WHERE driver = "Dale Jarrett"
How much did Dale Jarrett win?
CREATE TABLE table_21297652_1 (winnings VARCHAR, driver VARCHAR)
SELECT COUNT(opponents) FROM table_2151643_3 WHERE outcome = "Winner" AND partner = "John Lloyd" AND surface = "Clay"
What was the total number of matches that had an outcome of Winner, a partner of John Lloyd, and a clay surface?
CREATE TABLE table_2151643_3 (opponents VARCHAR, surface VARCHAR, outcome VARCHAR, partner VARCHAR)
SELECT MAX(total) FROM table_name_80 WHERE gold = 0 AND silver > 0 AND nation = "ukraine"
Which total is highest with 0 gold and more than 0 silver, in Ukraine?
CREATE TABLE table_name_80 (total INTEGER, nation VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MAX(played) FROM table_name_9 WHERE lost < 11 AND drawn < 12
What is the highest number of played of the team with less than 11 losses and less than 12 drawns?
CREATE TABLE table_name_9 (played INTEGER, lost VARCHAR, drawn VARCHAR)
SELECT res FROM table_name_65 WHERE record = "15-7"
What was the resolution of the fight when tim hague had a record of 15-7?
CREATE TABLE table_name_65 (res VARCHAR, record VARCHAR)
SELECT COUNT(winner) FROM table_178242_7 WHERE runner_up = "Regina"
How many won the prize when Regina was the runner-up?
CREATE TABLE table_178242_7 (winner VARCHAR, runner_up VARCHAR)
SELECT cost_per_capita FROM table_12340907_1 WHERE total_costs__2005_ = "$700,116"
When total costs (2005) are $700,116, what is the cost per capita?
CREATE TABLE table_12340907_1 (cost_per_capita VARCHAR, total_costs__2005_ VARCHAR)
SELECT COUNT(title) FROM table_25800134_12 WHERE airdate = "September 25, 1967"
How many episode titles aired on September 25, 1967?
CREATE TABLE table_25800134_12 (title VARCHAR, airdate VARCHAR)
SELECT visitor FROM table_name_94 WHERE date = "december 15, 1976"
Who was the visitor on december 15, 1976?
CREATE TABLE table_name_94 (visitor VARCHAR, date VARCHAR)
SELECT MAX(snatch) FROM table_name_65 WHERE bodyweight = 68.63 AND total__kg_ < 290
Tell me the highest snatch for 68.63 bodyweight and total kg less than 290
CREATE TABLE table_name_65 (snatch INTEGER, bodyweight VARCHAR, total__kg_ VARCHAR)
SELECT viewers__in_millions_ FROM table_175980_2 WHERE ranking = "#51" AND timeslot = "Tuesday 9:00 p.m."
What is every value for viewers for ranking #51 for the Tuesday 9:00 p.m. timeslot?
CREATE TABLE table_175980_2 (viewers__in_millions_ VARCHAR, ranking VARCHAR, timeslot VARCHAR)
SELECT barony FROM table_30120566_1 WHERE townland = "Dawstown" AND civil_parish = "Matehy"
In what barony are both the townland Dawstown and the civil parish Matehy located?
CREATE TABLE table_30120566_1 (barony VARCHAR, townland VARCHAR, civil_parish VARCHAR)
SELECT AVG(points) FROM table_name_12 WHERE name = "svg burgkirchen" AND lost < 6
How many average points did svg burgkirchen have with a loss smaller than 6?
CREATE TABLE table_name_12 (points INTEGER, name VARCHAR, lost VARCHAR)
SELECT COUNT(*), T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name
Find the number of checking accounts for each account name.
CREATE TABLE checking (custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
SELECT result FROM table_1341577_47 WHERE district = "Virginia 3"
What was the result of the election in the Virginia 3 district?
CREATE TABLE table_1341577_47 (result VARCHAR, district VARCHAR)
SELECT MAX(january) FROM table_27539272_7 WHERE record = "10-29-2"
On what day of January was the record 10-29-2?
CREATE TABLE table_27539272_7 (january INTEGER, record VARCHAR)
SELECT record FROM table_name_97 WHERE date = "december 9"
What is the Record with a Date with december 9?
CREATE TABLE table_name_97 (record VARCHAR, date VARCHAR)
SELECT COUNT(episode) FROM table_23292220_8 WHERE seans_team = "Jeremy Clarkson and James McQuillan"
In how many episodes did Sean's team include Jeremy Clarkson and James McQuillan?
CREATE TABLE table_23292220_8 (episode VARCHAR, seans_team VARCHAR)