question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which country has an IATA of gzt?
CREATE TABLE table_name_70 (country VARCHAR, iata VARCHAR)
SELECT country FROM table_name_70 WHERE iata = "gzt"
What is the amount of snow where the sunshine is 1 633, and storms are lower than 29?
CREATE TABLE table_name_23 (snow__days_year_ INTEGER, sunshine__hrs_year_ VARCHAR, storms__days_year_ VARCHAR)
SELECT AVG(snow__days_year_) FROM table_name_23 WHERE sunshine__hrs_year_ = "1 633" AND storms__days_year_ < 29
Type of primary, and a Call letters of kktx-fm has what average Frequency (MHz)?
CREATE TABLE table_name_40 (frequency__mhz_ INTEGER, type VARCHAR, call_letters VARCHAR)
SELECT AVG(frequency__mhz_) FROM table_name_40 WHERE type = "primary" AND call_letters = "kktx-fm"
What Domari word has the same meaning as the Hindi word pāñc?
CREATE TABLE table_name_40 (domari VARCHAR, hindi VARCHAR)
SELECT domari FROM table_name_40 WHERE hindi = "pāñc"
Name the total number of places which has played more than 18
CREATE TABLE table_name_59 (place VARCHAR, played INTEGER)
SELECT COUNT(place) FROM table_name_59 WHERE played > 18
what is the total number of publisher where cover date is may 1939
CREATE TABLE table_1217448_1 (publisher VARCHAR, cover_date VARCHAR)
SELECT COUNT(publisher) FROM table_1217448_1 WHERE cover_date = "May 1939"
What are the death and injury situations caused by the ship with tonnage 't'?
CREATE TABLE ship (Id VARCHAR); CREATE TABLE death (killed VARCHAR, injured VARCHAR, caused_by_ship_id VARCHAR)
SELECT T1.killed, T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'
what is the enrollment for the Cavaliers?
CREATE TABLE table_16432543_3 (enrollment INTEGER, nickname VARCHAR)
SELECT MAX(enrollment) FROM table_16432543_3 WHERE nickname = "Cavaliers"
Which team 1 had a team 2 of Hafia FC?
CREATE TABLE table_name_87 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_87 WHERE team_2 = "hafia fc"
How many players went to depaul?
CREATE TABLE table_16494599_2 (player VARCHAR, school_club_team VARCHAR)
SELECT COUNT(player) FROM table_16494599_2 WHERE school_club_team = "DePaul"
What is the sum of Money of the game that was played in the United States with Sam Snead as a player?
CREATE TABLE table_name_55 (money___ INTEGER, country VARCHAR, player VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_55 WHERE country = "united states" AND player = "sam snead"
Name the irish points for 23-1 record
CREATE TABLE table_22875369_3 (irish_points VARCHAR, record VARCHAR)
SELECT irish_points FROM table_22875369_3 WHERE record = "23-1"
Before the year 2012, what award was given to the artist in the category of revelación pop del año?
CREATE TABLE table_name_49 (award VARCHAR, year VARCHAR, category VARCHAR)
SELECT award FROM table_name_49 WHERE year < 2012 AND category = "revelación pop del año"
What were the competitions when the away team was fk kozara gradiska?
CREATE TABLE table_29728596_2 (competition VARCHAR, away_team VARCHAR)
SELECT competition FROM table_29728596_2 WHERE away_team = "FK Kozara Gradiska"
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 country FROM table_name_2 WHERE first_store = "1991" AND hard_discounters = "397"
What is the tournament with a 2r in 2009 and a 2r in 2010?
CREATE TABLE table_name_96 (tournament VARCHAR)
SELECT tournament FROM table_name_96 WHERE 2009 = "2r" AND 2010 = "2r"
what is the name moving to atlético minero?
CREATE TABLE table_name_74 (name VARCHAR, moving_to VARCHAR)
SELECT name FROM table_name_74 WHERE moving_to = "atlético minero"
What is the Code Name of the figure born in Hawaii?
CREATE TABLE table_name_81 (code_name VARCHAR, birthplace VARCHAR)
SELECT code_name FROM table_name_81 WHERE birthplace = "hawaii"
What kind of chassis does Ricardo Zonta have?
CREATE TABLE table_name_30 (chassis VARCHAR, driver VARCHAR)
SELECT chassis FROM table_name_30 WHERE driver = "ricardo zonta"
Which Drawn has a Lost of 19?
CREATE TABLE table_name_61 (drawn VARCHAR, lost VARCHAR)
SELECT drawn FROM table_name_61 WHERE lost = "19"
What is the record when the opposing team was the Pittsburgh Penguins?
CREATE TABLE table_23486853_6 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_23486853_6 WHERE opponent = "Pittsburgh Penguins"
What FlatSpin actor played the same role as Robert Austin?
CREATE TABLE table_17827271_1 (flatspin VARCHAR, actor_in_original_production VARCHAR)
SELECT flatspin FROM table_17827271_1 WHERE actor_in_original_production = "Robert Austin"
Which Local authority has Services of greater anglia?
CREATE TABLE table_name_33 (local_authority VARCHAR, services VARCHAR)
SELECT local_authority FROM table_name_33 WHERE services = "greater anglia"
What is the lowest draw that has less than 4 wins, 14 losses, and against more than 1836?
CREATE TABLE table_name_4 (draws INTEGER, against VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT MIN(draws) FROM table_name_4 WHERE wins < 4 AND losses = 14 AND against > 1836
What is the city where the Telstra Dome is?
CREATE TABLE table_name_83 (city VARCHAR, stadium VARCHAR)
SELECT city FROM table_name_83 WHERE stadium = "telstra dome"
What is the Overall for Pick # less than 5 Jack Harmon?
CREATE TABLE table_name_45 (overall INTEGER, name VARCHAR, pick__number VARCHAR)
SELECT MIN(overall) FROM table_name_45 WHERE name = "jack harmon" AND pick__number < 5
What was the original title for the king's speech?
CREATE TABLE table_name_58 (original_title VARCHAR, winner_and_nominees VARCHAR)
SELECT original_title FROM table_name_58 WHERE winner_and_nominees = "the king's speech"
Name the D 41 √ with D 44 O of r 13
CREATE TABLE table_name_17 (d_41_√ VARCHAR, d_44_o VARCHAR)
SELECT d_41_√ FROM table_name_17 WHERE d_44_o = "r 13"
What is the most amount of stolen ends for a skip with 1 W?
CREATE TABLE table_29546030_2 (stolen_ends INTEGER, w VARCHAR)
SELECT MAX(stolen_ends) FROM table_29546030_2 WHERE w = 1
What was the final score of the game at Texas Stadium?
CREATE TABLE table_name_26 (final_score VARCHAR, stadium VARCHAR)
SELECT final_score FROM table_name_26 WHERE stadium = "texas stadium"
What is the away team that features a home team of south melbourne?
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_53 WHERE home_team = "south melbourne"
How many states has a 2009 estimate population of 27,3 million?
CREATE TABLE table_name_83 (number_of_states VARCHAR, population__2009_estimate_ VARCHAR)
SELECT number_of_states FROM table_name_83 WHERE population__2009_estimate_ = "27,3 million"
What score has january 3, 2005 as the date?
CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_98 WHERE date = "january 3, 2005"
How many titles are there with the original air date of august3,2010?
CREATE TABLE table_30030477_1 (title VARCHAR, original_air_date VARCHAR)
SELECT COUNT(title) FROM table_30030477_1 WHERE original_air_date = "August3,2010"
What kind of Wind has a Result of 21.69?
CREATE TABLE table_name_69 (wind VARCHAR, result VARCHAR)
SELECT wind FROM table_name_69 WHERE result = "21.69"
WHAT IS THE PLACE WITH PLAYER mark o'meara?
CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_78 WHERE player = "mark o'meara"
How many customers are there in the customer type with the most customers?
CREATE TABLE customers (customer_type_code VARCHAR)
SELECT COUNT(*) FROM customers GROUP BY customer_type_code ORDER BY COUNT(*) DESC LIMIT 1
Show names for all employees who have certificate of Boeing 737-800.
CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name 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"
When was Stellbrookmoor established?
CREATE TABLE table_26013618_1 (date_established VARCHAR, name_of_the_nature_reserve VARCHAR)
SELECT date_established FROM table_26013618_1 WHERE name_of_the_nature_reserve = "Stellbrookmoor"
For the game against Iowa, who had the most assists?
CREATE TABLE table_20010140_9 (high_assists VARCHAR, team VARCHAR)
SELECT high_assists FROM table_20010140_9 WHERE team = "Iowa"
Which region had a release format of CD Maxi?
CREATE TABLE table_name_20 (region VARCHAR, format VARCHAR)
SELECT region FROM table_name_20 WHERE format = "cd maxi"
Who was the judge for the state SD?
CREATE TABLE table_name_42 (judge VARCHAR, state VARCHAR)
SELECT judge FROM table_name_42 WHERE state = "sd"
How many times did drinking games win the poll?
CREATE TABLE table_15781170_3 (_number VARCHAR, poll_winner VARCHAR)
SELECT COUNT(_number) FROM table_15781170_3 WHERE poll_winner = "Drinking Games"
How many ballot measures had a percentage yes of 52.11%?
CREATE TABLE table_256286_39 (passed VARCHAR, _percentage_yes VARCHAR)
SELECT COUNT(passed) FROM table_256286_39 WHERE _percentage_yes = "52.11%"
Which player has a place of t2?
CREATE TABLE table_name_4 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_4 WHERE place = "t2"
Who is the artist of the album Soul?
CREATE TABLE table_name_18 (artist VARCHAR, album VARCHAR)
SELECT artist FROM table_name_18 WHERE album = "soul"
Which Run 4 has Athletes of hubert stevens & curtis stevens?
CREATE TABLE table_name_46 (run_4 VARCHAR, athletes VARCHAR)
SELECT run_4 FROM table_name_46 WHERE athletes = "hubert stevens & curtis stevens"
Show all the distinct product names with price higher than the average.
CREATE TABLE PRODUCTS (Product_Name VARCHAR, Product_Price INTEGER)
SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT AVG(Product_Price) FROM PRODUCTS)
What is the highest earnings for curtis strange?
CREATE TABLE table_name_60 (earnings___ INTEGER, player VARCHAR)
SELECT MAX(earnings___) AS $__ FROM table_name_60 WHERE player = "curtis strange"
What was the date of game with a score of 42-6?
CREATE TABLE table_name_23 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_23 WHERE score = "42-6"
Name the most attendance for number 4
CREATE TABLE table_16227492_1 (attendance INTEGER, _number VARCHAR)
SELECT MAX(attendance) FROM table_16227492_1 WHERE _number = 4
What is the score of the away team when the home team is Footscray?
CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_95 WHERE home_team = "footscray"
Who was the away team at western oval?
CREATE TABLE table_name_28 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_28 WHERE venue = "western oval"
What is the phone number and postal code of the address 1031 Daugavpils Parkway?
CREATE TABLE address (phone VARCHAR, postal_code VARCHAR, address VARCHAR)
SELECT phone, postal_code FROM address WHERE address = '1031 Daugavpils Parkway'
What was the date of appointment for the manager of lecce when the previous manager's contract expired?
CREATE TABLE table_name_79 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, team VARCHAR)
SELECT date_of_appointment FROM table_name_79 WHERE manner_of_departure = "contract expired" AND team = "lecce"
How many sales had a peak position more than 2 and a Certification of 3x platinum?
CREATE TABLE table_name_44 (sales VARCHAR, peak_position VARCHAR, certification VARCHAR)
SELECT COUNT(sales) FROM table_name_44 WHERE peak_position > 2 AND certification = "3x platinum"
What is the coverage when power kw is 25kw?
CREATE TABLE table_23915973_1 (coverage VARCHAR, power_kw VARCHAR)
SELECT coverage FROM table_23915973_1 WHERE power_kw = "25kW"
Who directed the episode whose production code is pabf05?
CREATE TABLE table_28194879_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_28194879_1 WHERE production_code = "PABF05"
How much absorption in nm does the orange dye have?
CREATE TABLE table_26428602_1 (absorb__nm_ INTEGER, color VARCHAR)
SELECT MIN(absorb__nm_) FROM table_26428602_1 WHERE color = "orange"
How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.
CREATE TABLE Transcript_Contents (student_course_id VARCHAR)
SELECT COUNT(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY COUNT(*) DESC LIMIT 1
Name the least total for 1978 years won
CREATE TABLE table_name_30 (total INTEGER, year_s__won VARCHAR)
SELECT MIN(total) FROM table_name_30 WHERE year_s__won = "1978"
Who were the candidates when Sid Simpson was the incumbent?
CREATE TABLE table_1342249_13 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342249_13 WHERE incumbent = "Sid Simpson"
What is the average number of losses the team with less than 25 runs allowed and 5 wins have?
CREATE TABLE table_name_63 (losses INTEGER, runs_allowed VARCHAR, wins VARCHAR)
SELECT AVG(losses) FROM table_name_63 WHERE runs_allowed < 25 AND wins = 5
How many field goals did duncan thompson have?
CREATE TABLE table_name_8 (field_goals VARCHAR, player VARCHAR)
SELECT field_goals FROM table_name_8 WHERE player = "duncan thompson"
What is the nationality of Shayne Wright?
CREATE TABLE table_1013129_11 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_1013129_11 WHERE player = "Shayne Wright"
What nominated work received a tony award in 2009?
CREATE TABLE table_name_94 (nominated_work VARCHAR, award VARCHAR, year VARCHAR)
SELECT nominated_work FROM table_name_94 WHERE award = "tony award" AND year = 2009
What year was the Grand Prix with an i8 engine and a cc displacement of 1500?
CREATE TABLE table_name_25 (year VARCHAR, displacement_cc VARCHAR, type VARCHAR, engine VARCHAR)
SELECT year FROM table_name_25 WHERE type = "grand prix" AND engine = "i8" AND displacement_cc = "1500"
What event had zhamash l 1–2 in the quarterfinal?
CREATE TABLE table_name_88 (event VARCHAR, quarterfinal VARCHAR)
SELECT event FROM table_name_88 WHERE quarterfinal = "zhamash l 1–2"
Which Round is the highest one that has a Position of running back?
CREATE TABLE table_name_14 (round INTEGER, position VARCHAR)
SELECT MAX(round) FROM table_name_14 WHERE position = "running back"
What time is MDT when EDT is set and PDT is 6:00 a.m.?
CREATE TABLE table_name_58 (mdt___6_utc_ VARCHAR, edt___4_utc_ VARCHAR, pdt___7_utc_ VARCHAR)
SELECT mdt___6_utc_ FROM table_name_58 WHERE edt___4_utc_ = "set" AND pdt___7_utc_ = "6:00 a.m."
What is Tournament, when 2012 is "Grand Slam Tournaments"?
CREATE TABLE table_name_35 (tournament VARCHAR)
SELECT tournament FROM table_name_35 WHERE 2012 = "grand slam tournaments"
Name the series ep for s02e08
CREATE TABLE table_15187735_3 (series_ep VARCHAR, netflix VARCHAR)
SELECT series_ep FROM table_15187735_3 WHERE netflix = "S02E08"
What is the losses in the NFL in the 2011 season with less than 13 wins?
CREATE TABLE table_name_81 (losses INTEGER, wins VARCHAR, league VARCHAR, season VARCHAR)
SELECT AVG(losses) FROM table_name_81 WHERE league = "nfl" AND season = 2011 AND wins < 13
How many items are listed for U.S. viewers for episode number 5 in the series?
CREATE TABLE table_27910411_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR)
SELECT COUNT(us_viewers__millions_) FROM table_27910411_1 WHERE no_in_series = 5
What is the environment rating of the country with an overall average rating of 4.7?
CREATE TABLE table_13677808_1 (environment VARCHAR, overall__average_ VARCHAR)
SELECT environment FROM table_13677808_1 WHERE overall__average_ = "4.7"
What start has a year later than 2010, and chip ganassi racing as the team?
CREATE TABLE table_name_17 (start VARCHAR, year VARCHAR, team VARCHAR)
SELECT start FROM table_name_17 WHERE year > 2010 AND team = "chip ganassi racing"
Which venue has 2:04.22 notes?
CREATE TABLE table_name_19 (venue VARCHAR, notes VARCHAR)
SELECT venue FROM table_name_19 WHERE notes = "2:04.22"
What is Away Team, when Home Team is "Boston United"?
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_30 WHERE home_team = "boston united"
Which Against has a Drawn smaller than 5, a Lost of 3, and a Position of 3?
CREATE TABLE table_name_93 (against INTEGER, position VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT MIN(against) FROM table_name_93 WHERE drawn < 5 AND lost = 3 AND position = 3
In what season was the conference record 4-3?
CREATE TABLE table_20319085_2 (season INTEGER, conference_record VARCHAR)
SELECT MIN(season) FROM table_20319085_2 WHERE conference_record = "4-3"
Name the period for south korea with peak position of #1
CREATE TABLE table_name_90 (period VARCHAR, country VARCHAR, peak_position VARCHAR)
SELECT period FROM table_name_90 WHERE country = "south korea" AND peak_position = "#1"
How many weeks do they have a bye?
CREATE TABLE table_name_37 (week VARCHAR, result VARCHAR)
SELECT COUNT(week) FROM table_name_37 WHERE result = "bye"
If the POS is 3, what is the 08 points?
CREATE TABLE table_22011138_7 (pos VARCHAR)
SELECT 08 AS _pts FROM table_22011138_7 WHERE pos = 3
Which Position has a Nationality of united states, and a Pick of 9?
CREATE TABLE table_name_19 (position VARCHAR, nationality VARCHAR, pick VARCHAR)
SELECT position FROM table_name_19 WHERE nationality = "united states" AND pick = 9
Who was in the election that was for incumbent bud shuster's seat?
CREATE TABLE table_1341522_41 (opponent VARCHAR, incumbent VARCHAR)
SELECT opponent FROM table_1341522_41 WHERE incumbent = "Bud Shuster"
Who was the athlete from Lithuania?
CREATE TABLE table_name_87 (athlete VARCHAR, country VARCHAR)
SELECT athlete FROM table_name_87 WHERE country = "lithuania"
What was the attendance at the week 2 game?
CREATE TABLE table_name_89 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_89 WHERE week = 2
Which Rank has a Bronze of 3?
CREATE TABLE table_name_94 (rank VARCHAR, bronze VARCHAR)
SELECT rank FROM table_name_94 WHERE bronze = 3
What is the drawn that has 16 as the trys bonus?
CREATE TABLE table_name_31 (drawn VARCHAR, try_bonus VARCHAR)
SELECT drawn FROM table_name_31 WHERE try_bonus = "16"
Name the category for cab size crew and super tanker
CREATE TABLE table_2155350_2 (category VARCHAR, cab_size VARCHAR, sub_category VARCHAR)
SELECT category FROM table_2155350_2 WHERE cab_size = "Crew" AND sub_category = "Super tanker"
Name the team which has high rebounds of smith (10)
CREATE TABLE table_name_96 (team VARCHAR, high_rebounds VARCHAR)
SELECT team FROM table_name_96 WHERE high_rebounds = "smith (10)"
In what round was a defensive tackle drafted with an overall pick smaller than 149?
CREATE TABLE table_name_25 (round VARCHAR, position VARCHAR, overall VARCHAR)
SELECT COUNT(round) FROM table_name_25 WHERE position = "defensive tackle" AND overall < 149
what is the pick # when overall is more than 131, position is wide receiver and the round is less than 5?
CREATE TABLE table_name_37 (pick__number VARCHAR, round VARCHAR, overall VARCHAR, position VARCHAR)
SELECT COUNT(pick__number) FROM table_name_37 WHERE overall > 131 AND position = "wide receiver" AND round < 5
Who was playing when the score was 5–7, 5–7?
CREATE TABLE table_2186447_1 (opponents VARCHAR, score VARCHAR)
SELECT opponents FROM table_2186447_1 WHERE score = "5–7, 5–7"
What was the decision from the Vancouver home game on April 21?
CREATE TABLE table_name_2 (decision VARCHAR, home VARCHAR, date VARCHAR)
SELECT decision FROM table_name_2 WHERE home = "vancouver" AND date = "april 21"
Name the city of license with frequency of 103.5 mhz
CREATE TABLE table_name_80 (city_of_license VARCHAR, frequency VARCHAR)
SELECT city_of_license FROM table_name_80 WHERE frequency = "103.5 mhz"
What state has a Net contribution per capita of $-171?
CREATE TABLE table_name_67 (state VARCHAR, net_contribution_per_capita VARCHAR)
SELECT state FROM table_name_67 WHERE net_contribution_per_capita = "$-171"
What is the city of txdot har?
CREATE TABLE table_name_47 (city_of_license VARCHAR, brand VARCHAR)
SELECT city_of_license FROM table_name_47 WHERE brand = "txdot har"
What is the rear sight type on the model with the acr muzzle brake device?
CREATE TABLE table_19901_1 (rear_sight_type VARCHAR, muzzle_device VARCHAR)
SELECT rear_sight_type FROM table_19901_1 WHERE muzzle_device = "ACR muzzle brake"
What was the name for the row with Date From of 2008-02-21?
CREATE TABLE table_name_86 (name VARCHAR, date_from VARCHAR)
SELECT name FROM table_name_86 WHERE date_from = "2008-02-21"