answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT position FROM table_name_38 WHERE team = "sahara force india f1 team" AND points = "46"
What Position is Team Sahara Force india f1 team with 46 Points?
CREATE TABLE table_name_38 (position VARCHAR, team VARCHAR, points VARCHAR)
SELECT AVG(net_yds) FROM table_name_59 WHERE long = 68 AND start > 1984
What is the average net yds for the player who had a long of 68 and started after 1984?
CREATE TABLE table_name_59 (net_yds INTEGER, long VARCHAR, start VARCHAR)
SELECT MIN(attendance) FROM table_name_47 WHERE h___a = "h" AND date = "7 march 1903"
How many Attendances have a H / A of h on 7 march 1903?
CREATE TABLE table_name_47 (attendance INTEGER, h___a VARCHAR, date VARCHAR)
SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19
What is the smallest amount of draws when the position is less than 7 and the against is 19?
CREATE TABLE table_name_38 (drawn INTEGER, position VARCHAR, against VARCHAR)
SELECT lost FROM table_name_46 WHERE _percentage_won = "55.37"
Name the lost for % won of 55.37
CREATE TABLE table_name_46 (lost VARCHAR, _percentage_won VARCHAR)
SELECT score FROM table_name_97 WHERE scorers = "match report"
What is the score when the scorers show match report?
CREATE TABLE table_name_97 (score VARCHAR, scorers VARCHAR)
SELECT championship FROM table_name_71 WHERE partnering = "maikel scheffers" AND year > 2007 AND opponents_in_final = "stephane houdet nicolas peiffer"
What championship tournament did Ronald Vink play in with maikel scheffers as his partner in 2007 against stephane houdet nicolas peiffer?
CREATE TABLE table_name_71 (championship VARCHAR, opponents_in_final VARCHAR, partnering VARCHAR, year VARCHAR)
SELECT winner FROM table_name_80 WHERE surface = "carpet (i)"
Who is the Winner, when the Surface is Carpet (i)?
CREATE TABLE table_name_80 (winner VARCHAR, surface VARCHAR)
SELECT DISTINCT headquarter FROM manufacturers
What are the different cities listed?
CREATE TABLE manufacturers (headquarter VARCHAR)
SELECT result FROM table_name_75 WHERE athlete = "inger miller"
Show the Result of inger miller?
CREATE TABLE table_name_75 (result VARCHAR, athlete VARCHAR)
SELECT first_pref_votes FROM table_name_91 WHERE leader = "n/a" AND party = "independent"
What is the First Pref Votes where the Leader is n/a and the Party is Independent?
CREATE TABLE table_name_91 (first_pref_votes VARCHAR, leader VARCHAR, party VARCHAR)
SELECT attendance FROM table_name_34 WHERE tie_no = "23"
What is the attendance of tie no. 23?
CREATE TABLE table_name_34 (attendance VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_76 WHERE date = "december 23"
What is Score, when Date is December 23?
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
SELECT MIN(draws) FROM table_14871601_1 WHERE points = 21
What is the smallest draws value with 21 points?
CREATE TABLE table_14871601_1 (draws INTEGER, points VARCHAR)
SELECT year FROM table_name_54 WHERE artist = "afro-dite"
In what year was the artist Afro-dite?
CREATE TABLE table_name_54 (year VARCHAR, artist VARCHAR)
SELECT team_e FROM table_name_89 WHERE team_f = "jason manning"
Who is team E when Jason Manning is Team F?
CREATE TABLE table_name_89 (team_e VARCHAR, team_f VARCHAR)
SELECT length__m_ FROM table_name_46 WHERE name = "koppenberg"
What is the Length (m) of the Koppenberg course?
CREATE TABLE table_name_46 (length__m_ VARCHAR, name VARCHAR)
SELECT language FROM table_name_62 WHERE music_director = "raj kamal"
What language does Raj Kamal speak?
CREATE TABLE table_name_62 (language VARCHAR, music_director VARCHAR)
SELECT _number FROM table_22871239_5 WHERE date = "November 27"
What is the game number that was on November 27?
CREATE TABLE table_22871239_5 (_number VARCHAR, date VARCHAR)
SELECT COUNT(strongs_transliteration) FROM table_1242447_1 WHERE english_spelling = "Jehojakin"
How many strongs transliteration of the english spelling of the work jehojakin?
CREATE TABLE table_1242447_1 (strongs_transliteration VARCHAR, english_spelling VARCHAR)
SELECT series FROM table_name_20 WHERE title_rank = "various"
What series had the title rank of various?
CREATE TABLE table_name_20 (series VARCHAR, title_rank VARCHAR)
SELECT to_par FROM table_2167226_3 WHERE winning_score = 74 - 67 - 71 - 73 = 285
What is the to par with the winning score of 74-67-71-73=285?
CREATE TABLE table_2167226_3 (to_par VARCHAR, winning_score VARCHAR)
SELECT package_option FROM table_15887683_8 WHERE country = "Giappone"
Name the package/option for giappone
CREATE TABLE table_15887683_8 (package_option VARCHAR, country VARCHAR)
SELECT score FROM table_name_51 WHERE record = "84-56"
What game score was there for the team with a record of 84-56?
CREATE TABLE table_name_51 (score VARCHAR, record VARCHAR)
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock"
What is the name of tracks whose genre is Rock?
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR)
SELECT COUNT(total_appearances) FROM table_29701419_2 WHERE league_appearances = 192
How many total appearances are there when the league appearances is 192?
CREATE TABLE table_29701419_2 (total_appearances VARCHAR, league_appearances VARCHAR)
SELECT third_place FROM table_name_94 WHERE winner = "thomas enqvist" AND runner_up = "guy forget"
What person is in the third place when Thomas Enqvist won and a Runner-up was guy forget?
CREATE TABLE table_name_94 (third_place VARCHAR, winner VARCHAR, runner_up VARCHAR)
SELECT us_viewers__million_ FROM table_29920800_1 WHERE written_by = "Liz Feldman"
How many millions of U.S viewers watched the episode written by Liz Feldman?
CREATE TABLE table_29920800_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)
SELECT flag FROM ship GROUP BY flag ORDER BY COUNT(*) DESC LIMIT 1
Which flag is most widely used among all ships?
CREATE TABLE ship (flag VARCHAR)
SELECT player FROM table_name_5 WHERE total = 9 AND opposition = "offaly"
Which Player has a Total of 9, and an Opposition of offaly?
CREATE TABLE table_name_5 (player VARCHAR, total VARCHAR, opposition VARCHAR)
SELECT COUNT(*) FROM Companies WHERE Industry = "Banking" OR Industry = "Conglomerate"
Find the number of companies whose industry is "Banking" or "Conglomerate",
CREATE TABLE Companies (Industry VARCHAR)
SELECT SUM(year) FROM table_name_87 WHERE score = "278" AND champion = "kim thompson"
When did Kim Thompson win with 278 score?
CREATE TABLE table_name_87 (year INTEGER, score VARCHAR, champion VARCHAR)
SELECT AVG(floors) FROM table_name_10 WHERE name = "citic square"
What is the number of floors for the Citic Square?
CREATE TABLE table_name_10 (floors INTEGER, name VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_86 WHERE player = "tiger woods"
What are Tiger Woods' average earnings?
CREATE TABLE table_name_86 (money___ INTEGER, player VARCHAR)
SELECT venue FROM table_name_45 WHERE opposition = "surrey" AND wicket = "2nd"
In what Venue was Surrey the Opposition in the 2nd Wicket?
CREATE TABLE table_name_45 (venue VARCHAR, opposition VARCHAR, wicket VARCHAR)
SELECT COUNT(pick__number) FROM table_28059992_1 WHERE cfl_team = "Toronto Argonauts"
How many pick# for CFL team of Toronto Argonauts?
CREATE TABLE table_28059992_1 (pick__number VARCHAR, cfl_team VARCHAR)
SELECT score FROM table_name_56 WHERE record = "39-20"
What was the score when the Blue Jays had a record of 39-20?
CREATE TABLE table_name_56 (score VARCHAR, record VARCHAR)
SELECT COUNT(combined_gross_enrollment_ratio__2009_) FROM table_25042332_33 WHERE hdi = "0.896"
How many regions had an hdi of 0.896?
CREATE TABLE table_25042332_33 (combined_gross_enrollment_ratio__2009_ VARCHAR, hdi VARCHAR)
SELECT MAX(no_in_season) FROM table_2182654_6 WHERE written_by = "Nancy Oliver"
What s the episode number in the season that was written by Nancy Oliver?
CREATE TABLE table_2182654_6 (no_in_season INTEGER, written_by VARCHAR)
SELECT a_side FROM table_name_75 WHERE b_side = "it never entered my mind, part 2"
What is the A-side for it Never Entered My Mind, Part 2?
CREATE TABLE table_name_75 (a_side VARCHAR, b_side VARCHAR)
SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop)
Find the names of stores whose number products is more than the average number of products.
CREATE TABLE shop (name VARCHAR, number_products INTEGER)
SELECT customer_details FROM customers WHERE customer_details LIKE "%Diana%"
Find the names of customers whose name contains "Diana".
CREATE TABLE customers (customer_details VARCHAR)
SELECT vocalist FROM table_2144389_9 WHERE rōmaji = "Pokémon ieru kana? BW"
When pokémon ieru kana? bw is the romaji who is the vocalist?
CREATE TABLE table_2144389_9 (vocalist VARCHAR, rōmaji VARCHAR)
SELECT SUM(wins) FROM table_name_85 WHERE against < 1033 AND golden_rivers = "nullawil" AND byes < 2
What is the sum of Wins, when Against is less than 1033, when Golden Rivers is "Nullawil", and when Byes is less than 2?
CREATE TABLE table_name_85 (wins INTEGER, byes VARCHAR, against VARCHAR, golden_rivers VARCHAR)
SELECT city_state FROM table_name_52 WHERE status = "2nd runner-up"
Which city/state was associated with a contestant whose status was 2nd runner-up?
CREATE TABLE table_name_52 (city_state VARCHAR, status VARCHAR)
SELECT MIN(commenced_operations) FROM table_15637071_1
When did the oldest airline start operations?
CREATE TABLE table_15637071_1 (commenced_operations INTEGER)
SELECT SUM(total) FROM table_name_96 WHERE player = "andy north"
How many totals have andy north as the player?
CREATE TABLE table_name_96 (total INTEGER, player VARCHAR)
SELECT abbreviation_symbol FROM table_254234_1 WHERE chinese_name = "辽宁省 Liáoníng Shěng"
What is the abbreviation/symbol of 辽宁省 liáoníng shěng?
CREATE TABLE table_254234_1 (abbreviation_symbol VARCHAR, chinese_name VARCHAR)
SELECT COUNT(next_in_line) FROM table_28241890_2 WHERE heir = "Archduke Karl"
How many next in lines had heirs of Archduke Karl?
CREATE TABLE table_28241890_2 (next_in_line VARCHAR, heir VARCHAR)
SELECT 2007 FROM table_name_37 WHERE 2003 = "85"
What is 2007, when 2003 is "85"?
CREATE TABLE table_name_37 (Id VARCHAR)
SELECT MAX(year_joined) FROM table_20887670_1
What is the most recent year joined?
CREATE TABLE table_20887670_1 (year_joined INTEGER)
SELECT 2001 FROM table_name_94 WHERE 1989 = "a" AND tournament = "u.s. open"
What is 2001, when 1989 is "A", and when Tournament is "U.S. Open"?
CREATE TABLE table_name_94 (tournament VARCHAR)
SELECT book_title, author_or_editor FROM book_club WHERE YEAR > 1989
show the titles, and authors or editors for all books made after the year 1989.
CREATE TABLE book_club (book_title VARCHAR, author_or_editor VARCHAR, YEAR INTEGER)
SELECT AVG(episode) FROM table_name_74 WHERE performer_1 = "greg proops" AND performer_3 = "ryan stiles" AND date = "25 august 1995"
Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode?
CREATE TABLE table_name_74 (episode INTEGER, date VARCHAR, performer_1 VARCHAR, performer_3 VARCHAR)
SELECT title FROM table_18481791_3 WHERE no_in_series = 23
What is the title of series 23?
CREATE TABLE table_18481791_3 (title VARCHAR, no_in_series VARCHAR)
SELECT SUM(cuts_made) FROM table_name_13 WHERE events > 13
How many cuts made in the tournament he played 13 times?
CREATE TABLE table_name_13 (cuts_made INTEGER, events INTEGER)
SELECT pinyin FROM table_1638437_2 WHERE area = "487"
Name the pinyin for 487 area
CREATE TABLE table_1638437_2 (pinyin VARCHAR, area VARCHAR)
SELECT location FROM table_25572068_1 WHERE winning_driver = "Nathanaël Berthon"
What was the location when the winning driver was Nathanaël Berthon?
CREATE TABLE table_25572068_1 (location VARCHAR, winning_driver VARCHAR)
SELECT to_par FROM table_name_79 WHERE player = "mike smith"
What is Mike Smith's To par?
CREATE TABLE table_name_79 (to_par VARCHAR, player VARCHAR)
SELECT county FROM table_name_2 WHERE mascot = "tigers"
What county is the team with the mascot of the Tigers in?
CREATE TABLE table_name_2 (county VARCHAR, mascot VARCHAR)
SELECT country FROM table_name_70 WHERE player = "bobby nichols"
What country does Bobby Nichols play for?
CREATE TABLE table_name_70 (country VARCHAR, player VARCHAR)
SELECT points FROM table_24489942_10 WHERE name = "Thomas Morgenstern"
Name the points for thomas morgenstern
CREATE TABLE table_24489942_10 (points VARCHAR, name VARCHAR)
SELECT location FROM table_name_76 WHERE opponent = "joe lauzon"
Where was match which had Joe Lauzon as an opponent?
CREATE TABLE table_name_76 (location VARCHAR, opponent VARCHAR)
SELECT institution FROM table_1974782_1 WHERE location = "Worcester, Massachusetts"
What school is located in Worcester, Massachusetts?
CREATE TABLE table_1974782_1 (institution VARCHAR, location VARCHAR)
SELECT T2.name, T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'
Find the name and salary of the instructors who are advisors of any student from History department?
CREATE TABLE instructor (name VARCHAR, salary VARCHAR, id VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR)
SELECT Box AS score FROM table_name_23 WHERE home_team = "cairns taipans"
What was the box score for the game that had the Cairns Taipans as home team?
CREATE TABLE table_name_23 (Box VARCHAR, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_65 WHERE away_team = "fitzroy"
When Fitzroy are the away team, what is the average crowd size?
CREATE TABLE table_name_65 (crowd INTEGER, away_team VARCHAR)
SELECT round FROM table_name_20 WHERE position = "(d)" AND player = "colby robak"
How many rounds does Colby Robak have with a position of (d)?
CREATE TABLE table_name_20 (round VARCHAR, position VARCHAR, player VARCHAR)
SELECT strike_rate FROM table_28846752_12 WHERE average = "32.78"
What is the strike rate for the player with an average of 32.78?
CREATE TABLE table_28846752_12 (strike_rate VARCHAR, average VARCHAR)
SELECT club FROM table_13758945_3 WHERE losing_bonus = "1"
what's the club with losing bonus being 1
CREATE TABLE table_13758945_3 (club VARCHAR, losing_bonus VARCHAR)
SELECT won FROM table_13758945_1 WHERE losing_bonus = "0"
What are the won games with losing bonus of 0?
CREATE TABLE table_13758945_1 (won VARCHAR, losing_bonus VARCHAR)
SELECT status FROM table_name_67 WHERE census_ranking = "2,418 of 5,008"
What is the status of the community with a census ranking of 2,418 of 5,008?
CREATE TABLE table_name_67 (status VARCHAR, census_ranking VARCHAR)
SELECT COUNT(train_name) FROM table_12095519_1 WHERE origin = "Puri"
How many trains leave from puri?
CREATE TABLE table_12095519_1 (train_name VARCHAR, origin VARCHAR)
SELECT score FROM table_name_18 WHERE record = "18-22-13"
What was the score of the game with a record of 18-22-13?
CREATE TABLE table_name_18 (score VARCHAR, record VARCHAR)
SELECT carpet_w_l FROM table_22860698_8 WHERE year = 1993
What were the carpet w-l in 1993?
CREATE TABLE table_22860698_8 (carpet_w_l VARCHAR, year VARCHAR)
SELECT city FROM table_name_87 WHERE rank < 5 AND name = "lamar tower 1"
What city is the lamar tower 1, ranked above 5?
CREATE TABLE table_name_87 (city VARCHAR, rank VARCHAR, name VARCHAR)
SELECT title FROM table_28116528_1 WHERE production_code = "3X6306"
What episode title had a production code of 3x6306?
CREATE TABLE table_28116528_1 (title VARCHAR, production_code VARCHAR)
SELECT constructor FROM table_name_13 WHERE driver = "jenson button"
What was Jenson Button's constructor?
CREATE TABLE table_name_13 (constructor VARCHAR, driver VARCHAR)
SELECT MAX(laps) FROM table_name_52 WHERE grid > 19 AND time_retired = "fuel"
What were the highest laps when the grid was larger than 19 and the time/retired was fuel?
CREATE TABLE table_name_52 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT attendance FROM table_name_21 WHERE game_site = "cup quarterfinals"
What was the attendance of the Cup Quarterfinals game?
CREATE TABLE table_name_21 (attendance VARCHAR, game_site VARCHAR)
SELECT location FROM table_1672976_7 WHERE big_ten_team = "Illinois"
Name the location for illinois
CREATE TABLE table_1672976_7 (location VARCHAR, big_ten_team VARCHAR)
SELECT forename, surname FROM drivers WHERE nationality = "German"
Find the forename and surname of drivers whose nationality is German?
CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, nationality VARCHAR)
SELECT crowd FROM table_name_28 WHERE venue = "junction oval"
What was the listed crowd at junction oval?
CREATE TABLE table_name_28 (crowd VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_34 WHERE attendance = "62,657"
Who was the opponent at the game attended by 62,657?
CREATE TABLE table_name_34 (opponent VARCHAR, attendance VARCHAR)
SELECT visitor FROM table_name_77 WHERE attendance = "7,000" AND date = "january 1"
Who is the visitor from the game with 7,000 in attendance on January 1?
CREATE TABLE table_name_77 (visitor VARCHAR, attendance VARCHAR, date VARCHAR)
SELECT MAX(game) FROM table_name_40 WHERE march = 29
March of 29 involves what highest scoring game?
CREATE TABLE table_name_40 (game INTEGER, march VARCHAR)
SELECT length FROM table_17839_1 WHERE map_colour = "Turquoise"
When turquoise is the map colour what is the length?
CREATE TABLE table_17839_1 (length VARCHAR, map_colour VARCHAR)
SELECT fielding_team FROM table_1670921_1 WHERE wicket = "9th"
Which team is 9th in wickets?
CREATE TABLE table_1670921_1 (fielding_team VARCHAR, wicket VARCHAR)
SELECT capital FROM table_name_7 WHERE area_in_1000km²__1930_ = "20,4"
tell me the name of the capital with an area of 20,4.
CREATE TABLE table_name_7 (capital VARCHAR, area_in_1000km²__1930_ VARCHAR)
SELECT MAX(touchdowns) FROM table_25642873_2 WHERE player = "Sam Babcock"
How many touchdowns did Sam Babcock get?
CREATE TABLE table_25642873_2 (touchdowns INTEGER, player VARCHAR)
SELECT 2 AS _3__p_ FROM table_name_76 WHERE verb = "khêla"
WHICH 2/3 (P) has a Verb of khêla?
CREATE TABLE table_name_76 (verb VARCHAR)
SELECT census_ranking FROM table_171236_1 WHERE area_km_2 = "34.73"
If the area is 34.73, what is the census ranking?
CREATE TABLE table_171236_1 (census_ranking VARCHAR, area_km_2 VARCHAR)
SELECT "points" AS _against FROM table_name_21 WHERE "points" = "points"
How many points against did the club with points have?
CREATE TABLE table_name_21 (Id VARCHAR)
SELECT AVG(december) FROM table_name_39 WHERE game = 36
What is the average December, when Game is "36"?
CREATE TABLE table_name_39 (december INTEGER, game VARCHAR)
SELECT MAX(game) FROM table_17325580_10 WHERE high_assists = "LeBron James (7)" AND high_points = "LeBron James (21)"
What number game had a high assist of lebron james (7) and high point of lebron james (21)?
CREATE TABLE table_17325580_10 (game INTEGER, high_assists VARCHAR, high_points VARCHAR)
SELECT AVG(speed) FROM table_name_31 WHERE year < 1974 AND passengers > 1.73
What is the average speed for ships before 1974 with over 1.73 passengers?
CREATE TABLE table_name_31 (speed INTEGER, year VARCHAR, passengers VARCHAR)
SELECT captain FROM table_18461635_1 WHERE county = "Essex"
Who is the captain of the team in Essex county?
CREATE TABLE table_18461635_1 (captain VARCHAR, county VARCHAR)
SELECT city___state FROM table_26686908_2 WHERE date = "7–10 October"
What was the location for the date 7–10 october?
CREATE TABLE table_26686908_2 (city___state VARCHAR, date VARCHAR)
SELECT date FROM table_name_80 WHERE tie_no = "7"
What date has 7 as the tie no.?
CREATE TABLE table_name_80 (date VARCHAR, tie_no VARCHAR)
SELECT original_artist FROM table_26250155_1 WHERE theme = "First Solo"
Who was the original artist of the First solo theme?
CREATE TABLE table_26250155_1 (original_artist VARCHAR, theme VARCHAR)