answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT pos FROM table_name_2 WHERE team = "new york knicks"
What is the pos for the New York Knicks?
CREATE TABLE table_name_2 (pos VARCHAR, team VARCHAR)
SELECT years_in_toronto FROM table_10015132_2 WHERE player = "Marcus Banks"
During which years was Marcus Banks in Toronto?
CREATE TABLE table_10015132_2 (years_in_toronto VARCHAR, player VARCHAR)
SELECT COUNT(attendance) FROM table_name_37 WHERE date = "1 november 1997"
How many people in total attended the game on 1 november 1997?
CREATE TABLE table_name_37 (attendance VARCHAR, date VARCHAR)
SELECT MAX(gradepoint), MIN(gradepoint) FROM GRADECONVERSION
Find the max and min grade point for all letter grade.
CREATE TABLE GRADECONVERSION (gradepoint INTEGER)
SELECT MAX(total) FROM table_15988037_24 WHERE average = "28.5"
What is the maximum total in which the average is 28.5?
CREATE TABLE table_15988037_24 (total INTEGER, average VARCHAR)
SELECT COUNT(province__ashkharh_) FROM table_23887174_1 WHERE center = "Baghaberd"
How many different provinces is Baghaberd the center of?
CREATE TABLE table_23887174_1 (province__ashkharh_ VARCHAR, center VARCHAR)
SELECT english_title FROM table_name_11 WHERE chinese__simplified_ = "你 朋友"
What is 你 朋友's English title?
CREATE TABLE table_name_11 (english_title VARCHAR, chinese__simplified_ VARCHAR)
SELECT lost FROM table_name_30 WHERE losing_bonus = "4"
What is the Lost with a Losing Bonus that is 4?
CREATE TABLE table_name_30 (lost VARCHAR, losing_bonus VARCHAR)
SELECT home_team AS score FROM table_name_13 WHERE away_team = "richmond"
What was the home team's score when they played Richmond?
CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR)
SELECT proto_semitic FROM table_26919_7 WHERE arabic = "salām-"
If in arabic it is salām-, what is it in proto-semitic?
CREATE TABLE table_26919_7 (proto_semitic VARCHAR, arabic VARCHAR)
SELECT attendance FROM table_name_98 WHERE date = "november 26"
What was the Attendance on November 26?
CREATE TABLE table_name_98 (attendance VARCHAR, date VARCHAR)
SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = "Asia" ORDER BY SurfaceArea DESC LIMIT 1
Find the name, population and expected life length of asian country with the largest area?
CREATE TABLE country (Name VARCHAR, Population VARCHAR, LifeExpectancy VARCHAR, Continent VARCHAR, SurfaceArea VARCHAR)
SELECT years FROM table_name_36 WHERE goals > 2 AND games = "11 (2)"
What year had more than 2 goals and 11 (2) games?
CREATE TABLE table_name_36 (years VARCHAR, goals VARCHAR, games VARCHAR)
SELECT score FROM table_name_4 WHERE tournament = "portugal f1, faro , portugal"
Name the Score of Tournament of portugal f1, faro , portugal?
CREATE TABLE table_name_4 (score VARCHAR, tournament VARCHAR)
SELECT decision FROM table_27537870_6 WHERE score = "5-3"
If the score is 5-3, who made the decision?
CREATE TABLE table_27537870_6 (decision VARCHAR, score VARCHAR)
SELECT rank FROM table_24431264_18 WHERE withdrew_due_to = "right wrist surgery"
List the rank of the player that left due to right wrist surgery?
CREATE TABLE table_24431264_18 (rank VARCHAR, withdrew_due_to VARCHAR)
SELECT call_sign FROM table_name_38 WHERE erp_w > 10
What is the call sign for the translator with an ERP W larger than 10?
CREATE TABLE table_name_38 (call_sign VARCHAR, erp_w INTEGER)
SELECT MAX(crowd) FROM table_name_49 WHERE away_team = "hawthorn"
What is the largest crowd when the away team is Hawthorn?
CREATE TABLE table_name_49 (crowd INTEGER, away_team VARCHAR)
SELECT COUNT(wickets) FROM table_name_8 WHERE average = 26.13
What is the total number of Wickets with a 26.13 average?
CREATE TABLE table_name_8 (wickets VARCHAR, average VARCHAR)
SELECT party FROM table_2668243_25 WHERE incumbent = "John S. Barbour"
What party did john s. barbour represent?
CREATE TABLE table_2668243_25 (party VARCHAR, incumbent VARCHAR)
SELECT driver FROM table_name_79 WHERE chassis = "tg183b tg184"
Who is the driver of the chassis that is tg183b tg184?
CREATE TABLE table_name_79 (driver VARCHAR, chassis VARCHAR)
SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id = t2.individual_id
Find the last name of the individuals that have been contact individuals of an organization.
CREATE TABLE individuals (individual_last_name VARCHAR, individual_id VARCHAR); CREATE TABLE organization_contact_individuals (individual_id VARCHAR)
SELECT result FROM table_name_95 WHERE game = "game 3"
What was the result of Game 3 of this searson?
CREATE TABLE table_name_95 (result VARCHAR, game VARCHAR)
SELECT stadium FROM table_21436373_8 WHERE result_games = "Montreal 20 @ Ottawa 10"
Which stadium had the result/game montreal 20 @ ottawa 10?
CREATE TABLE table_21436373_8 (stadium VARCHAR, result_games VARCHAR)
SELECT points FROM table_name_99 WHERE engine = "chevrolet 265c"
Name the points for Engine of chevrolet 265c
CREATE TABLE table_name_99 (points VARCHAR, engine VARCHAR)
SELECT date FROM table_name_44 WHERE type_of_game = "friendly" AND opponent = "sweden"
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 team FROM table_29556461_7 WHERE date = "January 19"
What team was Temple playing on January 19?
CREATE TABLE table_29556461_7 (team VARCHAR, date VARCHAR)
SELECT frequency FROM table_2610582_7 WHERE callsign = "DXEC-FM"
What frequency is dxec-fm?
CREATE TABLE table_2610582_7 (frequency VARCHAR, callsign VARCHAR)
SELECT investor_id, COUNT(*) FROM TRANSACTIONS GROUP BY investor_id
Show the number of transactions for different investors.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR)
SELECT downstream FROM table_name_88 WHERE upstream = "384 kbit"
What is Downstream, when Upstream is "384 kbit"?
CREATE TABLE table_name_88 (downstream VARCHAR, upstream VARCHAR)
SELECT COUNT(partnering) FROM table_11636213_7 WHERE result = "6–3, 6–2"
How many matches had the result of 6–3, 6–2?
CREATE TABLE table_11636213_7 (partnering VARCHAR, result VARCHAR)
SELECT laps FROM table_name_34 WHERE time_retired = "+0.4865"
How many laps have a +0.4865 time/retired?
CREATE TABLE table_name_34 (laps VARCHAR, time_retired VARCHAR)
SELECT song FROM table_name_90 WHERE points < 54 AND draw < 4 AND place < 10
Which Song has Points smaller than 54, and a Draw smaller than 4, and a Place smaller than 10?
CREATE TABLE table_name_90 (song VARCHAR, place VARCHAR, points VARCHAR, draw VARCHAR)
SELECT SUM(saves) FROM table_name_10 WHERE save__percentage = "92.3%" AND goals_against > 217
How many saves did the player with a 92.3% save rate and 217 goals have?
CREATE TABLE table_name_10 (saves INTEGER, save__percentage VARCHAR, goals_against VARCHAR)
SELECT COUNT(position) FROM table_21721351_18 WHERE player = "Tom Glavine"
How many positions is player Tom Glavine?
CREATE TABLE table_21721351_18 (position VARCHAR, player VARCHAR)
SELECT MAX(grid) FROM table_name_86 WHERE laps = 65
What is biggest grid when the laps are 65?
CREATE TABLE table_name_86 (grid INTEGER, laps VARCHAR)
SELECT home_team AS score FROM table_name_36 WHERE away_team = "south melbourne"
What was the Home team score for the team that played South Melbourne?
CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(week) FROM table_name_75 WHERE opponent = "minnesota vikings"
What is the lowest week that has Minnesota Vikings as the opponent?
CREATE TABLE table_name_75 (week INTEGER, opponent VARCHAR)
SELECT AVG(attendance) FROM table_name_25 WHERE away = "vida"
What is the Attendance when Vida is the Away team?
CREATE TABLE table_name_25 (attendance INTEGER, away VARCHAR)
SELECT season FROM table_name_97 WHERE play_offs = "quarter-final" AND pos = "4th"
Tell me the season for quarter-final position of 4th
CREATE TABLE table_name_97 (season VARCHAR, play_offs VARCHAR, pos VARCHAR)
SELECT season__number FROM table_12030612_3 WHERE written_by = "Michael Poryes"
What season features writer Michael Poryes?
CREATE TABLE table_12030612_3 (season__number VARCHAR, written_by VARCHAR)
SELECT race FROM table_name_30 WHERE runners = 7 AND odds = "1/3"
Which Race has a Runners of 7 and Odds of 1/3?
CREATE TABLE table_name_30 (race VARCHAR, runners VARCHAR, odds VARCHAR)
SELECT SUM(laps) FROM table_name_56 WHERE driver = "lance reventlow" AND grid > 16
Name the sum of Laps for lance reventlow with grid more than 16
CREATE TABLE table_name_56 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT us_viewers__millions_ FROM table_12159115_3 WHERE series__number = 26
How many U.S Viewers, in millions, were for series # 26?
CREATE TABLE table_12159115_3 (us_viewers__millions_ VARCHAR, series__number VARCHAR)
SELECT COUNT(scores) FROM table_23292220_7 WHERE episode = "7x10"
Name the total number of scores for 7x10
CREATE TABLE table_23292220_7 (scores VARCHAR, episode VARCHAR)
SELECT staten_island FROM table_1108394_6 WHERE the_bronx = "1,281"
What was the amount in Staten Island when The Bronx was 1,281?
CREATE TABLE table_1108394_6 (staten_island VARCHAR, the_bronx VARCHAR)
SELECT MAX(points) FROM table_24405773_1 WHERE flaps = 0
What was the highest number of points when flaps were 0?
CREATE TABLE table_24405773_1 (points INTEGER, flaps VARCHAR)
SELECT record FROM table_name_28 WHERE date = "june 10"
What is the record for june 10?
CREATE TABLE table_name_28 (record VARCHAR, date VARCHAR)
SELECT clubs_involved FROM table_28039032_1 WHERE round = "Second round"
How many clubs were involved in the second round?
CREATE TABLE table_28039032_1 (clubs_involved VARCHAR, round VARCHAR)
SELECT plural_word FROM table_name_20 WHERE singular_word = "hand"
The singular word of hand uses what plural word?
CREATE TABLE table_name_20 (plural_word VARCHAR, singular_word VARCHAR)
SELECT championship FROM table_2820584_3 WHERE partner = "Allan Stone"
What championship was played with Allan Stone as a partner?
CREATE TABLE table_2820584_3 (championship VARCHAR, partner VARCHAR)
SELECT party FROM table_1805191_33 WHERE district = "New York 26"
What is the party affiliation of New York 26?
CREATE TABLE table_1805191_33 (party VARCHAR, district VARCHAR)
SELECT order__number FROM table_name_30 WHERE result = "bottom 3" AND original_artist = "bee gees"
In what order were the Bee Gees as the artist when it was a result of bottom 3?
CREATE TABLE table_name_30 (order__number VARCHAR, result VARCHAR, original_artist VARCHAR)
SELECT u15_3rd_quad FROM table_name_89 WHERE u15_2nd_quad = "acgs"
What U15 3rd Quad has a U15 2nd Quad of ACGS?
CREATE TABLE table_name_89 (u15_3rd_quad VARCHAR, u15_2nd_quad VARCHAR)
SELECT MAX(score) FROM table_name_59 WHERE player = "grier jones"
What was the top score for grier jones?
CREATE TABLE table_name_59 (score INTEGER, player VARCHAR)
SELECT settlement FROM table_2562572_11 WHERE cyrillic_name_other_names = "Плавна"
How to you write плавна with the latin alphabet?
CREATE TABLE table_2562572_11 (settlement VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT player FROM table_name_68 WHERE hometown = "tampa, florida"
Which player is from Tampa, Florida?
CREATE TABLE table_name_68 (player VARCHAR, hometown VARCHAR)
SELECT AVG(1940) FROM table_name_6 WHERE 1929 = 101.4 AND 1933 > 68.3
What is the average 1940 value where 1929 values are 101.4 and 1933 values are over 68.3?
CREATE TABLE table_name_6 (Id VARCHAR)
SELECT MIN(total) FROM table_name_32 WHERE nation = "italy" AND silver < 0
What is the lowest Total for Italy with less than 0 silver?
CREATE TABLE table_name_32 (total INTEGER, nation VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_41 WHERE rank = "43" AND total < 11
Tell me the average bronze for rank of 43 and total less than 11
CREATE TABLE table_name_41 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT producer FROM table_name_45 WHERE director = "1998"
Who was the producer for the film directed by 1998?
CREATE TABLE table_name_45 (producer VARCHAR, director VARCHAR)
SELECT date FROM table_name_1 WHERE margin_of_victory = "4 strokes"
What is Date, when Margin Of Victory is 4 Strokes?
CREATE TABLE table_name_1 (date VARCHAR, margin_of_victory VARCHAR)
SELECT date FROM table_name_84 WHERE result = "w 13–6"
Which Date has a Result of w 13–6?
CREATE TABLE table_name_84 (date VARCHAR, result VARCHAR)
SELECT country FROM table_name_8 WHERE score = 76 - 71 = 147
What country has a 76-71=147 score?
CREATE TABLE table_name_8 (country VARCHAR, score VARCHAR)
SELECT issue FROM table_name_50 WHERE spoofed_title = "the crockford files"
What issue was the Spoofed Title of the crockford files in?
CREATE TABLE table_name_50 (issue VARCHAR, spoofed_title VARCHAR)
SELECT score FROM table_name_70 WHERE attendance = "23,493"
What was the score when the Rangers' attendance was 23,493?
CREATE TABLE table_name_70 (score VARCHAR, attendance VARCHAR)
SELECT obama_percentage FROM table_20750731_1 WHERE mccain_percentage = "61.2%"
What was the Obama% when McCain% was 61.2%?
CREATE TABLE table_20750731_1 (obama_percentage VARCHAR, mccain_percentage VARCHAR)
SELECT artist FROM table_name_20 WHERE televote_sms = "3.20%"
who is the artist when the televote/sms is 3.20%?
CREATE TABLE table_name_20 (artist VARCHAR, televote_sms VARCHAR)
SELECT COUNT(house_name) FROM table_11464746_1 WHERE colours = "Green"
How many houses are green?
CREATE TABLE table_11464746_1 (house_name VARCHAR, colours VARCHAR)
SELECT category FROM table_name_41 WHERE year = 1991
Which category had a year of 1991?
CREATE TABLE table_name_41 (category VARCHAR, year VARCHAR)
SELECT team FROM table_name_12 WHERE driver = "colin moore"
Which team does Colin Moore drive for?
CREATE TABLE table_name_12 (team VARCHAR, driver VARCHAR)
SELECT county FROM table_1404456_1 WHERE code = 2
what's the county with code being 2
CREATE TABLE table_1404456_1 (county VARCHAR, code VARCHAR)
SELECT MIN(span_of_years_led) FROM table_23408094_14 WHERE tournament_at_which_lead_began = "Australian Championships"
Of the players whose lead began at the australian championships, what was the shortest span of years led?
CREATE TABLE table_23408094_14 (span_of_years_led INTEGER, tournament_at_which_lead_began VARCHAR)
SELECT position FROM table_name_67 WHERE year_[a_] > 2011 AND pick = "28"
what is the position when the year [A} is after 2011 and the pick is 28?
CREATE TABLE table_name_67 (position VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR)
SELECT date FROM table_name_55 WHERE name = "circe shell"
What is the date of attack of the Circe Shell Ship?
CREATE TABLE table_name_55 (date VARCHAR, name VARCHAR)
SELECT manner_of_departure FROM table_name_87 WHERE date_of_appointment = "12 october 2007"
I want the manner of departure for date of appointment being 12 october 2007
CREATE TABLE table_name_87 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT MIN(total) FROM table_name_50 WHERE nanquan = 9.72 AND rank > 3 AND nangun < 9.5
WHAT IS THE TOTAL WITH A NANQUAN OF 9.72, RANK BIGGER THAN 3, NANGUN SMALLER THAN 9.5?
CREATE TABLE table_name_50 (total INTEGER, nangun VARCHAR, nanquan VARCHAR, rank VARCHAR)
SELECT party FROM table_name_68 WHERE district = "ohio 6"
What is the party in Ohio 6 District?
CREATE TABLE table_name_68 (party VARCHAR, district VARCHAR)
SELECT AVG(rank) FROM table_name_30 WHERE losses < 6 AND wins < 11 AND school = "michigan state"
Tell me the average Rank for lossess less than 6 and wins less than 11 for michigan state
CREATE TABLE table_name_30 (rank INTEGER, school VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT show FROM table_name_85 WHERE award_ceremony = "indian television academy awards" AND category = "ita milestone award"
Which show was nominated for the ITA Milestone Award at the Indian Television Academy Awards?
CREATE TABLE table_name_85 (show VARCHAR, award_ceremony VARCHAR, category VARCHAR)
SELECT lost FROM table_name_16 WHERE points_for = "205"
What is Lost, when Points For is "205"?
CREATE TABLE table_name_16 (lost VARCHAR, points_for VARCHAR)
SELECT result FROM table_21058823_1 WHERE opponent = "Memphis"
What did they do against Memphis?
CREATE TABLE table_21058823_1 (result VARCHAR, opponent VARCHAR)
SELECT inverse_subjunctive FROM table_name_9 WHERE imperative = "—" AND subjunctive = "se måchadn"
What inverse subjunctive has — as the imperative and a subjunctive of se måchadn?
CREATE TABLE table_name_9 (inverse_subjunctive VARCHAR, imperative VARCHAR, subjunctive VARCHAR)
SELECT partner FROM table_name_92 WHERE score_in_final = "5–7, 4–6"
What is the Partner of the match with a Score in Final of 5–7, 4–6?
CREATE TABLE table_name_92 (partner VARCHAR, score_in_final VARCHAR)
SELECT kitmaker FROM table_name_54 WHERE shirt_sponsor = "evonik"
For the team whose shirt sponsor is Evonik, who is the kitmaker?
CREATE TABLE table_name_54 (kitmaker VARCHAR, shirt_sponsor VARCHAR)
SELECT engine FROM table_name_6 WHERE points = 3
What is the engine for the car with 3 points?
CREATE TABLE table_name_6 (engine VARCHAR, points VARCHAR)
SELECT score FROM table_name_35 WHERE date = "6 february 2008"
What was the score on 6 February 2008?
CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR)
SELECT surface FROM table_name_19 WHERE outcome = "winner" AND date = "12 march 1989"
What was the surface where the outcome was winner on 12 march 1989?
CREATE TABLE table_name_19 (surface VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT AVG(round) FROM table_name_89 WHERE method = "tko (would not stand up from butt scoot)"
What round was it when the method was TKO (would not stand up from Butt Scoot)?
CREATE TABLE table_name_89 (round INTEGER, method VARCHAR)
SELECT SUM(fa_cup_goals) FROM table_name_5 WHERE league_goals = "19"
What is the sum of FA Cup goals when there are 19 league goals?
CREATE TABLE table_name_5 (fa_cup_goals INTEGER, league_goals VARCHAR)
SELECT STATEMENT_ID, statement_details FROM Statements
List all statement ids and statement details.
CREATE TABLE Statements (STATEMENT_ID VARCHAR, statement_details VARCHAR)
SELECT opponent FROM table_name_40 WHERE date = "december 6, 1964"
What opponent has December 6, 1964 as the date?
CREATE TABLE table_name_40 (opponent VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_69 WHERE date = "march 25"
What is the High assists for march 25?
CREATE TABLE table_name_69 (high_assists VARCHAR, date VARCHAR)
SELECT wrestler FROM table_name_23 WHERE entered = 5 AND pinned = "mvp"
Which Wrestler has an Entered of 5, and a Pinned of mvp?
CREATE TABLE table_name_23 (wrestler VARCHAR, entered VARCHAR, pinned VARCHAR)
SELECT MAX(area__km²_) FROM table_1307842_6 WHERE member_countries = "Austria"
What is Austria's maximum area (km2)?
CREATE TABLE table_1307842_6 (area__km²_ INTEGER, member_countries VARCHAR)
SELECT MAX(join_date) FROM table_26466528_1
Name the most join date
CREATE TABLE table_26466528_1 (join_date INTEGER)
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 HAVING COUNT(*) >= 2
Show the date and id of the transcript with at least 2 course results.
CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)
SELECT away_team FROM table_name_97 WHERE venue = "corio oval"
In the venue Corio Oval, who was the away team?
CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR)
SELECT type FROM table_name_13 WHERE date = "22 may"
What was the course type on 22 May?
CREATE TABLE table_name_13 (type VARCHAR, date VARCHAR)
SELECT first_name, last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000
List the first name and last name of customers have the amount of outstanding between 1000 and 3000.
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, amount_outstanding INTEGER)