answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT municipality FROM table_name_94 WHERE rank = 44
What Municipality has a Rank of 44?
CREATE TABLE table_name_94 (municipality VARCHAR, rank VARCHAR)
SELECT home_team FROM table_name_68 WHERE away_team = "crystal palace"
What home team played against Crystal Palace?
CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_66 WHERE attendance = 2248
What is the score of the match with an attendance of 2248?
CREATE TABLE table_name_66 (score VARCHAR, attendance VARCHAR)
SELECT best_winning_average FROM table_27533947_1 WHERE games_won = 5
If the games won are 5, what is the best winning average?
CREATE TABLE table_27533947_1 (best_winning_average VARCHAR, games_won VARCHAR)
SELECT COUNT(goals) FROM table_name_87 WHERE apps < 26 AND club = "werder bremen"
How many goals did he score with under 26 appearances for werder bremen?
CREATE TABLE table_name_87 (goals VARCHAR, apps VARCHAR, club VARCHAR)
SELECT years_in_toronto FROM table_name_33 WHERE player = "hakeem olajuwon"
What year(s) did Hakeem Olajuwon play Center for Toronto?
CREATE TABLE table_name_33 (years_in_toronto VARCHAR, player VARCHAR)
SELECT wpct FROM table_name_7 WHERE "wins" = "wins"
What WPct has wins of wins?
CREATE TABLE table_name_7 (wpct VARCHAR)
SELECT method FROM table_name_55 WHERE opponent = "alberto rodriguez"
How did he beat Alberto Rodriguez?
CREATE TABLE table_name_55 (method VARCHAR, opponent VARCHAR)
SELECT COUNT(time) FROM table_name_15 WHERE react = 0.155 AND athlete = "kristof beyens" AND rank < 3
How much Time has a Reaction of 0.155, and an Athlete of kristof beyens, and a Rank smaller than 3?
CREATE TABLE table_name_15 (time VARCHAR, rank VARCHAR, react VARCHAR, athlete VARCHAR)
SELECT score FROM table_name_4 WHERE date = "26 may 1997"
Name the score for 26 may 1997
CREATE TABLE table_name_4 (score VARCHAR, date VARCHAR)
SELECT Name FROM representative WHERE NOT Representative_ID IN (SELECT Representative_ID FROM election)
List the names of representatives that have not participated in elections listed here.
CREATE TABLE election (Name VARCHAR, Representative_ID VARCHAR); CREATE TABLE representative (Name VARCHAR, Representative_ID VARCHAR)
SELECT COUNT(number_of_seasons_in_top_division) FROM table_1510519_1 WHERE position_in_2012_13 = "005 5th"
How many seasons in the top division for the team that finished 005 5th in 2012-2013
CREATE TABLE table_1510519_1 (number_of_seasons_in_top_division VARCHAR, position_in_2012_13 VARCHAR)
SELECT AVG(pole_positions) FROM table_name_33 WHERE percentage = "44.81%"
What's the average pole position for the driver that has a percentage of 44.81%?
CREATE TABLE table_name_33 (pole_positions INTEGER, percentage VARCHAR)
SELECT MAX(town_ships) FROM table_19457_1 WHERE no = 2
How many townships are there in region number 2?
CREATE TABLE table_19457_1 (town_ships INTEGER, no VARCHAR)
SELECT tournament FROM table_name_75 WHERE surface = "hard" AND finalist = "jan-michael gambill (19)"
Where was the tournament where the match was on a hard surface and jan-michael gambill (19) was the finalist?
CREATE TABLE table_name_75 (tournament VARCHAR, surface VARCHAR, finalist VARCHAR)
SELECT result FROM table_name_26 WHERE week__number = "top 8"
What was the result during the week # of top 8?
CREATE TABLE table_name_26 (result VARCHAR, week__number VARCHAR)
SELECT away_team FROM table_name_2 WHERE venue = "junction oval"
Who was the away team at Junction Oval?
CREATE TABLE table_name_2 (away_team VARCHAR, venue VARCHAR)
SELECT AVG(top_25) FROM table_name_79 WHERE cuts_made = 16 AND events < 23
What is the average of the top-25 with 16 cuts and less than 23 events?
CREATE TABLE table_name_79 (top_25 INTEGER, cuts_made VARCHAR, events VARCHAR)
SELECT urban_area__locality_ FROM table_16796625_1 WHERE code = 4870
Which urban area has the code 4870?
CREATE TABLE table_16796625_1 (urban_area__locality_ VARCHAR, code VARCHAR)
SELECT home_team FROM table_name_32 WHERE date = "27 january 1968" AND away_team = "carlisle united"
On 27 January 1968 who was the Home Team when the Away team was Carlisle United?
CREATE TABLE table_name_32 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT money___$__ FROM table_name_44 WHERE place = "t6" AND country = "spain"
For a country of Spain, place of t6, what is the Money ($)?
CREATE TABLE table_name_44 (money___$__ VARCHAR, place VARCHAR, country VARCHAR)
SELECT songwriter_s_ FROM table_name_84 WHERE production_credits = "nigel wright and john smits" AND track = 4
Who was the songwriter for Track 4, produced by nigel wright and john smits?
CREATE TABLE table_name_84 (songwriter_s_ VARCHAR, production_credits VARCHAR, track VARCHAR)
SELECT SUM(poles) FROM table_name_53 WHERE season = "2005" AND series = "formula three sudamericana"
Can you tell me the sum of Poles that has the Season of 2005, and the Series of formula three sudamericana?
CREATE TABLE table_name_53 (poles INTEGER, season VARCHAR, series VARCHAR)
SELECT country___endonym__ FROM table_1008653_9 WHERE official_or_native_language_s___alphabet_script_ = "Irish English"
In which country (endonym) is Irish English the official or native language(s) (alphabet/script)?
CREATE TABLE table_1008653_9 (country___endonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR)
SELECT record FROM table_name_9 WHERE game > 15 AND opponent = "edmonton oilers"
Can you tell me the Record that has the Game larger than 15, and the Opponent of edmonton oilers?
CREATE TABLE table_name_9 (record VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT nhl_team FROM table_name_57 WHERE player = "roman vopat"
On what NHL team does Roman Vopat play for?
CREATE TABLE table_name_57 (nhl_team VARCHAR, player VARCHAR)
SELECT COUNT(goals_conceded) FROM table_name_54 WHERE place < 8 AND played > 18
If the place is smaller than 8 and they played more than 18, what is the total number of goals conceded?
CREATE TABLE table_name_54 (goals_conceded VARCHAR, place VARCHAR, played VARCHAR)
SELECT males FROM table_name_57 WHERE language = "persons that didn't name their native language"
Name the males for language of persons that didn't name their native language
CREATE TABLE table_name_57 (males VARCHAR, language VARCHAR)
SELECT eagle_riders FROM table_name_27 WHERE japanese_voice_actor = "katsuji mori"
What is the Eagle Riders character voiced by Japanese voice actor Katsuji Mori?
CREATE TABLE table_name_27 (eagle_riders VARCHAR, japanese_voice_actor VARCHAR)
SELECT power__kw_ FROM table_name_59 WHERE frequency = "102.3mhz" AND location = "baguio"
What is the power at Baguio where the frequency is 102.3mhz?
CREATE TABLE table_name_59 (power__kw_ VARCHAR, frequency VARCHAR, location VARCHAR)
SELECT school_club_team FROM table_name_5 WHERE player = "aaron williams"
What School/Club Team is Player Aaron Williams from?
CREATE TABLE table_name_5 (school_club_team VARCHAR, player VARCHAR)
SELECT SUM(version) FROM table_name_89 WHERE name = "coptic small letter sampi" AND year > 2005
Give the sum of the version with the coptic small letter sampi, and a year after 2005.
CREATE TABLE table_name_89 (version INTEGER, name VARCHAR, year VARCHAR)
SELECT no_s_ FROM table_name_29 WHERE school_club_team_country = "virginia"
What is the number of the player who came from Virginia?
CREATE TABLE table_name_29 (no_s_ VARCHAR, school_club_team_country VARCHAR)
SELECT college FROM table_name_93 WHERE player = "jon hameister-ries"
Which college does the player jon hameister-ries play for?
CREATE TABLE table_name_93 (college VARCHAR, player VARCHAR)
SELECT SUM(fa_cup_goals) FROM table_name_12 WHERE total_apps = "10 (4)"
what is the fa cup goals when total apps is 10 (4)?
CREATE TABLE table_name_12 (fa_cup_goals INTEGER, total_apps VARCHAR)
SELECT MAX(silver) FROM table_name_62 WHERE bronze > 0 AND total > 1 AND gold > 0 AND nation = "china (chn)"
what is the most silver when bronze is more than 0, total is more than 1, gold is more than 0 and the nation is china (chn)?
CREATE TABLE table_name_62 (silver INTEGER, nation VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT score FROM table_name_91 WHERE attendance < 83 AND away_team = "raunds town"
What is the score when the attendance is less than 83 and Raunds Town is the away team?
CREATE TABLE table_name_91 (score VARCHAR, attendance VARCHAR, away_team VARCHAR)
SELECT inns_of_court_and_chancery FROM table_16677738_1 WHERE without_the_walls = 70489
When 70489 is without walls what is the inns of court and chancery?
CREATE TABLE table_16677738_1 (inns_of_court_and_chancery VARCHAR, without_the_walls VARCHAR)
SELECT round FROM table_name_4 WHERE pick > 231 AND draft > 1988 AND player = "adam cracknell"
Which Round was Player Adam Cracknell Picked after 231 in a Draft year after 1988?
CREATE TABLE table_name_4 (round VARCHAR, player VARCHAR, pick VARCHAR, draft VARCHAR)
SELECT state FROM table_name_15 WHERE member = "tanya plibersek"
What state is Tanya Plibersek from?
CREATE TABLE table_name_15 (state VARCHAR, member VARCHAR)
SELECT title FROM table_26429658_1 WHERE production_code = 2010
What was the title of the episode with a production code of 2010?
CREATE TABLE table_26429658_1 (title VARCHAR, production_code VARCHAR)
SELECT opponent FROM table_name_11 WHERE method = "tko (doctor stoppage)" AND res = "loss"
The tko (doctor stoppage) method was used in a loss against which opponent?
CREATE TABLE table_name_11 (opponent VARCHAR, method VARCHAR, res VARCHAR)
SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE
List each language and the number of TV Channels using it.
CREATE TABLE TV_Channel (LANGUAGE VARCHAR)
SELECT save FROM table_name_67 WHERE score = "7-6"
What is the save of the game with a 7-6 score?
CREATE TABLE table_name_67 (save VARCHAR, score VARCHAR)
SELECT result FROM table_21269143_1 WHERE round = "13"
Name the result for round 13
CREATE TABLE table_21269143_1 (result VARCHAR, round VARCHAR)
SELECT MAX(labour_panel) FROM table_name_43 WHERE cultural_and_educational_panel > 1 AND university_of_dublin > 0 AND total < 60
What is the highest labour panel value with a cultural and educational panel greater than 1, a University of Dublin value greater than 0, and a total value less than 60?
CREATE TABLE table_name_43 (labour_panel INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR)
SELECT 2 AS nd_leg FROM table_name_75 WHERE team_2 = "belasica"
What is the score for the 2nd leg when Belasica is team 2?
CREATE TABLE table_name_75 (team_2 VARCHAR)
SELECT MAX(year) FROM table_26669939_1
What was the most recent year?
CREATE TABLE table_26669939_1 (year INTEGER)
SELECT score FROM table_name_46 WHERE visitor = "montreal canadiens" AND date = "february 18"
What's the score on february 18 when the visitors are the montreal canadiens?
CREATE TABLE table_name_46 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT regulatory_citation FROM table_name_11 WHERE standard = "15 μg/m³"
what is the regulatory citation when the standard is 15 μg/m³?
CREATE TABLE table_name_11 (regulatory_citation VARCHAR, standard VARCHAR)
SELECT class FROM table_name_31 WHERE frequency = "91.9 fm"
Which class has a frequency of 91.9 fm?
CREATE TABLE table_name_31 (class VARCHAR, frequency VARCHAR)
SELECT opponent FROM table_name_32 WHERE method = "tko"
Who was the opponent when there was a TKO method?
CREATE TABLE table_name_32 (opponent VARCHAR, method VARCHAR)
SELECT COUNT(season__number) FROM table_17356106_1 WHERE directed_by = "Joanna Kerns"
What was the number of seasons that was directed by Joanna Kerns?
CREATE TABLE table_17356106_1 (season__number VARCHAR, directed_by VARCHAR)
SELECT buddhism FROM table_name_6 WHERE christianity = "52.32%"
What is the percentage of Buddhists associated with a Christianity percentage of 52.32%?
CREATE TABLE table_name_6 (buddhism VARCHAR, christianity VARCHAR)
SELECT hometown__previous_school_ FROM table_name_72 WHERE name = "tim williams"
What is the Hometown of Tim Williams?
CREATE TABLE table_name_72 (hometown__previous_school_ VARCHAR, name VARCHAR)
SELECT away FROM table_name_61 WHERE result = "1-5 aet"
Who was the Away team on the result of 1-5 aet?
CREATE TABLE table_name_61 (away VARCHAR, result VARCHAR)
SELECT goals_against FROM table_name_82 WHERE points = 58
How many goals against have 58 points?
CREATE TABLE table_name_82 (goals_against VARCHAR, points VARCHAR)
SELECT SUM(founded) FROM table_name_47 WHERE left = "1976"
What is the total number of teams founded that were left in 1976?
CREATE TABLE table_name_47 (founded INTEGER, left VARCHAR)
SELECT imperial_value FROM table_name_51 WHERE jyutping = "cin4"
what's the imperial that contains a jyutping of cin4?
CREATE TABLE table_name_51 (imperial_value VARCHAR, jyutping VARCHAR)
SELECT SUM(comp) FROM table_name_94 WHERE yds_game < 209.5 AND name = "brytus" AND rating < 100
Name the sum of Comp which has a Yds/game smaller than 209.5,brytus Name, and a Rating smaller than 100?
CREATE TABLE table_name_94 (comp INTEGER, rating VARCHAR, yds_game VARCHAR, name VARCHAR)
SELECT driver___passenger FROM table_name_9 WHERE bike_no < 4 AND equipment = "zabel -vmc"
Which Driver and passenger have a bike number of less than 4 with zabel -vmc equipment?
CREATE TABLE table_name_9 (driver___passenger VARCHAR, bike_no VARCHAR, equipment VARCHAR)
SELECT name FROM table_name_44 WHERE best = "1:15.673"
What is Name, when Best is 1:15.673?
CREATE TABLE table_name_44 (name VARCHAR, best VARCHAR)
SELECT position FROM table_2850912_12 WHERE player = "Allister Brown"
What position does allister brown play.
CREATE TABLE table_2850912_12 (position VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_60 WHERE pick = 139
Which school or club team has a pick of 139?
CREATE TABLE table_name_60 (school_club_team VARCHAR, pick VARCHAR)
SELECT name FROM table_name_96 WHERE years = "1974"
What is the name of the head coach of 1974?
CREATE TABLE table_name_96 (name VARCHAR, years VARCHAR)
SELECT mls_cup_winner FROM table_11148572_1 WHERE mls_cup_runner_up = "Colorado Rapids"
What is the name of the shield winner in which the mls cup winner and mls cup runner up is colorado rapids?
CREATE TABLE table_11148572_1 (mls_cup_winner VARCHAR, mls_cup_runner_up VARCHAR)
SELECT MAX(opening_week_nett_gross) FROM table_name_42 WHERE rank < 5 AND studio_s_ = "reliance entertainment"
What is the highest opening week net gross of the movie ranked higher than 5 from Reliance Entertainment?
CREATE TABLE table_name_42 (opening_week_nett_gross INTEGER, rank VARCHAR, studio_s_ VARCHAR)
SELECT owner_s_ FROM table_name_34 WHERE description = "operational"
What owner or owners have an operational description?
CREATE TABLE table_name_34 (owner_s_ VARCHAR, description VARCHAR)
SELECT first_elected FROM table_2668264_22 WHERE incumbent = "Andrew R. Govan"
What was the first elected year that featured incumbent andrew r. govan?
CREATE TABLE table_2668264_22 (first_elected VARCHAR, incumbent VARCHAR)
SELECT Name FROM manager ORDER BY Age DESC LIMIT 1
What is the name of the oldest manager?
CREATE TABLE manager (Name VARCHAR, Age VARCHAR)
SELECT record FROM table_name_51 WHERE opponent = "katsuomi inagaki"
Which record has Katsuomi Inagaki as an opponent?
CREATE TABLE table_name_51 (record VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_40 WHERE year < 2007 AND outcome = "runner-up" AND tournament = "bulgaria open"
Who was the runner-up for the Bulgaria Open, before 2007?
CREATE TABLE table_name_40 (score VARCHAR, tournament VARCHAR, year VARCHAR, outcome VARCHAR)
SELECT MAX(laps) FROM table_name_66 WHERE driver = "mika salo" AND grid > 17
What is the high lap total for mika salo with a grid greater than 17?
CREATE TABLE table_name_66 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT year FROM table_name_70 WHERE engine = "yamaha v12" AND chassis = "brabham bt60y"
In what year did a car have a yamaha v12 engine and a brabham bt60y chassis
CREATE TABLE table_name_70 (year VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT COUNT(launch_date) FROM table_22274142_1 WHERE transmission = "Digital"
How many launch dates are there for digital transmission?
CREATE TABLE table_22274142_1 (launch_date VARCHAR, transmission VARCHAR)
SELECT SUM(pick) FROM table_name_29 WHERE round < 11 AND player = "charley casey"
How many picks had less than 11 rounds and a player of Charley Casey?
CREATE TABLE table_name_29 (pick INTEGER, round VARCHAR, player VARCHAR)
SELECT comedians FROM table_23122988_1 WHERE location = "Birmingham Hippodrome"
Who were the comedians during the episode located in Birmingham Hippodrome?
CREATE TABLE table_23122988_1 (comedians VARCHAR, location VARCHAR)
SELECT conv FROM table_name_39 WHERE pens = "0" AND tries = "0"
How many conversions had 0 pens and 0 tries?
CREATE TABLE table_name_39 (conv VARCHAR, pens VARCHAR, tries VARCHAR)
SELECT i_id FROM item WHERE title = "orange"
Find the id of the item whose title is "orange".
CREATE TABLE item (i_id VARCHAR, title VARCHAR)
SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*) > 2
List the nations that have more than two ships.
CREATE TABLE ship (Nationality VARCHAR)
SELECT analog FROM table_name_9 WHERE callsign = "wxmi"
what is the analog type for wxmi?
CREATE TABLE table_name_9 (analog VARCHAR, callsign VARCHAR)
SELECT skip FROM table_1644876_2 WHERE stolen_ends = 14
Who was the skip with 14 stolen ends?
CREATE TABLE table_1644876_2 (skip VARCHAR, stolen_ends VARCHAR)
SELECT trans_2 FROM table_name_76 WHERE swim__15km_ = "18:55" AND run__10km_ = "32:37"
With a swim (1.5km) of 18:55 and a run (10km) of 32:37, what is the trans 2?
CREATE TABLE table_name_76 (trans_2 VARCHAR, swim__15km_ VARCHAR, run__10km_ VARCHAR)
SELECT winner_2nd FROM table_name_84 WHERE jockey = "c. symons"
WHo is Winner/2nd that has c. symons?
CREATE TABLE table_name_84 (winner_2nd VARCHAR, jockey VARCHAR)
SELECT bullet FROM table_name_51 WHERE shoulder = "12.5 (.491)"
What bullet does the gun with a shoulder measurement of 12.5 (.491)?
CREATE TABLE table_name_51 (bullet VARCHAR, shoulder VARCHAR)
SELECT district FROM table_25030512_26 WHERE incumbent = "Keith Ellison"
In what district was keith ellison the incumbent?
CREATE TABLE table_25030512_26 (district VARCHAR, incumbent VARCHAR)
SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC
Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.
CREATE TABLE visitor (name VARCHAR, Level_of_membership INTEGER)
SELECT origin_of_programming FROM table_name_11 WHERE service = "dish" AND language = "malayalam" AND genre = "general" AND network = "asianet plus"
What is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network?
CREATE TABLE table_name_11 (origin_of_programming VARCHAR, network VARCHAR, genre VARCHAR, service VARCHAR, language VARCHAR)
SELECT MIN(rank) FROM table_name_60 WHERE name = "jeremiah massey" AND games < 20
What is the lowest Rank, when Name is Jeremiah Massey, and when Games is less than 20?
CREATE TABLE table_name_60 (rank INTEGER, name VARCHAR, games VARCHAR)
SELECT win_loss FROM table_name_23 WHERE coach = "peter german"
What is the win/loss of coach Peter German?
CREATE TABLE table_name_23 (win_loss VARCHAR, coach VARCHAR)
SELECT SUM(draw) FROM table_name_90 WHERE lost < 6 AND place = 5 AND goals_scored < 29
What is the sum of draw with a lost smaller than 6, and a place of 5, and a goals scored less than 29?
CREATE TABLE table_name_90 (draw INTEGER, goals_scored VARCHAR, lost VARCHAR, place VARCHAR)
SELECT role FROM table_name_19 WHERE first_us_national_tour = "roger bart"
Which Role has a First US National Tour of roger bart?
CREATE TABLE table_name_19 (role VARCHAR, first_us_national_tour VARCHAR)
SELECT MIN(value__int_) AS $1000_ FROM table_21109892_1 WHERE value_world_rank = "23"
When the value rank is 23, what is the value?
CREATE TABLE table_21109892_1 (value__int_ INTEGER, value_world_rank VARCHAR)
SELECT episode FROM table_23575917_4 WHERE first_broadcast = "3 September 2010"
What is the episode number that was first broadcast on 3 September 2010?
CREATE TABLE table_23575917_4 (episode VARCHAR, first_broadcast VARCHAR)
SELECT week_10_nov_5 FROM table_name_71 WHERE week_15__final__dec_9 = "illinois (10-1)"
What is the week 10 result for the tean when the week 15 result is Illinois (10-1)?
CREATE TABLE table_name_71 (week_10_nov_5 VARCHAR, week_15__final__dec_9 VARCHAR)
SELECT team FROM table_name_55 WHERE location_attendance = "td waterhouse centre"
What team did the Heat play against at the TD Waterhouse Centre?
CREATE TABLE table_name_55 (team VARCHAR, location_attendance VARCHAR)
SELECT home_team FROM table_name_60 WHERE away_team = "al-ain fc" AND year = "2002/03"
Which Home team has an Away team of al-ain fc, and a Year of 2002/03?
CREATE TABLE table_name_60 (home_team VARCHAR, away_team VARCHAR, year VARCHAR)
SELECT authority FROM table_name_67 WHERE gender = "coed" AND name = "chanel college"
Name the authority for coed gender and chanel college
CREATE TABLE table_name_67 (authority VARCHAR, gender VARCHAR, name VARCHAR)
SELECT position FROM table_name_74 WHERE goals = 0 AND points = 28 AND player = "mike forshaw"
Mike Forshaw had 0 goals and 28 points. What is his position?
CREATE TABLE table_name_74 (position VARCHAR, player VARCHAR, goals VARCHAR, points VARCHAR)
SELECT region FROM table_name_37 WHERE date = "april 30, 2004" AND catalog = "nebdj058"
What region is dated April 30, 2004, and cataloged Nebdj058?
CREATE TABLE table_name_37 (region VARCHAR, date VARCHAR, catalog VARCHAR)