answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT city_of_license FROM table_name_42 WHERE erp_w > 3 AND call_sign = "k218dz"
What is City of License, when ERP W is greater than 3, and when Call Sign is K218DZ?
CREATE TABLE table_name_42 (city_of_license VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
SELECT AVG(overall) FROM table_name_95 WHERE name = "vance walker"
Which Overall is the average one that has a Name of vance walker?
CREATE TABLE table_name_95 (overall INTEGER, name VARCHAR)
SELECT party FROM table_1342233_17 WHERE incumbent = "Virgil Chapman"
What party is incumbent virgil chapman from?
CREATE TABLE table_1342233_17 (party VARCHAR, incumbent VARCHAR)
SELECT settlement FROM table_2562572_37 WHERE cyrillic_name_other_names = "Александрово"
Name the settlement for александрово
CREATE TABLE table_2562572_37 (settlement VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT notes FROM table_name_85 WHERE time = "3:19.167"
What are the notes for the time at 3:19.167?
CREATE TABLE table_name_85 (notes VARCHAR, time VARCHAR)
SELECT lyricist FROM table_11827596_4 WHERE film_name = "Gopal Krishna" AND co_singer = "Solo"
Who was the lyricist for gopal krishna and co singer of solo?
CREATE TABLE table_11827596_4 (lyricist VARCHAR, film_name VARCHAR, co_singer VARCHAR)
SELECT player FROM table_name_93 WHERE total < 284 AND country = "south africa"
What player from South Africa had a total less than 284?
CREATE TABLE table_name_93 (player VARCHAR, total VARCHAR, country VARCHAR)
SELECT high_rebounds FROM table_11961582_4 WHERE game = 24
Who did the most high rebounds in the game 24?
CREATE TABLE table_11961582_4 (high_rebounds VARCHAR, game VARCHAR)
SELECT high_rebounds FROM table_27704187_7 WHERE team = "Boston"
Who did the high rebounds in the game against Boston?
CREATE TABLE table_27704187_7 (high_rebounds VARCHAR, team VARCHAR)
SELECT COUNT(draws) FROM table_name_21 WHERE losses < 4 AND wins < 16
For the teams that had fewer than 4 Losses, and less than 16 Wins, what was the total number of Draws?
CREATE TABLE table_name_21 (draws VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT Builder FROM railway GROUP BY Builder ORDER BY COUNT(*) DESC LIMIT 1
Show the most common builder of railways.
CREATE TABLE railway (Builder VARCHAR)
SELECT director FROM table_name_2 WHERE title = "hamateur night"
Who directed hamateur night?
CREATE TABLE table_name_2 (director VARCHAR, title VARCHAR)
SELECT length FROM table_30062172_3 WHERE round = 1 AND gt3_winner = "David Ashburn Richard Westbrook"
When david ashburn richard westbrook is the gt3 winner and 1 is the round what is the length?
CREATE TABLE table_30062172_3 (length VARCHAR, round VARCHAR, gt3_winner VARCHAR)
SELECT away_team AS score FROM table_name_94 WHERE home_team = "richmond"
What score was conceded by Richmond?
CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(horizontal) FROM table_15928363_1 WHERE framerate___hz__ = "25"
Name the number of horizontal when framerate hz is 25
CREATE TABLE table_15928363_1 (horizontal VARCHAR, framerate___hz__ VARCHAR)
SELECT town_city FROM customers WHERE customer_type_code = "Good Credit Rating" GROUP BY town_city ORDER BY COUNT(*) LIMIT 1
Which city has the least number of customers whose type code is "Good Credit Rating"?
CREATE TABLE customers (town_city VARCHAR, customer_type_code VARCHAR)
SELECT MAX(asts) FROM table_name_38 WHERE pos = "f/c" AND rebs < 13
What is the highest number of assists for players that are f/c and have under 13 rebounds?
CREATE TABLE table_name_38 (asts INTEGER, pos VARCHAR, rebs VARCHAR)
SELECT finish FROM table_name_26 WHERE qual = "123.660"
What was the finish place with a qual of 123.660?
CREATE TABLE table_name_26 (finish VARCHAR, qual VARCHAR)
SELECT runner_up FROM table_name_95 WHERE tournament = "seiersberg"
Who is the Runner-up in Tournament of seiersberg
CREATE TABLE table_name_95 (runner_up VARCHAR, tournament VARCHAR)
SELECT league FROM table_name_64 WHERE year = "1990/91"
What is the League with a Year that is 1990/91?
CREATE TABLE table_name_64 (league VARCHAR, year VARCHAR)
SELECT driver___passenger FROM table_name_56 WHERE third = "1" AND position < 8 AND wins = "1"
Who was the driver/passengar when the position was smaller than 8, the third was 1, and there was 1 win?
CREATE TABLE table_name_56 (driver___passenger VARCHAR, wins VARCHAR, third VARCHAR, position VARCHAR)
SELECT singer_s_ FROM table_29135051_2 WHERE comedian = "Joe Wilkinson"
Name the singer for joe wilkinson
CREATE TABLE table_29135051_2 (singer_s_ VARCHAR, comedian VARCHAR)
SELECT COUNT(barony) FROM table_30120559_1 WHERE townland = "Kilmore"
Name the total number of barony for kilmore
CREATE TABLE table_30120559_1 (barony VARCHAR, townland VARCHAR)
SELECT year_8_1st_quad FROM table_name_67 WHERE year_9_2nd_quad = "bggs" AND crew > 2006
In the Crews beyond 2006 what was the Year 8 1st Quads that exists in the same row that had the year 9 2nd Quads of BGGS?
CREATE TABLE table_name_67 (year_8_1st_quad VARCHAR, year_9_2nd_quad VARCHAR, crew VARCHAR)
SELECT main_contestant FROM table_name_11 WHERE status = "eliminated" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13
Who is the main contestant eliminated with a score of 1 + 7 + 5 = 13?
CREATE TABLE table_name_11 (main_contestant VARCHAR, status VARCHAR, scores_by_each_individual_judge VARCHAR)
SELECT party FROM table_1342013_37 WHERE district = "Pennsylvania 25"
Name the party for the pennsylvania 25
CREATE TABLE table_1342013_37 (party VARCHAR, district VARCHAR)
SELECT mintage FROM table_name_15 WHERE theme = "santa claus"
What was the mintage when the theme was Santa Claus?
CREATE TABLE table_name_15 (mintage VARCHAR, theme VARCHAR)
SELECT flatspin FROM table_17827271_1 WHERE actor_in_original_production = "Robert Austin"
What FlatSpin actor played the same role as Robert Austin?
CREATE TABLE table_17827271_1 (flatspin VARCHAR, actor_in_original_production 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 MAX(silver) FROM table_name_92 WHERE rank < 1
What is the largest silver number when the rank is smaller than 1?
CREATE TABLE table_name_92 (silver INTEGER, rank INTEGER)
SELECT callsign FROM table_12547903_3 WHERE location = "Zamboanga"
What was the callsign in Zamboanga?
CREATE TABLE table_12547903_3 (callsign VARCHAR, location VARCHAR)
SELECT nation FROM table_26677836_1 WHERE place = 2
What is the nation when the place is 2?
CREATE TABLE table_26677836_1 (nation VARCHAR, place VARCHAR)
SELECT level FROM table_23649244_1 WHERE artist_1 = "Marvin Gaye" AND artist_2 = "David Bowie"
Which level has marvin gaye as artist 1 and david bowie as artist 2?
CREATE TABLE table_23649244_1 (level VARCHAR, artist_1 VARCHAR, artist_2 VARCHAR)
SELECT SUM(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research'
What is the total grant amount of the organisations described as research?
CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (organisation_id VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR)
SELECT MIN(year) FROM table_name_37 WHERE moving_to = "milan" AND name = "kakha kaladze" AND rank < 9
When was the earliest year that kakha kaladze moved to milan with a rank above 9?
CREATE TABLE table_name_37 (year INTEGER, rank VARCHAR, moving_to VARCHAR, name VARCHAR)
SELECT race_name FROM table_name_72 WHERE winning_driver = "carlos reutemann"
What is the name of the race won by driver Carlos Reutemann?
CREATE TABLE table_name_72 (race_name VARCHAR, winning_driver VARCHAR)
SELECT having__things_ FROM table_name_99 WHERE interacting__settings_ = "privacy, intimate spaces of togetherness"
Name the having things for privacy, intimate spaces of togetherness
CREATE TABLE table_name_99 (having__things_ VARCHAR, interacting__settings_ VARCHAR)
SELECT reported_death_date FROM table_name_97 WHERE name = "laura svehaug"
what is the reported death date for laura svehaug?
CREATE TABLE table_name_97 (reported_death_date VARCHAR, name VARCHAR)
SELECT season FROM table_name_62 WHERE third = "glen muirhead"
What is Season, when Third is "Glen Muirhead"?
CREATE TABLE table_name_62 (season VARCHAR, third VARCHAR)
SELECT margin_of_error FROM table_name_77 WHERE undecided = "8%" AND other = "4%"
what is the margin of error when the undicided is 8% and other is 4%?
CREATE TABLE table_name_77 (margin_of_error VARCHAR, undecided VARCHAR, other VARCHAR)
SELECT COUNT(other_builders) FROM table_22903426_1 WHERE windows_builders = "NAnt, Visual Studio"
Name the number of other builders for nant, visual studio
CREATE TABLE table_22903426_1 (other_builders VARCHAR, windows_builders VARCHAR)
SELECT written_by FROM table_29273182_1 WHERE production_code = "IP03007"
Who wrote the episode with a production code of ip03007?
CREATE TABLE table_29273182_1 (written_by VARCHAR, production_code VARCHAR)
SELECT MAX(wins) FROM table_name_17 WHERE losses = 7 AND draws > 0
What was the greatest number of wins for a team that had 7 losses and more than 0 draws?
CREATE TABLE table_name_17 (wins INTEGER, losses VARCHAR, draws VARCHAR)
SELECT COUNT(losses) FROM table_name_23 WHERE geelong_fl = "newtown & chilwell" AND wins > 11
How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins?
CREATE TABLE table_name_23 (losses VARCHAR, geelong_fl VARCHAR, wins VARCHAR)
SELECT alternate FROM table_name_60 WHERE third = "monika wagner"
Who is the alternate for the team for which Monika Wagner is the third?
CREATE TABLE table_name_60 (alternate VARCHAR, third VARCHAR)
SELECT hr_no FROM table_name_75 WHERE built = "9/1915" AND lms_no = 14757
What's the HR Number when the LMS number is 14757 and has a built of 9/1915?
CREATE TABLE table_name_75 (hr_no VARCHAR, built VARCHAR, lms_no VARCHAR)
SELECT MAX(pick__number) FROM table_name_28 WHERE pl_gp > 55
Name the highest pick number for PI GP more than 55
CREATE TABLE table_name_28 (pick__number INTEGER, pl_gp INTEGER)
SELECT competition_or_tour FROM table_name_73 WHERE ground = "hr" AND opponent = "nordsjælland"
In which competition or tour was nordsjælland the opponent with a hr Ground?
CREATE TABLE table_name_73 (competition_or_tour VARCHAR, ground VARCHAR, opponent VARCHAR)
SELECT iata FROM table_name_8 WHERE icao = "vhhh"
What is IATA, when ICAO is "VHHH"?
CREATE TABLE table_name_8 (iata VARCHAR, icao VARCHAR)
SELECT round FROM table_name_45 WHERE time = "2:30"
Which round was 2:30?
CREATE TABLE table_name_45 (round VARCHAR, time VARCHAR)
SELECT power_plant FROM table_name_97 WHERE year_of_commission = 2008
What power plant was commissioned in 2008?
CREATE TABLE table_name_97 (power_plant VARCHAR, year_of_commission VARCHAR)
SELECT developer_s_ FROM table_name_46 WHERE game = "call of duty: black ops"
Who was the developer of Call of Duty: Black Ops?
CREATE TABLE table_name_46 (developer_s_ VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_66 WHERE score = "6–2, 6–2"
What is the Opponent in a game with a Score of 6–2, 6–2?
CREATE TABLE table_name_66 (opponent VARCHAR, score VARCHAR)
SELECT time_retired FROM table_name_95 WHERE grid < 3 AND laps = 45
what is the time/retired when the grid is less than 3 and 45 laps?
CREATE TABLE table_name_95 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT home_team FROM table_26842217_4 WHERE time = "7:30pm" AND broadcast = "ESPN"
What home team is at 7:30pm in ESPN?
CREATE TABLE table_26842217_4 (home_team VARCHAR, time VARCHAR, broadcast VARCHAR)
SELECT institution FROM table_10577579_3 WHERE men’s_nickname = "Blazers"
Which college has the men's nickname of the blazers?
CREATE TABLE table_10577579_3 (institution VARCHAR, men’s_nickname VARCHAR)
SELECT tournament FROM table_name_90 WHERE 2003 = "a"
What is Tournament, when 2003 is "A"?
CREATE TABLE table_name_90 (tournament VARCHAR)
SELECT MAX(pujehun) FROM table_name_9 WHERE kenema > 559 AND kambia = "45,653" AND tonkolili > 113 OFFSET 926
What is the highest pjuehun with a kenema greater than 559, a kambia of 45,653, and a tonkolili greater than 113,926?
CREATE TABLE table_name_9 (pujehun INTEGER, tonkolili VARCHAR, kenema VARCHAR, kambia VARCHAR)
SELECT label FROM table_name_68 WHERE region = "united states" AND format = "cassette"
What Label has a Region of united states, and a Format of cassette?
CREATE TABLE table_name_68 (label VARCHAR, region VARCHAR, format VARCHAR)
SELECT year_s__won FROM table_name_58 WHERE total = 146
What year was the 146 total?
CREATE TABLE table_name_58 (year_s__won VARCHAR, total VARCHAR)
SELECT position FROM table_name_87 WHERE player = "damon jones"
What is the positions of Damon Jones?
CREATE TABLE table_name_87 (position VARCHAR, player VARCHAR)
SELECT points FROM table_name_75 WHERE grid = "1"
How many points when the Grid was 1?
CREATE TABLE table_name_75 (points VARCHAR, grid VARCHAR)
SELECT lightweight FROM table_name_79 WHERE information_model = "no" AND flexible = "unknown"
What is the lightweight value with no information model and the flexible value is unknown?
CREATE TABLE table_name_79 (lightweight VARCHAR, information_model VARCHAR, flexible VARCHAR)
SELECT player FROM match_season ORDER BY College
Return all players sorted by college in ascending alphabetical order.
CREATE TABLE match_season (player VARCHAR, College VARCHAR)
SELECT entrant FROM table_name_94 WHERE chassis = "maserati 250f" AND year = 1954
What entrant had a chassis of Maserati 250f in 1954?
CREATE TABLE table_name_94 (entrant VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT grand_prix FROM table_18303274_1 WHERE race_winner = "Daijiro Hiura"
What grand prixs did Daijiro Hiura win?
CREATE TABLE table_18303274_1 (grand_prix VARCHAR, race_winner VARCHAR)
SELECT director FROM table_name_15 WHERE title = "kung fu panda 2"
Who was the Director of Kung Fu Panda 2?
CREATE TABLE table_name_15 (director VARCHAR, title VARCHAR)
SELECT MAX(week) FROM table_name_95 WHERE result = "l 17–0"
What was the latest Week on which the Result was l 17–0?
CREATE TABLE table_name_95 (week INTEGER, result VARCHAR)
SELECT date FROM table_11960944_6 WHERE game = 57
What date was game 57 held on?
CREATE TABLE table_11960944_6 (date VARCHAR, game VARCHAR)
SELECT charity FROM table_12286195_1 WHERE background = "Heavyweight Champion"
Which is the charity that the background of the celebrity is heavyweight champion?
CREATE TABLE table_12286195_1 (charity VARCHAR, background VARCHAR)
SELECT date FROM table_name_70 WHERE week = 9
On what date was the game in Week 9 played?
CREATE TABLE table_name_70 (date VARCHAR, week VARCHAR)
SELECT MAX(match) FROM table_name_53 WHERE opponent_team = "dalian shide siwu" AND home_away = "away"
What was the highest match when the away opponent was Dalian Shide Siwu?
CREATE TABLE table_name_53 (match INTEGER, opponent_team VARCHAR, home_away VARCHAR)
SELECT nickname FROM table_1973816_1 WHERE founded = 1933
What's the nickname of the students of the school founded in 1933?
CREATE TABLE table_1973816_1 (nickname VARCHAR, founded VARCHAR)
SELECT silver FROM table_name_17 WHERE location = "guangzhou"
What Silver has the Location of Guangzhou?
CREATE TABLE table_name_17 (silver VARCHAR, location VARCHAR)
SELECT competition FROM table_name_63 WHERE date = "october 11, 2006"
Which competition took place on October 11, 2006?
CREATE TABLE table_name_63 (competition VARCHAR, date VARCHAR)
SELECT opponents_in_the_final FROM table_name_40 WHERE date = "june 10, 1996"
Who's the Opponents in the final with a Date of june 10, 1996?
CREATE TABLE table_name_40 (opponents_in_the_final VARCHAR, date VARCHAR)
SELECT date FROM table_name_18 WHERE result = "l 25-13"
Which date has a Result of l 25-13?
CREATE TABLE table_name_18 (date VARCHAR, result VARCHAR)
SELECT fast_laps FROM table_name_28 WHERE series = "world series by nissan" AND races = "6" AND points = "30"
How many fast laps are in 6 races with 30 points in the World Series by Nissan?
CREATE TABLE table_name_28 (fast_laps VARCHAR, points VARCHAR, series VARCHAR, races VARCHAR)
SELECT COUNT(lost) FROM table_name_83 WHERE win__percentage < 16.7 AND played = 3
How many games were lost where the win percentage is smaller than 16.7 and the played games is 3?
CREATE TABLE table_name_83 (lost VARCHAR, win__percentage VARCHAR, played VARCHAR)
SELECT 2 AS nd_round FROM table_name_91 WHERE team_2 = "red star (d1)"
Who is the 2nd round opponent when Team 2 is Red Star (D1)?
CREATE TABLE table_name_91 (team_2 VARCHAR)
SELECT position FROM table_name_85 WHERE competition = "super league 1"
What Position has a Super League 1 Competition?
CREATE TABLE table_name_85 (position VARCHAR, competition VARCHAR)
SELECT miles__km_ FROM table_16493961_1 WHERE date = "June 7"
Name the miles for june 7
CREATE TABLE table_16493961_1 (miles__km_ VARCHAR, date VARCHAR)
SELECT series_ep FROM table_name_55 WHERE netflix = "s03e16"
Which series episode has a Netflix episode of S03E16?
CREATE TABLE table_name_55 (series_ep VARCHAR, netflix VARCHAR)
SELECT MAX(drawn) FROM table_name_65 WHERE nationality = "england" AND games = 37
What is the largest draw with 37 games from England?
CREATE TABLE table_name_65 (drawn INTEGER, nationality VARCHAR, games VARCHAR)
SELECT MAX(goals_for) FROM table_name_18 WHERE ties > 0
What is the largest Goals For by a team that has more than 0 ties?
CREATE TABLE table_name_18 (goals_for INTEGER, ties INTEGER)
SELECT to_par FROM table_name_74 WHERE score = 68 - 66 = 134 AND player = "fred couples"
What is the to par for Fred Couples when the score is 68-66=134?
CREATE TABLE table_name_74 (to_par VARCHAR, player VARCHAR, score VARCHAR)
SELECT type FROM table_name_7 WHERE name = "song"
What type has song as the name?
CREATE TABLE table_name_7 (type VARCHAR, name VARCHAR)
SELECT couple FROM table_name_98 WHERE dance = "jive" AND score = "21 (6, 7, 8)"
Which couple danced a jive and received a score of 21 (6, 7, 8)?
CREATE TABLE table_name_98 (couple VARCHAR, dance VARCHAR, score VARCHAR)
SELECT opponents_in_the_final FROM table_name_61 WHERE surface = "carpet" AND tournament = "milan , italy"
What is Opponents In The Final, when Surface is "Carpet", and when Tournament is "Milan , Italy"?
CREATE TABLE table_name_61 (opponents_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_92 WHERE venue = "torrance, california"
What was the Score of the match in Torrance, California?
CREATE TABLE table_name_92 (score VARCHAR, venue VARCHAR)
SELECT MAX(laps) FROM table_name_3 WHERE driver = "joe nemechek"
What is the highest number of laps completed by driver Joe Nemechek?
CREATE TABLE table_name_3 (laps INTEGER, driver VARCHAR)
SELECT finish FROM table_name_98 WHERE laps = 51
What is the finish with 51 laps?
CREATE TABLE table_name_98 (finish VARCHAR, laps VARCHAR)
SELECT thurs_25_aug FROM table_30058355_3 WHERE rank = 3
What is every value on Thursday August 25 for rank 3?
CREATE TABLE table_30058355_3 (thurs_25_aug VARCHAR, rank VARCHAR)
SELECT venue FROM table_name_62 WHERE year < 1986 AND position = "6th"
What Venue has a Year smaller than 1986, and a Position of 6th?
CREATE TABLE table_name_62 (venue VARCHAR, year VARCHAR, position VARCHAR)
SELECT home_team AS score FROM table_name_77 WHERE away_team = "carlton"
What was the score of the home team when they played carlton?
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
SELECT nominee FROM table_name_16 WHERE award = "tony award"
Who was the nominee having a Tony award?
CREATE TABLE table_name_16 (nominee VARCHAR, award VARCHAR)
SELECT MIN(season) FROM table_26998693_1 WHERE podiums = 9
What was the earliest season where podium was 9?
CREATE TABLE table_26998693_1 (season INTEGER, podiums VARCHAR)
SELECT MIN(2005) FROM table_name_75 WHERE 2009 = 19 AND 2010 < 21
Tell me the lowest 2005 for 2010 less than 21 for 2009 being 19
CREATE TABLE table_name_75 (Id VARCHAR)
SELECT COUNT(3 AS rd_runner_up) FROM table_30007801_1 WHERE country_territory = "Turkey"
How many 3rd runner up values does Turkey have?
CREATE TABLE table_30007801_1 (country_territory VARCHAR)
SELECT MAX(lowest) FROM table_14003108_1 WHERE average = 734
what is the maximum lowest with average being 734
CREATE TABLE table_14003108_1 (lowest INTEGER, average VARCHAR)