question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Bolton Wanderers career has a Total larger than 404, and a Position of fw, and Apps less than 492, and 79 Goals?
CREATE TABLE table_name_75 (bolton_wanderers_career VARCHAR, goals VARCHAR, apps VARCHAR, total VARCHAR, position VARCHAR)
SELECT bolton_wanderers_career FROM table_name_75 WHERE total > 404 AND position = "fw" AND apps < 492 AND goals = "79"
Which start has 4 as a rank?
CREATE TABLE table_name_55 (start VARCHAR, rank VARCHAR)
SELECT start FROM table_name_55 WHERE rank = "4"
What was the home team score when the VFL played at Western Oval?
CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_65 WHERE venue = "western oval"
On what date did the woman married to Louis II become consort?
CREATE TABLE table_name_86 (became_consort VARCHAR, spouse VARCHAR)
SELECT became_consort FROM table_name_86 WHERE spouse = "louis ii"
What year did the Capital City Giants have a game with the final score of 8-0?
CREATE TABLE table_name_54 (year INTEGER, team VARCHAR, score VARCHAR)
SELECT AVG(year) FROM table_name_54 WHERE team = "capital city giants" AND score = "8-0"
Which analog channel has a digital channel of 4.1?
CREATE TABLE table_name_31 (analog_channel VARCHAR, digital_channel VARCHAR)
SELECT analog_channel FROM table_name_31 WHERE digital_channel = "4.1"
What was the away team that played at Princes Park?
CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_51 WHERE venue = "princes park"
Which album is the royal g's club mix version, which is remixed by royal garden sound, from?
CREATE TABLE table_name_20 (album VARCHAR, remixed_by VARCHAR, version VARCHAR)
SELECT album FROM table_name_20 WHERE remixed_by = "royal garden sound" AND version = "royal g's club mix"
What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?
CREATE TABLE table_name_66 (interview INTEGER, swimsuit VARCHAR, average VARCHAR)
SELECT MAX(interview) FROM table_name_66 WHERE swimsuit = 8.857 AND average > 9.097
How many release dates has Canada had?
CREATE TABLE table_name_7 (release_date VARCHAR, country VARCHAR)
SELECT COUNT(release_date) FROM table_name_7 WHERE country = "canada"
Who belongs to the Bologna Milan club?
CREATE TABLE table_name_62 (player VARCHAR, club VARCHAR)
SELECT player FROM table_name_62 WHERE club = "bologna milan"
What is the largest loss for the Tacuary team?
CREATE TABLE table_14871601_1 (losses INTEGER, team VARCHAR)
SELECT MAX(losses) FROM table_14871601_1 WHERE team = "Tacuary"
What's the most laps when grid is 16?
CREATE TABLE table_name_93 (laps INTEGER, grid VARCHAR)
SELECT MAX(laps) FROM table_name_93 WHERE grid = 16
What is the place of birth when elevated is May 16, 1288, and cardinalatial title is Deacon of S. Eustachio?
CREATE TABLE table_name_78 (place_of_birth VARCHAR, elevated VARCHAR, cardinalatial_title VARCHAR)
SELECT place_of_birth FROM table_name_78 WHERE elevated = "may 16, 1288" AND cardinalatial_title = "deacon of s. eustachio"
Which Year(s) won has a Total of 289?
CREATE TABLE table_name_71 (year_s__won VARCHAR, total VARCHAR)
SELECT year_s__won FROM table_name_71 WHERE total = 289
WHAT IS THE TEAM FOR DECEMBER 30?
CREATE TABLE table_name_86 (team VARCHAR, date VARCHAR)
SELECT team FROM table_name_86 WHERE date = "december 30"
What is the lowest caps for the Club of SBV Excelsior?
CREATE TABLE table_name_86 (caps INTEGER, club VARCHAR)
SELECT MIN(caps) FROM table_name_86 WHERE club = "sbv excelsior"
What is Record, when Event is "UFC 64"?
CREATE TABLE table_name_78 (record VARCHAR, event VARCHAR)
SELECT record FROM table_name_78 WHERE event = "ufc 64"
How many different original air dates does the episode with series number 13 have?
CREATE TABLE table_19236587_4 (original_air_date VARCHAR, series_no VARCHAR)
SELECT COUNT(original_air_date) FROM table_19236587_4 WHERE series_no = 13
What the score of the 1992 game?
CREATE TABLE table_name_71 (score VARCHAR, year VARCHAR)
SELECT score FROM table_name_71 WHERE year = "1992"
What is the career SR when 1985 is Grand Slams?
CREATE TABLE table_name_16 (career_sr VARCHAR)
SELECT career_sr FROM table_name_16 WHERE 1985 = "grand slams"
Show the census ranking of cities whose status are not "Village".
CREATE TABLE city (Census_Ranking VARCHAR, Status VARCHAR)
SELECT Census_Ranking FROM city WHERE Status <> "Village"
Who did the high points of game 5?
CREATE TABLE table_11960196_3 (high_points VARCHAR, game VARCHAR)
SELECT high_points FROM table_11960196_3 WHERE game = 5
What is the multi 1 for the Athlon x2 BE-2400?
CREATE TABLE table_name_46 (multi_1 VARCHAR, model_number VARCHAR)
SELECT multi_1 FROM table_name_46 WHERE model_number = "athlon x2 be-2400"
When was petter ronnquist picked?
CREATE TABLE table_name_49 (overall VARCHAR, player VARCHAR)
SELECT overall FROM table_name_49 WHERE player = "petter ronnquist"
What is the Overall of 15 Club team with a Nationality of Canada?
CREATE TABLE table_name_37 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR)
SELECT club_team FROM table_name_37 WHERE nationality = "canada" AND overall = "15"
what is the lowest grid when the time retired is clutch, the driver is peter collins and the laps is smaller than 26?
CREATE TABLE table_name_88 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT MIN(grid) FROM table_name_88 WHERE time_retired = "clutch" AND driver = "peter collins" AND laps < 26
What is the 1989 result of the tournament in which Katerina finished nh in 1986?
CREATE TABLE table_name_94 (Id VARCHAR)
SELECT 1989 FROM table_name_94 WHERE 1986 = "nh"
Find the forename and surname of drivers whose nationality is German?
CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, nationality VARCHAR)
SELECT forename, surname FROM drivers WHERE nationality = "German"
What is the lowest PI GP when the Reg GP is 1, Murray Bannerman is the Player, and the Pick # is under 58?
CREATE TABLE table_name_53 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR, player VARCHAR)
SELECT MIN(pl_gp) FROM table_name_53 WHERE reg_gp = 1 AND player = "murray bannerman" AND pick__number < 58
What date sent has orion as the constellation?
CREATE TABLE table_name_63 (date_sent VARCHAR, constellation VARCHAR)
SELECT date_sent FROM table_name_63 WHERE constellation = "orion"
How many positions have 9 as a drawn, 5 as a difference, with a lost less than 14?
CREATE TABLE table_name_9 (position VARCHAR, lost VARCHAR, drawn VARCHAR, difference VARCHAR)
SELECT COUNT(position) FROM table_name_9 WHERE drawn = 9 AND difference = "5" AND lost < 14
What's the sum of swing to gain with a winning party 2007 of Conservative with a rank smaller than 5?
CREATE TABLE table_name_70 (swing_to_gain INTEGER, winning_party_2007 VARCHAR, rank VARCHAR)
SELECT SUM(swing_to_gain) FROM table_name_70 WHERE winning_party_2007 = "conservative" AND rank < 5
What date were there more than 19,600 people in attendance?
CREATE TABLE table_name_49 (date VARCHAR, attendance INTEGER)
SELECT date FROM table_name_49 WHERE attendance > 19 OFFSET 600
Who is the December playmate with a November playmate Marlene Janssen?
CREATE TABLE table_name_72 (december VARCHAR, november VARCHAR)
SELECT december FROM table_name_72 WHERE november = "marlene janssen"
What venue did the team, evansville bluecats play on?
CREATE TABLE table_name_17 (venue VARCHAR, team VARCHAR)
SELECT venue FROM table_name_17 WHERE team = "evansville bluecats"
What is the total when the score for set 2 is 25–22?
CREATE TABLE table_name_86 (total VARCHAR, set_2 VARCHAR)
SELECT total FROM table_name_86 WHERE set_2 = "25–22"
What day did they play at candlestick park?
CREATE TABLE table_name_77 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_77 WHERE game_site = "candlestick park"
When was Piedmont College founded?
CREATE TABLE table_255188_1 (founded INTEGER, institution VARCHAR)
SELECT MAX(founded) FROM table_255188_1 WHERE institution = "Piedmont College"
What is the Hangul equivalent of the Greek ϝ, υ?
CREATE TABLE table_name_96 (hangul VARCHAR, greek VARCHAR)
SELECT hangul FROM table_name_96 WHERE greek = "ϝ, υ"
What is the date of the locomotive with a Waterford class?
CREATE TABLE table_name_50 (date_made VARCHAR, class VARCHAR)
SELECT date_made FROM table_name_50 WHERE class = "waterford"
When mike bibby (8) had the highest amount of assists what is the record?
CREATE TABLE table_17311759_9 (record VARCHAR, high_assists VARCHAR)
SELECT record FROM table_17311759_9 WHERE high_assists = "Mike Bibby (8)"
What earned has 5 for the rank?
CREATE TABLE table_name_21 (earned VARCHAR, rank VARCHAR)
SELECT earned FROM table_name_21 WHERE rank = 5
Name the number of v core for model number mobile athlon 64 3000+
CREATE TABLE table_27277284_8 (v_core VARCHAR, model_number VARCHAR)
SELECT COUNT(v_core) FROM table_27277284_8 WHERE model_number = "Mobile Athlon 64 3000+"
What was the record when the TKO (elbows) method was used?
CREATE TABLE table_name_12 (record VARCHAR, method VARCHAR)
SELECT record FROM table_name_12 WHERE method = "tko (elbows)"
What are toranosuke takagi's average laps?
CREATE TABLE table_name_14 (laps INTEGER, driver VARCHAR)
SELECT AVG(laps) FROM table_name_14 WHERE driver = "toranosuke takagi"
What is every description if NO votes is 233759?
CREATE TABLE table_256286_43 (description VARCHAR, no_votes VARCHAR)
SELECT description FROM table_256286_43 WHERE no_votes = 233759
What is Volume:Issue, when Artist is Elton John, and when Weeks on Top is 4?
CREATE TABLE table_name_86 (volume VARCHAR, artist VARCHAR, weeks_on_top VARCHAR)
SELECT volume AS :issue FROM table_name_86 WHERE artist = "elton john" AND weeks_on_top = 4
Which driver has less than 61 points, but winnings of $67,675?
CREATE TABLE table_name_33 (laps INTEGER, winnings VARCHAR, points VARCHAR)
SELECT SUM(laps) FROM table_name_33 WHERE winnings = "$67,675" AND points < 61
What is the sum of Against, when Wins is greater than 8, and when Losses is greater than 6?
CREATE TABLE table_name_19 (against INTEGER, wins VARCHAR, losses VARCHAR)
SELECT SUM(against) FROM table_name_19 WHERE wins > 8 AND losses > 6
Name the having things for privacy, intimate spaces of togetherness
CREATE TABLE table_name_99 (having__things_ VARCHAR, interacting__settings_ VARCHAR)
SELECT having__things_ FROM table_name_99 WHERE interacting__settings_ = "privacy, intimate spaces of togetherness"
Which Home team is on Wednesday, 25 february 1998?
CREATE TABLE table_name_65 (home_team VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_65 WHERE date = "wednesday, 25 february 1998"
When a variant without niqqud is as middle letter: וו with a phonemic value of /v/, what is the variant with niqqud?
CREATE TABLE table_name_53 (variant__with_niqqud__ VARCHAR, phonemic_value VARCHAR, without_niqqud VARCHAR)
SELECT variant__with_niqqud__ FROM table_name_53 WHERE phonemic_value = "/v/" AND without_niqqud = "as middle letter: וו"
Who was the GT2 Winning Team if Greg Mansell Leo Mansell was the LMP1 Winning Team?
CREATE TABLE table_24865763_2 (gt2_winning_team VARCHAR, lmp1_winning_team VARCHAR)
SELECT gt2_winning_team FROM table_24865763_2 WHERE lmp1_winning_team = "Greg Mansell Leo Mansell"
How many grids have a Constructor of talbot-lago - talbot, a Laps under 83, and a driver of johnny claes?
CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_20 WHERE constructor = "talbot-lago - talbot" AND laps < 83 AND driver = "johnny claes"
Highest inhabitants from gela?
CREATE TABLE table_name_86 (inhabitants INTEGER, municipality VARCHAR)
SELECT MAX(inhabitants) FROM table_name_86 WHERE municipality = "gela"
Which party was Andrea Ronchi from?
CREATE TABLE table_name_85 (party VARCHAR, minister VARCHAR)
SELECT party FROM table_name_85 WHERE minister = "andrea ronchi"
What is the nationality of the player who played for the Peterborough Petes (OHL)?
CREATE TABLE table_name_6 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT nationality FROM table_name_6 WHERE college_junior_club_team__league_ = "peterborough petes (ohl)"
When the status is rural community what's the lowest area in kilometers squared?
CREATE TABLE table_name_47 (area_km_2 INTEGER, status VARCHAR)
SELECT MIN(area_km_2) FROM table_name_47 WHERE status = "rural community"
Who directed Episode 5?
CREATE TABLE table_12919003_2 (director VARCHAR, episode VARCHAR)
SELECT director FROM table_12919003_2 WHERE episode = "episode 5"
What was the against were there were less than 3 byes?
CREATE TABLE table_name_93 (against INTEGER, byes INTEGER)
SELECT AVG(against) FROM table_name_93 WHERE byes < 3
in 1833, how many institutions were created?
CREATE TABLE table_261895_1 (institution VARCHAR, founded VARCHAR)
SELECT COUNT(institution) FROM table_261895_1 WHERE founded = 1833
What residence hall has the vermin mascot?
CREATE TABLE table_15873547_1 (residence_hall VARCHAR, mascot VARCHAR)
SELECT residence_hall FROM table_15873547_1 WHERE mascot = "Vermin"
What is the highest ranked player who opposed Westmeath?
CREATE TABLE table_name_3 (rank INTEGER, opposition VARCHAR)
SELECT MAX(rank) FROM table_name_3 WHERE opposition = "westmeath"
What was the score on 26 July 1930?
CREATE TABLE table_name_62 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_62 WHERE date = "26 july 1930"
What date had an opponent of Sweden and a friendly type game?
CREATE TABLE table_name_44 (date VARCHAR, type_of_game VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_44 WHERE type_of_game = "friendly" AND opponent = "sweden"
Who had the high assist total on january 27?
CREATE TABLE table_27723526_10 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_27723526_10 WHERE date = "January 27"
What is the name of the school in Lucas ?
CREATE TABLE table_25987797_1 (location VARCHAR, school VARCHAR)
SELECT location FROM table_25987797_1 WHERE school = "Lucas"
What is the average Tier when the postseason shows -, and the season is 2012–13?
CREATE TABLE table_name_56 (tier INTEGER, postseason VARCHAR, season VARCHAR)
SELECT AVG(tier) FROM table_name_56 WHERE postseason = "–" AND season = "2012–13"
What Tournament has a Partner of tom gorman?
CREATE TABLE table_name_65 (tournament VARCHAR, partner VARCHAR)
SELECT tournament FROM table_name_65 WHERE partner = "tom gorman"
Whose name in Polish holds the Lublin seat?
CREATE TABLE table_11614581_3 (name_in_polish VARCHAR, seat VARCHAR)
SELECT name_in_polish FROM table_11614581_3 WHERE seat = "Lublin"
What is the smallest area (sq mi) that has 160 as it rank?
CREATE TABLE table_name_82 (area__sq_mi_ INTEGER, rank VARCHAR)
SELECT MIN(area__sq_mi_) FROM table_name_82 WHERE rank = 160
What song is it that artist morena camilleri does and has more than 38 points
CREATE TABLE table_name_46 (song VARCHAR, points VARCHAR, artist VARCHAR)
SELECT song FROM table_name_46 WHERE points > 38 AND artist = "morena camilleri"
what is the highest drawn when played is more than 14?
CREATE TABLE table_name_79 (drawn INTEGER, played INTEGER)
SELECT MAX(drawn) FROM table_name_79 WHERE played > 14
What is the fewest tally for the game played at Vasil Levski National Stadium, Sofia, Bulgaria?
CREATE TABLE table_name_9 (tally INTEGER, venue VARCHAR)
SELECT MIN(tally) FROM table_name_9 WHERE venue = "vasil levski national stadium, sofia, bulgaria"
Find the id and last name of the teacher that has the most detentions with detention type code "AFTER"?
CREATE TABLE Detention (teacher_id VARCHAR, detention_type_code VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR)
SELECT T1.teacher_id, T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = "AFTER" GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 1
What is the playoffs result in years where Open Canada Cup was "N/A" and regular season result was "2nd, New England"?
CREATE TABLE table_1999350_1 (playoffs VARCHAR, open_canada_cup VARCHAR, regular_season VARCHAR)
SELECT playoffs FROM table_1999350_1 WHERE open_canada_cup = "N/A" AND regular_season = "2nd, New England"
How many times did Australasia received a program if the Americas received 115 program?
CREATE TABLE table_27184837_1 (australasia VARCHAR, americas VARCHAR)
SELECT COUNT(australasia) FROM table_27184837_1 WHERE americas = 115
What is the highest operating income that change by 2% and is less than $1,036m?
CREATE TABLE table_name_23 (operating_income_ INTEGER, _percentage_change_on_year VARCHAR, value__$m_ VARCHAR)
SELECT MAX(operating_income_) AS $m_ FROM table_name_23 WHERE _percentage_change_on_year = "2" AND value__$m_ < 1 OFFSET 036
what is the total when the rank is total and the silver is less than 10?
CREATE TABLE table_name_35 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT SUM(total) FROM table_name_35 WHERE rank = "total" AND silver < 10
What is the date of the game with a score of 4-3?
CREATE TABLE table_name_41 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_41 WHERE score = "4-3"
What is the Builder of Locomotive 2?
CREATE TABLE table_name_6 (builder VARCHAR, locomotive VARCHAR)
SELECT builder FROM table_name_6 WHERE locomotive = "2"
What was the record on April 1?
CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_44 WHERE date = "april 1"
What is the career win-loss for the ATP Masters Series?
CREATE TABLE table_name_3 (career_win_loss VARCHAR)
SELECT career_win_loss FROM table_name_3 WHERE 1995 = "atp masters series"
What club has losses greater than 1, 4 for the wins, with points against less than 894?
CREATE TABLE table_name_83 (club VARCHAR, points_against VARCHAR, loses VARCHAR, wins VARCHAR)
SELECT club FROM table_name_83 WHERE loses > 1 AND wins = 4 AND points_against < 894
Which position is the MLS team, Los Angeles Galaxy in?
CREATE TABLE table_name_90 (position VARCHAR, mls_team VARCHAR)
SELECT position FROM table_name_90 WHERE mls_team = "los angeles galaxy"
what's the maximum peru vs. world (percent) with 9672 species in the world 
CREATE TABLE table_11727969_1 (peru_vs_world__percent_ INTEGER, species_in_the_world VARCHAR)
SELECT MAX(peru_vs_world__percent_) FROM table_11727969_1 WHERE species_in_the_world = 9672
Who did they play when dickey (0-1) recorded the loss?
CREATE TABLE table_name_83 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_83 WHERE loss = "dickey (0-1)"
What city is Mackey Arena in?
CREATE TABLE table_name_46 (city VARCHAR, venue VARCHAR)
SELECT city FROM table_name_46 WHERE venue = "mackey arena"
What is the language of the film directed by Hans Kristensen?
CREATE TABLE table_name_14 (language VARCHAR, director VARCHAR)
SELECT language FROM table_name_14 WHERE director = "hans kristensen"
What was the result of the game with a record of 2–3–2 before week 8?
CREATE TABLE table_name_38 (result VARCHAR, week VARCHAR, record VARCHAR)
SELECT result FROM table_name_38 WHERE week < 8 AND record = "2–3–2"
How many NHL teams have a pick number of 128?
CREATE TABLE table_2897457_7 (nhl_team VARCHAR, pick__number VARCHAR)
SELECT COUNT(nhl_team) FROM table_2897457_7 WHERE pick__number = 128
WHAT ARE THE RACES FOR 2010 WITH FLAPS LARGER THAN 6?
CREATE TABLE table_name_27 (races INTEGER, season VARCHAR, flaps VARCHAR)
SELECT MAX(races) FROM table_name_27 WHERE season = "2010" AND flaps > 6
Who was the opponent on 12 May, when the match day was more than 33?
CREATE TABLE table_name_53 (opponent VARCHAR, match_day VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_53 WHERE match_day > 33 AND date = "12 may"
What is the score on April 12?
CREATE TABLE table_name_88 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_88 WHERE date = "april 12"
What is the smallest number?
CREATE TABLE table_18424435_5 (_number INTEGER)
SELECT MIN(_number) FROM table_18424435_5
What is the amount of points for the team with 13 wins?
CREATE TABLE table_16034882_4 (points VARCHAR, wins VARCHAR)
SELECT points FROM table_16034882_4 WHERE wins = 13
Name the team for week 1 of 33
CREATE TABLE table_name_66 (team VARCHAR, week_1 VARCHAR)
SELECT team FROM table_name_66 WHERE week_1 = "33"
Name the club with date of appointment of 1 november 2007
CREATE TABLE table_name_67 (club VARCHAR, date_of_appointment VARCHAR)
SELECT club FROM table_name_67 WHERE date_of_appointment = "1 november 2007"
What is the class of the word who's second participle is laug?
CREATE TABLE table_1745843_5 (class VARCHAR, part_2 VARCHAR)
SELECT class FROM table_1745843_5 WHERE part_2 = "laug"