instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_65549 ( "Position" real, "Gymnast" text, "A Score" real, "B Score" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total when the B Score was 9.15 for Cheng Fei ( chn )? ### Response:
SELECT AVG("Total") FROM table_65549 WHERE "B Score" = '9.15' AND "Gymnast" = 'cheng fei ( chn )'
### Instruction: CREATE TABLE table_30088 ( "\u2116" real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT COUNT("#") FROM table_30088 WHERE "Directed by" = 'Ken Fink'
### Instruction: CREATE TABLE table_31258 ( "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. -- How many ...
SELECT COUNT("No. in season") FROM table_31258 WHERE "Title" = 'The Nineteenth Hole'
### Instruction: CREATE TABLE table_25029 ( "Date" text, "Builder" text, "Type" text, "Operator" text, "Number" text, "Withdrawn" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the number of builders where the withdrawn i...
SELECT COUNT("Builder") FROM table_25029 WHERE "Withdrawn" = '1951' AND "Number" = '42'
### Instruction: CREATE TABLE table_48751 ( "Rank" real, "Team" text, "Played" real, "Wins" real, "Ties" real, "Losses" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Wins, when Team is Sweden, and when Play...
SELECT SUM("Wins") FROM table_48751 WHERE "Team" = 'sweden' AND "Played" < '5'
### Instruction: CREATE TABLE table_2709 ( "County" text, "Population" real, "Unemployment Rate" text, "Market Income Per Capita" text, "Poverty Rate" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the unemployment rate in...
SELECT "Unemployment Rate" FROM table_2709 WHERE "Status" = 'Transitional' AND "County" = 'Alexander'
### Instruction: CREATE TABLE table_25256 ( "Conference" text, "Regular Season Winner" text, "Conference Player of the Year" text, "Conference Tournament" text, "Tournament Venue (City)" text, "Tournament Winner" text ) -- Using valid SQLite, answer the following questions for the tables provi...
SELECT "Tournament Winner" FROM table_25256 WHERE "Regular Season Winner" = 'Princeton'
### Instruction: CREATE TABLE table_201_43 ( id number, "name" text, "canton" text, "district" text, "area\n(km2)" number, "population\n(as of 2005)" number, "date of law" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many diekirch dist...
SELECT COUNT("district") FROM table_201_43 WHERE "canton" = 'diekirch'
### Instruction: CREATE TABLE table_5596 ( "Date Released" text, "Institute" text, "Socialist" text, "Social Democratic" text, "Green-Communist" text, "Left Bloc" text, "People's Party" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT "Lead" FROM table_5596 WHERE "Left Bloc" = '8.4%'
### Instruction: CREATE TABLE table_63009 ( "Driver" text, "Navigator" text, "Vehicle" text, "Class" text, "Capacity" real, "Total Time" text, "Margin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much Capacity has a Vehicle of 2003 ho...
SELECT COUNT("Capacity") FROM table_63009 WHERE "Vehicle" = '2003 holden commodore ute'
### Instruction: CREATE TABLE table_24871 ( "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. -- when was ...
SELECT COUNT("Original air date") FROM table_24871 WHERE "Production code" = '11.19'
### Instruction: CREATE TABLE table_15905 ( "Member" text, "Headquarters" text, "Classification" text, "Chapters" real, "Founded" text, "UCCFS" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of chapters listed for the fraterni...
SELECT MAX("Chapters") FROM table_15905 WHERE "Classification" = 'Fraternity' AND "Headquarters" = 'Austin, Texas'
### Instruction: CREATE TABLE table_72557 ( "Rank" text, "Common" text, "Population" real, "Area (km 2 )" text, "Density (inhabitants/km 2 )" text, "Altitude (mslm)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which common has an area (km2) o...
SELECT "Common" FROM table_72557 WHERE "Area (km 2 )" = '38.38'
### Instruction: CREATE TABLE table_203_300 ( id number, "year" number, "tournament" text, "venue" text, "result" text, "extra" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of times yelena slesarenko placed 1st , 2nd o...
SELECT COUNT(*) FROM table_203_300 WHERE "result" IN (1, 2, 3)
### Instruction: CREATE TABLE table_name_51 ( _percentage_internet_users INTEGER, _percentage_growth__2000_2008_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the highest percentage of internet users a nation with a 1622% growth in 2000-2008 had? ...
SELECT MAX(_percentage_internet_users) FROM table_name_51 WHERE _percentage_growth__2000_2008_ = 1622
### Instruction: CREATE TABLE table_48338 ( "Year" real, "MLB Club" text, "Record" text, "Finish" text, "Manager" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the record when the year is after 1992, manager is tom kotchman and finish is 2n...
SELECT "Record" FROM table_48338 WHERE "Year" > '1992' AND "Manager" = 'tom kotchman' AND "Finish" = '2nd'
### Instruction: CREATE TABLE table_31275 ( "Rank" real, "English title" text, "Chinese title" text, "Average" real, "Peak" real, "Premiere" real, "Finale" real, "HK viewers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many peaks ...
SELECT COUNT("Peak") FROM table_31275 WHERE "Chinese title" = '萬凰之王'
### Instruction: CREATE TABLE mountain ( Mountain_ID int, Name text, Height real, Prominence real, Range text, Country text ) CREATE TABLE climber ( Climber_ID int, Name text, Country text, Time text, Points real, Mountain_ID int ) -- Using valid SQLite, answer the fol...
SELECT Country, COUNT(*) FROM climber GROUP BY Country ORDER BY Country
### Instruction: CREATE TABLE table_69296 ( "Island" text, "Group" text, "Area ( ha )" text, "Population" text, "Height (m)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the area (ha) of the group on the island of Linga Holm that has a Hei...
SELECT "Area ( ha )" FROM table_69296 WHERE "Height (m)" > '7' AND "Island" = 'linga holm'
### Instruction: CREATE TABLE table_202_22 ( id number, "rank" number, "rider" text, "team" text, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many points did robbie mcewen and cristian moreni score together ? ### Response:
SELECT (SELECT "points" FROM table_202_22 WHERE "rider" = 'robbie mcewen') + (SELECT "points" FROM table_202_22 WHERE "rider" = 'cristian moreni')
### Instruction: CREATE TABLE table_23543 ( "Starting price" text, "Number" real, "Name" text, "Age" real, "Weight (st, lb)" text, "Jockey" text, "Trainer" text, "Owner" text, "Colours" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT "Colours" FROM table_23543 WHERE "Jockey" = 'Andrew McNamara'
### Instruction: CREATE TABLE table_28605 ( "Election number" real, "Election date" text, "District" text, "Province" text, "Took office" text, "Left office" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the election date for those poli...
SELECT COUNT("Election date") FROM table_28605 WHERE "Left office" = '1850-11-15'
### Instruction: CREATE TABLE table_75548 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Time ( ET )" text, "Result" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result of the game at three rivers...
SELECT "Result" FROM table_75548 WHERE "Location" = 'three rivers stadium' AND "Record" = '6–3'
### Instruction: CREATE TABLE orders ( order_id VARCHAR, order_status VARCHAR, customer_id VARCHAR ) CREATE TABLE customers ( customer_id VARCHAR, customer_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Give me a list of id and status of or...
SELECT T2.order_id, T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie"
### Instruction: CREATE TABLE table_17188 ( "Country" text, "Population" real, "Area (km\u00b2)" real, "GDP (nominal)" text, "GDP per capita (nominal)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many countries has a gdp (nominal) of $29.9 bi...
SELECT COUNT("GDP per capita (nominal)") FROM table_17188 WHERE "GDP (nominal)" = '$29.9 billion'
### Instruction: CREATE TABLE table_72138 ( "No. in season" real, "No. in series" real, "Title" text, "Canadian airdate" text, "US airdate" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The U.S. airdate of 4 april 2008 h...
SELECT MAX("Production code") FROM table_72138 WHERE "US airdate" = '4 April 2008'
### Instruction: CREATE TABLE table_43293 ( "Date" text, "Time" text, "Channel" text, "Running Time" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the time of the transmission on 28 December 2008 with a running time of 66 min ...
SELECT "Time" FROM table_43293 WHERE "Running Time" = '66 min 21 sec' AND "Date" = '28 december 2008'
### Instruction: CREATE TABLE table_35331 ( "Episode" text, "Title" text, "Writer(s)" text, "Preservation" text, "Original airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original airdate for episode 7-17 (195) from writer Sidney...
SELECT "Original airdate" FROM table_35331 WHERE "Writer(s)" = 'sidney slon' AND "Episode" = '7-17 (195)'
### Instruction: CREATE TABLE table_65858 ( "County" text, "Per capita income" text, "Median household income" text, "Median family income" text, "Population" real, "Number of households" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is th...
SELECT "Per capita income" FROM table_65858 WHERE "Median family income" = '$40,492'
### Instruction: CREATE TABLE table_52120 ( "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 did the home team score wh...
SELECT "Home team score" FROM table_52120 WHERE "Away team score" = '6.8 (44)'
### Instruction: CREATE TABLE table_79519 ( "Position" real, "Athlete" text, "Compulsory" real, "Voluntary" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total compulsory when the total is more than 69.2 and the voluntary i...
SELECT COUNT("Compulsory") FROM table_79519 WHERE "Voluntary" = '38.7' AND "Total" > '69.2'
### Instruction: CREATE TABLE table_name_90 ( publication_date VARCHAR, person_s_ VARCHAR, reported_price VARCHAR, publisher_s_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the publication date of the photos of Sean Preston Federline that ...
SELECT publication_date FROM table_name_90 WHERE reported_price = "$500,000" AND publisher_s_ = "people" AND person_s_ = "sean preston federline"
### Instruction: CREATE TABLE table_21689 ( "Athlete" text, "Event" text, "Round of 32" text, "Round of 16" text, "Quarterfinals" text, "Semifinals" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who did Abdelhafid Benchebla face in the quarterf...
SELECT "Quarterfinals" FROM table_21689 WHERE "Athlete" = 'Abdelhafid Benchebla'
### Instruction: CREATE TABLE table_22688 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Location" FROM table_22688 WHERE "Record" = '19-6'
### Instruction: CREATE TABLE table_12124 ( "Player" text, "Height" real, "Position" text, "Year born (Age)" text, "Current Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Year born (Age) for the player who is taller than 2.04 and c...
SELECT "Year born (Age)" FROM table_12124 WHERE "Height" > '2.04' AND "Current Club" = 'los angeles clippers'
### Instruction: CREATE TABLE table_38107 ( "Orbital regime" text, "Launches" real, "Successes" real, "Failures" real, "Accidentally Achieved" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total failures of heliocentric orbit orbital re...
SELECT SUM("Failures") FROM table_38107 WHERE "Orbital regime" = 'heliocentric orbit' AND "Launches" < '1'
### Instruction: CREATE TABLE table_59868 ( "Atomic property" text, "Helium" text, "Neon" text, "Argon" text, "Krypton" text, "Xenon" text, "Radon" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Xenon has Neon of 20.1797(6)? ### Resp...
SELECT "Xenon" FROM table_59868 WHERE "Neon" = '20.1797(6)'
### Instruction: CREATE TABLE table_3126 ( "Episode Number" real, "Location" text, "Original Airdate" text, "Challenge Winner" text, "Challenge" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original airdate of the episode where the cha...
SELECT "Original Airdate" FROM table_3126 WHERE "Challenge" = 'Southwestern Exposure", a twelve-egg omelette'
### Instruction: CREATE TABLE table_31405 ( "Name" text, "#" real, "Position" text, "Height" text, "Weight ( lb. )" real, "Year" text, "Hometown" text, "Previous School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many hometowns a...
SELECT COUNT("Hometown") FROM table_31405 WHERE "Previous School" = 'Charis Prep'
### Instruction: CREATE TABLE table_27630 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" real, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT COUNT("Season") FROM table_27630 WHERE "Position" = '4th'
### Instruction: CREATE TABLE table_30187 ( "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. -- How many ...
SELECT COUNT("Original air date") FROM table_30187 WHERE "Production code" = '804'
### Instruction: CREATE TABLE table_30351 ( "Late Old English (Anglian)" text, "Early Middle English" text, "Late Middle English" text, "Early Modern English" text, "Modern English" text, "Example" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT "Early Middle English" FROM table_30351 WHERE "Example" = 'streht > "straight'
### Instruction: CREATE TABLE ROLES ( role_code VARCHAR, role_name VARCHAR ) CREATE TABLE Employees ( employee_id VARCHAR, role_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the employee ids for all employees with role name 'Human Resourc...
SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Human Resource" OR T2.role_name = "Manager"
### Instruction: CREATE TABLE table_2033 ( "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. -- In what year did the team compete in the 2nd, Northeast sea...
SELECT "Year" FROM table_2033 WHERE "League" = 'USL PDL' AND "Regular Season" = '2nd, Northeast'
### Instruction: CREATE TABLE table_name_26 ( score VARCHAR, partnering VARCHAR, opponents_in_the_final VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Score, when Partnering is 'Alexander Waske', and when Opponents In The Final is 'Rafael Nadal B...
SELECT score FROM table_name_26 WHERE partnering = "alexander waske" AND opponents_in_the_final = "rafael nadal bartolomé salvá-vidal"
### Instruction: CREATE TABLE table_11922 ( "Tallangatta DFL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of byes that has 13 losses and wins less...
SELECT COUNT("Byes") FROM table_11922 WHERE "Losses" = '13' AND "Wins" < '5'
### Instruction: CREATE TABLE table_48446 ( "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 total population for Saint-Antoine with an area squared...
SELECT SUM("Population") FROM table_48446 WHERE "Official Name" = 'saint-antoine' AND "Area km 2" > '6.43'
### Instruction: CREATE TABLE table_29856 ( "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 "Location Attendance" FROM table_29856 WHERE "Team" = 'Milwaukee'
### Instruction: CREATE TABLE table_64654 ( "Rank" real, "Name" text, "Status" text, "City" text, "Floors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What rank has a status of proposed, with 80 floors for Celestia Spaces 4? ### Response:
SELECT AVG("Rank") FROM table_64654 WHERE "Status" = 'proposed' AND "Floors" = '80' AND "Name" = 'celestia spaces 4'
### Instruction: CREATE TABLE table_63928 ( "Call sign" text, "Broadcast channel" real, "Digital PSIP" real, "Cable channel" real, "Network" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Digital PSIP for channels over 29 with cal...
SELECT MIN("Digital PSIP") FROM table_63928 WHERE "Call sign" = 'cftu-dt' AND "Broadcast channel" > '29'
### Instruction: CREATE TABLE table_6018 ( "Week" real, "Date" text, "Time" text, "Opponent" text, "Result" text, "NFL Recap" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the time of the game that had an NFL recap and a result of W 22...
SELECT "Time" FROM table_6018 WHERE "NFL Recap" = 'recap' AND "Result" = 'w 22–16'
### Instruction: CREATE TABLE table_51965 ( "State" text, "Norwegian Americans (2000)" real, "Percent (2000)" text, "Norwegian Americans (2009)" real, "Percent (2009)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which state has a Percent (2009) o...
SELECT "State" FROM table_51965 WHERE "Percent (2009)" = '6.2%'
### Instruction: CREATE TABLE table_46125 ( "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 "Location Attendance" FROM table_46125 WHERE "Team" = 'new jersey'
### Instruction: CREATE TABLE table_55453 ( "Team" text, "Class" text, "Day 1" text, "Day 2" text, "Behind" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the team with a class of gt2 and 3:59.820 on day 2, what was the behind? ### Response:
SELECT "Behind" FROM table_55453 WHERE "Class" = 'gt2' AND "Day 2" = '3:59.820'
### Instruction: CREATE TABLE table_15026 ( "Year" real, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the women's doubles for fred...
SELECT "Women's doubles" FROM table_15026 WHERE "Men's singles" = 'frederik kjærholm elsner'
### Instruction: CREATE TABLE table_34821 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( \u00a3 )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What player has 69-70-68-73=280 as the score? ### Response:...
SELECT "Player" FROM table_34821 WHERE "Score" = '69-70-68-73=280'
### Instruction: CREATE TABLE table_29870 ( "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 points" FROM table_29870 WHERE "Game" = '11'
### Instruction: CREATE TABLE table_15474 ( "Heat" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the time for Jean Luc Razakarivony with less than 3 heat and more than 2 lanes? #...
SELECT "Time" FROM table_15474 WHERE "Heat" < '3' AND "Lane" > '2' AND "Name" = 'jean luc razakarivony'
### Instruction: CREATE TABLE table_62889 ( "Name" text, "Tests" real, "Club" text, "Career caps" real, "Tour Apps" real, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of career caps for a full back, when tour Apps...
SELECT COUNT("Career caps") FROM table_62889 WHERE "Position" = 'full back' AND "Tour Apps" < '29'
### Instruction: CREATE TABLE table_12258 ( "Pick" real, "Player" text, "Team" text, "Position" text, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total pick number of the los angeles dodgers, which has a lhp position before 197...
SELECT COUNT("Pick") FROM table_12258 WHERE "Team" = 'los angeles dodgers' AND "Position" = 'lhp' AND "Year" < '1979'
### Instruction: CREATE TABLE table_49124 ( "Game" real, "Date" text, "Opponent" 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 provi...
SELECT "Date" FROM table_49124 WHERE "Opponent" = 'seattle'
### Instruction: CREATE TABLE table_21681 ( "Date" text, "Opponent" text, "Home / Away" 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 table...
SELECT "Score" FROM table_21681 WHERE "Record" = '2-5'
### Instruction: CREATE TABLE table_29728596_2 ( away_team VARCHAR, competition VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the away teams when the competition was the 1st republic of srpska football day and the home team w...
SELECT away_team FROM table_29728596_2 WHERE competition = "1st ``Republic of Srpska Football Day``" AND home_team = "U 14 Republic of Srpska"
### Instruction: CREATE TABLE table_23308 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT COUNT("Date") FROM table_23308 WHERE "Opponent" = 'Houston'
### Instruction: CREATE TABLE table_1370 ( "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 pack...
SELECT "Package/Option" FROM table_1370 WHERE "N\u00b0" = '543'
### Instruction: CREATE TABLE table_204_422 ( id number, "rank" number, "lane" number, "name" text, "nationality" text, "time" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- other than canada , name a country that had two athle...
SELECT "nationality" FROM table_204_422 WHERE "nationality" <> 'canada' GROUP BY "nationality" HAVING COUNT(*) = 2
### Instruction: CREATE TABLE table_24708 ( "Pos" real, "Team" text, "07 Pts" real, "08 Pts" real, "09 Pts" real, "Total Pts" real, "Total Pld" real, "Avg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the POS is 3, what is the 08 po...
SELECT "08 Pts" FROM table_24708 WHERE "Pos" = '3'
### Instruction: CREATE TABLE musical ( musical_id number, name text, year number, award text, category text, nominee text, result text ) CREATE TABLE actor ( actor_id number, name text, musical_id number, character text, duration text, age number ) -- Using valid ...
SELECT nominee FROM musical GROUP BY nominee ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_76491 ( "Date" text, "Opponent" text, "Score" text, "Leading Scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score has an Opponent of @ houston, and a Record of 2...
SELECT "Score" FROM table_76491 WHERE "Opponent" = '@ houston' AND "Record" = '2-0'
### Instruction: CREATE TABLE table_61443 ( "S.no." real, "Power Plant" text, "State" text, "Total Capacity (MW)" real, "Completion Schedule" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the completion schedule for himachal pradesh state w...
SELECT "Completion Schedule" FROM table_61443 WHERE "State" = 'himachal pradesh' AND "Total Capacity (MW)" = '800'
### Instruction: CREATE TABLE table_25800 ( "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 "Location Attendance" FROM table_25800 WHERE "Team" = 'Nets'
### Instruction: CREATE TABLE table_20685 ( "!Simple Present/Future" text, "Probable Future" text, "Simple Past" text, "Past Habitual" text, "Injunctive" text, "Imperative" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the injunctive for g...
SELECT "Injunctive" FROM table_20685 WHERE "Past Habitual" = 'गर्यो garyo ''he did'
### Instruction: CREATE TABLE table_204_246 ( id number, "department" text, "total deputies" number, "uninominal deputies" number, "plurinominal deputies" number, "special indigenous\nor campesino deputies" number, "senators" number ) -- Using valid SQLite, answer the following questions f...
SELECT "department" FROM table_204_246 ORDER BY "total deputies" DESC LIMIT 1
### Instruction: CREATE TABLE table_1808 ( "Year" real, "Lok Sabha" text, "Members of Parliament" text, "Party Won" text, "Winners % votes" text, "Trailing Party" text, "Trailing Party % votes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT MIN("Year") FROM table_1808 WHERE "Winners % votes" = '55.99%'
### Instruction: CREATE TABLE table_49341 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the average Attendance that has the Opponent of new orleans saints, and...
SELECT AVG("Attendance") FROM table_49341 WHERE "Opponent" = 'new orleans saints' AND "Week" > '12'
### Instruction: CREATE TABLE people ( people_id number, name text, height number, weight number, home town text ) CREATE TABLE perpetrator ( perpetrator_id number, people_id number, date text, year number, location text, country text, killed number, injured number )...
SELECT name FROM people WHERE NOT people_id IN (SELECT people_id FROM perpetrator)
### Instruction: CREATE TABLE table_77561 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team (League)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest round of Ian Cole, who played positi...
SELECT MAX("Round") FROM table_77561 WHERE "Position" = 'd' AND "Nationality" = 'united states' AND "Player" = 'ian cole'
### Instruction: CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) -- Using valid SQLite, answer the following questions for t...
SELECT Rank, COUNT(*) FROM captain WHERE age < 50 GROUP BY Rank
### Instruction: CREATE TABLE table_10514 ( "Edition" real, "Year" real, "Winner" text, "Runner-up" text, "Third" text, "Fourth" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the sum of year for edition more than 4 and winners of new yor...
SELECT SUM("Year") FROM table_10514 WHERE "Edition" > '4' AND "Winner" = 'new york red bulls'
### Instruction: CREATE TABLE table_27311 ( "Name" text, "Nationality" text, "Position" text, "Boston Breakers career" text, "Appearances" real, "Starts" real, "Minutes" real, "Goals" real, "Assists" real ) -- Using valid SQLite, answer the following questions for the tables provid...
SELECT MAX("Minutes") FROM table_27311 WHERE "Starts" = '11'
### Instruction: CREATE TABLE table_78348 ( "Player" text, "Pos." text, "From" real, "School/Country" text, "Rebs" real, "Asts" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average rebounds for players from 1976 and over 67 assists...
SELECT AVG("Rebs") FROM table_78348 WHERE "From" = '1976' AND "Asts" > '67'
### Instruction: CREATE TABLE table_33144 ( "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 scored 18.14 (12...
SELECT "Away team" FROM table_33144 WHERE "Away team score" = '18.14 (122)'
### Instruction: CREATE TABLE table_204_175 ( id number, "pos" text, "no." number, "driver" text, "team" text, "laps" number, "time/retired" text, "grid" number, "laps led" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT "points" FROM table_204_175 WHERE "driver" = 'tony kanaan'
### Instruction: CREATE TABLE table_201_25 ( id number, "party" text, "leader" text, "from" text, "to" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- compare the scottish national party to the conservative and determine which party had their leaders...
SELECT "party" FROM table_201_25 WHERE "party" IN ('scottish national party', 'conservative') GROUP BY "party" ORDER BY SUM("to" - "from") DESC LIMIT 1
### Instruction: CREATE TABLE table_27436 ( "City" text, "Population" real, "Registered voters" text, "Democratic" text, "Republican" text, "D\u2013R spread" text, "Other" text, "No party preference" text ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT "Population" FROM table_27436 WHERE "City" = 'Gilroy'
### Instruction: CREATE TABLE table_204_93 ( id number, "round" number, "pick" number, "player" text, "position" text, "nationality" text, "team" text, "college" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what team comes before hank ...
SELECT "team" FROM table_204_93 WHERE id = (SELECT id FROM table_204_93 WHERE "player" = 'hank stein') - 1
### Instruction: CREATE TABLE table_48465 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which game ...
SELECT "Game" FROM table_48465 WHERE "High rebounds" = 'chris andersen (12)'
### Instruction: CREATE TABLE table_44459 ( "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 the Place that has a To standard of 1, and a Score of 71-68-76=215? ### Response...
SELECT "Place" FROM table_44459 WHERE "To par" = '–1' AND "Score" = '71-68-76=215'
### Instruction: CREATE TABLE table_13305 ( "Period" text, "Internet Explorer" text, "Firefox" text, "Safari" text, "Opera" text, "Netscape" text, "Other Mozilla" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percentage of users were u...
SELECT "Other Mozilla" FROM table_13305 WHERE "Opera" = '2.29%'
### Instruction: CREATE TABLE table_24597 ( "Season no." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
SELECT "Season no." FROM table_24597 WHERE "Production code" = 'E2110'
### Instruction: CREATE TABLE table_9910 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me ...
SELECT "Location Attendance" FROM table_9910 WHERE "High points" = 'andrew bogut (17)'
### Instruction: CREATE TABLE table_63363 ( "Name" text, "Network" text, "Owner" text, "Launch date" text, "Channel ( BKK )" text, "Broadcasting area" text, "Transmitted area" text, "Broadcasting hours" text ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT "Network" FROM table_63363 WHERE "Name" = 'bbtv channel 7'
### Instruction: CREATE TABLE table_57974 ( "Episode" real, "Rating" real, "Share" real, "Rating/share (18-49)" text, "Rank (Timeslot)" real, "Rank (Night)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest timeslot rank when t...
SELECT MIN("Rank (Timeslot)") FROM table_57974 WHERE "Rating" < '2.6'
### Instruction: CREATE TABLE table_2679 ( "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 a...
SELECT "Score" FROM table_2679 WHERE "Record" = '31-29'
### Instruction: CREATE TABLE table_63674 ( "Game" real, "Date" text, "Opponent" 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 provi...
SELECT "Record" FROM table_63674 WHERE "Opponent" = 'new york'
### Instruction: CREATE TABLE table_41691 ( "Rank" real, "Province" text, "Population" real, "Area" real, "Density" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Density for the independencia province, with an area smaller than ...
SELECT MAX("Density") FROM table_41691 WHERE "Province" = 'independencia' AND "Area" < '2,007.4'
### Instruction: CREATE TABLE table_58069 ( "Tournament" text, "Winner" text, "Runner-up" text, "Score" text, "Third Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which winner won by a score of 6 7(4), 7 6(3), [11 9]? ### Response:
SELECT "Winner" FROM table_58069 WHERE "Score" = '6–7(4), 7–6(3), [11–9]'
### Instruction: CREATE TABLE table_24818 ( "Condition" text, "Prothrombin time" text, "Partial thromboplastin time" text, "Bleeding time" text, "Platelet count" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the bleeding time for the dissem...
SELECT COUNT("Bleeding time") FROM table_24818 WHERE "Condition" = 'Disseminated intravascular coagulation'
### Instruction: CREATE TABLE table_49583 ( "Nat." text, "Name" text, "Moving to" text, "Type" text, "Transfer window" text, "Transfer fee" text, "Source" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Nat with a mutual consent l...
SELECT "Nat." FROM table_49583 WHERE "Transfer fee" = 'free' AND "Type" = 'mutual consent loan return'
### Instruction: CREATE TABLE table_18909 ( "Tournament" text, "Matches" real, "Wins Olimpia" real, "Empates" real, "Wins Cerro" real, "Goals Olimpia" real, "Goals Cerro" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the number of ...
SELECT "Matches" FROM table_18909 WHERE "Goals Olimpia" = '149'