answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT attendance FROM table_name_27 WHERE result = "w 16-10* o.t."
Result of w 16-10* o.t. had what attendance?
CREATE TABLE table_name_27 (attendance VARCHAR, result VARCHAR)
SELECT song FROM table_name_18 WHERE artist = "aleko berdzenishvili"
What is the name of Aleko Berdzenishvili's song?
CREATE TABLE table_name_18 (song VARCHAR, artist VARCHAR)
SELECT band FROM table_name_80 WHERE freq_currently = "8tab (hpon)"
Which band has a current freq of 8tab (hpon)?
CREATE TABLE table_name_80 (band VARCHAR, freq_currently VARCHAR)
SELECT callsign FROM table_name_97 WHERE webcast = "listen live" AND frequency < 1210 AND brand = "newsradio 740 ktrh"
Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live?
CREATE TABLE table_name_97 (callsign VARCHAR, brand VARCHAR, webcast VARCHAR, frequency VARCHAR)
SELECT T1.personal_name, T1.family_name, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1
Find the personal name, family name, and author ID of the course author that teaches the most courses.
CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (personal_name VARCHAR, family_name VARCHAR, author_id VARCHAR)
SELECT MIN(episodes) FROM table_14855908_3 WHERE dvd_name = "Season 1"
How many episodes were released in the season 1 DVD?
CREATE TABLE table_14855908_3 (episodes INTEGER, dvd_name VARCHAR)
SELECT Headquarters FROM company WHERE Industry = "Banking" INTERSECT SELECT Headquarters FROM company WHERE Industry = "Oil and gas"
Show the headquarters that have both companies in banking industry and companies in oil and gas industry.
CREATE TABLE company (Headquarters VARCHAR, Industry VARCHAR)
SELECT COUNT(season) FROM table_27487336_1 WHERE sacks = "39"
How many seasons have a sacks of 39?
CREATE TABLE table_27487336_1 (season VARCHAR, sacks VARCHAR)
SELECT replaced_by FROM table_26998135_2 WHERE date_of_vacancy = "27 December 2010"
Who is the replaced by when the date of vacancy is 27 december 2010?
CREATE TABLE table_26998135_2 (replaced_by VARCHAR, date_of_vacancy VARCHAR)
SELECT moving_to FROM table_name_24 WHERE transfer_fee = "free" AND status = "transfer" AND name = "rodri"
Name the moving to with a transfer fee of free with a transfer status for rodri
CREATE TABLE table_name_24 (moving_to VARCHAR, name VARCHAR, transfer_fee VARCHAR, status VARCHAR)
SELECT party FROM table_23680576_2 WHERE dec_2008 = "6.3%"
Name the party/s when the polling percentage was 6.3% in Dec 2008.
CREATE TABLE table_23680576_2 (party VARCHAR, dec_2008 VARCHAR)
SELECT party FROM table_name_66 WHERE district = "colorado 6"
In Colorado 6 district what is the party?
CREATE TABLE table_name_66 (party VARCHAR, district VARCHAR)
SELECT COUNT(total) FROM table_name_53 WHERE player = "dave stockton"
How many Total has a Player of dave stockton?
CREATE TABLE table_name_53 (total VARCHAR, player VARCHAR)
SELECT player FROM table_26996293_3 WHERE position = "OG"
What player drafted was an OG?
CREATE TABLE table_26996293_3 (player VARCHAR, position 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 name FROM table_name_54 WHERE rank = 15
Which Name had the Rank, 15?
CREATE TABLE table_name_54 (name VARCHAR, rank VARCHAR)
SELECT COUNT(deposits) FROM table_name_63 WHERE non_interest_income = 0.9500000000000001 AND no_of_branches_offices < 17
How many deposits had a Non-Interest Income of 0.9500000000000001 and number of branch/offices less than 17?
CREATE TABLE table_name_63 (deposits VARCHAR, non_interest_income VARCHAR, no_of_branches_offices VARCHAR)
SELECT population__2011_ FROM table_1610301_1 WHERE district = "East Godavari"
What is the 2011 population of the district of East Godavari?
CREATE TABLE table_1610301_1 (population__2011_ VARCHAR, district VARCHAR)
SELECT wins FROM table_25538763_1 WHERE team = "Prema Powerteam" AND points = "240"
How many wins did Prema Powerteam won with 240 points?
CREATE TABLE table_25538763_1 (wins VARCHAR, team VARCHAR, points VARCHAR)
SELECT AVG(total) FROM table_name_47 WHERE year_s__won = "1975"
Name the average total for years won of 1975
CREATE TABLE table_name_47 (total INTEGER, year_s__won VARCHAR)
SELECT constructor FROM table_name_66 WHERE grid > 23 AND driver = "piercarlo ghinzani"
who is the constructor when the grid is more than 23 and the driver is piercarlo ghinzani?
CREATE TABLE table_name_66 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT location FROM table_name_59 WHERE founded > 1889 AND team_nickname = "broncos"
What is the location of the team nicknamed Broncos, which was founded after 1889?
CREATE TABLE table_name_59 (location VARCHAR, founded VARCHAR, team_nickname VARCHAR)
SELECT MIN(absorb__nm_) FROM table_26428602_1 WHERE color = "orange"
How much absorption in nm does the orange dye have?
CREATE TABLE table_26428602_1 (absorb__nm_ INTEGER, color VARCHAR)
SELECT COUNT(week) FROM table_name_95 WHERE attendance = 61 OFFSET 985
What is the sum of week number(s) had an attendance of 61,985?
CREATE TABLE table_name_95 (week VARCHAR, attendance VARCHAR)
SELECT round FROM table_name_61 WHERE tournament = "paris"
What is Round, when Tournament is "Paris"?
CREATE TABLE table_name_61 (round VARCHAR, tournament VARCHAR)
SELECT percent_of_capital FROM table_206419_3 WHERE s_b_share = 8256534
What is the percent of capital for the shareholder that has a s B share of 8256534?
CREATE TABLE table_206419_3 (percent_of_capital VARCHAR, s_b_share VARCHAR)
SELECT county FROM table_23248420_1 WHERE region_province = "North West" AND rank = 20
When 20 is the rank and north west is the region/province what is the county?
CREATE TABLE table_23248420_1 (county VARCHAR, region_province VARCHAR, rank VARCHAR)
SELECT MAX(laps) FROM table_name_52 WHERE time_retired = "+1 lap" AND driver = "alexander wurz" AND grid < 14
What was Alexander Wurz's highest laps when he has a grid less than 14 and a time/retired of +1 lap.
CREATE TABLE table_name_52 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT to_par FROM table_name_25 WHERE score = 71 - 69 - 68 = 208
What is the To par of the Player with a Score of 71-69-68=208?
CREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR)
SELECT judges FROM table_13779832_1 WHERE seasons_and_winners = "Season 1, 2013–2014: Upcoming season"
who is the the judges with seasons and winners being season 1, 2013–2014: upcoming season
CREATE TABLE table_13779832_1 (judges VARCHAR, seasons_and_winners VARCHAR)
SELECT COUNT(name) FROM table_22977424_8 WHERE promoted_from_league = "Exeter Chiefs"
Name the number of names for exeter chiefs
CREATE TABLE table_22977424_8 (name VARCHAR, promoted_from_league VARCHAR)
SELECT MAX(first_elected) FROM table_name_71 WHERE incumbent = "john sullivan"
Incumbent John Sullivan has what as biggest first elected?
CREATE TABLE table_name_71 (first_elected INTEGER, incumbent VARCHAR)
SELECT air_date FROM table_17257687_1 WHERE event_2 = "Hang Tough"
On what date was the episode aired where event 2 was Hang Tough?
CREATE TABLE table_17257687_1 (air_date VARCHAR, event_2 VARCHAR)
SELECT term_of_office FROM table_name_1 WHERE member = "noel beaton"
What was the term of office for noel beaton?
CREATE TABLE table_name_1 (term_of_office VARCHAR, member VARCHAR)
SELECT competition FROM table_name_64 WHERE score = "58-4"
Which competition ended with a score of 58-4?
CREATE TABLE table_name_64 (competition VARCHAR, score VARCHAR)
SELECT round FROM table_name_84 WHERE event = "strikeforce: shamrock vs. diaz"
How many rounds did Brett go for the Strikeforce: Shamrock vs. Diaz match?
CREATE TABLE table_name_84 (round VARCHAR, event VARCHAR)
SELECT COUNT(season) FROM table_name_26 WHERE player = "rohan ricketts"
Which seaosn had a player of rohan ricketts?
CREATE TABLE table_name_26 (season VARCHAR, player VARCHAR)
SELECT MAX(grid) FROM table_name_65 WHERE time = "+45.162"
What is the highest grid when the time is +45.162?
CREATE TABLE table_name_65 (grid INTEGER, time VARCHAR)
SELECT score_composer FROM table_name_5 WHERE year = 1967
Who was the score composer of the film released in 1967?
CREATE TABLE table_name_5 (score_composer VARCHAR, year VARCHAR)
SELECT Major FROM STUDENT WHERE Sex = "M"
What are the majors of male (sex is M) students?
CREATE TABLE STUDENT (Major VARCHAR, Sex VARCHAR)
SELECT yam_[y_] FROM table_name_80 WHERE maize___corn_[a_] = "1355"
What is the Yam amount when the Maze/Corn amount is 1355?
CREATE TABLE table_name_80 (yam_ VARCHAR, y_ VARCHAR, maize___corn_ VARCHAR, a_ VARCHAR)
SELECT SUM(enrollment) FROM table_name_5 WHERE mascot = "norsemen"
Which Enrollment has a Mascot of norsemen?
CREATE TABLE table_name_5 (enrollment INTEGER, mascot VARCHAR)
SELECT team FROM table_name_48 WHERE finish = "19"
What is the name of the team with a finish of 19?
CREATE TABLE table_name_48 (team VARCHAR, finish VARCHAR)
SELECT class FROM table_name_98 WHERE built_as = "dlg-23"
Where the built as is DLG-23, what is the class?
CREATE TABLE table_name_98 (class VARCHAR, built_as VARCHAR)
SELECT COUNT(year) FROM table_name_71 WHERE venue = "latakia , syria"
COunt the Year which has a Venue of latakia , syria?
CREATE TABLE table_name_71 (year VARCHAR, venue VARCHAR)
SELECT 1999 FROM table_name_45 WHERE 1991 = "a" AND 1997 = "1r"
What is the 1999 for an A 1991, and a 1r 1997?
CREATE TABLE table_name_45 (Id VARCHAR)
SELECT COUNT(total) FROM table_name_80 WHERE ward < 0
WHAT IS THE TOTAL NUMBER WITH A WARD SMALLER THAN 0?
CREATE TABLE table_name_80 (total VARCHAR, ward INTEGER)
SELECT year FROM table_name_88 WHERE result = "nominated" AND category = "outstanding actor in a musical"
Which Year has a nominated outstanding actor in a musical?
CREATE TABLE table_name_88 (year VARCHAR, result VARCHAR, category VARCHAR)
SELECT COUNT(production_code) FROM table_28037619_2 WHERE us_viewers__million_ = "4.36"
How many production codes are there for the episode that had 4.36 million u.s. viewers?
CREATE TABLE table_28037619_2 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT final FROM table_name_88 WHERE event = "middleweight –75 kg"
What is the final for middleweight –75 kg?
CREATE TABLE table_name_88 (final VARCHAR, event VARCHAR)
SELECT fastest_lap FROM table_30134667_2 WHERE location = "Bowmanville, Ontario"
Who had the fastest lap in bowmanville, ontario?
CREATE TABLE table_30134667_2 (fastest_lap VARCHAR, location VARCHAR)
SELECT laps FROM table_12001616_4 WHERE entrant = "Marcis Auto Racing"
What is the laops of marcis auto racing?
CREATE TABLE table_12001616_4 (laps VARCHAR, entrant VARCHAR)
SELECT SUM(shot__percentage) FROM table_name_72 WHERE country = "finland" AND ends_lost > 49
What is the sum shot % when the country is finland, and an ends lost is larger than 49?
CREATE TABLE table_name_72 (shot__percentage INTEGER, country VARCHAR, ends_lost VARCHAR)
SELECT result FROM table_name_46 WHERE goal = 3
Tell me the result for 3 goals
CREATE TABLE table_name_46 (result VARCHAR, goal VARCHAR)
SELECT losses FROM table_name_34 WHERE awards = "mike miller (smoy)"
What are the losses where the award is Mike Miller (Smoy)?
CREATE TABLE table_name_34 (losses VARCHAR, awards VARCHAR)
SELECT tournament FROM table_name_35 WHERE 2012 = "grand slam tournaments"
What is Tournament, when 2012 is "Grand Slam Tournaments"?
CREATE TABLE table_name_35 (tournament VARCHAR)
SELECT AVG(game) FROM table_name_23 WHERE venue = "away" AND attendance = 5 OFFSET 000
Which game had an attendance of 5,000 and was away?
CREATE TABLE table_name_23 (game INTEGER, venue VARCHAR, attendance VARCHAR)
SELECT AVG(total) FROM table_name_58 WHERE nation = "spain"
What is the average total value for Spain?
CREATE TABLE table_name_58 (total INTEGER, nation VARCHAR)
SELECT Birth_Date FROM People ORDER BY Height
What are the birthdays of people in ascending order of height?
CREATE TABLE People (Birth_Date VARCHAR, Height VARCHAR)
SELECT home_team FROM table_name_73 WHERE away_team = "fitzroy"
Which home team has an Away team of fitzroy?
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
SELECT wheelbase__mm_inch_ FROM table_20866024_3 WHERE model_designation = "97G00"
What's the wheelbase (in mm/inch) of the model with model designation 97G00?
CREATE TABLE table_20866024_3 (wheelbase__mm_inch_ VARCHAR, model_designation VARCHAR)
SELECT no_in_series FROM table_2818164_5 WHERE no_in_season = "17"
What episode number in the series is also number 17 in the season?
CREATE TABLE table_2818164_5 (no_in_series VARCHAR, no_in_season VARCHAR)
SELECT Total_Horses FROM farm ORDER BY Total_Horses
List the total number of horses on farms in ascending order.
CREATE TABLE farm (Total_Horses VARCHAR)
SELECT MIN(winners_share__) AS $_ FROM table_229059_2 WHERE champion = "Se Ri Pak (2)"
What was the winner share (in $) in the year when Se Ri Pak (2) was the champion?
CREATE TABLE table_229059_2 (winners_share__ INTEGER, champion VARCHAR)
SELECT COUNT(*) FROM county_public_safety
How many counties are there?
CREATE TABLE county_public_safety (Id VARCHAR)
SELECT manner_of_departure FROM table_name_56 WHERE replaced_by = "michael oenning"
How did the manager replaced by Michael Oenning depart?
CREATE TABLE table_name_56 (manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT catalog FROM table_name_94 WHERE date = "may 27, 2009"
What is the catalog of the record released on May 27, 2009?
CREATE TABLE table_name_94 (catalog VARCHAR, date VARCHAR)
SELECT T2.party_name, COUNT(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id
Show all party names and the number of members in each party.
CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE Member (party_id VARCHAR)
SELECT MAX(overall) FROM table_name_64 WHERE nationality = "finland"
For the player from Finland, what is the highest overall pick rank?
CREATE TABLE table_name_64 (overall INTEGER, nationality VARCHAR)
SELECT AVG(rank) FROM table_name_4 WHERE moving_to = "milan" AND year = 2000
What rank is the transfer for the milan move in 2000?
CREATE TABLE table_name_4 (rank INTEGER, moving_to VARCHAR, year VARCHAR)
SELECT MAX(year_signed) FROM table_name_79 WHERE reason_for_separation = "†" AND year_separated = "1997"
What is the most current year signed for separation of † and a separation year of 1997?
CREATE TABLE table_name_79 (year_signed INTEGER, reason_for_separation VARCHAR, year_separated VARCHAR)
SELECT 5 AS ’utr_splice FROM table_name_46 WHERE variant_id = "sftpa1 variant 2"
Which 5’UTR splice has a Variant ID at sftpa1 variant 2?
CREATE TABLE table_name_46 (variant_id VARCHAR)
SELECT SUM(no_result) FROM table_name_63 WHERE matches > 16 AND wins < 46
How many total No Results occured when the team had less than 46 wins and more than 16 matches?
CREATE TABLE table_name_63 (no_result INTEGER, matches VARCHAR, wins VARCHAR)
SELECT comparative FROM table_name_71 WHERE name = "pictar"
Which Comparative has a Name of pictar?
CREATE TABLE table_name_71 (comparative VARCHAR, name VARCHAR)
SELECT years FROM table_name_63 WHERE matches > 158 AND rank > 9 AND goals < 84
In what years was there a rank lower than 9, under 84 goals, and more than 158 matches?
CREATE TABLE table_name_63 (years VARCHAR, goals VARCHAR, matches VARCHAR, rank VARCHAR)
SELECT to_par FROM table_name_18 WHERE player = "ben crenshaw"
Ben Crenshaw has what To par?
CREATE TABLE table_name_18 (to_par VARCHAR, player VARCHAR)
SELECT team_1 FROM table_name_79 WHERE team_2 = "asante kotoko"
Which team 1 had a team 2 of Asante Kotoko?
CREATE TABLE table_name_79 (team_1 VARCHAR, team_2 VARCHAR)
SELECT royal_house FROM table_name_34 WHERE name = "elah"
Which Royal house is named Elah?
CREATE TABLE table_name_34 (royal_house VARCHAR, name VARCHAR)
SELECT MIN(f_laps) FROM table_25375093_1
Name the least f/laps
CREATE TABLE table_25375093_1 (f_laps INTEGER)
SELECT record FROM table_name_65 WHERE date = "november 7"
what team scored on november 7
CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR)
SELECT MAX(rank) FROM table_name_54 WHERE heat > 3 AND nationality = "switzerland"
What is the highest rank of an athlete from Switzerland in a heat larger than 3?
CREATE TABLE table_name_54 (rank INTEGER, heat VARCHAR, nationality VARCHAR)
SELECT decision FROM table_27501030_7 WHERE opponent = "Atlanta Thrashers"
What is the decision when the opponents are atlanta thrashers?
CREATE TABLE table_27501030_7 (decision VARCHAR, opponent VARCHAR)
SELECT place FROM table_name_78 WHERE points_jury = "34 (7,8,9,10)"
Which Place has a Points Jury of 34 (7,8,9,10)?
CREATE TABLE table_name_78 (place VARCHAR, points_jury 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 date FROM table_name_44 WHERE tie_no = "5"
what date did tie number 5 occur?
CREATE TABLE table_name_44 (date VARCHAR, tie_no VARCHAR)
SELECT award FROM table_name_24 WHERE year = 2009 AND category = "songwriter of the year"
what is the award for the 2009 songwriter of the year?
CREATE TABLE table_name_24 (award VARCHAR, year VARCHAR, category VARCHAR)
SELECT ground FROM table_name_36 WHERE result = "0-4"
Where was the game played that has a result of 0-4?
CREATE TABLE table_name_36 (ground VARCHAR, result VARCHAR)
SELECT pe̍h_ōe_jī FROM table_17015_2 WHERE chinese = "前金區"
Name the pe̍h-ōe-jī for 前金區
CREATE TABLE table_17015_2 (pe̍h_ōe_jī VARCHAR, chinese VARCHAR)
SELECT scientific_linux_release FROM table_1500146_1 WHERE delay = "28d"
Name the scientific linux release when delay is 28d
CREATE TABLE table_1500146_1 (scientific_linux_release VARCHAR, delay VARCHAR)
SELECT MIN(width) FROM table_name_18 WHERE frame_size = "5k" AND height < 2700
What is the smallest width for a frame size of 5k and a height shorter than 2700?
CREATE TABLE table_name_18 (width INTEGER, frame_size VARCHAR, height VARCHAR)
SELECT one_mora FROM table_name_73 WHERE three_mora_word = "/kaze/ [kázé]"
What is the one mora for the three-mora word /kaze/ [kázé]?
CREATE TABLE table_name_73 (one_mora VARCHAR, three_mora_word VARCHAR)
SELECT away_team AS score FROM table_name_57 WHERE venue = "victoria park"
How much did the away team score at victoria park?
CREATE TABLE table_name_57 (away_team VARCHAR, venue VARCHAR)
SELECT MIN(year) FROM table_name_49 WHERE city = "chester-le-street" AND score = "345 runs"
What is the lowest year that has chester-le-street as the city, with 345 runs as the score?
CREATE TABLE table_name_49 (year INTEGER, city VARCHAR, score VARCHAR)
SELECT AVG(rank) FROM table_name_7 WHERE player = "hale irwin"
What's hale irwin's average rank?
CREATE TABLE table_name_7 (rank INTEGER, player VARCHAR)
SELECT result FROM table_name_68 WHERE date = "july 16, 2000"
Tell me the result of july 16, 2000
CREATE TABLE table_name_68 (result VARCHAR, date VARCHAR)
SELECT school FROM table_11677691_2 WHERE college = "South Carolina"
WHAT SCHOOL DID THE PLAYER FROM SOUTH CAROLINA ATTEND?
CREATE TABLE table_11677691_2 (school VARCHAR, college VARCHAR)
SELECT pba_team FROM table_name_41 WHERE pick < 11 AND player = "roberto jabar"
What is the PBA team for roberto jabar who was picked before number 11?
CREATE TABLE table_name_41 (pba_team VARCHAR, pick VARCHAR, player VARCHAR)
SELECT host_country___countries FROM table_name_45 WHERE bronze = "[[|]] (1)" AND host_city___cities = "krynica"
Who was the host country when bronze is [[|]] (1) and host city is Krynica?
CREATE TABLE table_name_45 (host_country___countries VARCHAR, bronze VARCHAR, host_city___cities VARCHAR)
SELECT type FROM table_name_88 WHERE quantity < 6 AND number_s_ = "5201"
What is the type with a quantity of fewer than 6 and number(s) 5201?
CREATE TABLE table_name_88 (type VARCHAR, quantity VARCHAR, number_s_ VARCHAR)
SELECT MAX(game) FROM table_21091162_1 WHERE record = "3-4-0"
How many games have a record of 3-4-0?
CREATE TABLE table_21091162_1 (game INTEGER, record VARCHAR)