answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(rank) FROM table_name_90 WHERE city = "cologne" AND floors = 34 AND height__ft_ > 452.8
what is the rank for the city of cologne, floors is 34 and height (ft) is more than 452.8?
CREATE TABLE table_name_90 (rank VARCHAR, height__ft_ VARCHAR, city VARCHAR, floors VARCHAR)
SELECT enemy_aircraft FROM table_name_46 WHERE soviet_unit = "437 iap" AND date__ddmmyyyy_ = "14.09.1942"
What was the enemy aircraft on 14.09.1942, when the Soviet Unit was 437 iap?
CREATE TABLE table_name_46 (enemy_aircraft VARCHAR, soviet_unit VARCHAR, date__ddmmyyyy_ VARCHAR)
SELECT Carrier FROM device WHERE NOT Device_ID IN (SELECT Device_ID FROM stock)
List the carriers of devices that have no devices in stock.
CREATE TABLE stock (Carrier VARCHAR, Device_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR)
SELECT round FROM table_name_40 WHERE opposing_team = "gillingham" AND against < 3
What is the Round against Gillingham with an Against smaller than 3?
CREATE TABLE table_name_40 (round VARCHAR, opposing_team VARCHAR, against VARCHAR)
SELECT birth FROM table_name_8 WHERE marriage = "24 may 1935"
Name the birth of the person married 24 may 1935
CREATE TABLE table_name_8 (birth VARCHAR, marriage VARCHAR)
SELECT internet_plan FROM table_name_48 WHERE price = "22 eur"
What is Internet Plan, when Price is "22 EUR"?
CREATE TABLE table_name_48 (internet_plan VARCHAR, price VARCHAR)
SELECT area FROM table_name_75 WHERE name = "morven school"
In what area is Morven School?
CREATE TABLE table_name_75 (area VARCHAR, name VARCHAR)
SELECT season FROM table_name_31 WHERE average = 37.5
Which season's average was 37.5?
CREATE TABLE table_name_31 (season VARCHAR, average VARCHAR)
SELECT country FROM table_name_2 WHERE first_store = "1991" AND hard_discounters = "397"
What country has a fire store of 1991 and a hard discounter of 397?
CREATE TABLE table_name_2 (country VARCHAR, first_store VARCHAR, hard_discounters VARCHAR)
SELECT COUNT(goal) FROM table_name_10 WHERE venue = "panama city" AND date = "11 febrero 2006"
At the venue of panama city, on 11 Febrero 2006, how many goals were scored?
CREATE TABLE table_name_10 (goal VARCHAR, venue VARCHAR, date VARCHAR)
SELECT scoring_rank FROM table_14836185_3 WHERE year = 2009
What was the scoring rank for Angela Stanford in 2009?
CREATE TABLE table_14836185_3 (scoring_rank VARCHAR, year VARCHAR)
SELECT name FROM table_name_48 WHERE employed = "1970–2005"
What is the name of the person employed 1970–2005?
CREATE TABLE table_name_48 (name VARCHAR, employed VARCHAR)
SELECT COUNT(content) FROM table_15887683_3 WHERE package_option = "qualsiasi tranne Sky HD"
How many different contents are offered by the Qualsiasi Tranne Sky HD package?
CREATE TABLE table_15887683_3 (content VARCHAR, package_option VARCHAR)
SELECT date FROM table_name_63 WHERE record = "12-9"
What date was the game when the liberty had a record of 12-9?
CREATE TABLE table_name_63 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_24 WHERE away_team = "footscray"
What date did Footscray play and Away game?
CREATE TABLE table_name_24 (date VARCHAR, away_team VARCHAR)
SELECT score FROM table_23274514_9 WHERE record = "22-53"
What was the score when the record was 22-53?
CREATE TABLE table_23274514_9 (score VARCHAR, record VARCHAR)
SELECT COUNT(no) FROM table_10015132_14 WHERE school_club_team = "Fordham"
How many number does Fordham school have?
CREATE TABLE table_10015132_14 (no VARCHAR, school_club_team VARCHAR)
SELECT catalog__number FROM table_name_36 WHERE region = "united kingdom"
What is the catalog number of the album whose region is the United Kingdom?
CREATE TABLE table_name_36 (catalog__number VARCHAR, region VARCHAR)
SELECT council_tax_id, cmi_cross_ref_id FROM parking_fines
List the council tax ids and their related cmi cross references of all the parking fines.
CREATE TABLE parking_fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR)
SELECT COUNT(candidates) FROM table_1342359_17 WHERE first_elected = 1929
How many people were elected in 1929
CREATE TABLE table_1342359_17 (candidates VARCHAR, first_elected VARCHAR)
SELECT city_or_town FROM table_name_71 WHERE longitude = "89°11′w"
What is the City or Town of the monument with a Longitude of 89°11′w?
CREATE TABLE table_name_71 (city_or_town VARCHAR, longitude VARCHAR)
SELECT date FROM table_name_20 WHERE competition = "2002 african cup of nations"
The 2002 African Cup of Nations was held on what date?
CREATE TABLE table_name_20 (date VARCHAR, competition VARCHAR)
SELECT Ends AS lost FROM table_1505809_2 WHERE blank_ends = 9
What is the value of Ends Lost when Blank Ends is 9.
CREATE TABLE table_1505809_2 (Ends VARCHAR, blank_ends VARCHAR)
SELECT constructor FROM table_name_25 WHERE driver = "jan lammers" AND rounds = "7-14"
Who was the constructor of the car that Jan Lammers made 7-14 rounds in?
CREATE TABLE table_name_25 (constructor VARCHAR, driver VARCHAR, rounds VARCHAR)
SELECT director FROM table_10953197_7 WHERE production_code = "2398204"
who directed the production code 2398204
CREATE TABLE table_10953197_7 (director VARCHAR, production_code VARCHAR)
SELECT date FROM table_name_20 WHERE sample_size < 472 AND republican = "ron paul"
What was the date for Ron Paul as republican and a sample sized less than 472?
CREATE TABLE table_name_20 (date VARCHAR, sample_size VARCHAR, republican VARCHAR)
SELECT date FROM table_name_18 WHERE singapore_gross = "1999"
What date was the Singapore Gross 1999?
CREATE TABLE table_name_18 (date VARCHAR, singapore_gross VARCHAR)
SELECT _number FROM table_21550897_1 WHERE directed_by = "Craig Ross, Jr."
What episode number was directed by Craig Ross, Jr.
CREATE TABLE table_21550897_1 (_number VARCHAR, directed_by VARCHAR)
SELECT average FROM table_17088705_2 WHERE evening_gown = "9.226"
What are the average scores of participants with 9.226 in evening gown
CREATE TABLE table_17088705_2 (average VARCHAR, evening_gown VARCHAR)
SELECT MIN(total_points) FROM table_27533947_1 WHERE best_winning_average = "7.3-71"
If the best winning average is 7.3-71, what are the total points?
CREATE TABLE table_27533947_1 (total_points INTEGER, best_winning_average VARCHAR)
SELECT language FROM table_name_43 WHERE frequency = "3 times per year" AND issn = "1136-7385"
What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385?
CREATE TABLE table_name_43 (language VARCHAR, frequency VARCHAR, issn VARCHAR)
SELECT AVG(grid) FROM table_name_87 WHERE time = "+45.855"
What is the average Grid, when Time is +45.855?
CREATE TABLE table_name_87 (grid INTEGER, time VARCHAR)
SELECT COUNT(seventh) FROM table_17111812_1 WHERE sixth = "Interpol"
When Interpol is in 6th, who is in 7th?
CREATE TABLE table_17111812_1 (seventh VARCHAR, sixth VARCHAR)
SELECT MIN(first_elected) FROM table_name_53 WHERE district = "south carolina 2"
Which First elected has a District of south carolina 2?
CREATE TABLE table_name_53 (first_elected INTEGER, district VARCHAR)
SELECT founded FROM table_2076608_3 WHERE school = "Hartland College"
What year was Hartland College founded?
CREATE TABLE table_2076608_3 (founded VARCHAR, school VARCHAR)
SELECT home_team AS score FROM table_name_59 WHERE home_team = "st kilda"
What was the score when St Kilda played as the home team?
CREATE TABLE table_name_59 (home_team VARCHAR)
SELECT rank_on_channel FROM table_26493520_3 WHERE original_air_date = "January 21, 2011"
Name the rank on channel for january 21, 2011
CREATE TABLE table_26493520_3 (rank_on_channel VARCHAR, original_air_date VARCHAR)
SELECT surface FROM table_name_93 WHERE date = "january 8, 2001"
Name the surface for january 8, 2001
CREATE TABLE table_name_93 (surface VARCHAR, date VARCHAR)
SELECT COUNT(tries) FROM table_name_83 WHERE conv < 45 AND start = 19 AND pens < 22
What is the total of tries for a player with conv smaller than 45, 19 starts and pens fewer than 22?
CREATE TABLE table_name_83 (tries VARCHAR, pens VARCHAR, conv VARCHAR, start VARCHAR)
SELECT score FROM table_name_21 WHERE date = "march 19"
What is the Score of the game on March 19?
CREATE TABLE table_name_21 (score VARCHAR, date VARCHAR)
SELECT club FROM table_name_38 WHERE goals_for > 35 AND draws > 7 AND losses = 20
What club has more than 35 goals, more than 7 draws, and 20 losses?
CREATE TABLE table_name_38 (club VARCHAR, losses VARCHAR, goals_for VARCHAR, draws VARCHAR)
SELECT COUNT(team_nickname) FROM table_28243691_1 WHERE location = "College Station, Texas"
How many mascotts are there for college station, texas
CREATE TABLE table_28243691_1 (team_nickname VARCHAR, location VARCHAR)
SELECT MAX(round) FROM table_name_14 WHERE position = "running back"
Which Round is the highest one that has a Position of running back?
CREATE TABLE table_name_14 (round INTEGER, position VARCHAR)
SELECT year_s__won FROM table_name_62 WHERE country = "united states" AND total > 152
Can you tell me the Year(s) Won that has the Country of united states, and the Total larger than 152?
CREATE TABLE table_name_62 (year_s__won VARCHAR, country VARCHAR, total VARCHAR)
SELECT COUNT(opponents) FROM table_1028356_3 WHERE partner = "Jim Pugh"
How many matches where played with Jim Pugh?
CREATE TABLE table_1028356_3 (opponents VARCHAR, partner VARCHAR)
SELECT name FROM table_name_45 WHERE shoulder = "10.688 (.420)"
What is the name of the gun with a shoulder that measures 10.688 (.420)?
CREATE TABLE table_name_45 (name VARCHAR, shoulder VARCHAR)
SELECT record FROM table_name_26 WHERE week > 12 AND game_site = "bye"
What's the record after week 12 with a game site of bye?
CREATE TABLE table_name_26 (record VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT score FROM table_name_9 WHERE money__$_ = "5,000"
What was the score of the player who earned $5,000?
CREATE TABLE table_name_9 (score VARCHAR, money__$_ VARCHAR)
SELECT film FROM table_name_54 WHERE director = "william a. wellman" AND year > 1931 AND leading_man = "george brent" AND role = "joan gordon, aka francine la rue"
What film was the director william a. wellman, later than 1931 with a leading man of george brent, and a Role of joan gordon, aka francine la rue?
CREATE TABLE table_name_54 (film VARCHAR, role VARCHAR, leading_man VARCHAR, director VARCHAR, year VARCHAR)
SELECT printer FROM table_15635768_1 WHERE place_of_issue = "Estes Park, Colorado"
Who was the printer of Estes Park, Colorado?
CREATE TABLE table_15635768_1 (printer VARCHAR, place_of_issue VARCHAR)
SELECT tournament FROM table_name_73 WHERE score = "6(4)–7 2–6"
Which Tournament has a Score of 6(4)–7 2–6?
CREATE TABLE table_name_73 (tournament VARCHAR, score VARCHAR)
SELECT MAX(points) FROM table_name_43 WHERE team = "marlboro brm" AND chassis = "brm p180"
What are the highest points for the team of marlboro brm with brm p180 as the chassis?
CREATE TABLE table_name_43 (points INTEGER, team VARCHAR, chassis VARCHAR)
SELECT series FROM table_13762472_13 WHERE date = "May 23"
What was the series count at on May 23?
CREATE TABLE table_13762472_13 (series VARCHAR, date VARCHAR)
SELECT SUM(minutes) FROM table_name_73 WHERE rank > 7 AND club = "real madrid"
What are the minutes of the Player from Real Madrid Club with a Rank of 7 or larger?
CREATE TABLE table_name_73 (minutes INTEGER, rank VARCHAR, club VARCHAR)
SELECT MIN(points) FROM table_name_99 WHERE home = "toronto"
What is the lowest amount of points of the game with toronto as the home team?
CREATE TABLE table_name_99 (points INTEGER, home VARCHAR)
SELECT battle_of_the_planets FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Solaris"
Which battle of the planets where ova (harmony gold dub) is solaris?
CREATE TABLE table_17480471_3 (battle_of_the_planets VARCHAR, ova__harmony_gold_dub_ VARCHAR)
SELECT religion FROM table_name_73 WHERE assumed_office < 2005 AND former_experience = "commissioner of health"
Name the religion for Former Experience of commissioner of health and assumed office before 2005
CREATE TABLE table_name_73 (religion VARCHAR, assumed_office VARCHAR, former_experience VARCHAR)
SELECT place FROM table_name_1 WHERE money___$__ > 300 AND score = 71 - 69 - 70 - 70 = 280
What is the Place of the Player with Money greater than 300 and a Score of 71-69-70-70=280?
CREATE TABLE table_name_1 (place VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT result FROM table_name_93 WHERE week = "week 2"
What was the result of week 2?
CREATE TABLE table_name_93 (result VARCHAR, week VARCHAR)
SELECT COUNT(title) FROM table_2818164_2 WHERE original_air_date = "September 27, 1984"
How many different titles does the episode originally aired on September 27, 1984 have?
CREATE TABLE table_2818164_2 (title VARCHAR, original_air_date VARCHAR)
SELECT T1.project_id, T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING COUNT(*) > 2
What is the project id and detail for the project with at least two documents?
CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR); CREATE TABLE Documents (project_id VARCHAR)
SELECT res FROM table_name_19 WHERE opponent = "oleg taktarov"
The match against Oleg Taktarov had what result?
CREATE TABLE table_name_19 (res VARCHAR, opponent VARCHAR)
SELECT tom_horner__i_ FROM table_20032301_3 WHERE sampling_error = "2.5%"
What percentage voted for Tom Horner according to the poll source with sampling error of 2.5%?
CREATE TABLE table_20032301_3 (tom_horner__i_ VARCHAR, sampling_error VARCHAR)
SELECT score FROM table_name_6 WHERE points = 36 AND game = 30
Which Score has Points of 36, and a Game of 30?
CREATE TABLE table_name_6 (score VARCHAR, points VARCHAR, game VARCHAR)
SELECT stadium FROM table_21436373_8 WHERE result_games = "Montreal 20 @ Ottawa 10"
Which stadium had the result/game montreal 20 @ ottawa 10?
CREATE TABLE table_21436373_8 (stadium VARCHAR, result_games VARCHAR)
SELECT time FROM table_name_72 WHERE rank = 14
What is the time when the rank is 14?
CREATE TABLE table_name_72 (time VARCHAR, rank VARCHAR)
SELECT MIN(sack) FROM table_name_1 WHERE solo = 24 AND tackles > 25.5 AND yards > 0
What is the lowest Sack with a Solo of 24, with Tackles larger than 25.5, with Yards larger than 0?
CREATE TABLE table_name_1 (sack INTEGER, yards VARCHAR, solo VARCHAR, tackles VARCHAR)
SELECT MAX(total) FROM table_name_24 WHERE rank = "1" AND gold > 11
Which Total is the highest one that has a Rank of 1, and a Gold larger than 11?
CREATE TABLE table_name_24 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT production_code FROM table_27713890_1 WHERE us_viewers__millions_ = "23.9"
What is the production code for the episode that had 23.9 million u.s. viewers?
CREATE TABLE table_27713890_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT worldwide_gross FROM table_name_68 WHERE rank = 16
What is the Worldwide Gross of the Film with a Rank of 16?
CREATE TABLE table_name_68 (worldwide_gross VARCHAR, rank VARCHAR)
SELECT high_points FROM table_name_36 WHERE date = "june 20"
What were the high points on june 20?
CREATE TABLE table_name_36 (high_points VARCHAR, date VARCHAR)
SELECT SUM(week) FROM table_name_60 WHERE opponent = "denver broncos"
What is the sum of the week for the Denver Broncos?
CREATE TABLE table_name_60 (week INTEGER, opponent VARCHAR)
SELECT team FROM table_27755603_10 WHERE date = "March 18"
Who was the team on March 18?
CREATE TABLE table_27755603_10 (team VARCHAR, date VARCHAR)
SELECT MAX(car__number) FROM table_name_98 WHERE make = "toyota" AND pos = 7
Which Car # has a Make of toyota, and a Pos of 7?
CREATE TABLE table_name_98 (car__number INTEGER, make VARCHAR, pos VARCHAR)
SELECT home FROM table_name_95 WHERE score = "103-93"
What is Home, when Score is 103-93?
CREATE TABLE table_name_95 (home VARCHAR, score VARCHAR)
SELECT mountains_classification FROM table_25551880_2 WHERE winner = "Alessandro Petacchi"
Who was awarded mountains classification when Alessandro petacchi won?
CREATE TABLE table_25551880_2 (mountains_classification VARCHAR, winner VARCHAR)
SELECT home_team FROM table_name_9 WHERE away_team = "southport"
Which home team had the away team Southport?
CREATE TABLE table_name_9 (home_team VARCHAR, away_team VARCHAR)
SELECT location FROM table_name_41 WHERE wrestler = "super parka" AND reign = "2"
Where did the wrestler, super parka, with the title with a reign of 2?
CREATE TABLE table_name_41 (location VARCHAR, wrestler VARCHAR, reign VARCHAR)
SELECT televotes FROM table_name_74 WHERE draw = 1
What are televotes for 1 draw?
CREATE TABLE table_name_74 (televotes VARCHAR, draw VARCHAR)
SELECT date FROM table_1140116_6 WHERE circuit = "Halle-Saale-Schleife"
What is the date on which a race was run at Halle-Saale-Schleife circuit?
CREATE TABLE table_1140116_6 (date VARCHAR, circuit VARCHAR)
SELECT elite_eight FROM table_name_67 WHERE conference = "atlantic 10"
How many elite eight teams came from the Atlantic 10?
CREATE TABLE table_name_67 (elite_eight VARCHAR, conference VARCHAR)
SELECT STRUCT(low) FROM table_1942366_9 WHERE STRUCT(high) = "12.0"
What's the C_{low} value when C_{high} is 12.0?
CREATE TABLE table_1942366_9 (low VARCHAR, high VARCHAR)
SELECT MAX(rank_qualifying) FROM table_26681728_1 WHERE location = "Ghent" AND year = 2011 AND score_qualifying = "14.850"
In Ghent in 2011, what was the rank-qualifying value when the score-qualifying value was 14.850
CREATE TABLE table_26681728_1 (rank_qualifying INTEGER, score_qualifying VARCHAR, location VARCHAR, year VARCHAR)
SELECT final FROM table_name_46 WHERE athlete = "farhad rezaei"
What final was Farhad Rezaei in?
CREATE TABLE table_name_46 (final VARCHAR, athlete 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 construction_started FROM table_143352_1 WHERE agr_power_station = "Heysham 1"
What year did construction start at Heysham 1
CREATE TABLE table_143352_1 (construction_started VARCHAR, agr_power_station VARCHAR)
SELECT MAX(silver) FROM table_name_40 WHERE gold = 1 AND bronze > 0
What is the highest amount of silver when gold is 1 and bronze larger than 0?
CREATE TABLE table_name_40 (silver INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT AVG(bronze) FROM table_name_66 WHERE total < 3 AND silver < 1 AND gold > 1
How many bronze medals has a total less than 3 with a silver less than 1 and gold more than 1?
CREATE TABLE table_name_66 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR)
SELECT COUNT(games) FROM table_26847237_2 WHERE height = "1.92m"
How many games were played where the height of the player is 1.92m?
CREATE TABLE table_26847237_2 (games VARCHAR, height VARCHAR)
SELECT MIN(season) FROM table_name_19 WHERE bachelor = "byron velvick"
What season had bachelor Byron Velvick?
CREATE TABLE table_name_19 (season INTEGER, bachelor VARCHAR)
SELECT result FROM table_2668329_11 WHERE incumbent = "Samuel Smith"
What was the result of Samuel Smith's race?
CREATE TABLE table_2668329_11 (result VARCHAR, incumbent VARCHAR)
SELECT SUM(laps) FROM table_name_34 WHERE manufacturer = "aprilia" AND rider = "jorge lorenzo" AND grid > 1
How many laps by Jorge Lorenzo on the Aprilia with a grid bigger than 1?
CREATE TABLE table_name_34 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, rider VARCHAR)
SELECT COUNT(years_for_jazz) FROM table_11545282_7 WHERE player = "Paul Griffin"
How many years did Paul Griffin play for the Jazz?
CREATE TABLE table_11545282_7 (years_for_jazz VARCHAR, player VARCHAR)
SELECT COUNT(founded) FROM table_name_68 WHERE nickname = "mountain hawks"
What is the number founded for the nickname mountain hawks?
CREATE TABLE table_name_68 (founded VARCHAR, nickname VARCHAR)
SELECT score FROM table_name_95 WHERE date = "march 14"
What was the score of the March 14 game?
CREATE TABLE table_name_95 (score VARCHAR, date VARCHAR)
SELECT since FROM table_name_76 WHERE transfer_fee = "£ 75k"
What the since year of the player with a transfer fee of £ 75k?
CREATE TABLE table_name_76 (since VARCHAR, transfer_fee VARCHAR)
SELECT height FROM table_29418619_1 WHERE name = "Anthony Crater"
What is the height of Anthony Crater?
CREATE TABLE table_29418619_1 (height VARCHAR, name VARCHAR)
SELECT AVG(specific_impulse__s_) FROM table_name_66 WHERE sfc_in_lb__lbf·h_ = 7.95 AND effective_exhaust_velocity__m_s_ > 4 OFFSET 423
what is the average specific impulse for engines that have a SFC in lb/(lbf·h) of 7.95, and a Effective exhaust velocity (m/s) larger than 4,423
CREATE TABLE table_name_66 (specific_impulse__s_ INTEGER, sfc_in_lb__lbf·h_ VARCHAR, effective_exhaust_velocity__m_s_ VARCHAR)
SELECT stadium FROM table_name_76 WHERE club = "west ham united"
What stadium has a club of west ham united?
CREATE TABLE table_name_76 (stadium VARCHAR, club VARCHAR)
SELECT AVG(campusfee) FROM csu_fees WHERE YEAR = 2005
What is the average fee on a CSU campus in 2005?
CREATE TABLE csu_fees (campusfee INTEGER, YEAR VARCHAR)