instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_10221 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" text, "Record" text, "Streak" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record for t...
SELECT "Record" FROM table_10221 WHERE "Home" = 'dallas mavericks'
### Instruction: CREATE TABLE table_30684 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed the episode tit...
SELECT "Directed by" FROM table_30684 WHERE "Title" = 'Everything That Rises Must Converge'
### Instruction: CREATE TABLE table_38994 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total Lost that has...
SELECT SUM("Lost") FROM table_38994 WHERE "Played" > '42'
### Instruction: CREATE TABLE table_18979 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "High rebounds" FROM table_18979 WHERE "Location Attendance" = 'Delta Center'
### Instruction: CREATE TABLE table_41085 ( "Airline" text, "Fleet Size" real, "Notes" text, "IOSA (IATA)" text, "EASA (EU)" text, "IASA (FAA)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Airline when the notes show aoc 135? ###...
SELECT "Airline" FROM table_41085 WHERE "Notes" = 'aoc 135'
### Instruction: CREATE TABLE table_32242 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the sum of the crowds ...
SELECT SUM("Crowd") FROM table_32242 WHERE "Away team" = 'fitzroy'
### Instruction: CREATE TABLE table_76993 ( "County" text, "Kerry%" text, "Kerry#" real, "Bush%" text, "Bush#" real, "Others%" text, "Others#" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Bush#, when Bush% is '65.4%'? ...
SELECT MIN("Bush#") FROM table_76993 WHERE "Bush%" = '65.4%'
### Instruction: CREATE TABLE table_5631 ( "Frequency (MHz)" real, "Call letters" text, "Licensed location" text, "Type" text, "Format" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Frequency (MHz) that has a Type of primary, and a Call letters of ...
SELECT COUNT("Frequency (MHz)") FROM table_5631 WHERE "Type" = 'primary' AND "Call letters" = 'ktbb-fm'
### Instruction: CREATE TABLE table_33559 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of the...
SELECT COUNT("Crowd") FROM table_33559 WHERE "Venue" = 'glenferrie oval'
### Instruction: CREATE TABLE table_36004 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Home team has a Score of 1 1, and an Away team of tottenham hotspur? ###...
SELECT "Home team" FROM table_36004 WHERE "Score" = '1–1' AND "Away team" = 'tottenham hotspur'
### Instruction: CREATE TABLE table_29766 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "Record" FROM table_29766 WHERE "Date" = 'November 19'
### Instruction: CREATE TABLE table_203_374 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what country is listed before france ? ### Res...
SELECT "nation" FROM table_203_374 WHERE id = (SELECT id FROM table_203_374 WHERE "nation" = 'france') - 1
### Instruction: CREATE TABLE table_63340 ( "Rank" text, "Rider" text, "Horse" text, "Nation" text, "Judge E" text, "Judge C" text, "Judge M" text, "Penalty Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the horse that ra...
SELECT "Horse" FROM table_63340 WHERE "Rank" = '69'
### Instruction: CREATE TABLE table_32968 ( "Outcome" text, "Date" real, "Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Outcome against Opponent...
SELECT "Outcome" FROM table_32968 WHERE "Opponent in the final" = 'carlos kirmayr'
### Instruction: CREATE TABLE table_21577 ( "County" text, "Kerry%" text, "Kerry#" real, "Bush%" text, "Bush#" real, "Others%" text, "Others#" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the minimum kerry # for bush % for 50.9% ###...
SELECT MIN("Kerry#") FROM table_21577 WHERE "Bush%" = '50.9%'
### Instruction: CREATE TABLE table_27830 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote...
SELECT "Written by" FROM table_27830 WHERE "Title" = 'To Live and Diet in L.A.'
### Instruction: CREATE TABLE table_68382 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest lane of a swimmer with a time of 2:07.57 and a rank larger than 1? ### ...
SELECT MIN("Lane") FROM table_68382 WHERE "Time" = '2:07.57' AND "Rank" > '1'
### Instruction: CREATE TABLE table_61533 ( "Official Name" text, "Status" text, "Area km 2" real, "Population" real, "Census Ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the population of northfield parish that has an area less t...
SELECT SUM("Population") FROM table_61533 WHERE "Area km 2" < '342.4' AND "Official Name" = 'northfield'
### Instruction: CREATE TABLE table_name_76 ( number_of_households INTEGER, median_family_income VARCHAR, population VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of households in the county with median income of $65,240 and populatio...
SELECT SUM(number_of_households) FROM table_name_76 WHERE median_family_income = "$65,240" AND population > 744 OFFSET 344
### Instruction: CREATE TABLE table_name_11 ( pci_express VARCHAR, memory VARCHAR, sound VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which PCI-Express has a DDR 266/333/400 Registered/ECC memory and Enhanced AC'97 2.3 sound? ### Response:
SELECT pci_express FROM table_name_11 WHERE memory = "ddr 266/333/400 registered/ecc" AND sound = "enhanced ac'97 2.3"
### Instruction: CREATE TABLE table_29614 ( "Game" real, "October" real, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the record for prudential center ...
SELECT "Record" FROM table_29614 WHERE "Location/Attendance" = 'Prudential Center - 12,880'
### Instruction: CREATE TABLE table_102 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT "High assists" FROM table_102 WHERE "Date" = 'February 9'
### Instruction: CREATE TABLE table_63221 ( "Season" text, "Pitcher" text, "Decision" text, "Opponent" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the pitcher from the 1994 season that had the Cleveland Indians as an oppon...
SELECT "Pitcher" FROM table_63221 WHERE "Opponent" = 'cleveland indians' AND "Season" = '1994'
### Instruction: CREATE TABLE table_50510 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE LOWEST GRID FOR RETIREMENT, AND LAPS LARGER THAN 17? ### Response:
SELECT MIN("Grid") FROM table_50510 WHERE "Time/Retired" = 'retirement' AND "Laps" > '17'
### Instruction: CREATE TABLE table_72251 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT COUNT("Game") FROM table_72251 WHERE "Date" = 'June 12'
### Instruction: CREATE TABLE table_15638 ( "Rank" real, "Team" text, "Country" text, "Value ($M)" real, "% change on year" real, "Revenue ($M)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average revenue for Bayern Munich with a ...
SELECT AVG("Revenue ($M)") FROM table_15638 WHERE "Team" = 'bayern munich' AND "Rank" > '4'
### Instruction: CREATE TABLE climber ( Climber_ID int, Name text, Country text, Time text, Points real, Mountain_ID int ) CREATE TABLE mountain ( Mountain_ID int, Name text, Height real, Prominence real, Range text, Country text ) -- Using valid SQLite, answer the fol...
SELECT Country, COUNT(*) FROM climber GROUP BY Country ORDER BY COUNT(*)
### Instruction: CREATE TABLE table_38941 ( "Team" text, "Constructor" text, "Motorcycle" text, "Rider" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rounds of rider Mika Kallio 1 of the Ducati Marlboro team? ### Respon...
SELECT "Rounds" FROM table_38941 WHERE "Team" = 'ducati marlboro team' AND "Rider" = 'mika kallio 1'
### Instruction: CREATE TABLE table_44866 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much total money does player tommy bolt, who has a to par of 9...
SELECT COUNT("Money ( $ )") FROM table_44866 WHERE "To par" = '9' AND "Player" = 'tommy bolt'
### Instruction: CREATE TABLE table_35762 ( "Date" text, "Venue" text, "Opponents" text, "Score" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Venue of klfa stadium, cheras, and a Score of 3-3 had what competition? ### Respons...
SELECT "Competition" FROM table_35762 WHERE "Venue" = 'klfa stadium, cheras' AND "Score" = '3-3'
### Instruction: CREATE TABLE table_56995 ( "Name" text, "Latitude" real, "Longitude" real, "Diameter (km)" real, "Named after" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the sum of longitude for diameter being 22.6 and latitude less tha...
SELECT SUM("Longitude") FROM table_56995 WHERE "Diameter (km)" = '22.6' AND "Latitude" < '-12.4'
### Instruction: CREATE TABLE table_50880 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Grid with a time of +1:19.905, and less than 20 laps? ### Response:
SELECT MAX("Grid") FROM table_50880 WHERE "Time" = '+1:19.905' AND "Laps" < '20'
### Instruction: CREATE TABLE table_63974 ( "Year" real, "Category" text, "Recipients and nominees" text, "Role/Episode" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Category were Libby Goldstein and Junie Lowry-Johnson recipi...
SELECT "Category" FROM table_63974 WHERE "Recipients and nominees" = 'libby goldstein and junie lowry-johnson'
### Instruction: CREATE TABLE table_2515 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the reason for change where the date the successor...
SELECT "Reason for change" FROM table_2515 WHERE "Date successor seated" = 'July 28, 1876'
### Instruction: CREATE TABLE table_21486 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Of the times the Broncos played the Cincinnati...
SELECT MAX("Attendance") FROM table_21486 WHERE "Opponent" = 'Cincinnati Bengals'
### Instruction: CREATE TABLE table_71743 ( "Position" text, "Name" text, "Party" text, "First elected" real, "District" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the party with first elected more than 1999 and position of supervisor for j...
SELECT "Party" FROM table_71743 WHERE "First elected" > '1999' AND "Position" = 'supervisor' AND "Name" = 'john foust'
### Instruction: CREATE TABLE table_77711 ( "Constructor" text, "Chassis" text, "Engine" text, "Tyres" text, "Driver" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who constructed the car that Derek Warwick raced in with a TG181 ...
SELECT "Constructor" FROM table_77711 WHERE "Chassis" = 'tg181' AND "Driver" = 'derek warwick'
### Instruction: CREATE TABLE table_10601 ( "Week" text, "Date" text, "Opponent" text, "Result" text, "Kickoff [a ]" text, "Game site" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the week when th...
SELECT "Week" FROM table_10601 WHERE "Result" = 'l 38-17'
### Instruction: CREATE TABLE table_32179 ( "Date" text, "Result" text, "Score" text, "Stadium" text, "City" text, "Crowd" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What stadium was the game played at when the result was hunter mariners def...
SELECT "Stadium" FROM table_32179 WHERE "Result" = 'hunter mariners def. sheffield eagles'
### Instruction: CREATE TABLE table_63329 ( "Restaurant Name" text, "Original Name" text, "Location" text, "Chef" text, "Designer" text, "Still Open?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original name of the place by desig...
SELECT "Original Name" FROM table_63329 WHERE "Designer" = 'glen peloso' AND "Location" = 'n/a'
### Instruction: CREATE TABLE table_15443 ( "Name" text, "Years" text, "League" text, "FA Cup" text, "League Cup" text, "Europe" text, "Other [C ]" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the League Cup value...
SELECT "League Cup" FROM table_15443 WHERE "Years" = '1991–present'
### Instruction: CREATE TABLE table_54378 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the home team's score ...
SELECT "Home team score" FROM table_54378 WHERE "Venue" = 'junction oval'
### Instruction: CREATE TABLE table_25275 ( "Constituency" text, "Winner" text, "Party" text, "Margin" real, "Runner-up a" text, "Party a" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most margin for nco party and p. ramachandran won ...
SELECT MAX("Margin") FROM table_25275 WHERE "Party" = 'NCO' AND "Winner" = 'P. Ramachandran'
### Instruction: CREATE TABLE table_15973 ( "Formula" text, "Notation" text, "T c (K)" real, "No. of Cu-O planes in unit cell" real, "Crystal structure" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number for t c (k) when the notation ...
SELECT COUNT("T c (K)") FROM table_15973 WHERE "Notation" = 'Tl-2212'
### Instruction: CREATE TABLE table_72498 ( "Outcome" text, "Year" text, "Location" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many locations hosted Claudia Kohde-Kilsch...
SELECT COUNT("Location") FROM table_72498 WHERE "Opponents" = 'Claudia Kohde-Kilsch Eva Pfaff'
### Instruction: CREATE TABLE table_8577 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the year when the notes is 5000 m and the competition is world junior champions...
SELECT COUNT("Year") FROM table_8577 WHERE "Notes" = '5000 m' AND "Competition" = 'world junior championships in athletics'
### Instruction: CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE has_allergy ( stuid number, allergy text ) -- U...
SELECT advisor, COUNT(*) FROM student GROUP BY advisor
### Instruction: CREATE TABLE table_24020 ( "Week" real, "Player" text, "Team" text, "Opponent" text, "Carries" real, "Yards" real, "Average" text, "Touchdowns" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The player who had 145 yards ...
SELECT COUNT("Touchdowns") FROM table_24020 WHERE "Yards" = '145'
### Instruction: CREATE TABLE table_name_38 ( international_tourist_arrivals__2012_ VARCHAR, international_tourist_arrivals__2011_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many tourists visited the country that had 2.5 million tourists in 2011? #...
SELECT international_tourist_arrivals__2012_ FROM table_name_38 WHERE international_tourist_arrivals__2011_ = "2.5 million"
### Instruction: CREATE TABLE table_59574 ( "Name" text, "Father" text, "Birth" text, "Marriage" text, "Became Duchess" text, "Ceased to be Duchess" text, "Death" text, "Spouse" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was ann...
SELECT "Birth" FROM table_59574 WHERE "Name" = 'anne of lorraine'
### Instruction: CREATE TABLE table_204_155 ( id number, "rank" number, "heat" number, "athlete" text, "nationality" text, "time" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- did adrienne power or kim wall have a faster tim...
SELECT "athlete" FROM table_204_155 WHERE "athlete" IN ('adrienne power', 'kim wall') ORDER BY "time" LIMIT 1
### Instruction: CREATE TABLE table_79140 ( "Pick #" real, "Player" text, "Nationality" text, "Position" text, "Team from" text, "League from" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total pick # for the D position from a team...
SELECT SUM("Pick #") FROM table_79140 WHERE "Position" = 'd' AND "Team from" = 'chilliwack bruins'
### Instruction: CREATE TABLE table_203_355 ( id number, "year" number, "total" number, "romanians" text, "hungarians" text, "roma" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which year had a total of 6,981 and 19.4 % hungarians ? ### Resp...
SELECT "year" FROM table_203_355 WHERE "total" = 6981 AND "hungarians" = 19.4
### Instruction: CREATE TABLE table_38623 ( "Nation" text, "T Score" real, "A Score" real, "E Score" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How large was the total when the E Score was greater than 9.35 and T Score was less tha...
SELECT MAX("Total") FROM table_38623 WHERE "E Score" > '9.35' AND "T Score" < '4'
### Instruction: CREATE TABLE table_30182 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is t...
SELECT MIN("Production code") FROM table_30182 WHERE "Title" = 'Halloween'
### Instruction: CREATE TABLE table_19352 ( "Pos" real, "Member Association" text, "Points (total 500)" real, "Clubs" text, "Group stage" real, "Play-off" real, "AFC Cup" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many points (total ...
SELECT COUNT("Points (total 500)") FROM table_19352 WHERE "Pos" = '11'
### Instruction: CREATE TABLE table_31251 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote...
SELECT "Written by" FROM table_31251 WHERE "Title" = 'Goliath (Part 2)'
### Instruction: CREATE TABLE table_75573 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location of the match ...
SELECT "Location" FROM table_75573 WHERE "Event" = 'ecc 8: comeback'
### Instruction: CREATE TABLE table_74452 ( "Tournament" text, "Player" text, "Nationality" text, "Team" text, "Games played" real, "Goals conceded" real, "Coefficient" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many nationalities ar...
SELECT COUNT("Nationality") FROM table_74452 WHERE "Tournament" = '2011 Apertura'
### Instruction: CREATE TABLE table_60080 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Country, when Score is '69-69=138', and when Player is 'Ian Poulter'? ### Respon...
SELECT "Country" FROM table_60080 WHERE "Score" = '69-69=138' AND "Player" = 'ian poulter'
### Instruction: CREATE TABLE table_1414 ( "Country" text, "Freedom in the World 2013" text, "2013 Index of Economic Freedom" text, "2013 Press Freedom Index" text, "2012 Democracy Index" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How economical...
SELECT "2013 Index of Economic Freedom" FROM table_1414 WHERE "Country" = 'Armenia'
### Instruction: CREATE TABLE table_203_539 ( id number, "year" number, "competition" text, "venue" text, "position" text, "event" text, "notes" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- other than asian junior championships , what ot...
SELECT "competition" FROM table_203_539 WHERE "competition" <> 'asian junior championships' AND "position" = 1
### Instruction: CREATE TABLE table_204_41 ( id number, "rank" number, "name" text, "nationality" text, "time" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who timed in after shelley cramer ? ### Response:
SELECT "name" FROM table_204_41 WHERE "time" > (SELECT "time" FROM table_204_41 WHERE "name" = 'shelley cramer') ORDER BY "time" LIMIT 1
### Instruction: CREATE TABLE table_name_56 ( most_recent VARCHAR, height__m_ VARCHAR, first_time_as_hc_climb VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the most recent year a height of 2770 m and a HC climb before 1992 was climbed? ### Re...
SELECT COUNT(most_recent) FROM table_name_56 WHERE height__m_ = "2770" AND first_time_as_hc_climb < 1992
### Instruction: CREATE TABLE table_name_75 ( batting_style VARCHAR, bowling_style VARCHAR, birth_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the batting style of the person who has a right arm medium pace bowling style and a birth date o...
SELECT batting_style FROM table_name_75 WHERE bowling_style = "right arm medium pace" AND birth_date = "10 february 1910 (aged 29)"
### Instruction: CREATE TABLE table_40053 ( "Year" real, "Division" text, "League" text, "Regular Season" text, "Playoffs" text, "Open Cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which League that has a Open Cup of 1st round, and a Year ...
SELECT "League" FROM table_40053 WHERE "Open Cup" = '1st round' AND "Year" = '2009'
### Instruction: CREATE TABLE table_34128 ( "Year" real, "Division" real, "League" text, "Regular Season" text, "Playoffs" text, "Open Cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Playoffs have a Year smaller than 2012, and an Open ...
SELECT "Playoffs" FROM table_34128 WHERE "Year" < '2012' AND "Open Cup" = 'did not enter'
### Instruction: CREATE TABLE table_20382 ( "N\u00b0" real, "Television service" text, "Country" text, "Language" text, "Content" text, "DAR" text, "HDTV" text, "Package/Option" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the dar...
SELECT "DAR" FROM table_20382 WHERE "N\u00b0" = '912'
### Instruction: CREATE TABLE table_8486 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Ground" text, "Date" text, "Crowd" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the crowd was greater than...
SELECT "Away team" FROM table_8486 WHERE "Crowd" > '19,498'
### Instruction: CREATE TABLE table_70902 ( "Year" real, "Single" text, "U.S. Hot 100" text, "U.S. Dance" text, "U.S. R&B" text, "Album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the US Hot 100 for album of I like you ### Response:
SELECT "U.S. Hot 100" FROM table_70902 WHERE "Album" = 'i like you'
### Instruction: CREATE TABLE table_24322 ( "Draw" real, "Song" text, "Artist" text, "Panel Points" real, "Televotes" real, "Televote Points" real, "Score" real, "Placing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the artist fo...
SELECT "Artist" FROM table_24322 WHERE "Televotes" = '1595'
### Instruction: CREATE TABLE table_22755 ( "Name" text, "Country" text, "Seasons" text, "Championship Titles" text, "Race entries (Starts)" text, "Poles" real, "Wins" real, "Podiums" real, "Fastest Laps" real, "Points" text ) -- Using valid SQLite, answer the following questio...
SELECT MIN("Wins") FROM table_22755
### Instruction: CREATE TABLE table_22900 ( "Series No." real, "Season No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.K. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's t...
SELECT MIN("Series No.") FROM table_22900 WHERE "Season No." = '2'
### Instruction: CREATE TABLE table_32248 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What away team saw their oppone...
SELECT "Away team" FROM table_32248 WHERE "Home team score" = '4.5 (29)'
### Instruction: CREATE TABLE table_1452 ( "Official #" real, "TF1 #" real, "French title" text, "English title" text, "Air date (France)" text, "Original Beechwood Bunny Tale / Source material" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Nam...
SELECT "French title" FROM table_1452 WHERE "English title" = 'Inventor Bunnies'
### Instruction: CREATE TABLE table_18847 ( "Result" text, "Date" text, "Race" text, "Venue" text, "Group" text, "Distance" text, "Weight (kg)" real, "Jockey" text, "Winner/2nd" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what ...
SELECT "Date" FROM table_18847 WHERE "Result" = '6th'
### Instruction: CREATE TABLE table_37343 ( "Date" text, "Host" text, "Agg." text, "Visitor" text, "Ground" text, "Attendance" real, "Tournament" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the tournament on July 29 hosted by SK B...
SELECT "Tournament" FROM table_37343 WHERE "Host" = 'sk brann' AND "Date" = 'july 29'
### Instruction: CREATE TABLE table_79399 ( "Olympics" text, "Name" text, "Country" text, "Medal" text, "Event" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which country in the 2008 summer olympics is vadim devyatovskiy from? ### Response:
SELECT "Country" FROM table_79399 WHERE "Olympics" = '2008 summer olympics' AND "Name" = 'vadim devyatovskiy'
### Instruction: CREATE TABLE table_67336 ( "Club" text, "Australian Marquee" text, "International Marquee" text, "Junior Marquee player" text, "Captain" text, "Vice-Captain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Junior Marquee tea...
SELECT "Junior Marquee player" FROM table_67336 WHERE "Captain" = 'harry kewell'
### Instruction: CREATE TABLE table_26980 ( "Season" text, "Premier Division" text, "Division One" text, "Division Two" text, "Division Three" text, "Division Four" text, "Division Five" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When ra...
SELECT COUNT("Season") FROM table_26980 WHERE "Division Two" = 'Racing Epsom'
### Instruction: CREATE TABLE table_76597 ( "Finish Position" text, "Lengths Behind" text, "Post Position" real, "Horse name" text, "Trainer" text, "Jockey" text, "Owner" text, "Post Time Odds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Lengths Behind" FROM table_76597 WHERE "Jockey" = 'jeremy rose'
### Instruction: CREATE TABLE table_204_87 ( id number, "courthouse" text, "city" text, "street address" text, "jurisdiction" text, "dates of use" text, "named for" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many courthouses were in ...
SELECT COUNT("courthouse") FROM table_204_87 WHERE "jurisdiction" = 'n.d. miss'
### Instruction: CREATE TABLE table_41766 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the average bronze with a total number of medals being 1, with more ...
SELECT AVG("Bronze") FROM table_41766 WHERE "Total" = '1' AND "Silver" > '0'
### Instruction: CREATE TABLE table_11531 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people were in attenda...
SELECT MIN("Crowd") FROM table_11531 WHERE "Venue" = 'glenferrie oval'
### Instruction: CREATE TABLE table_name_57 ( village VARCHAR, grand_cru VARCHAR, region VARCHAR, wine_style VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Village has a Region of C te De Nuits, Wine Styles of Red Wine, and a Grand Cru of Latri...
SELECT village FROM table_name_57 WHERE region = "côte de nuits" AND wine_style = "red wine" AND grand_cru = "latricières-chambertin"
### Instruction: CREATE TABLE table_203_366 ( id number, "pos" number, "class" text, "no" number, "team" text, "drivers" text, "chassis" text, "engine" text, "laps" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many laps did r...
SELECT "laps" FROM table_203_366 WHERE "drivers" = 'ronnie bucknum'
### Instruction: CREATE TABLE Acceptance ( Submission_ID int, Workshop_ID int, Result text ) CREATE TABLE submission ( Submission_ID int, Scores real, Author text, College text ) CREATE TABLE workshop ( Workshop_ID int, Date text, Venue text, Name text ) -- Using valid SQ...
SELECT Result, COUNT(Result) FROM Acceptance GROUP BY Result
### Instruction: CREATE TABLE table_36879 ( "Source" text, "Date" text, "MARTIN" text, "GR\u00dcNE" text, "Others" text, "Undecided" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percent of others did ogm/news count when MARTIN had 9%? #...
SELECT "Others" FROM table_36879 WHERE "MARTIN" = '9%' AND "Source" = 'ogm/news'
### Instruction: CREATE TABLE table_2006 ( "Institution" text, "Location" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Year Joined" real, "Nickname" text, "Conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What ...
SELECT "Affiliation" FROM table_2006 WHERE "Nickname" = 'Explorers'
### Instruction: CREATE TABLE people ( People_ID VARCHAR, Height INTEGER ) CREATE TABLE entrepreneur ( Money_Requested INTEGER, People_ID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total money requested by entrepreneurs with height m...
SELECT SUM(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85
### Instruction: CREATE TABLE table_43969 ( "Pilot" text, "Date" text, "Place" text, "Weapon" text, "Effect" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Pilot, when Place is 'Goose Green', and when Date is '27 May 1982'? ### Response:
SELECT "Pilot" FROM table_43969 WHERE "Place" = 'goose green' AND "Date" = '27 may 1982'
### Instruction: CREATE TABLE table_61221 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the Opponents on May 3, 1982? ### R...
SELECT "Opponents" FROM table_61221 WHERE "Date" = 'may 3, 1982'
### Instruction: CREATE TABLE table_204_28 ( id number, "election" text, "name of the party/alliance" text, "number of votes" number, "percentage" text, "seats in the parliament" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which party/allia...
SELECT "name of the party/alliance" FROM table_204_28 WHERE "number of votes" > 300000
### Instruction: CREATE TABLE table_39919 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Total when the Silver is less than 2, and a Bro...
SELECT COUNT("Total") FROM table_39919 WHERE "Silver" < '2' AND "Bronze" < '0'
### Instruction: CREATE TABLE table_70422 ( "Year" real, "Entrant" text, "Class" text, "Chassis" text, "Engine" text, "Rank" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which engine has a year later than 2006 and 60 as the ...
SELECT "Engine" FROM table_70422 WHERE "Year" > '2006' AND "Points" = '60'
### Instruction: CREATE TABLE table_35502 ( "Date" text, "Home Team" text, "Score" text, "Away Team" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the home team on September 20, 1998 at Spartan Stadium? ### Response:
SELECT "Home Team" FROM table_35502 WHERE "Venue" = 'spartan stadium' AND "Date" = 'september 20, 1998'
### Instruction: CREATE TABLE table_name_83 ( three VARCHAR, date VARCHAR, seven VARCHAR, four VARCHAR, five VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the three for william prewett for four and five being richard ellis with seven being ...
SELECT three FROM table_name_83 WHERE four = "william prewett" AND five = "richard ellis" AND seven = "nicholas king" AND date = "5 november 1693"
### Instruction: CREATE TABLE table_54800 ( "PRR Class" text, "Builder\u2019s Model" text, "Build date" text, "Total produced" real, "Wheel arrangement" text, "Service" text, "Power output" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What...
SELECT "Build date" FROM table_54800 WHERE "PRR Class" = 'gf30a'
### Instruction: CREATE TABLE table_78692 ( "Name" text, "Pos." text, "Height" text, "Weight" text, "Date of Birth" text, "Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Weight, when Club is 'Ahly', and when Name is 'Ragy Abdel Had...
SELECT "Weight" FROM table_78692 WHERE "Club" = 'ahly' AND "Name" = 'ragy abdel hady'
### Instruction: CREATE TABLE table_204_605 ( id number, "date" text, "round" text, "opponents" text, "h / a" text, "result\nf-a" text, "scorers" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the average nu...
SELECT AVG("attendance") FROM table_204_605 WHERE id <= 3