instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE tweets ( uid VARCHAR ) CREATE TABLE user_profiles ( name VARCHAR, uid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the name of the user who tweeted more than once, and number of tweets tweeted by them. ### Response:
SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1
### Instruction: CREATE TABLE table_54825 ( "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. -- When did essendon play away? ### Response:
SELECT "Date" FROM table_54825 WHERE "Away team" = 'essendon'
### Instruction: CREATE TABLE table_203_523 ( id number, "state" text, "swimsuit" number, "interview" number, "evening gown" number, "average" number, "finalists" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who scored the highest in the swimsuit round ? ### Response:
SELECT "state" FROM table_203_523 ORDER BY "swimsuit" DESC LIMIT 1
### Instruction: CREATE TABLE table_19847 ( "No." real, "Date" text, "Tournament" text, "Winning score" text, "To par" text, "Margin of victory" text, "Runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are all runner-ups for No. 2? ### Response:
SELECT "Runner-up" FROM table_19847 WHERE "No." = '2'
### Instruction: CREATE TABLE table_7061 ( "Year" real, "Foundry" text, "Diameter (mm)" real, "Weight (kg)" text, "Nominal Tone" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum total of all the years with a bell that weighed 857 kilograms? ### Response:
SELECT SUM("Year") FROM table_7061 WHERE "Weight (kg)" = '857'
### Instruction: CREATE TABLE table_29469 ( "Team" text, "Head coach" text, "Team captain" text, "Kit maker" text, "Shirt sponsor" text, "Past Season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What sponsor has the head coach Samad Marfavi? ### Response:
SELECT "Shirt sponsor" FROM table_29469 WHERE "Head coach" = 'Samad Marfavi'
### Instruction: CREATE TABLE table_204_361 ( id number, "tie no" number, "home team" text, "score" text, "away team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what comes after fiskeby if ### Response:
SELECT "home team" FROM table_204_361 WHERE id = (SELECT id FROM table_204_361 WHERE "home team" = 'fiskeby if') + 1
### Instruction: CREATE TABLE table_3916 ( "Episode #" real, "Series #" real, "Title" text, "Director" text, "Writer" text, "Original airdate" text, "Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed 'running the gauntlet'? ### Response:
SELECT "Director" FROM table_3916 WHERE "Title" = 'Running the Gauntlet'
### Instruction: CREATE TABLE table_39930 ( "Date" text, "Centerfold model" text, "Interview subject" text, "20 Questions" text, "Pictorials" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Pictorials has a 20 Questions of eva longoria? ### Response:
SELECT "Pictorials" FROM table_39930 WHERE "20 Questions" = 'eva longoria'
### Instruction: CREATE TABLE table_20200 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years in Orlando" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of the player who attended Delta State? ### Response:
SELECT MAX("No.") FROM table_20200 WHERE "School/Club Team" = 'Delta State'
### Instruction: CREATE TABLE table_65927 ( "Team" text, "Car Spec." text, "Drivers" text, "Class" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What rounds did RML Racing Silverline and James Nash compete? ### Response:
SELECT "Rounds" FROM table_65927 WHERE "Team" = 'rml racing silverline' AND "Drivers" = 'james nash'
### Instruction: CREATE TABLE table_name_62 ( social_sec_leeds VARCHAR, media_officer VARCHAR, treasurer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What kind of Social Sec Leeds has a Media Officer of jason james and a Treasurer of james davidson? ### Response:
SELECT social_sec_leeds FROM table_name_62 WHERE media_officer = "jason james" AND treasurer = "james davidson"
### Instruction: CREATE TABLE table_203_777 ( id number, "years" text, "building" text, "city" text, "height (ctbuh)" text, "floors" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which building held the record before the current holder ? ### Response:
SELECT "building" FROM table_203_777 WHERE "years" < present_ref ORDER BY "years" DESC LIMIT 1
### Instruction: CREATE TABLE table_75667 ( "Call sign" text, "Frequency MHz" text, "City of license" text, "ERP W" text, "FCC info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which FCC info has an ERP W of 100 watts? ### Response:
SELECT "FCC info" FROM table_75667 WHERE "ERP W" = '100 watts'
### Instruction: CREATE TABLE table_15803 ( "Riding" text, "Candidate's Name" text, "Gender" text, "Residence" text, "Occupation" text, "Votes" real, "Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What job is at red bank? ### Response:
SELECT "Occupation" FROM table_15803 WHERE "Residence" = 'red bank'
### Instruction: CREATE TABLE table_23740 ( "County" text, "Obama%" text, "Obama#" real, "McCain%" text, "McCain#" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In how many counties di McCain win 41.62% of the vote? ### Response:
SELECT COUNT("County") FROM table_23740 WHERE "McCain%" = '41.62%'
### Instruction: CREATE TABLE table_9055 ( "Outcome" text, "Date" real, "Championship" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the championship during the match with the opponent of richard fromberg? ### Response:
SELECT "Championship" FROM table_9055 WHERE "Opponent" = 'richard fromberg'
### Instruction: CREATE TABLE table_28767 ( "Season #" real, "Series #" real, "Episode title" text, "Original air date" text, "Nick prod. #" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the name of the episode associated with Nick production number 342? ### Response:
SELECT "Episode title" FROM table_28767 WHERE "Nick prod. #" = '342'
### Instruction: CREATE TABLE table_204_340 ( id number, "name" text, "year inducted" number, "position" text, "apps" number, "goals" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of apps and goals for luther blissett ? ### Response:
SELECT "apps" + "goals" FROM table_204_340 WHERE "name" = 'luther blissett'
### Instruction: CREATE TABLE table_28033 ( "Player" text, "Position" text, "Starter" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many numbers were recorded on the fields goals of the Left End player? ### Response:
SELECT COUNT("Field goals") FROM table_28033 WHERE "Position" = 'Left end'
### Instruction: CREATE TABLE table_68002 ( "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 margin of victory for the Mississippi Gulf Resort Classic? ### Response:
SELECT "Margin of victory" FROM table_68002 WHERE "Tournament" = 'mississippi gulf resort classic'
### Instruction: CREATE TABLE table_203_160 ( id number, "rank" number, "heat" number, "nation" text, "competitors" text, "time" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long did it take the german team to finish the race ? ### Response:
SELECT "time" FROM table_203_160 WHERE "nation" = 'germany'
### Instruction: CREATE TABLE table_41721 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where Bolton Wanderers is the home team, who is the away team? ### Response:
SELECT "Away team" FROM table_41721 WHERE "Home team" = 'bolton wanderers'
### Instruction: CREATE TABLE table_12149 ( "Seat" real, "Series 1" text, "Series 3" text, "Series 4" text, "Series 5" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of seats with gavin duffy in series 4? ### Response:
SELECT COUNT("Seat") FROM table_12149 WHERE "Series 4" = 'gavin duffy'
### Instruction: CREATE TABLE table_203_790 ( id number, "week" number, "date" text, "opponent" text, "result" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- was attendance higher week 4 or week 8 ? ### Response:
SELECT "week" FROM table_203_790 WHERE "week" IN (4, 8) ORDER BY "attendance" DESC LIMIT 1
### Instruction: CREATE TABLE table_19516 ( "No." real, "Station Code" text, "Station" text, "Arrival" text, "Departure" text, "Kilometers" real, "Day" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the arrival time where the station code is awy? ### Response:
SELECT "Arrival" FROM table_19516 WHERE "Station Code" = 'AWY'
### Instruction: CREATE TABLE table_36220 ( "Surname" text, "First" text, "D.O.B." text, "Bats" text, "Throws" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was Lachlan Dale born? ### Response:
SELECT "D.O.B." FROM table_36220 WHERE "Surname" = 'dale' AND "First" = 'lachlan'
### Instruction: CREATE TABLE table_24329520_8 ( county VARCHAR, borough VARCHAR, members VARCHAR, franchise_type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which county has a membership of 1, a franchise type of corporation and a borough of Ennis? ### Response:
SELECT county FROM table_24329520_8 WHERE members = 1 AND franchise_type = "Corporation" AND borough = "Ennis"
### Instruction: CREATE TABLE table_7774 ( "Date" text, "Event" text, "City" text, "Oil Pattern" text, "Winner (Title #)" text, "Runner-up" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the runner-up from Milwaukee? ### Response:
SELECT "Runner-up" FROM table_7774 WHERE "City" = 'milwaukee'
### Instruction: CREATE TABLE table_20630 ( "#" real, "Date" text, "at/vs." text, "Opponent" text, "Score" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most number for new england blazers ### Response:
SELECT MAX("#") FROM table_20630 WHERE "Opponent" = 'New England Blazers'
### Instruction: CREATE TABLE table_25477 ( "Date" text, "Location" text, "Opponent" text, "Irish Points" real, "Opp. Points" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the irish points for 23-1 record ### Response:
SELECT "Irish Points" FROM table_25477 WHERE "Record" = '23-1'
### Instruction: CREATE TABLE table_44157 ( "Round" real, "Pick" real, "Player" text, "Nationality" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player went to Wake Forest and was selected with a pick after 145? ### Response:
SELECT "Player" FROM table_44157 WHERE "Pick" > '145' AND "College" = 'wake forest'
### Instruction: CREATE TABLE table_1594 ( "Official Name" text, "Status" text, "Area km 2" text, "Population" real, "Census Ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the parish where the area is 508.30? ### Response:
SELECT COUNT("Official Name") FROM table_1594 WHERE "Area km 2" = '508.30'
### Instruction: CREATE TABLE table_67781 ( "Type" text, "Fleet numbers" text, "Quantity made" real, "Manufacturer" text, "Date made" text, "Date withdrawn" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date made that has an associated fleet number of 4? ### Response:
SELECT "Date made" FROM table_67781 WHERE "Fleet numbers" = '4'
### Instruction: CREATE TABLE table_204_79 ( id number, "season" text, "tier" number, "division" text, "place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- after the 1990/91 season , which place was earned in the next season ? ### Response:
SELECT "place" FROM table_204_79 WHERE "season" > '1990/91' ORDER BY "season" LIMIT 1
### Instruction: CREATE TABLE table_name_35 ( partial_failures INTEGER, failures VARCHAR, successes VARCHAR, launches VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures? ### Response:
SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = 2
### Instruction: CREATE TABLE table_10881 ( "Result" text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Event has the Opponent, Jason Yee? ### Response:
SELECT "Event" FROM table_10881 WHERE "Opponent" = 'jason yee'
### Instruction: CREATE TABLE table_45257 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum for the week with the date october 30, 1994? ### Response:
SELECT SUM("Week") FROM table_45257 WHERE "Date" = 'october 30, 1994'
### Instruction: CREATE TABLE table_name_97 ( super_cup VARCHAR, league VARCHAR, title_playoff VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Super Cup, when Title Playoff is '0', when Total is greater than 9, and when League is less than 11? ### Response:
SELECT COUNT(super_cup) FROM table_name_97 WHERE title_playoff = 0 AND total > 9 AND league < 11
### Instruction: CREATE TABLE table_48625 ( "Team" text, "Head coach" text, "Team captain" text, "Kitmaker" text, "Shirt sponsor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the head coach of the team, whose shirt sponsor is karstadt quelle versicherungen? ### Response:
SELECT "Head coach" FROM table_48625 WHERE "Shirt sponsor" = 'karstadt quelle versicherungen'
### Instruction: CREATE TABLE table_204_779 ( id number, "network name" text, "flagship" text, "programming type" text, "owner" text, "affiliates" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- azteca 7 and azteca 13 are both owned by whom ? ### Response:
SELECT "owner" FROM table_204_779 WHERE "network name" = 'azteca 7'
### Instruction: CREATE TABLE table_204_287 ( id number, "outcome" text, "no." number, "date" number, "championship" text, "surface" text, "opponent in the final" text, "score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many championships are listed ? ### Response:
SELECT COUNT("championship") FROM table_204_287
### Instruction: CREATE TABLE table_name_19 ( studio_host VARCHAR, play_by_play VARCHAR, studio_analysts VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the studio host for the game that has Paul Sunderland as play by play commentator and Jack Haley as the Studio Analyst? ### Response:
SELECT studio_host FROM table_name_19 WHERE play_by_play = "paul sunderland" AND studio_analysts = "jack haley"
### Instruction: CREATE TABLE table_77539 ( "Rider" text, "Horse" text, "Faults" text, "Round 1 Points" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the rider with 18.185 points round 1 ### Response:
SELECT "Rider" FROM table_77539 WHERE "Round 1 Points" = '18.185'
### Instruction: CREATE TABLE table_18480 ( "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. -- Who is the incumbent first elected in 1944? ### Response:
SELECT "Incumbent" FROM table_18480 WHERE "First elected" = '1944'
### Instruction: CREATE TABLE table_27157 ( "Year" real, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who played Mixed Doubles in 1991? ### Response:
SELECT "Mixed doubles" FROM table_27157 WHERE "Year" = '1991'
### Instruction: CREATE TABLE table_2546 ( "High School" text, "Type" text, "Established" real, "Enrollment" real, "Mascot" text, "WIAA Classification" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many wiaa classifications does fort vancouver high school have? ### Response:
SELECT COUNT("WIAA Classification") FROM table_2546 WHERE "High School" = 'Fort Vancouver'
### Instruction: CREATE TABLE table_73140 ( "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. -- Name the incumbent for lost renomination republican hold ### Response:
SELECT "Incumbent" FROM table_73140 WHERE "Result" = 'Lost renomination Republican hold'
### Instruction: CREATE TABLE table_54586 ( "Player" text, "Height" text, "School" text, "Hometown" text, "College" text, "NBA Draft" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the NBA draft result of the player from Washington, DC? ### Response:
SELECT "NBA Draft" FROM table_54586 WHERE "Hometown" = 'washington, dc'
### Instruction: CREATE TABLE table_name_67 ( attendance VARCHAR, result VARCHAR, year VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total attendance at anaheim stadium after 1983 when the result is 14-28? ### Response:
SELECT COUNT(attendance) FROM table_name_67 WHERE year > 1983 AND venue = "anaheim stadium" AND result = "14-28"
### Instruction: CREATE TABLE table_72389 ( "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 earliest first elected for district georgia 1? ### Response:
SELECT MIN("First elected") FROM table_72389 WHERE "District" = 'Georgia 1'
### Instruction: CREATE TABLE table_21183 ( "Show" text, "Last Aired" real, "Previous Network" text, "Retitled as/Same" text, "New/Returning/Same Network" text, "Returning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which show as previously on The Family Channel? ### Response:
SELECT "Show" FROM table_21183 WHERE "Previous Network" = 'The Family Channel'
### Instruction: CREATE TABLE table_40664 ( "Player" text, "Club" text, "League" real, "FA Cup" real, "FA Trophy" real, "League Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which League has a League Cup smaller than 0? ### Response:
SELECT MIN("League") FROM table_40664 WHERE "League Cup" < '0'
### Instruction: CREATE TABLE table_1313 ( "Team" text, "Titles" real, "Runner-up" real, "Third place" real, "Fourth place" real, "Years participated" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the team is yale what is max amount of times they placed fourth? ### Response:
SELECT MAX("Fourth place") FROM table_1313 WHERE "Team" = 'Yale'
### Instruction: CREATE TABLE table_14622 ( "Player" text, "Country" text, "Caps" real, "Goals" text, "Years Active" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the years active of the player from New Zealand with more than 11 caps? ### Response:
SELECT "Years Active" FROM table_14622 WHERE "Caps" > '11' AND "Country" = 'new zealand'
### Instruction: CREATE TABLE table_55047 ( "Name" text, "Model" text, "Park" text, "Opened" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the status of the junior coaster model that opened in 2008? ### Response:
SELECT "Status" FROM table_55047 WHERE "Opened" = '2008' AND "Model" = 'junior coaster'
### Instruction: CREATE TABLE table_31153 ( "Name/ designation" text, "Year of intro" real, "Country of origin" text, "Primary cartridge" text, "Major users" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are all the major users of the Saturn Machine Pistol? ### Response:
SELECT "Major users" FROM table_31153 WHERE "Name/ designation" = 'Saturn machine pistol'
### Instruction: CREATE TABLE table_45903 ( "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 latest stable release of 6.0? ### Response:
SELECT "Tracking Method" FROM table_45903 WHERE "Latest stable release" = '6.0'
### Instruction: CREATE TABLE table_58556 ( "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 was the bronze medal count of the team that finished with 47 total medals? ### Response:
SELECT AVG("Bronze") FROM table_58556 WHERE "Total" = '47'
### Instruction: CREATE TABLE table_22288 ( "Departure" text, "Going to" text, "Calling at" text, "Arrival" text, "Operator" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the train operator when the train departed at 11.02 in 1922? ### Response:
SELECT "Operator" FROM table_22288 WHERE "Departure" = '11.02'
### Instruction: CREATE TABLE table_64816 ( "Ref#" real, "Name" text, "Built" real, "Location" text, "Construction" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the mill located on Anawan Street with a reference number larger than 8? ### Response:
SELECT "Name" FROM table_64816 WHERE "Ref#" > '8' AND "Location" = 'anawan street'
### Instruction: CREATE TABLE table_name_1 ( week_8_oct_26 VARCHAR, week_12_nov_23 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the week 8 Oct 26 standing with georgia tech (8-2) on week 12 Nov 23? ### Response:
SELECT week_8_oct_26 FROM table_name_1 WHERE week_12_nov_23 = "georgia tech (8-2)"
### Instruction: CREATE TABLE table_44341 ( "Team" text, "Tries for" text, "Tries against" text, "Try diff" text, "Points for" text, "Points against" text, "Points diff" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team has +119 Points diff? ### Response:
SELECT "Team" FROM table_44341 WHERE "Points diff" = '+119'
### Instruction: CREATE TABLE table_70593 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which entrant scored less than 8 points and used a Maserati chassis? ### Response:
SELECT "Entrant" FROM table_70593 WHERE "Points" < '8' AND "Chassis" = 'maserati'
### Instruction: CREATE TABLE table_38331 ( "Year" text, "Coach" text, "Crew" text, "Record" text, "Win %" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which year's crew is varsity 8+ when the record is 7-3? ### Response:
SELECT "Year" FROM table_38331 WHERE "Crew" = 'varsity 8+' AND "Record" = '7-3'
### Instruction: CREATE TABLE table_9378 ( "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. -- How many games were on December 5? ### Response:
SELECT SUM("Game") FROM table_9378 WHERE "Date" = 'december 5'
### Instruction: CREATE TABLE table_58211 ( "Player" text, "Height" text, "School" text, "Hometown" text, "College" text, "NBA Draft" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the NBA draft result of the player from Dunbar High School? ### Response:
SELECT "NBA Draft" FROM table_58211 WHERE "School" = 'dunbar high school'
### Instruction: CREATE TABLE table_64464 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Rank of the swimmer with a Time of 49 in Lane 7 or larger? ### Response:
SELECT COUNT("Rank") FROM table_64464 WHERE "Time" = '49' AND "Lane" > '7'
### Instruction: CREATE TABLE table_48668 ( "Cat. #" text, "Artist" text, "Title" text, "Release date" text, "Format" text, "Other information" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the title released on 24 July 2005? ### Response:
SELECT "Title" FROM table_48668 WHERE "Release date" = '24 july 2005'
### Instruction: CREATE TABLE table_10794 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record for the game that has a loss of Johnson (5-6)? ### Response:
SELECT "Record" FROM table_10794 WHERE "Loss" = 'johnson (5-6)'
### Instruction: CREATE TABLE table_50221 ( "Date" text, "Opponent#" text, "Rank #" text, "Site" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent when the result was w24-7? ### Response:
SELECT "Opponent#" FROM table_50221 WHERE "Result" = 'w24-7'
### Instruction: CREATE TABLE table_51567 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who constructed the car with a grid over 19 that retired due to suspension? ### Response:
SELECT "Constructor" FROM table_51567 WHERE "Grid" > '19' AND "Time/Retired" = 'suspension'
### Instruction: CREATE TABLE table_18534 ( "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 party where the incumbent is overton brooks? ### Response:
SELECT "Party" FROM table_18534 WHERE "Incumbent" = 'Overton Brooks'
### Instruction: CREATE TABLE table_204_100 ( id number, "date" text, "name of ship" text, "nationality" text, "tonnage" number, "fate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the difference in tonnage between the heaviest and the lightest ships ? ### Response:
SELECT MAX("tonnage") - MIN("tonnage") FROM table_204_100
### Instruction: CREATE TABLE table_10335_1 ( current_country_of_location VARCHAR, operational VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the current country of location with operational period of summer of 1941 to 28 june 1944 ### Response:
SELECT current_country_of_location FROM table_10335_1 WHERE operational = "Summer of 1941 to 28 June 1944"
### Instruction: CREATE TABLE table_42161 ( "Team #1" text, "Agg." text, "Team #2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Team #2 has a 1st leg of 70 - 44? ### Response:
SELECT "Team #2" FROM table_42161 WHERE "1st leg" = '70 - 44'
### Instruction: CREATE TABLE table_name_15 ( goals_scored VARCHAR, points VARCHAR, draws VARCHAR, loses VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of goals scored of the club with more than 3 draws, more than 1 loses, and less than 26 points? ### Response:
SELECT COUNT(goals_scored) FROM table_name_15 WHERE draws > 3 AND loses > 1 AND points < 26
### Instruction: CREATE TABLE table_27535 ( "Round" text, "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. -- Name the circuit for 13 july ### Response:
SELECT "Circuit" FROM table_27535 WHERE "Date" = '13 July'
### Instruction: CREATE TABLE table_24798 ( "District" text, "Municipalities" real, "Parishes" real, "Province of 1936" text, "Region" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the parishes for beira baixa province ### Response:
SELECT COUNT("Parishes") FROM table_24798 WHERE "Province of 1936" = 'Beira Baixa Province'
### Instruction: CREATE TABLE table_16519 ( "Team" text, "Stadium" text, "Capacity" real, "Highest" real, "Lowest" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest attendance that East End Park has ever had? ### Response:
SELECT MIN("Lowest") FROM table_16519 WHERE "Stadium" = 'East End Park'
### Instruction: CREATE TABLE table_38292 ( "Pos." real, "Car #" real, "Driver" text, "Make" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2? ### Response:
SELECT COUNT("Car #") FROM table_38292 WHERE "Driver" = 'erik darnell' AND "Pos." < '2'
### Instruction: CREATE TABLE table_23331 ( "District" real, "Representative" text, "Party" text, "Residence" text, "Counties represented" text, "Term ends" real, "First Elected" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the district for newtown square ### Response:
SELECT MIN("District") FROM table_23331 WHERE "Residence" = 'Newtown Square'
### Instruction: CREATE TABLE table_17994 ( "Year" real, "Competition" text, "Location" text, "Event" text, "Final-Rank" text, "Final-Score" text, "Qualifying Rank" real, "Qualifying Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the lowest qualifying rank? ### Response:
SELECT MIN("Qualifying Rank") FROM table_17994
### Instruction: CREATE TABLE table_60905 ( "Shooter" text, "Event" text, "Rank points" text, "Score points" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total for the wc belgrade event with 10 rank points? ### Response:
SELECT "Total" FROM table_60905 WHERE "Event" = 'wc belgrade' AND "Rank points" = '10'
### Instruction: CREATE TABLE table_44347 ( "Rank" text, "Time" text, "Athlete" text, "Nation" text, "Date" text, "Race" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the athlete with a time of 30:48? ### Response:
SELECT "Athlete" FROM table_44347 WHERE "Time" = '30:48'
### Instruction: CREATE TABLE table_48341 ( "Year" real, "MLB Club" text, "Record" text, "Finish" text, "Manager" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the manager when the year is before 1994 and finish is 5th? ### Response:
SELECT "Manager" FROM table_48341 WHERE "Year" < '1994' AND "Finish" = '5th'
### Instruction: CREATE TABLE table_17456 ( "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. -- How many teams did Bob Peppler play for? ### Response:
SELECT COUNT("NHL team") FROM table_17456 WHERE "Player" = 'Bob Peppler'
### Instruction: CREATE TABLE table_65323 ( "Year" real, "Record" text, "Finish" text, "Manager" text, "Playoffs" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Record has a Year larger than 1974, and a Finish of 3rd? ### Response:
SELECT "Record" FROM table_65323 WHERE "Year" > '1974' AND "Finish" = '3rd'
### Instruction: CREATE TABLE table_24111 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Black Knights points" real, "Opponents" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of date for 1-0 record ### Response:
SELECT COUNT("Date") FROM table_24111 WHERE "Record" = '1-0'
### Instruction: CREATE TABLE table_25068 ( "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. -- The successor for the Massachusetts 20th district was seated on what date? ### Response:
SELECT "Date successor seated" FROM table_25068 WHERE "District" = 'Massachusetts 20th'
### Instruction: CREATE TABLE table_52073 ( "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 home team played against Richmond? ### Response:
SELECT "Home team" FROM table_52073 WHERE "Away team" = 'richmond'
### Instruction: CREATE TABLE table_70796 ( "Player" text, "Height" real, "Position" text, "Year born" real, "Current Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the Guard who currently plays for the Memphis Grizzlies born? ### Response:
SELECT "Year born" FROM table_70796 WHERE "Position" = 'guard' AND "Current Club" = 'memphis grizzlies'
### Instruction: CREATE TABLE table_8894 ( "Position" real, "Name" text, "Played" real, "Drawn" real, "Lost" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest number played with 16 points in a position over 4? ### Response:
SELECT MAX("Played") FROM table_8894 WHERE "Points" = '16' AND "Position" > '4'
### Instruction: CREATE TABLE table_50482 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the venue of the team race that was after 2008? ### Response:
SELECT "Venue" FROM table_50482 WHERE "Year" > '2008' AND "Notes" = 'team'
### Instruction: CREATE TABLE table_62256 ( "Season" text, "Date" text, "Winner" text, "Loser" text, "Score" text, "Venue" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For which venue did Leicester City lose? ### Response:
SELECT "Venue" FROM table_62256 WHERE "Loser" = 'leicester city'
### Instruction: CREATE TABLE table_66468 ( "Sport" text, "Body" text, "Year" text, "Event type" text, "Location" text, "Nations" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What body is at the World Championship for Underwater Target shooting? ### Response:
SELECT "Body" FROM table_66468 WHERE "Event type" = 'world championship' AND "Sport" = 'underwater target shooting'
### Instruction: CREATE TABLE table_train_52 ( "id" int, "pregnancy_or_lactation" bool, "consent" bool, "surgery" bool, "hemodynamic_instability" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- surgical intervention in context with the septic insult ### Response:
SELECT * FROM table_train_52 WHERE surgery = 1
### Instruction: CREATE TABLE table_18971 ( "High School" text, "Location" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Nickname" text, "Division" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was Skyline High School founded? ### Response:
SELECT COUNT("Founded") FROM table_18971 WHERE "High School" = 'Skyline'
### Instruction: CREATE TABLE table_58327 ( "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 on May 3, 1998? ### Response:
SELECT "Winning score" FROM table_58327 WHERE "Date" = 'may 3, 1998'
### Instruction: CREATE TABLE table_name_52 ( facility_id INTEGER, city_of_license VARCHAR, erp_kw VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5? ### Response:
SELECT MAX(facility_id) FROM table_name_52 WHERE city_of_license = "wheeling" AND erp_kw < 4.5