instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_13324 ( "Rank" real, "Team" text, "Men's" real, "Women's" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times is the team nu bulldogs and the women's is less than 19? ### Response:
SELECT COUNT("Rank") FROM table_13324 WHERE "Team" = 'nu bulldogs' AND "Women's" < '19'
### Instruction: CREATE TABLE table_42622 ( "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 is the Points with a Play...
SELECT COUNT("Points") FROM table_42622 WHERE "Played" > '14'
### Instruction: CREATE TABLE table_203_157 ( id number, "year" number, "film" text, "role" text, "language" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what film game before ter meri kahaani ? ### Response:
SELECT "film" FROM table_203_157 WHERE id = (SELECT id FROM table_203_157 WHERE "film" = 'teri meri kahaani') - 1
### Instruction: CREATE TABLE table_55442 ( "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_55442 WHERE "Away team" = 'collingwood'
### Instruction: CREATE TABLE table_5627 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Team classification" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is th...
SELECT "General classification" FROM table_5627 WHERE "Team classification" = 'mapei-clas' AND "Stage" = '12'
### Instruction: CREATE TABLE table_4809 ( "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 games feature hawthorn ...
SELECT COUNT("Crowd") FROM table_4809 WHERE "Away team" = 'hawthorn'
### Instruction: CREATE TABLE table_36143 ( "Date" text, "Site" text, "Sport" text, "Winning team" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sport played in Iowa City on February 14, 2009? ### Response:
SELECT "Sport" FROM table_36143 WHERE "Site" = 'iowa city' AND "Date" = 'february 14, 2009'
### Instruction: CREATE TABLE table_203_436 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was china 's average position in the asian championships betwe...
SELECT AVG("position") FROM table_203_436 WHERE "competition" = 'asian championships'
### Instruction: CREATE TABLE table_204_364 ( id number, "year" number, "competition" text, "venue" text, "position" text, "event" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- was germany or japan in 8th place in 2007 ? ###...
SELECT "venue" FROM table_204_364 WHERE "position" = 8 AND "year" = 2007
### Instruction: CREATE TABLE table_31199 ( "Skip (Club)" text, "W" real, "L" real, "PF" real, "PA" real, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ...
SELECT MAX("L") FROM table_31199
### Instruction: CREATE TABLE table_45901 ( "Name" text, "Platform" text, "Supported databases" text, "Tracking Method" text, "Latest stable release" text, "License" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which tracking method has a late...
SELECT "Tracking Method" FROM table_45901 WHERE "Latest stable release" = '2.23-05'
### Instruction: CREATE TABLE table_30464 ( "Stage" real, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Young rider classification" text, "Team classification" text ) -- Using valid SQLite, answer the following questions for t...
SELECT COUNT("Stage") FROM table_30464 WHERE "Winner" = 'Svein Tuft'
### Instruction: CREATE TABLE table_203_218 ( 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 finished m...
SELECT COUNT(*) FROM table_203_218 WHERE "laps" > 150
### Instruction: CREATE TABLE table_40625 ( "Japanese name" text, "Kana" text, "Hanja / Kanji" text, "Korean name" text, "Hangul" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Kana of the Province with a Korean name of Chungcheong-Namdo...
SELECT "Kana" FROM table_40625 WHERE "Korean name" = 'chungcheong-namdo'
### Instruction: CREATE TABLE table_name_41 ( block VARCHAR, name VARCHAR, spike VARCHAR, weight VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Block(s), when Spike is less than 341, when Weight is greater than 82, and whe...
SELECT COUNT(block) FROM table_name_41 WHERE spike < 341 AND weight > 82 AND name = "theodoros baev"
### Instruction: CREATE TABLE table_train_1 ( "id" int, "sinusal_rhythm" bool, "severe_sepsis" bool, "hemodynamic_instability" bool, "social_security" bool, "septic_shock" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT * FROM table_train_1 WHERE hemodynamic_instability = 0
### Instruction: CREATE TABLE table_67893 ( "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 average Total has a Rank of 3 and a Bronze award larger than 3? ### ...
SELECT AVG("Total") FROM table_67893 WHERE "Rank" = '3' AND "Bronze" > '3'
### Instruction: CREATE TABLE table_48092 ( "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. -- Which Round has a Location of bahi...
SELECT AVG("Round") FROM table_48092 WHERE "Location" = 'bahia, brazil'
### Instruction: CREATE TABLE table_25506 ( "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 "Date" FROM table_25506 WHERE "Team" = '@ Indiana'
### Instruction: CREATE TABLE table_66653 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With a less than 4 rank, and a time less than 24.42 what is the smallest lane? ### Respons...
SELECT MIN("Lane") FROM table_66653 WHERE "Rank" < '4' AND "Time" < '24.42'
### Instruction: CREATE TABLE table_16360 ( "No. in series" real, "No. in season" real, "Title" text, "Director" text, "Writer(s)" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did the ...
SELECT "Original air date" FROM table_16360 WHERE "Title" = 'Duet for One'
### Instruction: CREATE TABLE table_55150 ( "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 average crowd size ...
SELECT SUM("Crowd") FROM table_55150 WHERE "Venue" = 'princes park'
### Instruction: CREATE TABLE table_33509 ( "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 smallest crowd at v...
SELECT MIN("Crowd") FROM table_33509 WHERE "Venue" = 'victoria park'
### Instruction: CREATE TABLE table_48785 ( "Date" text, "Opponents" text, "H / A" text, "Result F \u2013 A" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result F-A on 5 August 1990? ### Response:
SELECT "Result F \u2013 A" FROM table_48785 WHERE "Date" = '5 august 1990'
### Instruction: CREATE TABLE table_30705 ( "Track no." real, "Track" text, "Original Artist" text, "Soloist(s)" text, "Vocal Percussionist" text, "Arranger(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the vocal percussionist when ...
SELECT "Vocal Percussionist" FROM table_30705 WHERE "Original Artist" = 'Stevie Wonder'
### Instruction: CREATE TABLE table_33688 ( "Name" text, "Bullet" text, "Length" text, "Base" text, "Shoulder" text, "Neck" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the gun with a shoulder that measures 10.688 (.420)? ...
SELECT "Name" FROM table_33688 WHERE "Shoulder" = '10.688 (.420)'
### Instruction: CREATE TABLE table_49617 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Margin of Victory, when Tournament is 'Women's Kemper O...
SELECT "Margin of victory" FROM table_49617 WHERE "Tournament" = 'women''s kemper open'
### Instruction: CREATE TABLE table_16572 ( "Character" text, "Portrayed by" text, "First appearance" text, "Last appearance" text, "Duration" text, "Episodes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which actors first appeared in episode...
SELECT "Portrayed by" FROM table_16572 WHERE "First appearance" = 'Blink" 1, 2, 3'
### Instruction: CREATE TABLE table_32464 ( "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. -- Where was the game when Colling...
SELECT "Venue" FROM table_32464 WHERE "Away team" = 'collingwood'
### Instruction: CREATE TABLE table_39750 ( "Office" text, "Democratic ticket" text, "Republican ticket" text, "Socialist ticket" text, "Workers ticket" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name on the Socialist ticket when the...
SELECT "Socialist ticket" FROM table_39750 WHERE "Democratic ticket" = 'george k. shuler'
### Instruction: CREATE TABLE table_34141 ( "Position" text, "Number" real, "Name" text, "Height" text, "Weight" text, "Class" text, "Hometown" text, "Games\u2191" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the hometown of th...
SELECT "Hometown" FROM table_34141 WHERE "Position" = 'pr'
### Instruction: CREATE TABLE table_2241 ( "English name" text, "Thai name" text, "Abbr." text, "Transcription" text, "Sanskrit word" text, "Zodiac sign" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the zodiac sing for the month whose t...
SELECT "Zodiac sign" FROM table_2241 WHERE "Transcription" = 'karakadakhom'
### Instruction: CREATE TABLE table_33497 ( "Date" text, "Name" text, "Party" text, "Province" text, "Details" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which province had a liberal party member on December 31, 2006? ### Response:
SELECT "Province" FROM table_33497 WHERE "Party" = 'liberal' AND "Date" = 'december 31, 2006'
### Instruction: CREATE TABLE table_30025 ( "Year" real, "Location" text, "Distance (miles)" real, "Rider Names" text, "Horse Name" text, "Best-Conditioned Horse" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the distance (in miles) of...
SELECT "Distance (miles)" FROM table_30025 WHERE "Horse Name" = 'Koona'
### Instruction: CREATE TABLE table_52866 ( "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 watched the gam...
SELECT SUM("Crowd") FROM table_52866 WHERE "Venue" = 'lake oval'
### Instruction: CREATE TABLE table_63519 ( "Year" real, "Home Team" text, "Away Team" text, "Winner" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the winner when the home team is sioux falls storm and the year is earlier than...
SELECT "Winner" FROM table_63519 WHERE "Home Team" = 'sioux falls storm' AND "Year" < '2012'
### Instruction: CREATE TABLE table_20970 ( "Runs" text, "Wicket" text, "Batting partners" text, "Batting team" text, "Fielding team" text, "Venue" text, "Season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many runs when bangladesh w...
SELECT "Runs" FROM table_20970 WHERE "Fielding team" = 'Bangladesh'
### Instruction: CREATE TABLE table_6423 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Attendance after Week 7 at Tiger S...
SELECT COUNT("Attendance") FROM table_6423 WHERE "Game Site" = 'tiger stadium' AND "Week" > '7'
### Instruction: CREATE TABLE table_35994 ( "Game" real, "January" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score has a Game larger than 47, and a January smaller than 25? ...
SELECT "Score" FROM table_35994 WHERE "Game" > '47' AND "January" < '25'
### Instruction: CREATE TABLE table_55233 ( "Match" real, "Date" text, "Competition or tour" text, "Ground" text, "Opponent" text, "Score1" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date ground A and Cartagena as an opponent? ...
SELECT "Date" FROM table_55233 WHERE "Ground" = 'a' AND "Opponent" = 'cartagena'
### Instruction: CREATE TABLE table_55514 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the constructor when the grid is more than 23 and the driver is piercarlo g...
SELECT "Constructor" FROM table_55514 WHERE "Grid" > '23' AND "Driver" = 'piercarlo ghinzani'
### Instruction: CREATE TABLE table_203_713 ( id number, "s.no." number, "name of kingdom" text, "name of king" text, "no. of villages" number, "capital" text, "names of districts" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- he was the ki...
SELECT "name of king" FROM table_203_713 WHERE "name of kingdom" = 'sihag'
### Instruction: CREATE TABLE table_59675 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the election result before 2004 where Eric Cantor was the incumbent?...
SELECT "Results" FROM table_59675 WHERE "First elected" < '2004' AND "Incumbent" = 'eric cantor'
### Instruction: CREATE TABLE table_46211 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Points difference" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Drawn ha...
SELECT "Drawn" FROM table_46211 WHERE "Points for" = '782'
### Instruction: CREATE TABLE table_21714 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1st participle of the verb whose 4th participle is ha...
SELECT "Part 1" FROM table_21714 WHERE "Part 4" = 'haitans'
### Instruction: CREATE TABLE table_71863 ( "First game" real, "Played" real, "Drawn" real, "Lost" real, "Percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many games were played by a team that won 0.00% of their games and 0 draws? ##...
SELECT SUM("Played") FROM table_71863 WHERE "Percentage" = '0.00%' AND "Drawn" < '0'
### Instruction: CREATE TABLE company ( rank VARCHAR, company VARCHAR, market_value VARCHAR, main_industry VARCHAR, sales_billion VARCHAR, profits_billion VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- find the rank, company names, market val...
SELECT rank, company, market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion, profits_billion
### Instruction: CREATE TABLE table_66202 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In the final against Ashley Harkleroad what was the ...
SELECT "Score" FROM table_66202 WHERE "Opponent in the final" = 'ashley harkleroad'
### Instruction: CREATE TABLE table_204_120 ( id number, "rank" number, "athlete" text, "country" text, "time" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what number of countries placed ahead of the united states ? ### Respon...
SELECT COUNT(DISTINCT ("country")) FROM table_204_120 WHERE id < (SELECT id FROM table_204_120 WHERE "country" = 'united states')
### Instruction: CREATE TABLE table_39584 ( "Player" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the highest number of extra points scored by Albert Herrnstein, w...
SELECT MAX("Extra points") FROM table_39584 WHERE "Player" = 'albert herrnstein' AND "Points" > '15'
### Instruction: CREATE TABLE table_57498 ( "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 name of the away te...
SELECT "Away team" FROM table_57498 WHERE "Home team" = 'collingwood'
### Instruction: CREATE TABLE table_name_25 ( class VARCHAR, laps VARCHAR, year VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps? ### R...
SELECT class AS pos FROM table_name_25 WHERE year > 1997 AND team = "corvette racing" AND class = "gt1" AND laps = 327
### Instruction: CREATE TABLE table_58952 ( "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. -- What was the highest attendance at a game that...
SELECT MAX("Attendance") FROM table_58952 WHERE "Game site" = 'tulane stadium'
### Instruction: CREATE TABLE table_63724 ( "Date" text, "Show" text, "Venue" text, "City" text, "Tickets sold / available" text, "Gross revenue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of tickets sold and available for...
SELECT "Tickets sold / available" FROM table_63724 WHERE "Venue" = 'long beach arena'
### Instruction: CREATE TABLE table_5157 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Grid has a Driver of cristiano da matta, and Points smaller than ...
SELECT SUM("Grid") FROM table_5157 WHERE "Driver" = 'cristiano da matta' AND "Points" < '33'
### Instruction: CREATE TABLE table_14132239_3 ( defensive VARCHAR, rookie VARCHAR, offensive VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the defensive award winner when the rookie award was given to Daryl Veltman and the offensive award was g...
SELECT defensive FROM table_14132239_3 WHERE rookie = "Daryl Veltman" AND offensive = "Mark Steenhuis"
### Instruction: CREATE TABLE table_201_31 ( id number, "number" number, "author" text, "first line" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which author wrote two loves i have , of comfort and despair , and on a day -lrb- alack...
SELECT "author" FROM table_201_31 WHERE "first line" = '"two loves i have, of comfort and despair"'
### Instruction: CREATE TABLE table_63942 ( "Rank" real, "Lane" real, "Athlete" text, "Time ( sec )" real, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which athlete is ranked less than 5 with time over 11.22? ### Response:
SELECT "Athlete" FROM table_63942 WHERE "Time ( sec )" > '11.22' AND "Rank" < '5'
### Instruction: CREATE TABLE table_56582 ( "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 Away Team score of ...
SELECT "Away team score" FROM table_56582 WHERE "Away team" = 'north melbourne'
### Instruction: CREATE TABLE table_27140 ( "Player" text, "Minutes" real, "Field Goals" real, "Rebounds" real, "Assists" real, "Steals" real, "Blocks" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many field goals di...
SELECT "Field Goals" FROM table_27140 WHERE "Player" = 'Stacey Thomas'
### Instruction: CREATE TABLE table_204_536 ( id number, "event" text, "bowling center" text, "city" text, "dates" text, "winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what city comes next after denver , colorado ### Response:
SELECT "city" FROM table_204_536 WHERE id = (SELECT id FROM table_204_536 WHERE "city" = 'denver, colorado') + 1
### Instruction: CREATE TABLE table_68480 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of years for talbot-lago t26c and points less than 3 ### Response...
SELECT COUNT("Year") FROM table_68480 WHERE "Chassis" = 'talbot-lago t26c' AND "Points" < '3'
### Instruction: CREATE TABLE table_232458_1 ( population__2010_census_ VARCHAR, pop_density__per_km²_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the population density is 7,447.32, what is the population total number? ### Response:
SELECT COUNT(population__2010_census_) FROM table_232458_1 WHERE pop_density__per_km²_ = "7,447.32"
### Instruction: CREATE TABLE table_29354 ( "Programs" text, "World" real, "Africa" real, "Americas" real, "Asia" real, "Australasia" real, "Europe" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many program data on Asia was written if ...
SELECT COUNT("Asia") FROM table_29354 WHERE "Americas" = '14'
### Instruction: CREATE TABLE table_204_539 ( id number, "date" text, "name" text, "moving from" text, "moving to" text, "fee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the only player to be transferred for a fee of 24,000,000 ? #...
SELECT "name" FROM table_204_539 WHERE "fee" = 24000000
### Instruction: CREATE TABLE table_15778 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the opponent the Seattle Seahawks playe...
SELECT "Opponent" FROM table_15778 WHERE "Record" = '1-3'
### Instruction: CREATE TABLE table_31673 ( "Year" text, "Broadcast date" text, "BBC One total viewing" text, "BBC One Rank" text, "BBC Two total viewing" text, "BBC Two Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what year was BBC 2...
SELECT "Year" FROM table_31673 WHERE "BBC Two Rank" = '13th'
### Instruction: CREATE TABLE table_56089 ( "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 score of the team ...
SELECT "Home team score" FROM table_56089 WHERE "Away team" = 'fitzroy'
### Instruction: CREATE TABLE table_74316 ( "Track no." real, "Track" text, "Original Artist" text, "Soloist(s)" text, "Vocal Percussionist" text, "Arranger(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the arranger for 'I KIssed a G...
SELECT "Arranger(s)" FROM table_74316 WHERE "Track" = 'I Kissed a Girl'
### Instruction: CREATE TABLE table_train_227 ( "id" int, "gender" string, "diabetic" string, "allergic_to_study_products" bool, "hba1c" float, "a1c" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- a diagnosis...
SELECT * FROM table_train_227 WHERE diabetic = 'i'
### Instruction: CREATE TABLE table_6458 ( "Race" text, "Trophy" text, "Rider(s)" text, "Machine" text, "Year" real, "Average speed" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What machine did susan jenness trophy earn the t...
SELECT "Machine" FROM table_6458 WHERE "Trophy" = 'susan jenness trophy'
### Instruction: CREATE TABLE table_53752 ( "Total fat" text, "Saturated fat" text, "Monounsaturated fat" text, "Polyunsaturated fat" text, "Smoke point" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the polyunsaturated fat with a saturated fa...
SELECT "Polyunsaturated fat" FROM table_53752 WHERE "Saturated fat" = '25g'
### Instruction: CREATE TABLE table_30539 ( "Season" text, "Sport" text, "Tournament Structure" text, "# of Divisions" real, "1st Tournament" real, "2011-2012 State Tournament Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many fir...
SELECT COUNT("1st Tournament") FROM table_30539 WHERE "Sport" = 'Bowling'
### Instruction: CREATE TABLE table_43263 ( "Week of" text, "Tier" text, "Winner" text, "Runner-up" text, "Semi finalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the semi finalists when the runner-up was Alexandra Fusai Wiltrud Prob...
SELECT "Semi finalists" FROM table_43263 WHERE "Runner-up" = 'alexandra fusai wiltrud probst'
### Instruction: CREATE TABLE county_public_safety ( name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR ) CREATE TABLE city ( name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the name...
SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)
### Instruction: CREATE TABLE table_204_431 ( id number, "yacht" text, "nation" text, "owner" text, "skipper" text, "launch year" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which yacht launched first : cougar ii or aurora ? ### Response:...
SELECT "yacht" FROM table_204_431 WHERE "yacht" IN ('cougar ii', 'aurora') ORDER BY "launch year" LIMIT 1
### Instruction: CREATE TABLE table_5002 ( "Outcome" text, "Date" text, "Surface" text, "Partnered with" text, "Opponents in Final" text, "Score in Final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what Date was the Score in Final 6 3, 6 ...
SELECT "Date" FROM table_5002 WHERE "Score in Final" = '6–3, 6–3'
### Instruction: CREATE TABLE table_75707 ( "Goal" real, "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Result has a Score of 1 0, and a Goal of 16? ### Response:
SELECT "Result" FROM table_75707 WHERE "Score" = '1–0' AND "Goal" = '16'
### Instruction: CREATE TABLE table_27573 ( "Player" text, "Games Played" real, "Rebounds" real, "Assists" real, "Steals" real, "Blocks" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many rebounds did Tammy Sutton-Brown h...
SELECT "Rebounds" FROM table_27573 WHERE "Player" = 'Tammy Sutton-Brown'
### Instruction: CREATE TABLE table_57632 ( "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. -- Who was the home team that play...
SELECT "Home team" FROM table_57632 WHERE "Away team" = 'hawthorn'
### Instruction: CREATE TABLE table_28511558_2 ( original_air_date__us_ VARCHAR, directed_by VARCHAR, written_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date did the episode directed by Victor Cook and Written by Brat Jennett air in the U.S.?...
SELECT original_air_date__us_ FROM table_28511558_2 WHERE directed_by = "Victor Cook" AND written_by = "Brat Jennett"
### Instruction: CREATE TABLE table_23655 ( "Season" real, "Division" text, "Coach" text, "Overall Record" text, "Conference Record" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different results ...
SELECT COUNT("Result") FROM table_23655 WHERE "Conference Record" = '4-3'
### Instruction: CREATE TABLE table_51981 ( "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 crowd size for the...
SELECT "Crowd" FROM table_51981 WHERE "Away team" = 'footscray'
### Instruction: CREATE TABLE INVESTORS ( investor_id VARCHAR ) CREATE TABLE TRANSACTIONS ( investor_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the ids of the investors who have at least two transactions. ### Response:
SELECT T2.investor_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id HAVING COUNT(*) >= 2
### Instruction: CREATE TABLE table_22645 ( "HR no." text, "HR name" text, "CR no." real, "LMS no." real, "Built" text, "Works" text, "Withdrawn" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When river ness is the hr name how many builts a...
SELECT COUNT("Built") FROM table_22645 WHERE "HR name" = 'River Ness'
### Instruction: CREATE TABLE table_name_10 ( poll VARCHAR, wk_13 VARCHAR, wk_10 VARCHAR, wk_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which poll had a week 10 larger than 2, a week 2 of exactly 12, and a week 13 of 8? ### Response:
SELECT poll FROM table_name_10 WHERE wk_10 > 2 AND wk_2 = "12" AND wk_13 = 8
### Instruction: CREATE TABLE table_name_18 ( masculine_u_stems VARCHAR, neuter_a_stems VARCHAR, masculine_a_stems VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the u form of the word with a neuter form of skip and a masculine a-ending of fisker...
SELECT masculine_u_stems FROM table_name_18 WHERE neuter_a_stems = "skip" AND masculine_a_stems = "fisker"
### Instruction: CREATE TABLE table_203_836 ( id number, "title" text, "year" number, "platforms" text, "developer" text, "publisher" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- according to the table , what is the last titl...
SELECT "title" FROM table_203_836 WHERE "developer" = 'spicy horse' ORDER BY "year" DESC LIMIT 1
### Instruction: CREATE TABLE table_15292 ( "First game" real, "Played" real, "Drawn" real, "Lost" real, "Percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times was there a draw when played is more than 4 and the first game is in ...
SELECT "Drawn" FROM table_15292 WHERE "Played" > '4' AND "First game" = '2000'
### Instruction: CREATE TABLE table_203_564 ( id number, "hand" text, "1 credit" number, "2 credits" number, "3 credits" number, "4 credits" number, "5 credits" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the number of credits returned ...
SELECT "1 credit" FROM table_203_564 WHERE "hand" = 'royal flush'
### Instruction: CREATE TABLE table_22278 ( "Departure" text, "Going to" text, "Calling at" text, "Arrival" text, "Operator" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when does the train arriving at stamford east at 11.45 departure ### Respon...
SELECT "Departure" FROM table_22278 WHERE "Arrival" = '11.45' AND "Going to" = 'Stamford East'
### Instruction: CREATE TABLE table_31453 ( "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 COUNT("Date") FROM table_31453 WHERE "Game" = '2'
### Instruction: CREATE TABLE table_name_48 ( commercial_operation VARCHAR, gross_capacity VARCHAR, electricity_grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Commercial Operation has both a Gross Capacity of 417 mw and an Electricity Grid 27....
SELECT commercial_operation FROM table_name_48 WHERE gross_capacity = "417 mw" AND electricity_grid = "27.12.1971"
### Instruction: CREATE TABLE table_33549 ( "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. -- Who was the away team for the g...
SELECT "Away team" FROM table_33549 WHERE "Venue" = 'victoria park'
### Instruction: CREATE TABLE table_8597 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Points difference" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When there were...
SELECT "Points difference" FROM table_8597 WHERE "Points for" = '554'
### Instruction: CREATE TABLE table_25077 ( "Year" real, "Network" text, "Race caller" text, "s Host" text, "s Analyst" text, "Reporters" text, "Trophy presentation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are the reporters for th...
SELECT "Reporters" FROM table_25077 WHERE "Year" = '1984'
### Instruction: CREATE TABLE table_14006_1 ( bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the bleeding time with partial thromboplastin time being unaffected and condition be...
SELECT bleeding_time FROM table_14006_1 WHERE partial_thromboplastin_time = "Unaffected" AND condition = "Liver failure , early"
### Instruction: CREATE TABLE table_57229 ( "Rank" real, "Name" text, "Nation" text, "SP+FS" real, "Points" real, "Places" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of points for east germany, and a Places of 88? ### Re...
SELECT SUM("Points") FROM table_57229 WHERE "Nation" = 'east germany' AND "Places" = '88'
### Instruction: CREATE TABLE table_18033 ( "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. -- In what week was November 27, 1977? ### Resp...
SELECT MAX("Week") FROM table_18033 WHERE "Date" = 'November 27, 1977'
### Instruction: CREATE TABLE table_18744 ( "Rank" real, "Name" text, "City" text, "Region" text, "Height (m)" real, "Height (ft)" real, "Floors" real, "Estimated Completion" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many city w...
SELECT COUNT("City") FROM table_18744 WHERE "Name" = 'Providence Tower'