answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT title FROM table_name_95 WHERE category = "best r&b song"
WHAT IS THE TITLE WITH CATEGORY OF best r&b song?
CREATE TABLE table_name_95 (title VARCHAR, category VARCHAR)
SELECT MIN(game) FROM table_name_46 WHERE score = "2–3 ot" AND points > 76
Which Game is the lowest one that has a Score of 2–3 ot, and Points larger than 76?
CREATE TABLE table_name_46 (game INTEGER, score VARCHAR, points VARCHAR)
SELECT ppv_buyrate FROM table_name_77 WHERE date = "september 10" AND event = "strikeforce: heavyweight grand prix semifinals"
On September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was the PPV buyrate?
CREATE TABLE table_name_77 (ppv_buyrate VARCHAR, date VARCHAR, event VARCHAR)
SELECT home FROM table_name_57 WHERE date = "march 24"
Who was the home team on March 24?
CREATE TABLE table_name_57 (home VARCHAR, date VARCHAR)
SELECT SUM(year) FROM table_name_23 WHERE moves = 32
What year had 32 moves?
CREATE TABLE table_name_23 (year INTEGER, moves VARCHAR)
SELECT COUNT(*), role_code FROM users GROUP BY role_code
Find the number of users in each role.
CREATE TABLE users (role_code VARCHAR)
SELECT attendance FROM table_name_84 WHERE date = "december 12, 2004"
What is the Attendance of the game on December 12, 2004?
CREATE TABLE table_name_84 (attendance VARCHAR, date VARCHAR)
SELECT away_team AS score FROM table_name_38 WHERE venue = "junction oval"
What was the away team's score in Junction Oval?
CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(*) FROM Ref_locations
Show the number of locations.
CREATE TABLE Ref_locations (Id VARCHAR)
SELECT attendance FROM table_name_19 WHERE week < 8 AND opponent = "philadelphia eagles"
Which Attendance has a Week smaller than 8, and an Opponent of philadelphia eagles?
CREATE TABLE table_name_19 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT division FROM table_24193494_3 WHERE powertrain__engine_transmission_ = "Detroit Diesel Series 50EGR Allison WB-400R"
Name the division for detroit diesel series 50egr allison wb-400r
CREATE TABLE table_24193494_3 (division VARCHAR, powertrain__engine_transmission_ VARCHAR)
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY COUNT(*) DESC LIMIT 3
Find the top 3 products which have the largest number of problems?
CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_name VARCHAR, product_id VARCHAR)
SELECT report FROM table_1140074_2 WHERE rnd = 4
what's the report with rnd being 4
CREATE TABLE table_1140074_2 (report VARCHAR, rnd VARCHAR)
SELECT original_air_date FROM table_24639086_3 WHERE viewers__in_millions_ = "2.48"
If the amount of viewers is 2.48 million, what is the original air date?
CREATE TABLE table_24639086_3 (original_air_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT round FROM table_name_39 WHERE opponent = "joe lauzon"
In what round did opponent Joe Lauzon play?
CREATE TABLE table_name_39 (round VARCHAR, opponent VARCHAR)
SELECT colonel FROM table_29458735_5 WHERE regiment = "35th regiment"
what is the name of the coloneo of the 35th regiment
CREATE TABLE table_29458735_5 (colonel VARCHAR, regiment VARCHAR)
SELECT school FROM table_name_75 WHERE conference_joined = "northeast corner" AND mascot = "blazers"
Which school has a mascot of the Blazers and in the Northeast Corner conference?
CREATE TABLE table_name_75 (school VARCHAR, conference_joined VARCHAR, mascot VARCHAR)
SELECT termination_of_mission FROM table_name_37 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "reynold e. carlson"
What is the Termination of Mission with a Title of Ambassador Extraordinary and Plenipotentiary with a Representative of Reynold E. Carlson?
CREATE TABLE table_name_37 (termination_of_mission VARCHAR, title VARCHAR, representative VARCHAR)
SELECT AVG(ratio) FROM table_name_76 WHERE similar_iso_a_size = "a3"
Which Ratio has a Similar ISO A size of a3?
CREATE TABLE table_name_76 (ratio INTEGER, similar_iso_a_size VARCHAR)
SELECT MIN(round) FROM table_name_56 WHERE winning_driver = "brendon hartley" AND date = "27 april"
Which Round has the Winning Driver of brendon hartley, and a Date of 27 april?
CREATE TABLE table_name_56 (round INTEGER, winning_driver VARCHAR, date VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_48 WHERE player = "dale mitchell"
What college or club team did Dale Mitchell play for?
CREATE TABLE table_name_48 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT MIN(ties) FROM table_name_10 WHERE losses = 7 AND games_played < 10
what is the lowest number of ties when the losses is 7 and games played is less than 10?
CREATE TABLE table_name_10 (ties INTEGER, losses VARCHAR, games_played VARCHAR)
SELECT MIN(league_cup) FROM table_name_9 WHERE championship = 4
What is the lowest number of league cups with 4 championships?
CREATE TABLE table_name_9 (league_cup INTEGER, championship VARCHAR)
SELECT COUNT(capital) FROM table_1404456_1 WHERE population_census_2009 = 284657
how many capital with population census 2009 being 284657
CREATE TABLE table_1404456_1 (capital VARCHAR, population_census_2009 VARCHAR)
SELECT song_choice FROM table_27614707_1 WHERE week__number = "Top 5" AND original_artist = "Marisa Monte"
What Marisa Monte song choice was song during top 5?
CREATE TABLE table_27614707_1 (song_choice VARCHAR, week__number VARCHAR, original_artist VARCHAR)
SELECT AVG(mrc_championships) FROM table_name_31 WHERE pct > 0.685 AND co_champions > 1 AND solo < 5
What is the average value of MRC Championships with more than 0.685 PCT., more than 1 for co-champions, and less than 5 solo?
CREATE TABLE table_name_31 (mrc_championships INTEGER, solo VARCHAR, pct VARCHAR, co_champions VARCHAR)
SELECT nation FROM table_name_6 WHERE total > 5 AND rank = "1"
What nation was number 1 and had a total larger than 5?
CREATE TABLE table_name_6 (nation VARCHAR, total VARCHAR, rank VARCHAR)
SELECT release_price___usd__ FROM table_name_96 WHERE gpu_frequency = "standard power, embedded"
What is the release price for the GPU frequency of standard power, embedded?
CREATE TABLE table_name_96 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR)
SELECT gtype FROM Video_games GROUP BY gtype ORDER BY COUNT(*) LIMIT 1
Which game type has least number of games?
CREATE TABLE Video_games (gtype VARCHAR)
SELECT result FROM table_name_62 WHERE opponent = "philadelphia eagles"
What is the Result of the game against Philadelphia Eagles?
CREATE TABLE table_name_62 (result VARCHAR, opponent VARCHAR)
SELECT MAX(points) FROM table_23308178_7 WHERE record = "28-12-6"
Calculate the highest points where the win,loss, tie ratio is 28-12-6
CREATE TABLE table_23308178_7 (points INTEGER, record VARCHAR)
SELECT COUNT(gold) FROM table_name_47 WHERE silver = 0 AND bronze > 1
What is the total number of gold medals of the nation with 0 silver and more than 1 bronze?
CREATE TABLE table_name_47 (gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT home_team FROM table_name_34 WHERE away_team = "ipswich town"
who is the home team when the away team is ipswich town?
CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR)
SELECT original_air_date FROM table_24425976_7 WHERE season = 4
What date did episode 4 in the season originally air?
CREATE TABLE table_24425976_7 (original_air_date VARCHAR, season VARCHAR)
SELECT singapore_gross FROM table_name_66 WHERE director = "1991"
For the directed by 1991, what was the gross in Singapore?
CREATE TABLE table_name_66 (singapore_gross VARCHAR, director VARCHAR)
SELECT COUNT(channel) FROM table_11323532_2 WHERE country_region = "New Zealand"
What was the number of channels in New Zealand?
CREATE TABLE table_11323532_2 (channel VARCHAR, country_region VARCHAR)
SELECT extra_points FROM table_name_12 WHERE position = "right halfback" AND player = "roswell wendell"
How many extra points did right halfback Roswell Wendell have?
CREATE TABLE table_name_12 (extra_points VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(year) FROM table_name_68 WHERE result = "nominated" AND category = "outstanding actor in a musical" AND award = "drama desk award"
What is the total number of Year, when Result is "Nominated", when Category is "Outstanding Actor in a Musical", and when Award is "Drama Desk Award"?
CREATE TABLE table_name_68 (year VARCHAR, award VARCHAR, result VARCHAR, category VARCHAR)
SELECT time FROM table_name_14 WHERE method = "submission (knees)"
What is Time, when Method is "submission (knees)"?
CREATE TABLE table_name_14 (time VARCHAR, method VARCHAR)
SELECT MIN(year) FROM table_name_56 WHERE power = "90kw (121hp) @ 4000"
When is the earliest year with a Power of 90kw (121hp) @ 4000?
CREATE TABLE table_name_56 (year INTEGER, power VARCHAR)
SELECT surface FROM table_name_97 WHERE tournament = "carthage" AND date = "august 14, 1994"
What type of surface was used for the carthage tournament on august 14, 1994?
CREATE TABLE table_name_97 (surface VARCHAR, tournament VARCHAR, date VARCHAR)
SELECT junior_marquee_player FROM table_name_22 WHERE captain = "harry kewell"
What Junior Marquee team is Harry Kewell of?
CREATE TABLE table_name_22 (junior_marquee_player VARCHAR, captain VARCHAR)
SELECT ceremony FROM table_name_91 WHERE date = "may 15, 1965"
Which award ceremony took place on May 15, 1965?
CREATE TABLE table_name_91 (ceremony VARCHAR, date VARCHAR)
SELECT score1 FROM table_name_20 WHERE competition_or_tour = "major league soccer all-star game"
What is the score 1 for the major league soccer all-star game?
CREATE TABLE table_name_20 (score1 VARCHAR, competition_or_tour VARCHAR)
SELECT score FROM table_name_32 WHERE location_attendance = "alexander memorial coliseum" AND record = "0-1"
What was the score for the game played in Alexander Memorial Coliseum when the record was 0-1?
CREATE TABLE table_name_32 (score VARCHAR, location_attendance VARCHAR, record VARCHAR)
SELECT manufacturer FROM table_24193494_3 WHERE order_year = 2011
Name the manufacturer for 2011
CREATE TABLE table_24193494_3 (manufacturer VARCHAR, order_year VARCHAR)
SELECT division FROM table_1046170_5 WHERE us_open_cup = "Did Not Qualify" AND year = 2003
how many division did not qualify for u.s. open cup in 2003
CREATE TABLE table_1046170_5 (division VARCHAR, us_open_cup VARCHAR, year VARCHAR)
SELECT role FROM table_name_26 WHERE language = "hindi" AND year = 2011
What role is spoken in hindi in 2011?
CREATE TABLE table_name_26 (role VARCHAR, language VARCHAR, year VARCHAR)
SELECT COUNT(affiliation) FROM table_13456202_1 WHERE mascot = "Eagles"
How many teams have an eagles mascot?
CREATE TABLE table_13456202_1 (affiliation VARCHAR, mascot VARCHAR)
SELECT race FROM table_name_15 WHERE group = "na" AND result = "4th"
What was the race of the jockey in na group in 4th place?
CREATE TABLE table_name_15 (race VARCHAR, group VARCHAR, result VARCHAR)
SELECT gender FROM table_name_86 WHERE decile = 5 AND roll = 90
What is the Gender of students at a school with a Decile of 5 and a Roll of 90?
CREATE TABLE table_name_86 (gender VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT location_attendance FROM table_name_16 WHERE record = "21–22"
What is the Location and Attendance with a Record of 21–22?
CREATE TABLE table_name_16 (location_attendance VARCHAR, record VARCHAR)
SELECT AVG(tries) FROM table_name_79 WHERE player = "mike forshaw" AND points < 28
What is the average number of Tries with less than 28 Points for Mike Forshaw?
CREATE TABLE table_name_79 (tries INTEGER, player VARCHAR, points VARCHAR)
SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WH...
Find the first names of the faculty members who participate in Canoeing and Kayaking.
CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)
SELECT total FROM table_name_41 WHERE place = "3rd" AND season = "9"
What is the total for 3rd place on season 9?
CREATE TABLE table_name_41 (total VARCHAR, place VARCHAR, season VARCHAR)
SELECT MIN(renewable_electricity_w_o_hydro__gw) AS •h_ FROM table_25244412_1 WHERE renewable_electricity__gw•h_ = 5760
When renewable electricity is 5760 (gw×h) what is the minimum amount of renewable elecrrixity without hydrogen power?
CREATE TABLE table_25244412_1 (renewable_electricity_w_o_hydro__gw INTEGER, renewable_electricity__gw•h_ VARCHAR)
SELECT COUNT(goals_conceded) FROM table_name_47 WHERE draws < 5 AND loses > 4 AND wins > 9
What was the total number of Goals conceded when there were more than 4 losses, less than 5 draws, and more than 9 wins?
CREATE TABLE table_name_47 (goals_conceded VARCHAR, wins VARCHAR, draws VARCHAR, loses VARCHAR)
SELECT opponent FROM table_name_41 WHERE method = "submission (triangle choke)"
Who is the opponent of the submission (triangle choke) method of submission?
CREATE TABLE table_name_41 (opponent VARCHAR, method VARCHAR)
SELECT round FROM table_name_9 WHERE opponent = "celtic" AND date = "24 february 1900"
What round did the celtic played away on 24 february 1900?
CREATE TABLE table_name_9 (round VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT rider_names FROM table_27833186_1 WHERE best_conditioned_horse = "Basia"
What are all the Riders whose best-conditioned horse is Basia?
CREATE TABLE table_27833186_1 (rider_names VARCHAR, best_conditioned_horse VARCHAR)
SELECT series_3 FROM table_name_77 WHERE seat > 4
What is the series 3 with more than 4 seats?
CREATE TABLE table_name_77 (series_3 VARCHAR, seat INTEGER)
SELECT MIN(_number) FROM table_27547668_3
What is the smallest numbered episode in the series listed?
CREATE TABLE table_27547668_3 (_number INTEGER)
SELECT psip_short_name FROM table_name_19 WHERE video = "720p" AND programming = "main kstc-tv programming"
What is the short name having video of 720p and programming of Main KSTC-TV programming?
CREATE TABLE table_name_19 (psip_short_name VARCHAR, video VARCHAR, programming VARCHAR)
SELECT COUNT(pick) FROM table_name_60 WHERE round = "2"
What is the total pick number from round 2?
CREATE TABLE table_name_60 (pick VARCHAR, round VARCHAR)
SELECT document_type_description FROM Ref_document_types WHERE document_type_name = "Film"
What is the document type description for document type named Film?
CREATE TABLE Ref_document_types (document_type_description VARCHAR, document_type_name VARCHAR)
SELECT capital FROM table_name_89 WHERE sno < 7 AND name_of_janapada = "punia"
What capital has an S.Number under 7, and a Name of janapada of Punia?
CREATE TABLE table_name_89 (capital VARCHAR, sno VARCHAR, name_of_janapada VARCHAR)
SELECT celebrity FROM table_name_94 WHERE entered = "day 1" AND exited = "day 20"
Who entered on day 1 and exited on day 20?
CREATE TABLE table_name_94 (celebrity VARCHAR, entered VARCHAR, exited VARCHAR)
SELECT high_points FROM table_17102076_5 WHERE score = "L 92–100 (OT)"
Name the high points for score being l 92–100 (ot)
CREATE TABLE table_17102076_5 (high_points VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_24 WHERE date = "october 28"
What was the opponent on october 28?
CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_30 WHERE round > 2
Who was the opponent when the round was more than 2?
CREATE TABLE table_name_30 (opponent VARCHAR, round INTEGER)
SELECT score FROM table_name_42 WHERE city = "leicester"
What is the score in Leicester?
CREATE TABLE table_name_42 (score VARCHAR, city VARCHAR)
SELECT SUM(season) FROM table_name_1 WHERE winners = "dalian wanda" AND fourth_placed = "yanbian aodong"
What season had Dalian Wanda as the winner with Yanbian Aodong winning 4th?
CREATE TABLE table_name_1 (season INTEGER, winners VARCHAR, fourth_placed VARCHAR)
SELECT director_s_ FROM table_name_35 WHERE writer_s_ = "alex winckler"
Alex Winckler wrote the film, who was the director?
CREATE TABLE table_name_35 (director_s_ VARCHAR, writer_s_ VARCHAR)
SELECT nationality FROM table_name_11 WHERE round = 4
What is the nationality of the player in round 4?
CREATE TABLE table_name_11 (nationality VARCHAR, round VARCHAR)
SELECT act FROM table_28180840_15 WHERE name_name_of_act = "Zhu Xiaoming"
What is the name of the performance zhu xiaoming performed?
CREATE TABLE table_28180840_15 (act VARCHAR, name_name_of_act VARCHAR)
SELECT MAX(level) FROM table_name_96 WHERE team = "astana" AND season > 2007
What's the highest level of team Astana since 2007?
CREATE TABLE table_name_96 (level INTEGER, team VARCHAR, season VARCHAR)
SELECT constructor FROM table_name_41 WHERE driver = "juan pablo montoya"
who is the constructor when the driver is juan pablo montoya?
CREATE TABLE table_name_41 (constructor VARCHAR, driver VARCHAR)
SELECT finish FROM table_name_9 WHERE start = "32"
What finish time started at 32?
CREATE TABLE table_name_9 (finish VARCHAR, start VARCHAR)
SELECT mi_from_kingston FROM table_16226584_1 WHERE length_feet = 362
When the railroad length is 362 feet how many miles is it from kingston?
CREATE TABLE table_16226584_1 (mi_from_kingston VARCHAR, length_feet VARCHAR)
SELECT joined FROM table_1183842_1 WHERE location = "Boca Raton, Florida"
Boca Raton, Florida had what joined amount?
CREATE TABLE table_1183842_1 (joined VARCHAR, location VARCHAR)
SELECT COUNT(week) FROM table_name_88 WHERE date = "november 26, 1978" AND attendance > 26 OFFSET 248
How many weeks had a game on November 26, 1978, and an attendance higher than 26,248?
CREATE TABLE table_name_88 (week VARCHAR, date VARCHAR, attendance VARCHAR)
SELECT MAX(extras) FROM table_name_79 WHERE name = "farveez maharoof" AND wickets > 4
What is the highest Extras for Farveez Maharoof, with more than 4 wickets?
CREATE TABLE table_name_79 (extras INTEGER, name VARCHAR, wickets VARCHAR)
SELECT COUNT(average) FROM table_name_40 WHERE career = "1990-1995" AND goals < 90
What is the total average for 1990-1995, and goals less than 90?
CREATE TABLE table_name_40 (average VARCHAR, career VARCHAR, goals VARCHAR)
SELECT player FROM table_name_37 WHERE pick > 2 AND position = "forward"
Which Player has a Pick larger than 2, and a Position of forward?
CREATE TABLE table_name_37 (player VARCHAR, pick VARCHAR, position VARCHAR)
SELECT date FROM table_name_83 WHERE outcome = "runner-up" AND score = "5–7, 3–6, 6–3, 2–6"
What is the Date of the game with an Outcome of runner-up and Score of 5–7, 3–6, 6–3, 2–6?
CREATE TABLE table_name_83 (date VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT AVG(week) FROM table_name_93 WHERE result = "l 56-3"
Which week has a result L 56-3?
CREATE TABLE table_name_93 (week INTEGER, result VARCHAR)
SELECT player FROM table_name_23 WHERE nationality = "canada" AND year > 2009
After 2009, who was the player that has a nationality of Canada?
CREATE TABLE table_name_23 (player VARCHAR, nationality VARCHAR, year VARCHAR)
SELECT type FROM table_name_46 WHERE name = "l. publilius philo vulscus"
What is the Type for l. publilius philo vulscus?
CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR)
SELECT role_code, role_name, role_description FROM ROLES
List all role codes, role names, and role descriptions.
CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR, role_description VARCHAR)
SELECT method FROM table_name_87 WHERE event = "cage warriors 39"
What was the method of resolution for the fight at cage warriors 39?
CREATE TABLE table_name_87 (method VARCHAR, event VARCHAR)
SELECT rank FROM table_name_80 WHERE player = "andy bichel (qld)"
What rank has andy bichel (qld) as the player?
CREATE TABLE table_name_80 (rank VARCHAR, player VARCHAR)
SELECT directed_by FROM table_25277296_2 WHERE no_in_season = 11
Who was the director of episode 11 based on season?
CREATE TABLE table_25277296_2 (directed_by VARCHAR, no_in_season VARCHAR)
SELECT date FROM table_name_48 WHERE game = 8
What is Date, when Game is "8"?
CREATE TABLE table_name_48 (date VARCHAR, game VARCHAR)
SELECT country FROM table_name_83 WHERE rank = 2
What nationality is the player ranked 2?
CREATE TABLE table_name_83 (country VARCHAR, rank VARCHAR)
SELECT written_by FROM table_29087004_3 WHERE united_states_original_airdate = "June 9, 2012"
Who were the writers of episode/s first aired in the US on June 9, 2012?
CREATE TABLE table_29087004_3 (written_by VARCHAR, united_states_original_airdate VARCHAR)
SELECT college_junior_club_team FROM table_name_13 WHERE pick__number = "64"
Which team has the # 64 pick?
CREATE TABLE table_name_13 (college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT streak FROM table_name_42 WHERE record = "20–16"
What is the Streak in the game with a Record of 20–16?
CREATE TABLE table_name_42 (streak VARCHAR, record VARCHAR)
SELECT no_built FROM table_name_17 WHERE loco_nos = "11-20"
How many were built with a locomotive number of 11-20?
CREATE TABLE table_name_17 (no_built VARCHAR, loco_nos VARCHAR)
SELECT COUNT(pick__number) FROM table_1213511_7 WHERE nhl_team = "Philadelphia Flyers"
what is the total number of pick # where nhl team is philadelphia flyers
CREATE TABLE table_1213511_7 (pick__number VARCHAR, nhl_team VARCHAR)
SELECT away_team FROM table_name_63 WHERE venue = "lake oval"
What away team played in Lake Oval?
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)