output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT date FROM table_name_88 WHERE label = "village records"
CREATE TABLE table_name_88 (date VARCHAR, label VARCHAR), What date is associated with the label Village Records?
SELECT round FROM table_name_43 WHERE opponents = "southampton"
CREATE TABLE table_name_43 (round VARCHAR, opponents VARCHAR), Name the round for southampton opponents
SELECT MAX(attendance) FROM table_name_62 WHERE date = "19 february 2005"
CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR), Name the most attendance for 19 february 2005
SELECT SUM(attendance) FROM table_name_22 WHERE round = "round 3"
CREATE TABLE table_name_22 (attendance INTEGER, round VARCHAR), Name the sum of attendance for round 3
SELECT team FROM table_name_8 WHERE owner_s_ = "mark smith" AND crew_chief = "paul clapprood"
CREATE TABLE table_name_8 (team VARCHAR, owner_s_ VARCHAR, crew_chief VARCHAR), What team is owned by Mark Smith and has Paul Clapprood as a crew chief?
SELECT primary_sponsor_s_ FROM table_name_45 WHERE driver_s_ = "mike wallace"
CREATE TABLE table_name_45 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR), Who is Mike Wallace's primary Sponsor(s)?
SELECT driver_s_ FROM table_name_44 WHERE crew_chief = "scott zipadelli"
CREATE TABLE table_name_44 (driver_s_ VARCHAR, crew_chief VARCHAR), What driver has Scott Zipadelli as a crew chief?
SELECT team FROM table_name_22 WHERE driver_s_ = "reed sorenson"
CREATE TABLE table_name_22 (team VARCHAR, driver_s_ VARCHAR), What team does Reed Sorenson drive for?
SELECT primary_sponsor_s_ FROM table_name_55 WHERE driver_s_ = "austin dillon"
CREATE TABLE table_name_55 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR), Who is Austin Dillon's primary sponsor(s)?
SELECT crew_chief FROM table_name_36 WHERE team = "tristar motorsports" AND driver_s_ = "eric mcclure"
CREATE TABLE table_name_36 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR), Who is Eric McClure's and Tristar Motorsports' crew chief?
SELECT MAX(rank) FROM table_name_44 WHERE lane = 4
CREATE TABLE table_name_44 (rank INTEGER, lane VARCHAR), What is the highest rank from Lane 4?
SELECT COUNT(rank) FROM table_name_83 WHERE lane > 4 AND nationality = "great britain" AND name = "margaretha pedder"
CREATE TABLE table_name_83 (rank VARCHAR, name VARCHAR, lane VARCHAR, nationality VARCHAR), How many ranks are higher than lane 4 from Great Britain, raced by Margaretha Pedder?
SELECT MIN(rank) FROM table_name_40 WHERE nationality = "great britain" AND time = "2:10.33"
CREATE TABLE table_name_40 (rank INTEGER, nationality VARCHAR, time VARCHAR), What is the lowest rank from Great Britain with a time of 2:10.33?
SELECT COUNT(lane) FROM table_name_72 WHERE time = "2:08.11" AND rank > 3
CREATE TABLE table_name_72 (lane VARCHAR, time VARCHAR, rank VARCHAR), How many Lanes have a rank higher than 3 with a time of 2:08.11?
SELECT years FROM table_name_36 WHERE decile < 4 AND name = "tkkm o te ara rima"
CREATE TABLE table_name_36 (years VARCHAR, decile VARCHAR, name VARCHAR), Tkkm o te ara rima has a decile less than 4 in what years?
SELECT authority FROM table_name_35 WHERE area = "rototuna"
CREATE TABLE table_name_35 (authority VARCHAR, area VARCHAR), What authority does the rototuna area have?
SELECT award FROM table_name_23 WHERE recipient = "hannah gal"
CREATE TABLE table_name_23 (award VARCHAR, recipient VARCHAR), What award was Hannah Gal the recipient of?
SELECT recipient FROM table_name_31 WHERE director_s_ = "susan jacobson"
CREATE TABLE table_name_31 (recipient VARCHAR, director_s_ VARCHAR), What is the name of the recipient when the director was Susan Jacobson?
SELECT film FROM table_name_67 WHERE director_s_ = "hannah gal"
CREATE TABLE table_name_67 (film VARCHAR, director_s_ VARCHAR), What is the film where Hannah Gal was the director?
SELECT film FROM table_name_35 WHERE date = "22/3/06" AND recipient = "redhouse lane / perfect world"
CREATE TABLE table_name_35 (film VARCHAR, date VARCHAR, recipient VARCHAR), What is the film dated 22/3/06 and redhouse lane / perfect world was the recipient?
SELECT film FROM table_name_18 WHERE award = "£5,380"
CREATE TABLE table_name_18 (film VARCHAR, award VARCHAR), What is the name of the film with an award of £5,380?
SELECT chassis FROM table_name_32 WHERE engine = "climax straight-4"
CREATE TABLE table_name_32 (chassis VARCHAR, engine VARCHAR), What chassis was paired with climax straight-4?
SELECT AVG(year) FROM table_name_35 WHERE entrant = "cooper car company"
CREATE TABLE table_name_35 (year INTEGER, entrant VARCHAR), What year did Cooper Car Company enter?
SELECT year FROM table_name_56 WHERE points > 0
CREATE TABLE table_name_56 (year VARCHAR, points INTEGER), What year has more than 0 points?
SELECT SUM(points) FROM table_name_47 WHERE year < 1963
CREATE TABLE table_name_47 (points INTEGER, year INTEGER), What is the total points before 1963?
SELECT genre FROM table_name_47 WHERE country_of_origin = "united kingdom" AND artist = "queen"
CREATE TABLE table_name_47 (genre VARCHAR, country_of_origin VARCHAR, artist VARCHAR), What was the genre of Queen (an artist from the United Kingdom)?
SELECT claimed_sales FROM table_name_85 WHERE genre = "rock"
CREATE TABLE table_name_85 (claimed_sales VARCHAR, genre VARCHAR), What is the number of claimed sales in the rock genre?
SELECT MIN(release_year_of_first_charted_record) FROM table_name_88 WHERE artist = "abba"
CREATE TABLE table_name_88 (release_year_of_first_charted_record INTEGER, artist VARCHAR), What was the earliest release-year of the first charted record of Abba?
SELECT period_active FROM table_name_87 WHERE genre = "pop"
CREATE TABLE table_name_87 (period_active VARCHAR, genre VARCHAR), What was the active period for the pop genre?
SELECT points FROM table_name_66 WHERE chassis = "lotus 33" AND entrant = "team lotus" AND year = 1964
CREATE TABLE table_name_66 (points VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR), What point had team Lotus whit the lotus 33 chassis in 1964?
SELECT entrant FROM table_name_23 WHERE year < 1965 AND points > 0 AND chassis = "lotus 25"
CREATE TABLE table_name_23 (entrant VARCHAR, chassis VARCHAR, year VARCHAR, points VARCHAR), Which entrant before 1965 scored more than 0 point with the lotus 25 chassis?
SELECT engine FROM table_name_85 WHERE points = 9
CREATE TABLE table_name_85 (engine VARCHAR, points VARCHAR), Which engine scored 9 points?
SELECT chassis FROM table_name_59 WHERE entrant = "team lotus" AND year > 1964
CREATE TABLE table_name_59 (chassis VARCHAR, entrant VARCHAR, year VARCHAR), What chassis did team lotus use after 1964?
SELECT others_percentage FROM table_name_83 WHERE others_number > 147 AND kerry_percentage = "39.6%"
CREATE TABLE table_name_83 (others_percentage VARCHAR, others_number VARCHAR, kerry_percentage VARCHAR), What is the value Others% when the value Others# is greater than 147 and the value Kerry% is 39.6%?
SELECT COUNT(others_number) FROM table_name_94 WHERE county = "langlade" AND bush_number > 6 OFFSET 235
CREATE TABLE table_name_94 (others_number VARCHAR, county VARCHAR, bush_number VARCHAR), What is the total number of the value Others#, when the county is Langlade, and when the value Bush# is greater than 6,235?
SELECT AVG(bush_number) FROM table_name_70 WHERE others_number > 57 AND bush_percentage = "49.2%"
CREATE TABLE table_name_70 (bush_number INTEGER, others_number VARCHAR, bush_percentage VARCHAR), What is the average value of Bush# when the value for Others# is greater than 57, and the value for Bush% is 49.2%?
SELECT laid_down FROM table_name_76 WHERE name = "fubuki"
CREATE TABLE table_name_76 (laid_down VARCHAR, name VARCHAR), What is the date the Fubuki ship laid down?
SELECT launched FROM table_name_18 WHERE name = "harusame"
CREATE TABLE table_name_18 (launched VARCHAR, name VARCHAR), What is the launched date for the Harusame ship?
SELECT score FROM table_name_96 WHERE location = "lille"
CREATE TABLE table_name_96 (score VARCHAR, location VARCHAR), The game taking place in Lille had what as a score?
SELECT score FROM table_name_51 WHERE competition = "test" AND date = "23 apr 1988"
CREATE TABLE table_name_51 (score VARCHAR, competition VARCHAR, date VARCHAR), A competition of test taking place on 23 Apr 1988 had what as a score?
SELECT competition FROM table_name_23 WHERE date = "11 feb 1990"
CREATE TABLE table_name_23 (competition VARCHAR, date VARCHAR), On 11 Feb 1990, the competition is listed as what?
SELECT score FROM table_name_42 WHERE date = "4 apr 1997"
CREATE TABLE table_name_42 (score VARCHAR, date VARCHAR), The competition that took place on 4 Apr 1997 ended with what as the score?
SELECT score FROM table_name_75 WHERE location = "northampton"
CREATE TABLE table_name_75 (score VARCHAR, location VARCHAR), The competition located in Northampton had a resulting score of what?
SELECT category FROM table_name_62 WHERE label = "mcg" AND result = "nominee"
CREATE TABLE table_name_62 (category VARCHAR, label VARCHAR, result VARCHAR), What category did MCG get a nominee in?
SELECT genre FROM table_name_7 WHERE title = "music in the air"
CREATE TABLE table_name_7 (genre VARCHAR, title VARCHAR), What genre was Music in the Air?
SELECT opponent FROM table_name_63 WHERE record = "52-52"
CREATE TABLE table_name_63 (opponent VARCHAR, record VARCHAR), Which opponent has a record of 52-52?
SELECT record FROM table_name_11 WHERE date = "july 22"
CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR), What is the record as of July 22?
SELECT MAX(played) FROM table_name_47 WHERE goals_conceded = 21 AND draw > 3
CREATE TABLE table_name_47 (played INTEGER, goals_conceded VARCHAR, draw VARCHAR), What was the highest number played when there were 21 goals conceded and a draw greater than 3?
SELECT COUNT(points) FROM table_name_39 WHERE goals_scored < 20
CREATE TABLE table_name_39 (points VARCHAR, goals_scored INTEGER), What were the total number of points when the amount of goals scored was less than 20?
SELECT COUNT(points) FROM table_name_45 WHERE lost > 6 AND team = "once municipal" AND goals_scored < 8
CREATE TABLE table_name_45 (points VARCHAR, goals_scored VARCHAR, lost VARCHAR, team VARCHAR), What were the total number of points when there was a lost larger than 6, when the team was Once Municipal, and when the number of goals scored was less than 8?
SELECT MAX(points) FROM table_name_83 WHERE draw = 2 AND played < 18
CREATE TABLE table_name_83 (points INTEGER, draw VARCHAR, played VARCHAR), What was the highest number of points scored when there was a draw of 2 and when the amount played was 18?
SELECT COUNT(place) FROM table_name_73 WHERE draw < 4 AND lost < 6
CREATE TABLE table_name_73 (place VARCHAR, draw VARCHAR, lost VARCHAR), What was the total number of places in which the draw was less than 4 and the amount lost was less than 6?
SELECT MIN(rank) FROM table_name_73 WHERE nationality = "poland" AND time > 55.34
CREATE TABLE table_name_73 (rank INTEGER, nationality VARCHAR, time VARCHAR), What is the lowest rank with poland as the nationality and a time greater than 55.34?
SELECT name FROM table_name_8 WHERE lane < 7 AND time > 54.32 AND nationality = "germany" AND rank < 5
CREATE TABLE table_name_8 (name VARCHAR, rank VARCHAR, nationality VARCHAR, lane VARCHAR, time VARCHAR), Which name has a lane smaller than 7, and a time greater than 54.32 with germany as the nationality and a rank less than 5?
SELECT AVG(lane) FROM table_name_99 WHERE time = 54.95
CREATE TABLE table_name_99 (lane INTEGER, time VARCHAR), Which average lane has 54.95 as a time?
SELECT AVG(time) FROM table_name_99 WHERE name = "eithan urbach" AND lane > 2
CREATE TABLE table_name_99 (time INTEGER, name VARCHAR, lane VARCHAR), Which average time has eithan urbach as a name with a lane bigger than 2?
SELECT AVG(year) FROM table_name_89 WHERE chassis = "brabham bt46 bt48 bt49"
CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR), What year was the brabham bt46 bt48 bt49 Chassis common?
SELECT MAX(score) FROM table_name_69 WHERE player = "arnold palmer"
CREATE TABLE table_name_69 (score INTEGER, player VARCHAR), How high did Arnold Palmer score in 1962?
SELECT result FROM table_name_27 WHERE venue = "ulsan"
CREATE TABLE table_name_27 (result VARCHAR, venue VARCHAR), Which result has a Venue of ulsan?
SELECT competition FROM table_name_55 WHERE date = "2007-08-22"
CREATE TABLE table_name_55 (competition VARCHAR, date VARCHAR), Which competition has a Date of 2007-08-22?
SELECT result FROM table_name_31 WHERE date = "2007-08-22"
CREATE TABLE table_name_31 (result VARCHAR, date VARCHAR), Which result has a Date of 2007-08-22?
SELECT 2004 FROM table_name_24 WHERE 2000 = "2r"
CREATE TABLE table_name_24 (Id VARCHAR), What's the 2004 tournament that has a 2R in 2000?
SELECT 1999 FROM table_name_2 WHERE 2003 = "q1" AND 2002 = "q3"
CREATE TABLE table_name_2 (Id VARCHAR), What is the 1999 tournament that has a Q1 in 2003 and a Q3 in 2002?
SELECT 2004 FROM table_name_10 WHERE 2011 = "q1"
CREATE TABLE table_name_10 (Id VARCHAR), What is the 2004 tournament that has a Q1 of 2011?
SELECT hometown FROM table_name_13 WHERE profession = "mixologist"
CREATE TABLE table_name_13 (hometown VARCHAR, profession VARCHAR), What was the hometown of the contestant who was a professional mixologist?
SELECT AVG(year) FROM table_name_17 WHERE engine = "cosworth straight-4" AND entrant = "ron harris / team lotus"
CREATE TABLE table_name_17 (year INTEGER, engine VARCHAR, entrant VARCHAR), What is the average Year when there was a cosworth straight-4 engine, and the Entrant was ron harris / team lotus?
SELECT entrant FROM table_name_39 WHERE chassis = "lotus 25"
CREATE TABLE table_name_39 (entrant VARCHAR, chassis VARCHAR), What is the name of the Entrant that has a Chassis of lotus 25
SELECT engine FROM table_name_87 WHERE chassis = "porsche 718"
CREATE TABLE table_name_87 (engine VARCHAR, chassis VARCHAR), What was the engine when the chassis was a porsche 718??
SELECT COUNT(points) FROM table_name_63 WHERE chassis = "bmw 269 f2" AND year < 1969
CREATE TABLE table_name_63 (points VARCHAR, chassis VARCHAR, year VARCHAR), What is the number of points when there was a BMW 269 F2 chassis earlier than 1969?
SELECT engine FROM table_name_27 WHERE chassis = "lotus 44 f2"
CREATE TABLE table_name_27 (engine VARCHAR, chassis VARCHAR), What engine was in the lotus 44 f2 Chassis?
SELECT year FROM table_name_47 WHERE chassis = "lotus 25"
CREATE TABLE table_name_47 (year VARCHAR, chassis VARCHAR), What year was there a lotus 25 Chassis?
SELECT MIN(rank) FROM table_name_92 WHERE nationality = "netherlands" AND lane < 4
CREATE TABLE table_name_92 (rank INTEGER, nationality VARCHAR, lane VARCHAR), what is the lowest rank for the netherlands in lane less than 4?
SELECT height FROM table_name_69 WHERE hometown = "renton, wa"
CREATE TABLE table_name_69 (height VARCHAR, hometown VARCHAR), What is the height of the delegate whose hometown is Renton, WA?
SELECT position FROM table_name_82 WHERE notes = "53.96"
CREATE TABLE table_name_82 (position VARCHAR, notes VARCHAR), Is there a Position for Notes 53.96?
SELECT venue FROM table_name_82 WHERE event = "4x400m relay" AND year > 2002 AND position = "4th"
CREATE TABLE table_name_82 (venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR), Is there a Venus that's a year later than 2002, with an Event of 4x400m relay in 4th Position?
SELECT event FROM table_name_76 WHERE notes = "53.76"
CREATE TABLE table_name_76 (event VARCHAR, notes VARCHAR), What Event goes with Notes 53.76?
SELECT date FROM table_name_68 WHERE record = "12-17"
CREATE TABLE table_name_68 (date VARCHAR, record VARCHAR), On what date did they have a record of 12-17?
SELECT engine FROM table_name_63 WHERE entrant = "team lotus" AND year > 1965
CREATE TABLE table_name_63 (engine VARCHAR, entrant VARCHAR, year VARCHAR), What engine did the Team Lotus have after 1965?
SELECT chassis FROM table_name_92 WHERE engine = "brm v8"
CREATE TABLE table_name_92 (chassis VARCHAR, engine VARCHAR), What chassis did the BRM V8 engine have?
SELECT MAX(points) FROM table_name_99 WHERE year = 1966
CREATE TABLE table_name_99 (points INTEGER, year VARCHAR), What was the highest number of points in 1966?
SELECT MAX(losses) FROM table_name_87 WHERE games < 25 AND season = "2010"
CREATE TABLE table_name_87 (losses INTEGER, games VARCHAR, season VARCHAR), What is the greatest number of losses a team that played fewer than 25 games in 2010 had?
SELECT AVG(points) FROM table_name_37 WHERE games = 17 AND losses > 15
CREATE TABLE table_name_37 (points INTEGER, games VARCHAR, losses VARCHAR), What is the average number of points for a team that played 17 games and had more than 15 losses?
SELECT SUM(laps) FROM table_name_69 WHERE driver = "gunnar nilsson"
CREATE TABLE table_name_69 (laps INTEGER, driver VARCHAR), How many laps did gunnar nilsson drive?
SELECT constructor FROM table_name_74 WHERE laps = 79 AND driver = "james hunt"
CREATE TABLE table_name_74 (constructor VARCHAR, laps VARCHAR, driver VARCHAR), Who built james hunt's car that went 79 laps?
SELECT weight FROM table_name_65 WHERE series = "iii series" AND reverse = "modern pentathlon"
CREATE TABLE table_name_65 (weight VARCHAR, series VARCHAR, reverse VARCHAR), How much did the Modern Pentathlon III Series coin weigh?
SELECT obverse FROM table_name_45 WHERE reverse = "archery"
CREATE TABLE table_name_45 (obverse VARCHAR, reverse VARCHAR), What is the obverse of the archery coin?
SELECT denomination FROM table_name_8 WHERE series = "iii series"
CREATE TABLE table_name_8 (denomination VARCHAR, series VARCHAR), What is the denomination of the III Series?
SELECT diameter FROM table_name_46 WHERE reverse = "archery"
CREATE TABLE table_name_46 (diameter VARCHAR, reverse VARCHAR), What is the diameter of the Archery Reverse coin?
SELECT written_by FROM table_name_5 WHERE prod_code > 1.4 AND directed_by = "rick wallace"
CREATE TABLE table_name_5 (written_by VARCHAR, prod_code VARCHAR, directed_by VARCHAR), Who wrote the episode with a production code greater than 1.4 direcyed by rick wallace?
SELECT written_by FROM table_name_12 WHERE directed_by = "dan lerner"
CREATE TABLE table_name_12 (written_by VARCHAR, directed_by VARCHAR), Who wrote the episode that was directed by dan lerner?
SELECT AVG(total) FROM table_name_2 WHERE player = "simon donnelly" AND scottish_cup > 0
CREATE TABLE table_name_2 (total INTEGER, player VARCHAR, scottish_cup VARCHAR), What is the average total of player Simon Donnelly, with a Scottish Cup greater than 0?
SELECT SUM(challenge_cup) FROM table_name_90 WHERE league = 1 AND player = "simon storey" AND total > 1
CREATE TABLE table_name_90 (challenge_cup INTEGER, total VARCHAR, league VARCHAR, player VARCHAR), What is the Challenge Cup total with a League of 1, Player Simon Storey, and a Total greater than 1?
SELECT MAX(total) FROM table_name_25 WHERE player = "damon gray" AND challenge_cup < 0
CREATE TABLE table_name_25 (total INTEGER, player VARCHAR, challenge_cup VARCHAR), What is the highest total of Player Damon Gray, with a Challenge Cup less than 0?
SELECT result FROM table_name_35 WHERE venue = "away" AND opponent = "marbella"
CREATE TABLE table_name_35 (result VARCHAR, venue VARCHAR, opponent VARCHAR), Which result has a Venue of away, and an Opponent of marbella?
SELECT venue FROM table_name_68 WHERE date = "28 july 2007"
CREATE TABLE table_name_68 (venue VARCHAR, date VARCHAR), Which venue has a Date of 28 july 2007?
SELECT result FROM table_name_26 WHERE venue = "home"
CREATE TABLE table_name_26 (result VARCHAR, venue VARCHAR), What is the result with a home venue?
SELECT date FROM table_name_42 WHERE result = "0–0"
CREATE TABLE table_name_42 (date VARCHAR, result VARCHAR), Which Date has a Result of 0–0?
SELECT date FROM table_name_90 WHERE result = "5–0" AND opponent = "tooting & mitcham"
CREATE TABLE table_name_90 (date VARCHAR, result VARCHAR, opponent VARCHAR), Which date has a Result of 5–0, and an Opponent of tooting & mitcham?
SELECT COUNT(goals_for) FROM table_name_13 WHERE played > 44
CREATE TABLE table_name_13 (goals_for VARCHAR, played INTEGER), Name the total number of goals which have played more than 44
SELECT MAX(draws) FROM table_name_89 WHERE goals_against > 56 AND wins > 14
CREATE TABLE table_name_89 (draws INTEGER, goals_against VARCHAR, wins VARCHAR), Name the most draws when goals against is more than 56 and wins is more than 14