answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT cup_apps FROM table_name_17 WHERE league_goals > 10 AND league_apps = 23
How many cup apps for the season where there are more than 10 league goals and 23 league apps?
CREATE TABLE table_name_17 (cup_apps VARCHAR, league_goals VARCHAR, league_apps VARCHAR)
SELECT to_par FROM table_2126093_3 WHERE tournament = "Miyagi TV Cup Dunlop Ladies Open"
How many points under par was the winner of the Miyagi TV Cup Dunlop Ladies Open?
CREATE TABLE table_2126093_3 (to_par VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_12 WHERE championship = "premier league darts"
Tell me the outcome for premier league darts
CREATE TABLE table_name_12 (outcome VARCHAR, championship VARCHAR)
SELECT rank FROM table_name_32 WHERE silver = 0 AND bronze > 1 AND total > 3
what is the rank when silver is 0, bronze is more than 1 and the total is more than 3?
CREATE TABLE table_name_32 (rank VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(*) FROM accounts
How many accounts are there in total?
CREATE TABLE accounts (Id VARCHAR)
SELECT SUM(year) FROM table_name_32 WHERE chassis = "minardi m190" AND points > 0
What is the total of the year with a point larger than 0 or the Chassis of Minardi m190?
CREATE TABLE table_name_32 (year INTEGER, chassis VARCHAR, points VARCHAR)
SELECT decile FROM table_name_34 WHERE authority = "state" AND roll < 61 AND area = "kotemaori"
Which Decile has an Authority of state, a Roll smaller than 61, and an Area of kotemaori?
CREATE TABLE table_name_34 (decile VARCHAR, area VARCHAR, authority VARCHAR, roll VARCHAR)
SELECT document_type_code, document_type_name FROM Ref_document_types
List all document type codes and document type names.
CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR)
SELECT MAX(fai_space_flights) FROM table_221315_3 WHERE max_mach = "5.65"
What is the highest number of fai space flights when max mach is 5.65?
CREATE TABLE table_221315_3 (fai_space_flights INTEGER, max_mach VARCHAR)
SELECT model FROM table_11497980_1 WHERE transmission_make_type_speed = "Eaton FS-6306 A Manual Synchromesh 6 Speed"
Which model possesses a transmission make/type/speed of eaton fs-6306 a manual synchromesh 6 speed?
CREATE TABLE table_11497980_1 (model VARCHAR, transmission_make_type_speed VARCHAR)
SELECT MIN(december) FROM table_name_66 WHERE score = "4 - 4"
What is the lowest December, when Score is "4 - 4"?
CREATE TABLE table_name_66 (december INTEGER, score VARCHAR)
SELECT completed FROM table_name_31 WHERE laid_down = "23 march 1926"
when was the ship completed that was laid down on 23 march 1926?
CREATE TABLE table_name_31 (completed VARCHAR, laid_down VARCHAR)
SELECT committee FROM table_name_98 WHERE first_elected = 1993
What Committee has the First Elected of 1993?
CREATE TABLE table_name_98 (committee VARCHAR, first_elected VARCHAR)
SELECT theme FROM table_name_79 WHERE episode = "top 6"
Which theme has a Episode of top 6?
CREATE TABLE table_name_79 (theme VARCHAR, episode VARCHAR)
SELECT opponent FROM table_name_2 WHERE event = "jungle fight 5"
Which Opponent has an Event of jungle fight 5?
CREATE TABLE table_name_2 (opponent VARCHAR, event VARCHAR)
SELECT rank_number FROM table_22098274_1 WHERE winning_pitcher = "Kelli Miller"
What is the rank # of kelli miller the winning pitcher?
CREATE TABLE table_22098274_1 (rank_number VARCHAR, winning_pitcher VARCHAR)
SELECT record FROM table_name_41 WHERE date = "october 24"
What was the record on October 24?
CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR)
SELECT date FROM table_name_67 WHERE venue = "headingley stadium"
What date was a game played at Headingley Stadium?
CREATE TABLE table_name_67 (date VARCHAR, venue VARCHAR)
SELECT area_km_2 FROM table_171236_2 WHERE census_ranking = "1,608 of 5,008"
What is the Area KM 2 of the place that has a Census ranking of 1,608 of 5,008?
CREATE TABLE table_171236_2 (area_km_2 VARCHAR, census_ranking VARCHAR)
SELECT 2010 FROM table_name_43 WHERE 2011 = "q2" AND 2012 = "1r" AND 2009 = "1r"
What is the 2010 result of a tournament that is 1R in 2009, Q2 in 2011 and 1R in 2012?
CREATE TABLE table_name_43 (Id VARCHAR)
SELECT MIN(lane) FROM table_name_31 WHERE name = "kasey giteau" AND rank < 18
Name the least lane for kasey giteau and rank less than 18
CREATE TABLE table_name_31 (lane INTEGER, name VARCHAR, rank VARCHAR)
SELECT genre FROM table_name_91 WHERE game = "god of war"
What genre has the game god of war?
CREATE TABLE table_name_91 (genre VARCHAR, game VARCHAR)
SELECT away_team FROM table_name_75 WHERE venue = "western oval"
What away team played at Western Oval?
CREATE TABLE table_name_75 (away_team VARCHAR, venue VARCHAR)
SELECT to_par FROM table_name_70 WHERE place = "t1" AND player = "jiyai shin"
What is the to par for Jiyai Shin when the place is t1?
CREATE TABLE table_name_70 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_50 WHERE outcome = "winner" AND partnering = "nicole sewell" AND opponent_in_final = "victoria davies / kate warne-holland"
What is Score, when Outcome is "winner", when Partnering is "Nicole Sewell", and when Opponent in Final is "Victoria Davies / Kate Warne-Holland"?
CREATE TABLE table_name_50 (score VARCHAR, opponent_in_final VARCHAR, outcome VARCHAR, partnering VARCHAR)
SELECT song FROM table_name_9 WHERE artist = "sex pistols"
What song was made by the sex pistols?
CREATE TABLE table_name_9 (song VARCHAR, artist VARCHAR)
SELECT kaine__d_ FROM table_name_43 WHERE source = "rasmussen" AND date = "october 24, 2005"
What was Kaine's (D) percentage in the Rasmussen poll on October 24, 2005?
CREATE TABLE table_name_43 (kaine__d_ VARCHAR, source VARCHAR, date VARCHAR)
SELECT minister FROM party WHERE party_name <> 'Progress Party'
Show all ministers who do not belong to Progress Party.
CREATE TABLE party (minister VARCHAR, party_name VARCHAR)
SELECT directed_by FROM table_25341765_1 WHERE us_viewers__million_ = "5.92"
Who directed the episode that had 5.92 million viewers?
CREATE TABLE table_25341765_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT MIN(places) FROM table_name_11 WHERE nation = "norway" AND points < 1524.9
What is the fewest number of places for a skater from Norway with fewer than 1524.9 points?
CREATE TABLE table_name_11 (places INTEGER, nation VARCHAR, points VARCHAR)
SELECT MAX(rank) FROM table_name_12 WHERE mountain_peak = "mount elbert"
What is the highest rank Mount Elbert has?
CREATE TABLE table_name_12 (rank INTEGER, mountain_peak VARCHAR)
SELECT home_team AS score FROM table_name_53 WHERE home_team = "south melbourne"
What is south melbourne's home side score?
CREATE TABLE table_name_53 (home_team VARCHAR)
SELECT batting_partners FROM table_1670921_2 WHERE season = "2004"
What batting partners were the most successful in 2004?
CREATE TABLE table_1670921_2 (batting_partners VARCHAR, season VARCHAR)
SELECT SUM(solo_blocks) FROM table_name_24 WHERE errors > 126 AND kills > 551 AND season = "2007" AND assists > 40
When there are more than 126 errors, more than 551 kills, and more than 40 assists for the 2007 season, what is the total of Solo Blocks?
CREATE TABLE table_name_24 (solo_blocks INTEGER, assists VARCHAR, season VARCHAR, errors VARCHAR, kills VARCHAR)
SELECT player FROM table_11677691_7 WHERE school = "Joliet Catholic High school"
Which player is from Joliet Catholic HIgh School?
CREATE TABLE table_11677691_7 (player VARCHAR, school VARCHAR)
SELECT xiii_season FROM table_name_82 WHERE viii_season = "4 780 743 (2 november 2008)"
What is XIII Season, when VIII Season is 4 780 743 (2 november 2008)?
CREATE TABLE table_name_82 (xiii_season VARCHAR, viii_season VARCHAR)
SELECT winning_driver FROM table_name_99 WHERE date = "24 august"
Who won the race on 24 August?
CREATE TABLE table_name_99 (winning_driver VARCHAR, date VARCHAR)
SELECT COUNT(total) FROM table_name_25 WHERE gold = 3 AND rank < 3
Name the number of total for 3 gold and rank less than 3
CREATE TABLE table_name_25 (total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT MAX(games) FROM table_name_58 WHERE points < 4 AND drawn = 1 AND lost < 6
What is the highest games from a game with points less than 4, drawn of 1 and a lost less than 6?
CREATE TABLE table_name_58 (games INTEGER, lost VARCHAR, points VARCHAR, drawn VARCHAR)
SELECT song_title FROM table_29547777_1 WHERE result__placement_ = "to the Live Shows"
What the title of the song when the result is to the live shows?
CREATE TABLE table_29547777_1 (song_title VARCHAR, result__placement_ VARCHAR)
SELECT owner FROM table_name_70 WHERE delivered_as = "t415"
What Owner Delivered the T415?
CREATE TABLE table_name_70 (owner VARCHAR, delivered_as VARCHAR)
SELECT MIN(podiums) FROM table_name_82 WHERE finishes = 5 AND starts > 6
What's the smallest number of podiums having more than 6 starts and 5 finishes?
CREATE TABLE table_name_82 (podiums INTEGER, finishes VARCHAR, starts VARCHAR)
SELECT class FROM table_1745843_10 WHERE part_4 = "frosinn"
What class is the verb wich its part 4 is frosinn
CREATE TABLE table_1745843_10 (class VARCHAR, part_4 VARCHAR)
SELECT city_location FROM table_name_60 WHERE pole_position = "emerson fittipaldi"
Where is Emerson Fittipaldi starting in Pole position?
CREATE TABLE table_name_60 (city_location VARCHAR, pole_position VARCHAR)
SELECT tracking_method FROM table_name_25 WHERE latest_stable_release = "n/a" AND price_in_usd = "from $202/month"
Which Tracking Method has a Latest stable release of n/a, and a Price in USD of from $202/month?
CREATE TABLE table_name_25 (tracking_method VARCHAR, latest_stable_release VARCHAR, price_in_usd VARCHAR)
SELECT MIN(episodes) FROM table_name_65 WHERE average_ratings = "8.7%"
Which episodes has the lowest average ratings of 8.7%?
CREATE TABLE table_name_65 (episodes INTEGER, average_ratings VARCHAR)
SELECT team_sites FROM table_name_53 WHERE public = "no" AND developer = "yes"
What is the team sites entry that has a public entry of No and a developer entry of Yes?
CREATE TABLE table_name_53 (team_sites VARCHAR, public VARCHAR, developer VARCHAR)
SELECT length FROM table_28132970_5 WHERE propulsion = "Controllable pitch propeller"
What is the length when the propulsion is controllable pitch propeller?
CREATE TABLE table_28132970_5 (length VARCHAR, propulsion VARCHAR)
SELECT result FROM table_name_33 WHERE opponent = "new england patriots"
What was the result when the new england patriots played?
CREATE TABLE table_name_33 (result VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_53 WHERE opponent = "essendon" AND player = "steven clark"
Which score had Essendon as an opponent and Steven Clark as a player?
CREATE TABLE table_name_53 (score VARCHAR, opponent VARCHAR, player VARCHAR)
SELECT MAX(byes) FROM table_name_5 WHERE losses < 1
Which Byes has a Losses smaller than 1?
CREATE TABLE table_name_5 (byes INTEGER, losses INTEGER)
SELECT clean_ & _jerk FROM table_name_36 WHERE bodyweight < 76.55 AND total__kg_ = "–"
What is the Clean & jerk for the bodyweight less than 76.55, and the Total (kg) of –?
CREATE TABLE table_name_36 (clean_ VARCHAR, _jerk VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR)
SELECT COUNT(call_sign) FROM table_1949746_1 WHERE frequency = "1180 AM"
When 1180 am is the frequency how many call signs are there?
CREATE TABLE table_1949746_1 (call_sign VARCHAR, frequency VARCHAR)
SELECT week_5 FROM table_name_96 WHERE week_3 = "cathi o'malley"
When Cathi O'Malley was featured in Week 3, who was the cyber girl for Week 5?
CREATE TABLE table_name_96 (week_5 VARCHAR, week_3 VARCHAR)
SELECT score FROM table_name_33 WHERE game = 48
What was the score of Game 48?
CREATE TABLE table_name_33 (score VARCHAR, game VARCHAR)
SELECT date FROM table_name_66 WHERE opponent = "newcastle united" AND result = "2–1"
Which Date has an Opponent of newcastle united, and a Result of 2–1?
CREATE TABLE table_name_66 (date VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT thumb_stick FROM table_name_76 WHERE wrist_pad = "no" AND supplier = "sharkoon"
Which Thumb stick has a Wrist pad of no, and a Supplier of sharkoon?
CREATE TABLE table_name_76 (thumb_stick VARCHAR, wrist_pad VARCHAR, supplier VARCHAR)
SELECT municipality FROM table_name_88 WHERE candidate = "kimmo kiljunen"
Candidate of kimmo kiljunen belongs to which municipality?
CREATE TABLE table_name_88 (municipality VARCHAR, candidate VARCHAR)
SELECT highest_elevation FROM table_name_7 WHERE highest_point = "schnebelhorn"
What is the highest elevation for the highest point of Schnebelhorn?
CREATE TABLE table_name_7 (highest_elevation VARCHAR, highest_point VARCHAR)
SELECT candidates FROM table_1342218_35 WHERE district = "Ohio 9"
Who are the candidates in the election in the Ohio 9 district?
CREATE TABLE table_1342218_35 (candidates VARCHAR, district VARCHAR)
SELECT points_difference FROM table_name_20 WHERE points_against = "786"
Which Points difference has Points against of 786?
CREATE TABLE table_name_20 (points_difference VARCHAR, points_against VARCHAR)
SELECT catalog FROM table_name_2 WHERE date = "26 march 1996"
Name the catalog for 26 march 1996
CREATE TABLE table_name_2 (catalog VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_3 WHERE tournament = "milan , italy"
What is Outcome, when Tournament is "Milan , Italy"?
CREATE TABLE table_name_3 (outcome VARCHAR, tournament VARCHAR)
SELECT class FROM table_name_6 WHERE quantity = "1"
What is the class with 1 quantity?
CREATE TABLE table_name_6 (class VARCHAR, quantity VARCHAR)
SELECT surface FROM table_name_47 WHERE score_in_the_final = "0–6, 4–6"
On what surface was the score in the final 0–6, 4–6?
CREATE TABLE table_name_47 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT position FROM table_name_98 WHERE competition = "commonwealth games"
What is the position of the commonwealth games?
CREATE TABLE table_name_98 (position VARCHAR, competition VARCHAR)
SELECT tournament FROM table_name_5 WHERE host = "sk brann" AND date = "july 29"
What is the tournament on July 29 hosted by SK Brann?
CREATE TABLE table_name_5 (tournament VARCHAR, host VARCHAR, date VARCHAR)
SELECT surface FROM table_name_96 WHERE opponent_in_the_final = "stéphane robert"
Which Surface has an Opponent in the final of stéphane robert?
CREATE TABLE table_name_96 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT MAX(inhabitants) FROM table_name_86 WHERE municipality = "gela"
Highest inhabitants from gela?
CREATE TABLE table_name_86 (inhabitants INTEGER, municipality VARCHAR)
SELECT away_team FROM table_name_68 WHERE home_team = "chelsea"
WHAT IS THE AWAY TEAM WITH A HOME TEAM OF CHELSEA?
CREATE TABLE table_name_68 (away_team VARCHAR, home_team VARCHAR)
SELECT date_of_birth__age_ FROM table_name_1 WHERE player = "brian lemay"
When was brian lemay born?
CREATE TABLE table_name_1 (date_of_birth__age_ VARCHAR, player VARCHAR)
SELECT home_team FROM table_name_26 WHERE road_team = "los angeles" AND game = "game 1"
Which home team played against Los Angeles in game 1?
CREATE TABLE table_name_26 (home_team VARCHAR, road_team VARCHAR, game VARCHAR)
SELECT runner_s__up FROM table_name_45 WHERE winning_score = –8(71 - 69 - 67 - 73 = 280)
Who is the runner-up where the winning score is –8 (71-69-67-73=280)?
CREATE TABLE table_name_45 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type = 'Full'
Find the names of the chip models that are not used by any phone with full accreditation type.
CREATE TABLE chip_model (model_name VARCHAR, chip_model VARCHAR, Accreditation_type VARCHAR); CREATE TABLE phone (model_name VARCHAR, chip_model VARCHAR, Accreditation_type VARCHAR)
SELECT SUM(fighting_spirit) FROM table_name_25 WHERE total = 13 AND technique < 1
How much Fighting Spirit has a Total of 13, and a Technique smaller than 1?
CREATE TABLE table_name_25 (fighting_spirit INTEGER, total VARCHAR, technique VARCHAR)
SELECT to_par FROM table_name_3 WHERE player = "ernie els"
WHAT IS THE TO PAR FOR ERNIE ELS?
CREATE TABLE table_name_3 (to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_68 WHERE result = "5-2"
What was the score for the game that had an end result of 5-2?
CREATE TABLE table_name_68 (score VARCHAR, result VARCHAR)
SELECT gold FROM table_name_40 WHERE silver > 30 AND total < 107
What Gold has a Silver greater than 30 and a Total less than 107?
CREATE TABLE table_name_40 (gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT MAX(top_10) FROM table_name_46 WHERE wins > 0
What is the highest number of top-10s in events with more than 0 wins?
CREATE TABLE table_name_46 (top_10 INTEGER, wins INTEGER)
SELECT qual_2 FROM table_name_34 WHERE team = "rocketsports racing" AND best = "1:10.949"
What is the qual 2 of team rocketsports racing, which has the best of 1:10.949?
CREATE TABLE table_name_34 (qual_2 VARCHAR, team VARCHAR, best VARCHAR)
SELECT s_hindu FROM table_14598_5 WHERE buddhist = "955"
How many s hindu are where buddhists are 955?
CREATE TABLE table_14598_5 (s_hindu VARCHAR, buddhist VARCHAR)
SELECT manner_of_departure FROM table_17115950_2 WHERE outgoing_manager = "Nicolae Manea"
What was the manner of departure of Nicolae Manea?
CREATE TABLE table_17115950_2 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(crowd) FROM table_name_86 WHERE venue = "moorabbin oval"
What was the crowd size at the moorabbin oval venue?
CREATE TABLE table_name_86 (crowd VARCHAR, venue VARCHAR)
SELECT finale FROM table_name_72 WHERE premiere = "september 22, 1976"
What was the date of the finale for the season that premiered on September 22, 1976?
CREATE TABLE table_name_72 (finale VARCHAR, premiere VARCHAR)
SELECT SUM(serial_no) FROM table_name_22 WHERE headquartered_city = "narowal city"
What is the sum of the serial numbers for narowal city?
CREATE TABLE table_name_22 (serial_no INTEGER, headquartered_city VARCHAR)
SELECT COUNT(attendance) FROM table_21436373_6 WHERE type_of_record = "Pre-season game"
What is the number of attendance with the pre-season game as the type of record?
CREATE TABLE table_21436373_6 (attendance VARCHAR, type_of_record VARCHAR)
SELECT team FROM table_name_2 WHERE best = "58.846"
Name the team with best of 58.846
CREATE TABLE table_name_2 (team VARCHAR, best VARCHAR)
SELECT semifinalists FROM table_name_12 WHERE tournament = "key biscane"
who was the semifinalist for the Key Biscane tournament?
CREATE TABLE table_name_12 (semifinalists VARCHAR, tournament VARCHAR)
SELECT district___town FROM table_26013618_1 WHERE area__ha_ = "163,62"
What town has the reserve with an area of 163,62?
CREATE TABLE table_26013618_1 (district___town VARCHAR, area__ha_ VARCHAR)
SELECT score FROM table_name_33 WHERE country = "united states" AND player = "justin leonard"
How did Justin Leonard of the United States score?
CREATE TABLE table_name_33 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT COUNT(attendance) FROM table_name_49 WHERE game < 3 AND date = "october 31"
Which Attendance has a Game smaller than 3, and a Date of october 31?
CREATE TABLE table_name_49 (attendance VARCHAR, game VARCHAR, date VARCHAR)
SELECT COUNT(kickoff) FROM table_26275503_2 WHERE opponent = "Scottish Claymores"
How many different kickoffs happened when the opponent was the Scottish Claymores
CREATE TABLE table_26275503_2 (kickoff VARCHAR, opponent VARCHAR)
SELECT MAX(comp) FROM table_name_19 WHERE yds_game > 0 AND name = "bostick" AND rating < 91.77
Name the highest Comp which has a Yds/game larger than 0, bostick, and a Rating smaller than 91.77?
CREATE TABLE table_name_19 (comp INTEGER, rating VARCHAR, yds_game VARCHAR, name VARCHAR)
SELECT MAX(game) FROM table_15872814_4 WHERE date = "December 22"
Name the most game for december 22
CREATE TABLE table_15872814_4 (game INTEGER, date VARCHAR)
SELECT match_report FROM table_name_89 WHERE competition = "euro2008q" AND venue = "athens olympic stadium" AND date = "november 17, 2007"
What was the Match Report for the Euro2008q at the Athens Olympic Stadium on November 17, 2007?
CREATE TABLE table_name_89 (match_report VARCHAR, date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT record FROM table_17288861_5 WHERE team = "Cleveland"
What was the team record when the team was Cleveland?
CREATE TABLE table_17288861_5 (record VARCHAR, team VARCHAR)
SELECT co_drivers FROM table_name_44 WHERE laps < 282 AND tyres = "p"
Which co-driver has fewer than 282 laps and type P tyres?
CREATE TABLE table_name_44 (co_drivers VARCHAR, laps VARCHAR, tyres VARCHAR)
SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1
What is the name of the artist who produced the shortest song?
CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (artist_name VARCHAR, f_id VARCHAR)
SELECT constituency_number FROM table_name_37 WHERE name = "udaipura"
How many constituents does udaipura have?
CREATE TABLE table_name_37 (constituency_number VARCHAR, name VARCHAR)
SELECT build_date FROM table_name_80 WHERE total_produced = 2
What is the build date when total produced is 2?
CREATE TABLE table_name_80 (build_date VARCHAR, total_produced VARCHAR)