instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_train_46 ( "id" int, "bleeding" int, "active_infection" bool, "hypotension" bool, "burn_injury" int, "hypertension" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- age >= 18 ### Response:
SELECT * FROM table_train_46 WHERE age >= 18
### Instruction: CREATE TABLE table_18611 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the first elected for south carolina 4? ### Response:
SELECT "First elected" FROM table_18611 WHERE "District" = 'South Carolina 4'
### Instruction: CREATE TABLE table_74496 ( "Pick #" real, "MLS team" text, "Player" text, "Position" text, "Affiliation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position has UCLA pick that is larger than #47? ### Response:
SELECT "Position" FROM table_74496 WHERE "Pick #" > '47' AND "Affiliation" = 'ucla'
### Instruction: CREATE TABLE table_9438 ( "Institution" text, "Location" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Team Nickname" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the institution when the location is big rapids, michigan? ### Response:
SELECT "Institution" FROM table_9438 WHERE "Location" = 'big rapids, michigan'
### Instruction: CREATE TABLE table_2324 ( "School" text, "Location(s)" text, "Control" text, "Type" text, "Enrollment (2012)" real, "Founded" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When western carolina university is the school what is the control? ### Response:
SELECT "Control" FROM table_2324 WHERE "School" = 'Western Carolina University'
### Instruction: CREATE TABLE table_23034 ( "Application" text, "Latest release date and version" text, "Developed by" text, "Platforms" text, "Mainly Used For" text, "License" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the license for e-on vue ### Response:
SELECT "License" FROM table_23034 WHERE "Application" = 'E-on Vue'
### Instruction: CREATE TABLE table_204_911 ( id number, "album / name" text, "artist(s)" text, "label" text, "role/credit" text, "date" text, "chart#" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which song is last on the list ? ### Response:
SELECT "album / name" FROM table_204_911 ORDER BY id DESC LIMIT 1
### Instruction: CREATE TABLE table_204_158 ( id number, "official name" text, "designation" text, "area km2" number, "population" number, "parish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which municipality has the most number of people who reside in it ? ### Response:
SELECT "official name" FROM table_204_158 ORDER BY "population" DESC LIMIT 1
### Instruction: CREATE TABLE table_70708 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Pos." text, "Class Pos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The Le Mans Porsche team Joest Racing is in which class? ### Response:
SELECT "Class" FROM table_70708 WHERE "Team" = 'le mans porsche team joest racing'
### Instruction: CREATE TABLE table_38270 ( "NTFA Div 2" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Draws have Wins larger than 14? ### Response:
SELECT SUM("Draws") FROM table_38270 WHERE "Wins" > '14'
### Instruction: CREATE TABLE table_204_981 ( id number, "ep#" number, "title" text, "broadcast date" text, "written by" text, "directed by" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- total number of episodes written or co written by bill dial ### Response:
SELECT COUNT("ep#") FROM table_204_981 WHERE "written by" = 'bill dial'
### Instruction: CREATE TABLE table_204_495 ( id number, "date" text, "opponent" text, "venue" text, "result" text, "attendance" number, "scorers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which games has the largest amount of people attending ? ### Response:
SELECT "date" FROM table_204_495 ORDER BY "attendance" DESC LIMIT 1
### Instruction: CREATE TABLE table_69230 ( "Race Title" text, "Circuit" text, "City / State" text, "Date" text, "Winner" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the title of the race at Oran Park Raceway? ### Response:
SELECT "Race Title" FROM table_69230 WHERE "Circuit" = 'oran park raceway'
### Instruction: CREATE TABLE table_53623 ( "Year" real, "Competition Description" text, "Location" text, "Apparatus" text, "Score-Final" real, "Score-Qualifying" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which competition description's apparatus was ribbon? ### Response:
SELECT "Competition Description" FROM table_53623 WHERE "Apparatus" = 'ribbon'
### Instruction: CREATE TABLE table_65535 ( "School" text, "Location" text, "Mascot" text, "Size" real, "IHSAA Class" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which IHSAA Class has a Size larger than 511? ### Response:
SELECT "IHSAA Class" FROM table_65535 WHERE "Size" > '511'
### Instruction: CREATE TABLE table_name_83 ( week INTEGER, result VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Week when the result was w 28 20, and there were more than 46,888 in attendance? ### Response:
SELECT AVG(week) FROM table_name_83 WHERE result = "w 28–20" AND attendance > 46 OFFSET 888
### Instruction: CREATE TABLE table_19962 ( "No. in season" real, "No. disc" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote the episode directed by Peter Woeste? ### Response:
SELECT "Written by" FROM table_19962 WHERE "Directed by" = 'Peter Woeste'
### Instruction: CREATE TABLE table_3246 ( "Round" real, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the circuit for round 4? ### Response:
SELECT "Circuit" FROM table_3246 WHERE "Round" = '4'
### Instruction: CREATE TABLE table_14788 ( "Date" text, "Location" text, "Lineup" text, "Assist/pass" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the lineup for washington dc ### Response:
SELECT "Lineup" FROM table_14788 WHERE "Location" = 'washington dc'
### Instruction: CREATE TABLE table_9534 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Round" text, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Location of the match against Bob Stines? ### Response:
SELECT "Location" FROM table_9534 WHERE "Opponent" = 'bob stines'
### Instruction: CREATE TABLE table_204_747 ( id number, "season" text, "skip" text, "third" text, "second" text, "lead" text, "events" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the only season where kevin martin was the skip ? ### Response:
SELECT "season" FROM table_204_747 WHERE "skip" = 'kevin martin'
### Instruction: CREATE TABLE table_46074 ( "Rank" real, "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 rank average when the gold medals are less than 0? ### Response:
SELECT AVG("Rank") FROM table_46074 WHERE "Gold" < '0'
### Instruction: CREATE TABLE table_61266 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Total, when Finish is 'T47'? ### Response:
SELECT AVG("Total") FROM table_61266 WHERE "Finish" = 't47'
### Instruction: CREATE TABLE table_52781 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of the game played in the 2012 Africa Cup of Nations? ### Response:
SELECT "Score" FROM table_52781 WHERE "Competition" = '2012 africa cup of nations'
### Instruction: CREATE TABLE table_204_538 ( id number, "pos." number, "driver" text, "co-driver" text, "car" text, "time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- luis serrado and jose camacho both drove what time of car in the race ? ### Response:
SELECT "car" FROM table_204_538 WHERE "driver" = 'luis serrado'
### Instruction: CREATE TABLE table_60590 ( "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Report has a Winning driver of mario razzauti? ### Response:
SELECT "Report" FROM table_60590 WHERE "Winning driver" = 'mario razzauti'
### Instruction: CREATE TABLE table_name_78 ( karen_handel VARCHAR, poll_source VARCHAR, john_oxendine VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%? ### Response:
SELECT karen_handel FROM table_name_78 WHERE poll_source = "insideradvantage" AND john_oxendine = "15%"
### Instruction: CREATE TABLE table_53460 ( "Area in m\u00b2" text, "Completion" text, "City" text, "Country" text, "Denomination" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What city was completed in 1910-1978? ### Response:
SELECT "City" FROM table_53460 WHERE "Completion" = '1910-1978'
### Instruction: CREATE TABLE table_204_297 ( 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. -- how many countries had at least 2 total medals ? ### Response:
SELECT COUNT("nation") FROM table_204_297 WHERE "total" >= 2
### Instruction: CREATE TABLE table_53553 ( "Name" text, "Position" text, "From (Club)" text, "Date Joined" text, "Debut" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What round was the debut of defender Stephen Laybutt? ### Response:
SELECT "Debut" FROM table_53553 WHERE "Position" = 'defender' AND "Name" = 'stephen laybutt'
### Instruction: CREATE TABLE table_name_38 ( losses INTEGER, place VARCHAR, wins VARCHAR, ties VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest number of Losses when the number of Wins is less than 4, the number of Tie is 2, and the Place is 5? ### Response:
SELECT MIN(losses) FROM table_name_38 WHERE wins < 4 AND ties = 2 AND place = 5
### Instruction: CREATE TABLE table_18588 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what year was Leo E. Allen first elected? ### Response:
SELECT "First elected" FROM table_18588 WHERE "Incumbent" = 'Leo E. Allen'
### Instruction: CREATE TABLE table_name_50 ( result VARCHAR, opening VARCHAR, moves VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the result when there's more than 41 moves with an opening of c42 petrov's defence in 2007? ### Response:
SELECT result FROM table_name_50 WHERE moves > 41 AND year = 2007 AND opening = "c42 petrov's defence"
### Instruction: CREATE TABLE table_25329 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Cowboys points" real, "Opponents" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the record for arizona ### Response:
SELECT "Record" FROM table_25329 WHERE "Opponent" = 'Arizona'
### Instruction: CREATE TABLE table_70215 ( "Currency" text, "Code" text, "Entry ERM II" text, "Central rate" text, "Official target date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which currency has a central rate of 3.45280? ### Response:
SELECT "Currency" FROM table_70215 WHERE "Central rate" = '3.45280'
### Instruction: CREATE TABLE table_45654 ( "Class" text, "Team" text, "Driver" text, "Chassis \u2013 Engine" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Team had 40 Laps in C1 Class? ### Response:
SELECT "Team" FROM table_45654 WHERE "Class" = 'c1' AND "Laps" = '40'
### Instruction: CREATE TABLE table_77033 ( "Position" real, "Driver / Passenger" text, "Equipment" text, "Points" real, "Wins" text, "Second" text, "Third" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the highest points when the second was 4? ### Response:
SELECT MAX("Points") FROM table_77033 WHERE "Second" = '4'
### Instruction: CREATE TABLE table_59391 ( "Competition" text, "Round" text, "Date and time" text, "Opponent team" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Competition, when Round is 'Group A - Match 1'? ### Response:
SELECT "Competition" FROM table_59391 WHERE "Round" = 'group a - match 1'
### Instruction: CREATE TABLE table_63099 ( "Draw" real, "Singer" text, "Song" text, "Points" real, "Place" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Place is the highest one that has a Draw larger than 1, and 49 Points? ### Response:
SELECT MAX("Place") FROM table_63099 WHERE "Draw" > '1' AND "Points" = '49'
### Instruction: CREATE TABLE table_72618 ( "Episode" text, "Broadcast date" text, "Run time" text, "Viewers (in millions)" text, "Archive" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episodes in history have a running time of 24:06? ### Response:
SELECT COUNT("Archive") FROM table_72618 WHERE "Run time" = '24:06'
### Instruction: CREATE TABLE table_39884 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who did the Texans play when there were 70,724 people in attendance? ### Response:
SELECT "Opponent" FROM table_39884 WHERE "Attendance" = '70,724'
### Instruction: CREATE TABLE table_15733 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What engine did the Team Lotus have after 1965? ### Response:
SELECT "Engine" FROM table_15733 WHERE "Entrant" = 'team lotus' AND "Year" > '1965'
### Instruction: CREATE TABLE table_73936 ( "Represents" text, "Contestant" text, "Age" real, "Height (cm)" text, "Height (ft)" text, "Hometown" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the represents for 1.76 cm ### Response:
SELECT "Represents" FROM table_73936 WHERE "Height (cm)" = '1.76'
### Instruction: CREATE TABLE table_62756 ( "Team" text, "Country" text, "Home" text, "Skip" text, "Third" text, "Second" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is third to Xu Xiaoming at second? ### Response:
SELECT "Third" FROM table_62756 WHERE "Second" = 'xu xiaoming'
### Instruction: CREATE TABLE actor ( Name VARCHAR, Musical_ID VARCHAR ) CREATE TABLE musical ( Musical_ID VARCHAR, Name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show names of actors that have appeared in musical with name 'The Phantom of the Opera'. ### Response:
SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = "The Phantom of the Opera"
### Instruction: CREATE TABLE captain ( captain_id number, name text, ship_id number, age text, class text, rank text ) CREATE TABLE ship ( ship_id number, name text, type text, built_year number, class text, flag text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the name, class and rank of all captains. ### Response:
SELECT name, class, rank FROM captain
### Instruction: CREATE TABLE table_203_561 ( id number, "pos" number, "team" text, "total" number, "high" number, "low" number, "average" number, "change" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who had the the lowest single game attendance ? ### Response:
SELECT "team" FROM table_203_561 ORDER BY "total" LIMIT 1
### Instruction: CREATE TABLE table_58226 ( "Rank" real, "Movie" text, "Year" real, "Worldwide Gross" text, "Director" text, "Verdict" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is average year for ayan mukerji? ### Response:
SELECT AVG("Year") FROM table_58226 WHERE "Director" = 'ayan mukerji'
### Instruction: CREATE TABLE table_203_565 ( id number, "wrestlers" text, "times" number, "date" text, "location" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the date of the only match to occur in sapporo , japan ? ### Response:
SELECT "date" FROM table_203_565 WHERE "location" = 'sapporo, japan'
### Instruction: CREATE TABLE table_203_614 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- number of games in los angeles ### Response:
SELECT COUNT(*) FROM table_203_614 WHERE "venue" = 'los angeles'
### Instruction: CREATE TABLE table_39818 ( "Date" text, "Opponent" text, "Location" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Attendance at a game with the Result of w 25-17? ### Response:
SELECT MIN("Attendance") FROM table_39818 WHERE "Result" = 'w 25-17'
### Instruction: CREATE TABLE table_12865 ( "Elimination" text, "Wrestler" text, "Team" text, "Eliminated by" text, "Elimination Move" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Maria's Elimination Move? ### Response:
SELECT "Elimination Move" FROM table_12865 WHERE "Wrestler" = 'maria'
### Instruction: CREATE TABLE table_72422 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was incumbent Claude Fuller first elected? ### Response:
SELECT "First elected" FROM table_72422 WHERE "Incumbent" = 'Claude Fuller'
### Instruction: CREATE TABLE table_61429 ( "County" text, "Precincts" text, "C. Abate" text, "R. Bacon" text, "D. Shulman" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the numbers for D. Shulman in Warren County? ### Response:
SELECT "D. Shulman" FROM table_61429 WHERE "County" = 'warren'
### Instruction: CREATE TABLE table_34860 ( "Year" real, "Pick" text, "Player" text, "Position" text, "Country" text, "Previous team (League)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position was picked for Canada on Pick 8? ### Response:
SELECT "Position" FROM table_34860 WHERE "Country" = 'canada' AND "Pick" = '8'
### Instruction: CREATE TABLE table_12907 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is constituency number 16? ### Response:
SELECT "Name" FROM table_12907 WHERE "Constituency number" = '16'
### Instruction: CREATE TABLE table_1137704_2 ( report VARCHAR, winning_constructor VARCHAR, grand_prix VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what are all the report where winning constructor is williams - renault and grand prix is south african grand prix ### Response:
SELECT report FROM table_1137704_2 WHERE winning_constructor = "Williams - Renault" AND grand_prix = "South African grand_prix"
### Instruction: CREATE TABLE table_18652 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the election held in 1914? ### Response:
SELECT "Result" FROM table_18652 WHERE "First elected" = '1914'
### Instruction: CREATE TABLE table_55669 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Richmond was the Home team, who was the away team? ### Response:
SELECT "Away team" FROM table_55669 WHERE "Home team" = 'richmond'
### Instruction: CREATE TABLE table_5237 ( "Season" text, "Tier" real, "Division" text, "Pos." real, "Postseason" text, "Cup Competitions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest tier for a postseason result of quarterfinalist? ### Response:
SELECT MIN("Tier") FROM table_5237 WHERE "Postseason" = 'quarterfinalist'
### Instruction: CREATE TABLE table_60388 ( "Year" real, "Gold" text, "Silver" text, "Bronze" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won Bronze with notes of 2.5km, 14controls? ### Response:
SELECT "Bronze" FROM table_60388 WHERE "Notes" = '2.5km, 14controls'
### Instruction: CREATE TABLE table_12676 ( "Tries" real, "Player" text, "Opponent" text, "Score" text, "Venue" text, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of tries of player israel folau? ### Response:
SELECT AVG("Tries") FROM table_12676 WHERE "Player" = 'israel folau'
### Instruction: CREATE TABLE table_203_3 ( id number, "province" text, "capital" text, "population" number, "density" text, "municipalities" text, "legal districts" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which province in andalusia has the largest population ? ### Response:
SELECT "province" FROM table_203_3 ORDER BY "population" DESC LIMIT 1
### Instruction: CREATE TABLE table_203_211 ( id number, "pos." number, "time" text, "athlete" text, "country" text, "venue" text, "date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which country had the most athletic representation ? ### Response:
SELECT "country" FROM table_203_211 GROUP BY "country" ORDER BY COUNT("athlete") DESC LIMIT 1
### Instruction: CREATE TABLE table_204_785 ( 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. -- which nation received the least number of gold medals ? ### Response:
SELECT "nation" FROM table_204_785 ORDER BY "gold" LIMIT 1
### Instruction: CREATE TABLE table_202_32 ( id number, "year" text, "cast\n(nabucco, abigaille, zaccaria, ismaele, fenena)" text, "conductor,\nopera house and orchestra" text, "label" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many recordings of nabucco have been made ? ### Response:
SELECT COUNT(*) FROM table_202_32
### Instruction: CREATE TABLE table_15561 ( "Unit" text, "Type" text, "Net Power" text, "Total Power" text, "Finish construction" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which type had the unit greifswald - 7 (kgr 7) ? ### Response:
SELECT "Type" FROM table_15561 WHERE "Unit" = 'greifswald - 7 (kgr 7)'
### Instruction: CREATE TABLE table_7848 ( "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 was the winning score when the runner-up was Neal Briggs? ### Response:
SELECT "Winning score" FROM table_7848 WHERE "Runner(s)-up" = 'neal briggs'
### Instruction: CREATE TABLE table_70037 ( "Name" text, "Years" text, "Gender" text, "Area" text, "Authority" text, "Decile" real, "Roll" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which gender had a roll of 627? ### Response:
SELECT "Gender" FROM table_70037 WHERE "Roll" = '627'
### Instruction: CREATE TABLE table_4285 ( "Umpire" text, "Country" text, "Panel" text, "Matches" real, "WC Matches" real, "2011 WC" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- if the matches are 16 what is the wc matches ### Response:
SELECT MAX("WC Matches") FROM table_4285 WHERE "Matches" = '16'
### Instruction: CREATE TABLE table_66352 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Time of the Player with a Rank of 1 or 2 and Notes of FA? ### Response:
SELECT "Time" FROM table_66352 WHERE "Notes" = 'fa' AND "Rank" < '2'
### Instruction: CREATE TABLE table_20176 ( "Club" text, "Position in 2013" text, "First season" real, "First season of current spell" real, "Number of seasons in Superettan" real, "Number of seasons in second tier" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the earliest season recorded for any team ### Response:
SELECT MIN("First season") FROM table_20176
### Instruction: CREATE TABLE table_15979 ( "Pick" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which NHL team has player Mike Loach? ### Response:
SELECT "NHL team" FROM table_15979 WHERE "Player" = 'Mike Loach'
### Instruction: CREATE TABLE table_63269 ( "Name" text, "Games" text, "A-League" text, "Finals" text, "Goals" real, "Assists" real, "Years" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many games does leandro love have? ### Response:
SELECT "Games" FROM table_63269 WHERE "Name" = 'leandro love'
### Instruction: CREATE TABLE table_4853 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many golds for Canada (12 total)? ### Response:
SELECT "Gold" FROM table_4853 WHERE "Total" > '12' AND "Nation" = 'canada'
### Instruction: CREATE TABLE table_22915134_2 ( graphical VARCHAR, ignition_timing VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 68-292-68-292 is the ignition timing how many graphicals is it? ### Response:
SELECT COUNT(graphical) FROM table_22915134_2 WHERE ignition_timing = "68-292-68-292"
### Instruction: CREATE TABLE table_53005 ( "Season" text, "Club" text, "Apps" real, "Goals" real, "Division" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the Apps were smaller than 22, what's the lowest amount of goals scored in a game? ### Response:
SELECT MIN("Goals") FROM table_53005 WHERE "Apps" < '22'
### Instruction: CREATE TABLE table_34203 ( "Year" text, "Flagship Station" text, "Play-by-play" text, "Color commentator(s)" text, "Studio host" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Studio host of jimmy myers had what play by play? ### Response:
SELECT "Play-by-play" FROM table_34203 WHERE "Studio host" = 'jimmy myers'
### Instruction: CREATE TABLE table_204_355 ( id number, "#" text, "player" text, "country" text, "score" text, "to par" number, "money ($)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the only country represented that is not the united states ? ### Response:
SELECT "country" FROM table_204_355 WHERE "country" <> 'united states'
### Instruction: CREATE TABLE table_23894 ( "School" text, "Location(s)" text, "Control" text, "Type" text, "Enrollment (2009)" real, "Founded" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school was founded in 1791? ### Response:
SELECT "School" FROM table_23894 WHERE "Founded" = '1791'
### Instruction: CREATE TABLE table_name_69 ( pick VARCHAR, round VARCHAR, position VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the sum of the Pick that has the Position of Tackle, the Player Woody Adams, and a Round that's larger than 22? ### Response:
SELECT COUNT(pick) FROM table_name_69 WHERE position = "tackle" AND player = "woody adams" AND round > 22
### Instruction: CREATE TABLE table_203_228 ( id number, "#" number, "title" text, "songwriters" text, "producer(s)" text, "performer (s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- number of times buckwild produced a song : ### Response:
SELECT COUNT("title") FROM table_203_228 WHERE "producer(s)" = 'buckwild'
### Instruction: CREATE TABLE table_49857 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of To par when the Finish is t11? ### Response:
SELECT SUM("To par") FROM table_49857 WHERE "Finish" = 't11'
### Instruction: CREATE TABLE table_204_828 ( id number, "whitworth size (in)" number, "core diameter (in)" number, "threads per inch" number, "pitch (in)" number, "tapping drill size" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the top amount of threads per inch ? ### Response:
SELECT MAX("threads per inch") FROM table_204_828
### Instruction: CREATE TABLE table_56340 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "School/Club Team/Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the height in ft for the player from wyoming ### Response:
SELECT "Height in Ft." FROM table_56340 WHERE "School/Club Team/Country" = 'wyoming'
### 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. -- what is the number of times the total population was 6,000 or more ? ### Response:
SELECT COUNT(*) FROM table_203_355 WHERE "total" >= 6000
### Instruction: CREATE TABLE table_647 ( "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. -- Name the number of opponent with arrowhead stadium ### Response:
SELECT COUNT("Opponent") FROM table_647 WHERE "Game site" = 'Arrowhead Stadium'
### Instruction: CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How old is the youngest person for each job. Visualize by bar chart. ### Response:
SELECT job, MIN(age) FROM Person GROUP BY job
### Instruction: CREATE TABLE table_35644 ( "Date" text, "Site" text, "Sport" text, "Winning team" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Series has a Site of ames and a Sport of w gymnastics? ### Response:
SELECT "Series" FROM table_35644 WHERE "Site" = 'ames' AND "Sport" = 'w gymnastics'
### Instruction: CREATE TABLE table_203_586 ( id number, "#" number, "nation" text, "qualification tournament" text, "place in qt" number, "sailor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many countries in the provided table came in 4th place ? ### Response:
SELECT COUNT("nation") FROM table_203_586 WHERE "place in qt" = 4
### Instruction: CREATE TABLE table_63879 ( "Monday" text, "Tuesday" text, "Wednesday" text, "Thursday" text, "Friday" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is shown on Friday when Tuesday is Jay Mohr Sports? ### Response:
SELECT "Friday" FROM table_63879 WHERE "Tuesday" = 'jay mohr sports'
### Instruction: CREATE TABLE table_14837 ( "Country" text, "Film title used in nomination" text, "Language" text, "Original name" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Film title used in nomination of Mig Og Charly? ### Response:
SELECT "Film title used in nomination" FROM table_14837 WHERE "Original name" = 'mig og charly'
### Instruction: CREATE TABLE table_50526 ( "Tournament" text, "Surface" text, "Week" text, "Winner" text, "Finalist" text, "Semifinalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the semifinalist at the tournament in miami? ### Response:
SELECT "Semifinalists" FROM table_50526 WHERE "Tournament" = 'miami'
### Instruction: CREATE TABLE storm ( number_deaths INTEGER, damage_millions_USD INTEGER, max_speed INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of deaths and damage for all storms with a max speed greater than the average? ### Response:
SELECT SUM(number_deaths), SUM(damage_millions_USD) FROM storm WHERE max_speed > (SELECT AVG(max_speed) FROM storm)
### Instruction: CREATE TABLE table_73405 ( "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. -- Who is the successor when florida territory at-large is the district? ### Response:
SELECT "Successor" FROM table_73405 WHERE "District" = 'Florida Territory At-large'
### Instruction: CREATE TABLE table_204_870 ( id number, "product" text, "main functionality" text, "input format" text, "output format" text, "platform" text, "license and cost" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of products represented in the chart ? ### Response:
SELECT COUNT("platform") FROM table_204_870
### Instruction: CREATE TABLE table_train_39 ( "id" int, "active_infection" bool, "sepsis" bool, "organ_failure" bool, "septic_shock" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- have a high clinical suspicion of an infection ### Response:
SELECT * FROM table_train_39 WHERE active_infection = 1
### Instruction: CREATE TABLE table_7894 ( "Total" real, "Score" text, "Winning Team" text, "Losing Team" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Venue which has a Losing Team of newcastle knights? ### Response:
SELECT "Venue" FROM table_7894 WHERE "Losing Team" = 'newcastle knights'
### Instruction: CREATE TABLE table_name_95 ( top_10 INTEGER, cuts_made VARCHAR, top_5 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0? ### Response:
SELECT SUM(top_10) FROM table_name_95 WHERE cuts_made < 10 AND top_5 < 0
### Instruction: CREATE TABLE table_74940 ( "Year" text, "League" text, "Reg. Season" text, "Playoffs" text, "Avg. attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the year that had an average attendance of 5,445? ### Response:
SELECT "Year" FROM table_74940 WHERE "Avg. attendance" = '5,445'