answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT transmitter_location FROM table_name_87 WHERE station = "voice of vietnam"
Where is the transmitter located for the station voice of vietnam
CREATE TABLE table_name_87 (transmitter_location VARCHAR, station VARCHAR)
SELECT country FROM table_name_23 WHERE score = 69 - 74 - 71 = 214
What is the country of the player with a score of 69-74-71=214?
CREATE TABLE table_name_23 (country VARCHAR, score VARCHAR)
SELECT COUNT(high_assists) FROM table_17118657_8 WHERE score = "68-60"
How many high assists are listed for the game with a score of 68-60?
CREATE TABLE table_17118657_8 (high_assists VARCHAR, score VARCHAR)
SELECT name FROM table_name_51 WHERE authors = "kammerer & sidor"
What is Name, when Authors are Kammerer & Sidor?
CREATE TABLE table_name_51 (name VARCHAR, authors VARCHAR)
SELECT year FROM table_12032893_1 WHERE weight = 170
In which year was the Weight 170?
CREATE TABLE table_12032893_1 (year VARCHAR, weight VARCHAR)
SELECT SUM(pick) FROM table_name_56 WHERE name = "ed hickerson" AND round < 10
Which Pick has a Name of ed hickerson, and a Round smaller than 10?
CREATE TABLE table_name_56 (pick INTEGER, name VARCHAR, round VARCHAR)
SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = "San Jose State University" AND t1.year = 2000
Find the campus fee of "San Jose State University" in year 2000.
CREATE TABLE campuses (id VARCHAR, campus VARCHAR); CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR)
SELECT partnering FROM table_name_11 WHERE score = "7–6 7 , 6–1"
Which Partnering has a Score of 7–6 7 , 6–1?
CREATE TABLE table_name_11 (partnering VARCHAR, score VARCHAR)
SELECT DISTINCT staff_first_name, staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1
List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.
CREATE TABLE problem_log (assigned_to_staff_id VARCHAR, problem_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)
SELECT AVG(year) FROM table_name_9 WHERE additional_colour_s_ = "black"
What is the average year of entries with additional color black?
CREATE TABLE table_name_9 (year INTEGER, additional_colour_s_ VARCHAR)
SELECT source_of_wealth FROM table_name_51 WHERE value = "£5726m"
What source of wealth has a value of £5726m?
CREATE TABLE table_name_51 (source_of_wealth VARCHAR, value VARCHAR)
SELECT earnings_per_share__p_ FROM table_18304259_1 WHERE net_profit__£m_ = "39.2"
Name the eps for net profit being 39.2
CREATE TABLE table_18304259_1 (earnings_per_share__p_ VARCHAR, net_profit__£m_ VARCHAR)
SELECT AVG(year) FROM table_name_11 WHERE laps = 6
Name the average year with Laps of 6
CREATE TABLE table_name_11 (year INTEGER, laps VARCHAR)
SELECT score FROM table_name_90 WHERE surface = "carpet" AND date = "november 5, 2007"
What is the score of the tournament on November 5, 2007 with a carpet surface?
CREATE TABLE table_name_90 (score VARCHAR, surface VARCHAR, date VARCHAR)
SELECT COUNT(opengl) FROM table_25839957_5 WHERE code_name = "Ironlake ( Clarkdale )"
How many opengl have the ironlake ( clarkdale ) code name?
CREATE TABLE table_25839957_5 (opengl VARCHAR, code_name VARCHAR)
SELECT location FROM table_28523_2 WHERE school = "Cunningham Hill Infant school"
Where is the cunningham hill infant school located?
CREATE TABLE table_28523_2 (location VARCHAR, school VARCHAR)
SELECT MIN(no) FROM table_12608427_8 WHERE name = "de Vries"
What is the number for De Vries?
CREATE TABLE table_12608427_8 (no INTEGER, name VARCHAR)
SELECT to_par FROM table_name_32 WHERE finish = "66"
What is the To par when the finish is 66?
CREATE TABLE table_name_32 (to_par VARCHAR, finish VARCHAR)
SELECT COUNT(apps) FROM table_name_83 WHERE transfer_window = "summer" AND name = "sinclair"
how many times is the transfer window, summer and the name sinclair?
CREATE TABLE table_name_83 (apps VARCHAR, transfer_window VARCHAR, name VARCHAR)
SELECT location FROM table_name_77 WHERE mountain_peak = "blanca peak"
What is the location of Blanca Peak?
CREATE TABLE table_name_77 (location VARCHAR, mountain_peak VARCHAR)
SELECT category FROM table_name_45 WHERE country = "russia"
Russia has films in which category?
CREATE TABLE table_name_45 (category VARCHAR, country VARCHAR)
SELECT final_score FROM table_23612439_2 WHERE attendance = 22210
What is the final score when 22210 is the attendance?
CREATE TABLE table_23612439_2 (final_score VARCHAR, attendance VARCHAR)
SELECT year FROM table_name_51 WHERE chassis = "dallara" AND team = "andretti green racing" AND finish < 8
What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?
CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR)
SELECT date FROM table_name_25 WHERE home = "detroit"
On what date did Detroit play at home?
CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR)
SELECT COUNT(rank) FROM table_name_93 WHERE club = "zulte waregem" AND points > 22
Which Rank has a Club of zulte waregem, and Points larger than 22?
CREATE TABLE table_name_93 (rank VARCHAR, club VARCHAR, points VARCHAR)
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) DESC LIMIT 1
Which airline has most number of flights?
CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR)
SELECT gender FROM table_name_3 WHERE riding = "st. john's south—mount pearl"
The candidate with Riding of st. john's south—mount pearl is what gender?
CREATE TABLE table_name_3 (gender VARCHAR, riding VARCHAR)
SELECT line FROM table_name_82 WHERE name = "geumjeong tunnel"
Which line is the Geumjeong tunnel?
CREATE TABLE table_name_82 (line VARCHAR, name VARCHAR)
SELECT COUNT(ilo_code) FROM table_2001348_1 WHERE revising_convention_s_ = "this convention, Work in Fishing Convention"
How many ILO codes are there with revising conventions of 'this convention, work in fishing convention'?
CREATE TABLE table_2001348_1 (ilo_code VARCHAR, revising_convention_s_ VARCHAR)
SELECT latitude FROM table_25675509_1 WHERE time__utc_ = "13:10:02"
At what latitude did the shock at time 13:10:02 occur?
CREATE TABLE table_25675509_1 (latitude VARCHAR, time__utc_ VARCHAR)
SELECT MIN(wins) FROM table_name_51 WHERE cuts_made > 4 AND top_5 < 1
What is the smallest value for Wins when the number of cuts is greater than 4 and the Top-5 value is less than 1?
CREATE TABLE table_name_51 (wins INTEGER, cuts_made VARCHAR, top_5 VARCHAR)
SELECT rank FROM table_name_30 WHERE notes = "fb" AND time = "5:54.57"
What's the rank if the time was 5:54.57 and FB in notes?
CREATE TABLE table_name_30 (rank VARCHAR, notes VARCHAR, time VARCHAR)
SELECT AVG(International_Passengers) FROM airport
What is the average number of international passengers of all airports?
CREATE TABLE airport (International_Passengers INTEGER)
SELECT venue FROM table_name_97 WHERE attendance = "11,045"
Which Venue has Attendances of 11,045?
CREATE TABLE table_name_97 (venue VARCHAR, attendance VARCHAR)
SELECT MIN(game) FROM table_20928682_1 WHERE opponent = "Georgia"
Which game number was played against Georgia?
CREATE TABLE table_20928682_1 (game INTEGER, opponent VARCHAR)
SELECT artist FROM table_name_41 WHERE single___pack = "guitar hero track pack 1"
What is the name of the artist with a Single / Pack of guitar hero track pack 1?
CREATE TABLE table_name_41 (artist VARCHAR, single___pack VARCHAR)
SELECT nationality FROM table_11803648_20 WHERE club_team = "Peterborough Petes (OHL)"
What is the Nationality when the club team is Peterborough Petes (OHL)?
CREATE TABLE table_11803648_20 (nationality VARCHAR, club_team VARCHAR)
SELECT MAX(localities) FROM table_26007767_1
What is the highest localities?
CREATE TABLE table_26007767_1 (localities INTEGER)
SELECT player FROM table_name_29 WHERE to_par = "–1" AND year_s__won = "1952"
Which Player has a To par of –1, and a Year(s) won of 1952?
CREATE TABLE table_name_29 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR)
SELECT score FROM table_11963601_11 WHERE date = "May 11"
What was the score in the game on May 11?
CREATE TABLE table_11963601_11 (score VARCHAR, date VARCHAR)
SELECT class FROM table_name_97 WHERE wheels = 137
What is the value for the item "Class" when the value of the item "Wheels" is 137?
CREATE TABLE table_name_97 (class VARCHAR, wheels VARCHAR)
SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 8 UNION SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5
What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 race results?
CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE results (driverid VARCHAR); CREATE TABLE pitstops (driverid VARCHAR)
SELECT MIN(pick__number) FROM table_name_13 WHERE college = "cornell"
What is cornell's lowest pick number?
CREATE TABLE table_name_13 (pick__number INTEGER, college VARCHAR)
SELECT time FROM table_name_66 WHERE record = "10-1"
What is the time where the record is 10-1?
CREATE TABLE table_name_66 (time VARCHAR, record VARCHAR)
SELECT AVG(ties) FROM table_name_41 WHERE goals_against < 56 AND team = "ottawa hockey club" AND goals_for > 47
What is the average number of ties when goals against is less than 56 for Ottawa Hockey Club and the goals for is more than 47?
CREATE TABLE table_name_41 (ties INTEGER, goals_for VARCHAR, goals_against VARCHAR, team VARCHAR)
SELECT wicket FROM table_name_93 WHERE batting_partners = "mohammad azharuddin and ajay jadeja" AND fielding_team = "sri lanka"
What was the wicket ranking for the match featuring partners Mohammad Azharuddin and Ajay Jadeja and also a fielding team of Sri Lanka?
CREATE TABLE table_name_93 (wicket VARCHAR, batting_partners VARCHAR, fielding_team VARCHAR)
SELECT decision FROM table_name_82 WHERE game > 6
What is the decision of the game larger than 6.
CREATE TABLE table_name_82 (decision VARCHAR, game INTEGER)
SELECT MAX(population) FROM table_name_13 WHERE town_city = "ivaiporã, pr"
What is Ivaiporã, pr's biggest population?
CREATE TABLE table_name_13 (population INTEGER, town_city VARCHAR)
SELECT directed_by FROM table_28027307_1 WHERE production_code = "6AKY11"
Who directed the episode with the production code of 6AKY11?
CREATE TABLE table_28027307_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT replaced_by FROM table_27091128_2 WHERE team = "Altay"
Who replaced the previous manager of Altay?
CREATE TABLE table_27091128_2 (replaced_by VARCHAR, team VARCHAR)
SELECT producer_s_ FROM table_name_91 WHERE recipient = "laura tunstall"
Who produced Laura Tunstall?
CREATE TABLE table_name_91 (producer_s_ VARCHAR, recipient VARCHAR)
SELECT home FROM table_name_5 WHERE date = "26 february 2008"
Who was the home team of the game on 26 February 2008?
CREATE TABLE table_name_5 (home VARCHAR, date VARCHAR)
SELECT AVG(lost) FROM table_name_65 WHERE points > 3 AND played > 14
What was the average losses for team with points larger than 3 and played larger thna 14?
CREATE TABLE table_name_65 (lost INTEGER, points VARCHAR, played VARCHAR)
SELECT spending_per_capita FROM table_14700336_1 WHERE revenue_per_capita = "$7,755"
What was the spending per capita when the revenue per capita was $7,755?
CREATE TABLE table_14700336_1 (spending_per_capita VARCHAR, revenue_per_capita VARCHAR)
SELECT COUNT(moto2_250cc) FROM table_2889810_2 WHERE country = "United States"
how many total number of moto2/250cc when country is united states
CREATE TABLE table_2889810_2 (moto2_250cc VARCHAR, country VARCHAR)
SELECT date FROM table_name_28 WHERE week = 15
What is the date for week 15?
CREATE TABLE table_name_28 (date VARCHAR, week VARCHAR)
SELECT AVG(played) FROM table_name_61 WHERE losses = 6 AND wins > 33
How many Played that has Losses of 6, and Wins larger than 33?
CREATE TABLE table_name_61 (played INTEGER, losses VARCHAR, wins VARCHAR)
SELECT MIN(wins) FROM table_name_1 WHERE goals_for > 72
What is the low win count with more than 72 goals?
CREATE TABLE table_name_1 (wins INTEGER, goals_for INTEGER)
SELECT notes FROM table_20174050_7 WHERE reader = "Briggs, Nicholas Nicholas Briggs" AND title = "Paradox Lost"
If the title is Paradox Lost and the reader is Briggs, Nicholas Nicholas Briggs, what are all of the notes?
CREATE TABLE table_20174050_7 (notes VARCHAR, reader VARCHAR, title VARCHAR)
SELECT high_assists FROM table_27723526_12 WHERE score = "L 103–104 (OT)"
Name the high assists for l 103–104 (ot)
CREATE TABLE table_27723526_12 (high_assists VARCHAR, score VARCHAR)
SELECT COUNT(originalairdate) FROM table_2626495_1 WHERE directed_by = "Maury Geraghty"
how many times was the episode directed by maury geraghty originally aired?
CREATE TABLE table_2626495_1 (originalairdate VARCHAR, directed_by VARCHAR)
SELECT AVG(grid) FROM table_name_62 WHERE rider = "toni elias" AND laps > 30
What is the average Grid for the Rider Toni Elias with Laps more than 30?
CREATE TABLE table_name_62 (grid INTEGER, rider VARCHAR, laps VARCHAR)
SELECT qual_1 FROM table_name_13 WHERE name = "jan heylen"
Tell me the qual 1 for jan heylen
CREATE TABLE table_name_13 (qual_1 VARCHAR, name VARCHAR)
SELECT high_rebounds FROM table_name_73 WHERE game > 65 AND date = "march 28"
Who had the highest rebounds of the game with a game number higher than 65 on March 28?
CREATE TABLE table_name_73 (high_rebounds VARCHAR, game VARCHAR, date VARCHAR)
SELECT chassis_manufacturer FROM table_1425948_1 WHERE fleet_numbers = "2530-2558"
Which chassis manufacturer is for fleet numbers range 2530-2558
CREATE TABLE table_1425948_1 (chassis_manufacturer VARCHAR, fleet_numbers VARCHAR)
SELECT leading_scorer FROM table_name_54 WHERE date = "april 9"
Who led the score on April 9?
CREATE TABLE table_name_54 (leading_scorer VARCHAR, date VARCHAR)
SELECT sport FROM table_name_9 WHERE name = "gustav larsson"
What is the Sport with a Name that is gustav larsson?
CREATE TABLE table_name_9 (sport VARCHAR, name VARCHAR)
SELECT record FROM table_name_63 WHERE time = "3:56"
What is the record with a 3:56 time?
CREATE TABLE table_name_63 (record VARCHAR, time VARCHAR)
SELECT home_team FROM table_name_97 WHERE away_team = "convoy sun hei team b"
Who was the home team in the match that had an away team of Convoy Sun Hei Team B?
CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(music) FROM table_28677723_10 WHERE tor_fløysvik = 3
How many music entries are there when tor floysvik is 3?
CREATE TABLE table_28677723_10 (music VARCHAR, tor_fløysvik VARCHAR)
SELECT number FROM table_22481967_1 WHERE operator = "Melbourne and Metropolitan Tramways Board"
List the number for the operator melbourne and metropolitan tramways board.
CREATE TABLE table_22481967_1 (number VARCHAR, operator VARCHAR)
SELECT series FROM table_name_46 WHERE director = "dan povenmire" AND title = "museum scream"
What series has dan povenmire as the director, with museum scream as the title?
CREATE TABLE table_name_46 (series VARCHAR, director VARCHAR, title VARCHAR)
SELECT no_8 FROM table_name_29 WHERE no_4 = "matthew" AND no_7 = "anthony"
What is the No. 8 of the person with a No. 4 of Matthew and a No. 7 of Anthony?
CREATE TABLE table_name_29 (no_8 VARCHAR, no_4 VARCHAR, no_7 VARCHAR)
SELECT afl_team FROM table_12165999_1 WHERE player = "Bob Johnson"
Bob Johnson plays for which AFL team?
CREATE TABLE table_12165999_1 (afl_team VARCHAR, player VARCHAR)
SELECT MIN(draws) FROM table_name_66 WHERE losses > 0 AND against < 1728 AND ballarat_fl = "melton" AND byes < 2
What is the lowest draws that have losses greater than 0, an against less than 1728, melton as the ballarat fl, and byes less than 2?
CREATE TABLE table_name_66 (draws INTEGER, byes VARCHAR, ballarat_fl VARCHAR, losses VARCHAR, against VARCHAR)
SELECT city_of_license FROM table_name_78 WHERE call_sign = "w242at"
For the call sign w242at what's the city the license plate is registered to?
CREATE TABLE table_name_78 (city_of_license VARCHAR, call_sign VARCHAR)
SELECT ship FROM table_name_43 WHERE pennant_number = "h.69"
Which ship has a Pennant number of h.69?
CREATE TABLE table_name_43 (ship VARCHAR, pennant_number VARCHAR)
SELECT other FROM table_name_85 WHERE firefox = "20.80%"
What is the other that has 20.80% as the firefox?
CREATE TABLE table_name_85 (other VARCHAR, firefox VARCHAR)
SELECT title FROM table_25740548_4 WHERE us_viewers__million_ = "2.75"
Which episode had 2.75 million viewers in the U.S.?
CREATE TABLE table_25740548_4 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(pl_gp) FROM table_name_16 WHERE reg_gp < 5 AND team__league_ = "seattle thunderbirds" AND pick__number < 131
What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131?
CREATE TABLE table_name_16 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR, team__league_ VARCHAR)
SELECT MAX(points) FROM table_name_61 WHERE driver = "dan clarke" AND grid > 10
What is the highest points total scored by Dan Clarke in a grid higher than 10?
CREATE TABLE table_name_61 (points INTEGER, driver VARCHAR, grid VARCHAR)
SELECT club FROM table_name_53 WHERE round = 1 AND home = "0-2"
What club has a home score of 0-2 in Round 1?
CREATE TABLE table_name_53 (club VARCHAR, round VARCHAR, home VARCHAR)
SELECT COUNT(grid) FROM table_name_59 WHERE time = "+37.949"
what's the grid with time +37.949?
CREATE TABLE table_name_59 (grid VARCHAR, time VARCHAR)
SELECT to_par FROM table_name_89 WHERE score = 73 - 67 - 68 = 208
What is the To par of the Player with a Score of 73-67-68=208?
CREATE TABLE table_name_89 (to_par VARCHAR, score VARCHAR)
SELECT league AS Cup FROM table_22357065_1 WHERE nation = "Northern Ireland"
Name the league cup for northern ireland
CREATE TABLE table_22357065_1 (league VARCHAR, nation VARCHAR)
SELECT SUM(wins) FROM table_name_3 WHERE cuts_made = 76 AND events > 115
What is the total of wins when the cuts made is 76 and the events greater than 115?
CREATE TABLE table_name_3 (wins INTEGER, cuts_made VARCHAR, events VARCHAR)
SELECT iata FROM table_name_89 WHERE city = "sapporo"
What shows for IATA for the City of sapporo?
CREATE TABLE table_name_89 (iata VARCHAR, city VARCHAR)
SELECT first FROM table_name_62 WHERE position = "c" AND bats = "l"
Which First has a Position of c, and Bats of l?
CREATE TABLE table_name_62 (first VARCHAR, position VARCHAR, bats VARCHAR)
SELECT score FROM table_name_69 WHERE home = "broadview hawks"
What was the score of the Broadview Hawks home game?
CREATE TABLE table_name_69 (score VARCHAR, home VARCHAR)
SELECT team FROM table_name_90 WHERE fin_pos = "8"
Which team had a finish position of 8?
CREATE TABLE table_name_90 (team VARCHAR, fin_pos VARCHAR)
SELECT voice_actor FROM table_26615633_1 WHERE species = "Hedgehog"
who was the voice actor when the species is hedgehog?
CREATE TABLE table_26615633_1 (voice_actor VARCHAR, species VARCHAR)
SELECT COUNT(date_of_death) FROM table_25345002_1 WHERE date_of_birth = "1938-08-30 30 August 1938"
What are the dates of death of those politicians whose date of birth 1938-08-30 30 august 1938?
CREATE TABLE table_25345002_1 (date_of_death VARCHAR, date_of_birth VARCHAR)
SELECT points_1 FROM table_17718005_2 WHERE team = "Ellesmere Port & Neston"
When ellesmere port & neston is the team what are the points 1?
CREATE TABLE table_17718005_2 (points_1 VARCHAR, team VARCHAR)
SELECT period FROM table_name_67 WHERE year = 1896
What was the period for 1896?
CREATE TABLE table_name_67 (period VARCHAR, year VARCHAR)
SELECT date FROM table_name_63 WHERE score = "3–6, 7–5, 6–4"
Score of 3–6, 7–5, 6–4 included what date?
CREATE TABLE table_name_63 (date VARCHAR, score VARCHAR)
SELECT MAX(matches) FROM table_21486890_1 WHERE name = "Mark Taylor Category:Articles with hCards"
Name the matches for mark taylor category:articles with hcards
CREATE TABLE table_21486890_1 (matches INTEGER, name VARCHAR)
SELECT name FROM table_24143253_1 WHERE deceased_spouse = "Louis Malle"
Name the name for deceased spouse being louis malle
CREATE TABLE table_24143253_1 (name VARCHAR, deceased_spouse VARCHAR)
SELECT COUNT(no_in_series) FROM table_1876825_7 WHERE production_code = "06-04-621"
Name the number of number in series for production code of 06-04-621
CREATE TABLE table_1876825_7 (no_in_series VARCHAR, production_code VARCHAR)
SELECT event FROM table_name_88 WHERE distance = "ft10in (m)"
Which event has a distance of ft10in (m)?
CREATE TABLE table_name_88 (event VARCHAR, distance VARCHAR)
SELECT category FROM table_name_88 WHERE type = "rowexit"
When Type was rowexit what was the Category?
CREATE TABLE table_name_88 (category VARCHAR, type VARCHAR)