answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT station FROM table_name_79 WHERE country_of_origin = "china" AND frequency = "684khz"
Which station is from China and has a frequency of 684khz?
CREATE TABLE table_name_79 (station VARCHAR, country_of_origin VARCHAR, frequency VARCHAR)
SELECT COUNT(rank) FROM table_name_51 WHERE years = "1996–2007" AND goals > 108
What is the total number of Rank for 1996–2007, when there are more than 108 goals?
CREATE TABLE table_name_51 (rank VARCHAR, years VARCHAR, goals VARCHAR)
SELECT platform FROM table_name_37 WHERE publisher = "mindark"
For what platform does Mindark publish?
CREATE TABLE table_name_37 (platform VARCHAR, publisher VARCHAR)
SELECT best FROM table_name_17 WHERE name = "jimmy vasser"
What is Best, when Name is Jimmy Vasser?
CREATE TABLE table_name_17 (best VARCHAR, name VARCHAR)
SELECT per_capita_income FROM table_1356555_2 WHERE county = "Shasta"
What is the per capita income of shasta?
CREATE TABLE table_1356555_2 (per_capita_income VARCHAR, county VARCHAR)
SELECT Area, County FROM APPELLATIONS
List the area and county of all appelations.
CREATE TABLE APPELLATIONS (Area VARCHAR, County VARCHAR)
SELECT record FROM table_name_72 WHERE home = "nashville"
Which Record has a home of Nashville?
CREATE TABLE table_name_72 (record VARCHAR, home VARCHAR)
SELECT silver_medals FROM table_name_57 WHERE gold_medals = 2 AND total_medals > 2
How many silvers for a school with 2 golds and over 2 total?
CREATE TABLE table_name_57 (silver_medals VARCHAR, gold_medals VARCHAR, total_medals VARCHAR)
SELECT event FROM table_name_68 WHERE medal = "bronze" AND olympics = "2000 summer olympics"
What is the event in the 2000 summer olympics with a bronze medal?
CREATE TABLE table_name_68 (event VARCHAR, medal VARCHAR, olympics VARCHAR)
SELECT team FROM table_23274514_7 WHERE record = "19-34"
Name the team for 19-34
CREATE TABLE table_23274514_7 (team VARCHAR, record VARCHAR)
SELECT COUNT(number_built) FROM table_name_45 WHERE chassis_code = "w108.057"
What's the total number built with a chassis code of w108.057?
CREATE TABLE table_name_45 (number_built VARCHAR, chassis_code VARCHAR)
SELECT venue FROM table_name_79 WHERE radio = "mrn" AND race = "napa auto parts 200"
What is the venue of the napa auto parts 200 race with a mrn radio?
CREATE TABLE table_name_79 (venue VARCHAR, radio VARCHAR, race VARCHAR)
SELECT province FROM table_name_15 WHERE location = "260km ese of calgary"
Tell me the province for 260km ese of calgary
CREATE TABLE table_name_15 (province VARCHAR, location VARCHAR)
SELECT MIN(total) FROM table_name_46 WHERE gold = 3 AND silver < 3
What is the lowest total of medals that has a gold of 3 and a silver less than 3?
CREATE TABLE table_name_46 (total INTEGER, gold VARCHAR, silver VARCHAR)
SELECT team FROM table_14003020_5 WHERE stadium = "Glebe Park"
what's the team with stadium being glebe park
CREATE TABLE table_14003020_5 (team VARCHAR, stadium VARCHAR)
SELECT SUM(grid) FROM table_name_7 WHERE time = "+6.355" AND laps > 23
Can you tell me the sum of Grid that has the Time of +6.355, and the Laps larger than 23?
CREATE TABLE table_name_7 (grid INTEGER, time VARCHAR, laps VARCHAR)
SELECT MIN(fa_cup_goals) FROM table_name_10 WHERE total_goals > 0 AND league_goals = 4 AND fa_cup_apps = "1" AND league_cup_goals > 0
What is the lowest FA Cup Goals, when Total Goals is greater than 0, when League Goals is "4", when FA Cup Apps is "1", and when League Cup Goals is greater than 0?
CREATE TABLE table_name_10 (fa_cup_goals INTEGER, league_cup_goals VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR, league_goals VARCHAR)
SELECT MAX(total_finals) FROM table_name_56 WHERE runners_up > 2 AND winners < 1
What is the highest total number of finals a club with more than 2 runners-up and fewer than 1 winner went to?
CREATE TABLE table_name_56 (total_finals INTEGER, runners_up VARCHAR, winners VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_57 WHERE constellation = "pegasus" AND ngc_number = "7343"
What is the right ascension of Pegasus with a 7343 NGC?
CREATE TABLE table_name_57 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR)
SELECT surface FROM table_name_3 WHERE opponent = "marcos baghdatis"
What was the surface for the opponent Marcos Baghdatis?
CREATE TABLE table_name_3 (surface VARCHAR, opponent VARCHAR)
SELECT position FROM table_name_41 WHERE time = "1:45:53:00"
Which position has a time of 1:45:53:00?
CREATE TABLE table_name_41 (position VARCHAR, time VARCHAR)
SELECT COUNT(oilers_first_downs) FROM table_15984957_2 WHERE date = "Sept. 17"
On Sept. 17, how many first downs did the oilers have?
CREATE TABLE table_15984957_2 (oilers_first_downs VARCHAR, date VARCHAR)
SELECT MAX(number_of_people) FROM table_16048129_5 WHERE average_family_size = "2.8"
What is the largest population in regions where the average family size is 2.8 people?
CREATE TABLE table_16048129_5 (number_of_people INTEGER, average_family_size VARCHAR)
SELECT location_attendance FROM table_13464416_8 WHERE record = "16-44"
What was the location and attendance when the team's record was 16-44?
CREATE TABLE table_13464416_8 (location_attendance VARCHAR, record VARCHAR)
SELECT player FROM table_name_91 WHERE year_s__won = "1994"
Who is the player who won in 1994?
CREATE TABLE table_name_91 (player VARCHAR, year_s__won VARCHAR)
SELECT date FROM table_name_66 WHERE record = "track" AND time__seconds_ > 43.564 AND sport = "luge - women's singles"
What is the Date, when the Record is, "track", when the Time (seconds) is longer than 43.564, and when the Sport is luge - women's singles?
CREATE TABLE table_name_66 (date VARCHAR, sport VARCHAR, record VARCHAR, time__seconds_ VARCHAR)
SELECT gold FROM table_name_2 WHERE event = "time trial details" AND silver = "simon richardson great britain (gbr)"
Who received gold when the event is time trial details and silver is simon richardson great britain (gbr)?
CREATE TABLE table_name_2 (gold VARCHAR, event VARCHAR, silver VARCHAR)
SELECT COUNT(year) FROM table_name_56 WHERE champion = "ilie năstase" AND runner_up = "peter fleming"
When Ilie Năstase beat runner-up Peter Fleming what year was it?
CREATE TABLE table_name_56 (year VARCHAR, champion VARCHAR, runner_up VARCHAR)
SELECT SUM(loses) FROM table_name_18 WHERE year > 1972 AND competition = "nswrfl" AND draws = 0 AND wins = 16
What sum of Losses has Year greater than 1972, and Competition of nswrfl, and Draws 0, and Wins 16?
CREATE TABLE table_name_18 (loses INTEGER, wins VARCHAR, draws VARCHAR, year VARCHAR, competition VARCHAR)
SELECT driver FROM table_name_91 WHERE grid > 5 AND laps = 28
What Driver has 28 Laps and a Grid greater than 5?
CREATE TABLE table_name_91 (driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT designation FROM table_name_56 WHERE manufacturer = "siemens" AND quantity = 52
Which Designation has a Manufacturer of siemens, and a Quantity of 52?
CREATE TABLE table_name_56 (designation VARCHAR, manufacturer VARCHAR, quantity VARCHAR)
SELECT time FROM table_26842217_10 WHERE visiting_team = "#1 Alabama"
Name the time for #1 alabama
CREATE TABLE table_26842217_10 (time VARCHAR, visiting_team VARCHAR)
SELECT printer FROM table_15635768_1 WHERE face_value = "39¢"
The stamp was 39¢, who was the printer?
CREATE TABLE table_15635768_1 (printer VARCHAR, face_value VARCHAR)
SELECT results FROM table_1341423_36 WHERE district = "Oklahoma 3"
What was the results for the district oklahoma 3?
CREATE TABLE table_1341423_36 (results VARCHAR, district VARCHAR)
SELECT COUNT(year) FROM table_181892_4 WHERE chassis = "Lotus-Ford 38/7"
How many years was the chassis a lotus-ford 38/7?
CREATE TABLE table_181892_4 (year VARCHAR, chassis VARCHAR)
SELECT transfer_fee FROM table_name_53 WHERE name = "diogo"
What is the transfer fee of Diogo?
CREATE TABLE table_name_53 (transfer_fee VARCHAR, name VARCHAR)
SELECT years FROM table_name_57 WHERE runners_up = "odd grenland"
What was the year of the competition in which Odd Grenland was the runner-up?
CREATE TABLE table_name_57 (years VARCHAR, runners_up VARCHAR)
SELECT series FROM table_name_32 WHERE high_points = "prince (23)"
What series had a high points of Prince (23)?
CREATE TABLE table_name_32 (series VARCHAR, high_points VARCHAR)
SELECT COUNT(production_code) FROM table_1876825_2 WHERE written_by = "David Richardson" AND directed_by = "Todd Holland"
Name the total number of production code by david richardson and todd holland
CREATE TABLE table_1876825_2 (production_code VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT place FROM table_name_51 WHERE score = 72 - 70 - 67 = 209
What is the place of the player with a 72-70-67=209 score?
CREATE TABLE table_name_51 (place VARCHAR, score VARCHAR)
SELECT first_name, last_name, salary FROM employees WHERE commission_pct = "null"
What are the full name (first and last name) and salary for all employees who does not have any value for commission?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary VARCHAR, commission_pct VARCHAR)
SELECT away_team FROM table_name_61 WHERE home_team = "melbourne"
What away team did Melbourne play as the home team?
CREATE TABLE table_name_61 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(number) FROM table_name_67 WHERE artist = "scarface"
What is the highest number of artists on Scarface?
CREATE TABLE table_name_67 (number INTEGER, artist VARCHAR)
SELECT date FROM table_name_97 WHERE venue = "vfl park"
What date was the venue at VFL park?
CREATE TABLE table_name_97 (date VARCHAR, venue VARCHAR)
SELECT constructor FROM table_name_97 WHERE grand_prix = "canadian grand prix"
Who constructed the car that won the Canadian Grand Prix?
CREATE TABLE table_name_97 (constructor VARCHAR, grand_prix VARCHAR)
SELECT rider FROM table_name_24 WHERE laps = 18 AND time = "+25.165"
Which rider went 18 laps ending +25.165 behind the leader?
CREATE TABLE table_name_24 (rider VARCHAR, laps VARCHAR, time VARCHAR)
SELECT AVG(bronze) FROM table_name_52 WHERE gold > 1 AND total = 14 AND silver > 3
Name the average Bronze when silver is more than 3, gold is more than 1 and the total is 14
CREATE TABLE table_name_52 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT no FROM table_18424435_4 WHERE directed_by = "Kelly Makin" AND written_by = "Mark Ellis & Stephanie Morgenstern"
What number episode in the series was directed by Kelly Makin and written by Mark Ellis & Stephanie Morgenstern?
CREATE TABLE table_18424435_4 (no VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT surface FROM table_name_31 WHERE date = "july 27, 2013"
What type of surface was played on July 27, 2013?
CREATE TABLE table_name_31 (surface VARCHAR, date VARCHAR)
SELECT COUNT(matches) FROM table_name_71 WHERE team = "atlético ciudad" AND average > 0.61
How many matches did Atlético Ciudad have with an average higher than 0.61?
CREATE TABLE table_name_71 (matches VARCHAR, team VARCHAR, average VARCHAR)
SELECT MIN(wins) FROM table_name_33 WHERE tournament = "pga championship" AND events > 3
For more than 3 events in the PGA Championship, what is the fewest number of wins?
CREATE TABLE table_name_33 (wins INTEGER, tournament VARCHAR, events VARCHAR)
SELECT COUNT(wins) FROM table_2012187_1 WHERE top_10 = 2
state the wins of the team with 2 top 10
CREATE TABLE table_2012187_1 (wins VARCHAR, top_10 VARCHAR)
SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2008 = "9.07"
how many countries have remittances in 2008 of 9.07?
CREATE TABLE table_2941963_1 (country VARCHAR, remittances_2008 VARCHAR)
SELECT capital FROM table_16278894_1 WHERE county = "Uasin Gishu"
What is the capital of Uasin Gishu county?
CREATE TABLE table_16278894_1 (capital VARCHAR, county VARCHAR)
SELECT COUNT(property) FROM table_186468_1 WHERE ka_band = "2"
When 2 is the ka-band how many properties are there?
CREATE TABLE table_186468_1 (property VARCHAR, ka_band VARCHAR)
SELECT score FROM table_name_6 WHERE opponent = "andrei pavel"
What was the score against andrei pavel?
CREATE TABLE table_name_6 (score VARCHAR, opponent VARCHAR)
SELECT launcher FROM table_name_80 WHERE spacecraft = "apollo-soyuz"
What was the launcher vehicle for Apollo-Soyuz?
CREATE TABLE table_name_80 (launcher VARCHAR, spacecraft VARCHAR)
SELECT us_air_date FROM table_30012404_4 WHERE directed_by = "Ken Girotti"
What is the US air date when the director is ken girotti?
CREATE TABLE table_30012404_4 (us_air_date VARCHAR, directed_by VARCHAR)
SELECT away_team AS score FROM table_name_97 WHERE away_team = "south melbourne"
What is the away team score for South Melbourne?
CREATE TABLE table_name_97 (away_team VARCHAR)
SELECT no FROM table_27403436_1 WHERE production_code = "2J5809"
which number lists the production code as 2j5809
CREATE TABLE table_27403436_1 (no VARCHAR, production_code VARCHAR)
SELECT _percentage_fpv FROM table_name_3 WHERE party = "workers' party"
What is the %FPv for the Workers' Party?
CREATE TABLE table_name_3 (_percentage_fpv VARCHAR, party VARCHAR)
SELECT away_team AS score FROM table_name_15 WHERE venue = "windy hill"
What was the away team score at Windy Hill?
CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(party) FROM table_1341865_20 WHERE district = "Louisiana 5"
How many parties won the election in the Louisiana 5 district?
CREATE TABLE table_1341865_20 (party VARCHAR, district VARCHAR)
SELECT MAX(killed) FROM table_name_48 WHERE incident_no = "14"
What is the highest number killed in incident #14?
CREATE TABLE table_name_48 (killed INTEGER, incident_no VARCHAR)
SELECT COUNT(score) FROM table_13619027_7 WHERE date = "January 3"
what is the total score for the date of january 3?
CREATE TABLE table_13619027_7 (score VARCHAR, date VARCHAR)
SELECT title FROM table_name_90 WHERE track = 3
Which title has a Track of 3?
CREATE TABLE table_name_90 (title VARCHAR, track VARCHAR)
SELECT stadium FROM table_name_81 WHERE city = "debrecen"
What stadium is in the city of Debrecen?
CREATE TABLE table_name_81 (stadium VARCHAR, city VARCHAR)
SELECT tie_no FROM table_name_65 WHERE date = "24 november 1971" AND away_team = "king's lynn"
what is the tie no, on 24 november 1971 and the away team is king's lynn?
CREATE TABLE table_name_65 (tie_no VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT T2.Name, T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White"
What are the names and scores of wines that are made of white color grapes?
CREATE TABLE GRAPES (Grape VARCHAR, Color VARCHAR); CREATE TABLE WINE (Name VARCHAR, Score VARCHAR, Grape VARCHAR)
SELECT lost FROM table_12828723_5 WHERE "tries_for" = "tries_for"
What was the lost with tries for?
CREATE TABLE table_12828723_5 (lost VARCHAR)
SELECT medal FROM table_name_25 WHERE event = "light heavyweight"
What is the Medal for the Player in the Light Heavyweight event?
CREATE TABLE table_name_25 (medal VARCHAR, event VARCHAR)
SELECT MAX(votes) FROM table_name_20 WHERE occupation = "french professor"
What is the highest number of votes for the French Professor?
CREATE TABLE table_name_20 (votes INTEGER, occupation VARCHAR)
SELECT high_rebounds FROM table_18894744_5 WHERE record = "7-1"
Name the high rebounds for record 7-1
CREATE TABLE table_18894744_5 (high_rebounds VARCHAR, record VARCHAR)
SELECT mens_singles FROM table_13553701_1 WHERE womens_singles = "Wang Shixian"
Who is the mens singles and womens singlses is wang shixian?
CREATE TABLE table_13553701_1 (mens_singles VARCHAR, womens_singles VARCHAR)
SELECT segment_b FROM table_15187735_21 WHERE segment_c = "Standby Generators (Part 1)"
What are the titles of segment b when segment c is standby generators (part 1)?
CREATE TABLE table_15187735_21 (segment_b VARCHAR, segment_c VARCHAR)
SELECT votes FROM table_name_32 WHERE date = "november 10"
How many votes were there on November 10?
CREATE TABLE table_name_32 (votes VARCHAR, date VARCHAR)
SELECT first_broadcast FROM table_23292220_5 WHERE jasons_team = "Trisha Goddard and Glenn Wool"
Name the first broadcast for trisha goddard and glenn wool
CREATE TABLE table_23292220_5 (first_broadcast VARCHAR, jasons_team VARCHAR)
SELECT constructor FROM table_name_4 WHERE time_retired = "+1 lap" AND driver = "olivier panis"
Who constructed olivier panis' car that retired after +1 lap?
CREATE TABLE table_name_4 (constructor VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT writer_s_ FROM table_25800134_17 WHERE airdate = "September 11, 1972"
Who was the writer who wrote the episode that was aired on September 11, 1972?
CREATE TABLE table_25800134_17 (writer_s_ VARCHAR, airdate VARCHAR)
SELECT MIN(touchdowns) FROM table_name_98 WHERE extra_points < 14 AND player = "white" AND points < 5
Which Touchdowns is the lowest one that has Extra points smaller than 14, and a Player of white, and Points smaller than 5?
CREATE TABLE table_name_98 (touchdowns INTEGER, points VARCHAR, extra_points VARCHAR, player VARCHAR)
SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = "Pass"
Find id of candidates whose assessment code is "Pass"?
CREATE TABLE candidate_assessments (candidate_id VARCHAR, asessment_outcome_code VARCHAR)
SELECT us_r & b FROM table_name_39 WHERE year = 1981
Name the US R&B for 1981
CREATE TABLE table_name_39 (us_r VARCHAR, b VARCHAR, year VARCHAR)
SELECT height__ft_ FROM table_25461827_2 WHERE country = "Paraguay"
What is the height associated with Paraguay?
CREATE TABLE table_25461827_2 (height__ft_ VARCHAR, country VARCHAR)
SELECT date FROM table_name_74 WHERE attendance > 36 OFFSET 796
When was the Browns' game that over 36,796 attended?
CREATE TABLE table_name_74 (date VARCHAR, attendance INTEGER)
SELECT mixed_doubles FROM table_15001681_1 WHERE womens_singles = "Michaela Ritter" AND mens_singles = "Armand Jehle"
In 2001, where the mens singles is armand jehle and the womens singles is michaela ritter, who are the mixed doubles
CREATE TABLE table_15001681_1 (mixed_doubles VARCHAR, womens_singles VARCHAR, mens_singles VARCHAR)
SELECT time FROM table_name_77 WHERE year = 1984
What Time has a Year of 1984?
CREATE TABLE table_name_77 (time VARCHAR, year VARCHAR)
SELECT elimination FROM table_name_74 WHERE time = "13:43"
What is the elimination number for the time 13:43?
CREATE TABLE table_name_74 (elimination VARCHAR, time VARCHAR)
SELECT COUNT(nationality) FROM table_1213511_3 WHERE player = "Glen Irwin"
How many nationalities are listed for the player Glen Irwin?
CREATE TABLE table_1213511_3 (nationality VARCHAR, player VARCHAR)
SELECT chassis FROM table_name_68 WHERE points = 5
What chassis recorded 5 points?
CREATE TABLE table_name_68 (chassis VARCHAR, points VARCHAR)
SELECT wicket FROM table_name_59 WHERE date = "19-03-2007"
Name the wicket for 19-03-2007
CREATE TABLE table_name_59 (wicket VARCHAR, date VARCHAR)
SELECT MIN(against) FROM table_name_55 WHERE date = "18/02/1989"
What is the smallest Against with a Date of 18/02/1989?
CREATE TABLE table_name_55 (against INTEGER, date VARCHAR)
SELECT COUNT(*) FROM College
How many colleges in total?
CREATE TABLE College (Id VARCHAR)
SELECT israel_bowl FROM table_name_65 WHERE date = "march 30, 2012"
Name the Israel Bowl for march 30, 2012
CREATE TABLE table_name_65 (israel_bowl VARCHAR, date VARCHAR)
SELECT highest_rank FROM table_name_53 WHERE name = "takatōriki"
What rank is Takatōriki?
CREATE TABLE table_name_53 (highest_rank VARCHAR, name VARCHAR)
SELECT shut_down FROM table_12983929_1 WHERE commercial_operation = "01.02.1984"
What's the shut down state of the unit that's been in commercial operation since 01.02.1984?
CREATE TABLE table_12983929_1 (shut_down VARCHAR, commercial_operation VARCHAR)
SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T2.Hometown <> "Santo Domingo"
What are the names of gymnasts whose hometown is not "Santo Domingo"?
CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR, Hometown VARCHAR)
SELECT COUNT(candidates) FROM table_2668169_2 WHERE district = "Pennsylvania 11"
How many people won the election in the Pennsylvania 11 district?
CREATE TABLE table_2668169_2 (candidates VARCHAR, district VARCHAR)
SELECT original_artist FROM table_26250189_1 WHERE theme = "The Rolling Stones"
Who was the original artist of the chosen song when the theme was The Rolling Stones?
CREATE TABLE table_26250189_1 (original_artist VARCHAR, theme VARCHAR)
SELECT no_of_sikhs FROM table_11800185_1 WHERE country = "Japan"
What is the number of sikhs in Japan?
CREATE TABLE table_11800185_1 (no_of_sikhs VARCHAR, country VARCHAR)
SELECT player FROM table_name_14 WHERE years_for_grizzlies = "1998-2000"
Who was the Player in the 1998-2000 Year of Grizzlies?
CREATE TABLE table_name_14 (player VARCHAR, years_for_grizzlies VARCHAR)