question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many different dates are there for founded teams for the venue of champion window field?
CREATE TABLE table_name_77 (founded VARCHAR, venue VARCHAR)
SELECT COUNT(founded) FROM table_name_77 WHERE venue = "champion window field"
How many teams finished in 8th in 2008?
CREATE TABLE table_20140132_1 (team VARCHAR, position_in_2008 VARCHAR)
SELECT COUNT(team) FROM table_20140132_1 WHERE position_in_2008 = "8th"
Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain?
CREATE TABLE table_name_41 (location VARCHAR, mountain_peak VARCHAR, mountain_range VARCHAR, rank VARCHAR)
SELECT location FROM table_name_41 WHERE mountain_range = "coast mountains" AND rank < 18 AND mountain_peak = "skihist mountain"
Which IHSAA Class has a School of shakamak?
CREATE TABLE table_name_84 (ihsaa_class VARCHAR, school VARCHAR)
SELECT ihsaa_class FROM table_name_84 WHERE school = "shakamak"
Which VIETNAMESE has a CHINESE of 不如密多 / bùrúmìduō?
CREATE TABLE table_name_25 (vietnamese VARCHAR, chinese VARCHAR)
SELECT vietnamese FROM table_name_25 WHERE chinese = "不如密多 / bùrúmìduō"
Name the date for irish points being 89
CREATE TABLE table_22875369_3 (date VARCHAR, irish_points VARCHAR)
SELECT date FROM table_22875369_3 WHERE irish_points = 89
Who is the player from Arizona state with a round less than 7?
CREATE TABLE table_name_84 (player VARCHAR, round VARCHAR, college VARCHAR)
SELECT player FROM table_name_84 WHERE round < 7 AND college = "arizona state"
What was the total score when the guest judge gave a score of 10?
CREATE TABLE table_28352386_1 (total VARCHAR, guest_judge VARCHAR)
SELECT total FROM table_28352386_1 WHERE guest_judge = "10"
Which Chassis has 4 points?
CREATE TABLE table_name_32 (chassis VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_32 WHERE points = "4"
What was the release date for metronome?
CREATE TABLE table_18138132_2 (release_date VARCHAR, title VARCHAR)
SELECT release_date FROM table_18138132_2 WHERE title = "Metronome"
What is the most recent episode number written by Matthew Pitts?
CREATE TABLE table_24649082_1 (_number INTEGER, written_by VARCHAR)
SELECT MAX(_number) FROM table_24649082_1 WHERE written_by = "Matthew Pitts"
Name the year for american conference semifinals
CREATE TABLE table_name_96 (year VARCHAR, playoffs VARCHAR)
SELECT year FROM table_name_96 WHERE playoffs = "american conference semifinals"
what was the size when tom daley appeared
CREATE TABLE table_29141354_1 (episode VARCHAR, jamie_and_johns_guest VARCHAR)
SELECT episode FROM table_29141354_1 WHERE jamie_and_johns_guest = "Tom Daley"
What event was the opponent Karl Knothe and had a submission (rear naked choke)?
CREATE TABLE table_name_16 (event VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_16 WHERE method = "submission (rear naked choke)" AND opponent = "karl knothe"
What is the first name and last name of the customer that has email "luisg@embraer.com.br"?
CREATE TABLE CUSTOMER (FirstName VARCHAR, LastName VARCHAR, Email VARCHAR)
SELECT FirstName, LastName FROM CUSTOMER WHERE Email = "luisg@embraer.com.br"
What was deputies with the lowest number of unknown received votes, in an election year after 1986?
CREATE TABLE table_name_17 (number_of_deputies INTEGER, number_of_votes_received VARCHAR, election_date VARCHAR)
SELECT MIN(number_of_deputies) FROM table_name_17 WHERE number_of_votes_received = "unknown" AND election_date > 1986
Show the date of the transcript which shows the least number of results, also list the id.
CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)
SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) LIMIT 1
which episode was Transmitted on friday if the episode of "515 the adventures of tintin" was transmitted on monday?
CREATE TABLE table_18173916_8 (friday VARCHAR, monday VARCHAR)
SELECT friday FROM table_18173916_8 WHERE monday = "515 The Adventures of Tintin"
What is the average Grid that has a Time/Retired of +2 laps, and under 51 laps?
CREATE TABLE table_name_83 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_83 WHERE time_retired = "+2 laps" AND laps < 51
Name the rank timeslot for 11.59 viewers
CREATE TABLE table_20971444_3 (rank__timeslot_ VARCHAR, viewers__millions_ VARCHAR)
SELECT rank__timeslot_ FROM table_20971444_3 WHERE viewers__millions_ = "11.59"
What district did James O'Connor belong to?
CREATE TABLE table_1342451_16 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342451_16 WHERE incumbent = "James O'Connor"
How many rounds have a Pick smaller than 10, and a Name of larry hendershot?
CREATE TABLE table_name_70 (round VARCHAR, pick VARCHAR, name VARCHAR)
SELECT COUNT(round) FROM table_name_70 WHERE pick < 10 AND name = "larry hendershot"
What is Winner, when Circuit is Mallala Motor Sport Park, and when Series is ASTC Round 6?
CREATE TABLE table_name_95 (winner VARCHAR, circuit VARCHAR, series VARCHAR)
SELECT winner FROM table_name_95 WHERE circuit = "mallala motor sport park" AND series = "astc round 6"
What was the date of the finale for Season 3?
CREATE TABLE table_name_61 (finale VARCHAR, season VARCHAR)
SELECT finale FROM table_name_61 WHERE season = 3
Name the average popular votes in years after 1990 with percentage of 4.94%
CREATE TABLE table_name_35 (popular_votes INTEGER, percentage VARCHAR, year VARCHAR)
SELECT AVG(popular_votes) FROM table_name_35 WHERE percentage = "4.94%" AND year > 1990
How much Overall has a Round smaller than 6, and a Pick # of 26?
CREATE TABLE table_name_68 (overall INTEGER, round VARCHAR, pick__number VARCHAR)
SELECT SUM(overall) FROM table_name_68 WHERE round < 6 AND pick__number = 26
Where was a 0-5 game played?
CREATE TABLE table_name_7 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_7 WHERE result = "0-5"
When was the game when North Melbourne was the home team?
CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_35 WHERE home_team = "north melbourne"
Which Tries against have Points against larger than 109?
CREATE TABLE table_name_9 (tries_against INTEGER, points_against INTEGER)
SELECT MAX(tries_against) FROM table_name_9 WHERE points_against > 109
What was the label in 1969?
CREATE TABLE table_name_18 (label VARCHAR, date VARCHAR)
SELECT label FROM table_name_18 WHERE date = 1969
Who was the Player that had the Position, guard-forward?
CREATE TABLE table_name_54 (player VARCHAR, position VARCHAR)
SELECT player FROM table_name_54 WHERE position = "guard-forward"
Which team has 1 as the drawn, with 2 as the lost?
CREATE TABLE table_name_37 (team VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT team FROM table_name_37 WHERE drawn = 1 AND lost = 2
Who were the guests on the episode that first aired August 16?
CREATE TABLE table_25691838_8 (guest VARCHAR, original_airdate VARCHAR)
SELECT guest FROM table_25691838_8 WHERE original_airdate = "August 16"
What is Score, when Home is "marathon"?
CREATE TABLE table_name_31 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_31 WHERE home = "marathon"
Show the station name with at least two trains.
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR)
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id HAVING COUNT(*) >= 2
For each user, return the name and the average rating of reviews given by them.
CREATE TABLE review (rating INTEGER, u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)
SELECT T1.name, AVG(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id
What is the original air date of the episode written by Liz Feldman?
CREATE TABLE table_29920800_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_29920800_1 WHERE written_by = "Liz Feldman"
Who are the co-drivers before 2010 with under 326 laps?
CREATE TABLE table_name_76 (co_drivers VARCHAR, year VARCHAR, laps VARCHAR)
SELECT co_drivers FROM table_name_76 WHERE year < 2010 AND laps < 326
What score has a to par of 12 and is from Jersey?
CREATE TABLE table_name_25 (score VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT score FROM table_name_25 WHERE to_par = 12 AND country = "jersey"
What is Date, when Status is Second Test?
CREATE TABLE table_name_34 (date VARCHAR, status VARCHAR)
SELECT date FROM table_name_34 WHERE status = "second test"
What is the report for 10 october?
CREATE TABLE table_name_13 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_13 WHERE date = "10 october"
What date is the 1:00 pm game at arrowhead stadium?
CREATE TABLE table_name_37 (date VARCHAR, time___et__ VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_37 WHERE time___et__ = "1:00 pm" AND game_site = "arrowhead stadium"
For what 188kg is the world record clean & jerk?
CREATE TABLE table_name_96 (world_record VARCHAR)
SELECT 188 AS kg FROM table_name_96 WHERE world_record = "clean & jerk"
What category did MCG get a nominee in?
CREATE TABLE table_name_62 (category VARCHAR, label VARCHAR, result VARCHAR)
SELECT category FROM table_name_62 WHERE label = "mcg" AND result = "nominee"
What is the Result with a Score of 1–0, and a Date with 18 april 2009?
CREATE TABLE table_name_35 (result VARCHAR, score VARCHAR, date VARCHAR)
SELECT result FROM table_name_35 WHERE score = "1–0" AND date = "18 april 2009"
How many nicknames does the school in Newark, DE have
CREATE TABLE table_16432543_1 (nickname VARCHAR, location VARCHAR)
SELECT COUNT(nickname) FROM table_16432543_1 WHERE location = "Newark, DE"
Name the number of english gloss for wakȟáŋyeža
CREATE TABLE table_1499774_5 (english_gloss VARCHAR, northern_lakota VARCHAR)
SELECT COUNT(english_gloss) FROM table_1499774_5 WHERE northern_lakota = "wakȟáŋyeža"
What year was number 7 built?
CREATE TABLE table_1015421_1 (year_built VARCHAR, no_built VARCHAR)
SELECT year_built FROM table_1015421_1 WHERE no_built = 7
List the grapes and appelations of all wines.
CREATE TABLE WINE (Grape VARCHAR, Appelation VARCHAR)
SELECT Grape, Appelation FROM WINE
Name the date when the attendance is more than 45,817
CREATE TABLE table_name_65 (date VARCHAR, attendance INTEGER)
SELECT date FROM table_name_65 WHERE attendance > 45 OFFSET 817
Name the year for jesus alfaro and finish of 6th
CREATE TABLE table_name_65 (year VARCHAR, manager VARCHAR, finish VARCHAR)
SELECT year FROM table_name_65 WHERE manager = "jesus alfaro" AND finish = "6th"
Which Change is the average one that has a Centre of buenos aires, and a Rank smaller than 46?
CREATE TABLE table_name_31 (change INTEGER, centre VARCHAR, rank VARCHAR)
SELECT AVG(change) FROM table_name_31 WHERE centre = "buenos aires" AND rank < 46
What is the total matches in 2002 where points won is larger than 1.5 and the points % is smaller than 50?
CREATE TABLE table_name_4 (total_matches INTEGER, points__percentage VARCHAR, points_won VARCHAR, year VARCHAR)
SELECT MAX(total_matches) FROM table_name_4 WHERE points_won > 1.5 AND year = "2002" AND points__percentage < 50
Name the high assists for delta center 19,639
CREATE TABLE table_15869204_5 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT high_assists FROM table_15869204_5 WHERE location_attendance = "Delta Center 19,639"
What is the sum of numbers that had a type of Driving Van Trailer?
CREATE TABLE table_name_65 (number INTEGER, type VARCHAR)
SELECT SUM(number) FROM table_name_65 WHERE type = "driving van trailer"
What is the total sum of points for songs performed by Partners in Crime?
CREATE TABLE table_name_16 (points INTEGER, performer VARCHAR)
SELECT SUM(points) FROM table_name_16 WHERE performer = "partners in crime"
I want the game site for week of 11
CREATE TABLE table_name_17 (game_site VARCHAR, week VARCHAR)
SELECT game_site FROM table_name_17 WHERE week = 11
What are the dates in which the mean sea level pressure was between 30.3 and 31?
CREATE TABLE weather (date VARCHAR, mean_sea_level_pressure_inches INTEGER)
SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31
Who wrote the episode with the production code of 942A?
CREATE TABLE table_16432167_1 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_16432167_1 WHERE production_code = "942A"
Which pick was used on Ian Hazlett?
CREATE TABLE table_name_8 (pick INTEGER, player VARCHAR)
SELECT MIN(pick) FROM table_name_8 WHERE player = "ian hazlett"
What show had a nomination for best actor in a lead role – female (popular) in 2006?
CREATE TABLE table_name_22 (for_the_show VARCHAR, category VARCHAR, year VARCHAR)
SELECT for_the_show FROM table_name_22 WHERE category = "best actor in a lead role – female (popular)" AND year = 2006
What is the Tie no when the away team was Burnley?
CREATE TABLE table_name_30 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_30 WHERE away_team = "burnley"
What is the Hometown of Tim Williams?
CREATE TABLE table_name_72 (hometown__previous_school_ VARCHAR, name VARCHAR)
SELECT hometown__previous_school_ FROM table_name_72 WHERE name = "tim williams"
How many people attended the game on week 3?
CREATE TABLE table_name_26 (attendance INTEGER, week VARCHAR)
SELECT AVG(attendance) FROM table_name_26 WHERE week = 3
What is the fastest time for the Kentucky Derby race?
CREATE TABLE table_name_40 (time VARCHAR, race VARCHAR)
SELECT time FROM table_name_40 WHERE race = "kentucky derby"
state all the spokesperson for the channel where commentator is dmitriy guberniyev
CREATE TABLE table_1992924_3 (spokesperson VARCHAR, commentator VARCHAR)
SELECT spokesperson FROM table_1992924_3 WHERE commentator = "Dmitriy Guberniyev"
Tell me the label for digital format with nebula remixes
CREATE TABLE table_name_9 (label VARCHAR, formats VARCHAR, title VARCHAR)
SELECT label FROM table_name_9 WHERE formats = "digital" AND title = "nebula remixes"
what is the home arena that joined tschl in 2010 and the team nickname is bearcats?
CREATE TABLE table_name_59 (home_arena VARCHAR, joined_tschl VARCHAR, team_nickname VARCHAR)
SELECT home_arena FROM table_name_59 WHERE joined_tschl = 2010 AND team_nickname = "bearcats"
What college did Ben Wearing play for?
CREATE TABLE table_name_37 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_37 WHERE player = "ben wearing"
What is the lowest total medals the team with more than 0 bronze, 6 silver, and a rank higher than 3 has?
CREATE TABLE table_name_97 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_97 WHERE bronze > 0 AND silver = 6 AND rank < 3
Total laps for Shinya Nakano at smaller than 10 grids.
CREATE TABLE table_name_18 (laps VARCHAR, rider VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_18 WHERE rider = "shinya nakano" AND grid < 10
What is every CFL team from the Calgary college?
CREATE TABLE table_28059992_1 (cfl_team VARCHAR, college VARCHAR)
SELECT cfl_team FROM table_28059992_1 WHERE college = "Calgary"
What is the average number of years spent working as a journalist?
CREATE TABLE journalist (Years_working INTEGER)
SELECT AVG(Years_working) FROM journalist
What name has the call sign DWYS?
CREATE TABLE table_name_40 (name VARCHAR, call_sign VARCHAR)
SELECT name FROM table_name_40 WHERE call_sign = "dwys"
What order was the performance of a Richard Marx song?
CREATE TABLE table_name_43 (order_sung VARCHAR, artist VARCHAR)
SELECT order_sung FROM table_name_43 WHERE artist = "richard marx"
Who was the winner in the match that had John Higgins as runner-up?
CREATE TABLE table_name_63 (winner VARCHAR, runner_up VARCHAR)
SELECT winner FROM table_name_63 WHERE runner_up = "john higgins"
What was the record when the high rebound was Deandre Jordan (11)?
CREATE TABLE table_name_63 (record VARCHAR, high_rebounds VARCHAR)
SELECT record FROM table_name_63 WHERE high_rebounds = "deandre jordan (11)"
What position is 1999?
CREATE TABLE table_name_83 (position VARCHAR, year VARCHAR)
SELECT position FROM table_name_83 WHERE year = 1999
What is the only city name with a population density of 200?
CREATE TABLE table_21284653_1 (name VARCHAR, population_density VARCHAR)
SELECT name FROM table_21284653_1 WHERE population_density = "200"
Which date had Japanese sales of 0.57 million?
CREATE TABLE table_name_60 (date VARCHAR, japan VARCHAR)
SELECT date FROM table_name_60 WHERE japan = "0.57 million"
How many points occurred with a difference of 2 for position less than 4?
CREATE TABLE table_name_90 (points VARCHAR, difference VARCHAR, position VARCHAR)
SELECT COUNT(points) FROM table_name_90 WHERE difference = "2" AND position < 4
What is the smallest crowd size for punt road oval?
CREATE TABLE table_name_68 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_68 WHERE venue = "punt road oval"
What day was there a hard surface when the partner was Marc Gicquel?
CREATE TABLE table_name_64 (date VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT date FROM table_name_64 WHERE surface = "hard" AND partner = "marc gicquel"
Who was the opponent at the week 4 game?
CREATE TABLE table_name_85 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_85 WHERE week = 4
Which Nation has a Gold of 0, and a Bronze smaller than 6, and a Rank of 6?
CREATE TABLE table_name_91 (nation VARCHAR, rank VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT nation FROM table_name_91 WHERE gold = 0 AND bronze < "6" AND rank = "6"
For the game against the Washington Bullets, what was the final score?
CREATE TABLE table_name_97 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_97 WHERE opponent = "washington bullets"
What score has a game less than 4, and april 19 as the date?
CREATE TABLE table_name_2 (score VARCHAR, game VARCHAR, date VARCHAR)
SELECT score FROM table_name_2 WHERE game < 4 AND date = "april 19"
What is the away where the round is the second round?
CREATE TABLE table_name_40 (away VARCHAR, round VARCHAR)
SELECT away FROM table_name_40 WHERE round = "second round"
What is the total number of Pl GP when the pick number is 199 and the Reg GP is bigger than 0?
CREATE TABLE table_name_90 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR)
SELECT SUM(pl_gp) FROM table_name_90 WHERE pick__number = 199 AND reg_gp > 0
Find the number of characteristics that the product "flax" has.
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "flax"
Which Time has a Reaction smaller than 0.20400000000000001, and a Rank of 1?
CREATE TABLE table_name_15 (time INTEGER, react VARCHAR, rank VARCHAR)
SELECT SUM(time) FROM table_name_15 WHERE react < 0.20400000000000001 AND rank = 1
What date had a CD format, under Columbia/Legacy from the UK?
CREATE TABLE table_name_77 (date VARCHAR, country VARCHAR, format VARCHAR, label VARCHAR)
SELECT date FROM table_name_77 WHERE format = "cd" AND label = "columbia/legacy" AND country = "uk"
What is the Director from Paramount with a Film with a Gross of $128,152,301?
CREATE TABLE table_name_63 (director VARCHAR, studio VARCHAR, gross VARCHAR)
SELECT director FROM table_name_63 WHERE studio = "paramount" AND gross = "$128,152,301"
Who had the most points in games over 59?
CREATE TABLE table_name_12 (high_points VARCHAR, game INTEGER)
SELECT high_points FROM table_name_12 WHERE game > 59
How many goals were scored by Eugene Galeković?
CREATE TABLE table_name_54 (goals VARCHAR, player VARCHAR)
SELECT goals FROM table_name_54 WHERE player = "eugene galeković"
Which club plays soccer in the nwsl?
CREATE TABLE table_name_61 (club VARCHAR, sport VARCHAR, league VARCHAR)
SELECT club FROM table_name_61 WHERE sport = "soccer" AND league = "nwsl"
What time did the even tachi palace fights 3 take place?
CREATE TABLE table_name_67 (time VARCHAR, event VARCHAR)
SELECT time FROM table_name_67 WHERE event = "tachi palace fights 3"
How many NHL teams does Terry French play for?
CREATE TABLE table_1213511_2 (nhl_team VARCHAR, player VARCHAR)
SELECT COUNT(nhl_team) FROM table_1213511_2 WHERE player = "Terry French"
What is the lowest number of Laps that have a Time of +24.440, and a Grid higher than 18?
CREATE TABLE table_name_39 (laps INTEGER, time VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_39 WHERE time = "+24.440" AND grid > 18
Which season has less than 26 points, more than 18 games, and exactly 13 losses?
CREATE TABLE table_name_78 (season VARCHAR, losses VARCHAR, points VARCHAR, games VARCHAR)
SELECT season FROM table_name_78 WHERE points < 26 AND games > 18 AND losses = 13