instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_203_406 ( id number, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many drivers drove all the rounds ? ### Response:
SELECT COUNT("driver") FROM table_203_406 WHERE "rounds" = 'all'
### Instruction: CREATE TABLE table_1682026_3 ( profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the profits (in billions) of the company with a market value of 172.9 billion? ### Response:
SELECT profits__billion_$_ FROM table_1682026_3 WHERE market_value__billion_$_ = "172.9"
### Instruction: CREATE TABLE table_35291 ( "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 the winning score of the tournament on 16 May 1993? ### Response:
SELECT "Winning score" FROM table_35291 WHERE "Date" = '16 may 1993'
### Instruction: CREATE TABLE table_80096 ( "Round" text, "Date" text, "Opponent" text, "Venue" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What day was the game held at Firhill against AYR United? ### Response:
SELECT "Date" FROM table_80096 WHERE "Venue" = 'firhill' AND "Opponent" = 'ayr united'
### Instruction: CREATE TABLE table_name_71 ( margin_of_victory VARCHAR, winning_score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the runner(s)-up when the winning score was 10 (69-68-74-67=278)? ### Response:
SELECT margin_of_victory FROM table_name_71 WHERE winning_score = –10(69 - 68 - 74 - 67 = 278)
### Instruction: CREATE TABLE table_name_27 ( country_of_origin VARCHAR, year_of_intro VARCHAR, primary_cartridge VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Country of Origin, when Year of Intro is greater than 1985, and when Primary Cartridge is 125mm? ### Response:
SELECT country_of_origin FROM table_name_27 WHERE year_of_intro > 1985 AND primary_cartridge = "125mm"
### Instruction: CREATE TABLE table_33984 ( "Tournament" text, "2006" text, "2007" text, "2008-12" text, "2013" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 2006 has a 2007 of A? ### Response:
SELECT "2006" FROM table_33984 WHERE "2007" = 'a'
### Instruction: CREATE TABLE table_60243 ( "Name" text, "Pos." text, "Height" text, "Weight" text, "Date of Birth" text, "Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is born on 1982-01-29? ### Response:
SELECT "Name" FROM table_60243 WHERE "Date of Birth" = '1982-01-29'
### Instruction: CREATE TABLE table_21098 ( "Rank" real, "Team" text, "Round1" real, "Round2" real, "Round3" real, "Round4" real, "Round5" real, "Total Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the highest score for round 2? ### Response:
SELECT MAX("Round2") FROM table_21098
### Instruction: CREATE TABLE table_name_19 ( snatch INTEGER, total__kg_ VARCHAR, bodyweight VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15? ### Response:
SELECT AVG(snatch) FROM table_name_19 WHERE total__kg_ > 318 AND bodyweight = 84.15
### 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. -- name a station that shows sports but is not televisa . ### Response:
SELECT "network name" FROM table_204_779 WHERE "programming type" = 'sports' AND "owner" <> 'televisa'
### Instruction: CREATE TABLE table_61535 ( "Official Name" text, "Status" text, "Area km 2" real, "Population" real, "Census Ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the population of the parish that has an area of 304.06? ### Response:
SELECT SUM("Population") FROM table_61535 WHERE "Area km 2" = '304.06'
### Instruction: CREATE TABLE table_name_94 ( blackpool INTEGER, draw VARCHAR, preston_north_end VARCHAR, competition VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Blackpool has a Preston North End smaller than 46, and a Competition of other, and a Draw larger than 1? ### Response:
SELECT SUM(blackpool) FROM table_name_94 WHERE preston_north_end < 46 AND competition = "other" AND draw > 1
### Instruction: CREATE TABLE table_56287 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Nashville was the visiting team what was the lowest Attendance shown? ### Response:
SELECT MIN("Attendance") FROM table_56287 WHERE "Visitor" = 'nashville'
### Instruction: CREATE TABLE elimination ( elimination_id text, wrestler_id text, team text, eliminated_by text, elimination_move text, time text ) CREATE TABLE wrestler ( wrestler_id number, name text, reign text, days_held text, location text, event text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many wrestlers are there? ### Response:
SELECT COUNT(*) FROM wrestler
### Instruction: CREATE TABLE table_22285 ( "No. overall" real, "No. in series" real, "Title" text, "Director" text, "Writer" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote 'episode 10'? ### Response:
SELECT "Writer" FROM table_22285 WHERE "Title" = 'Episode 10'
### Instruction: CREATE TABLE table_61134 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the venue for the match on 30/03/1985? ### Response:
SELECT "Venue" FROM table_61134 WHERE "Date" = '30/03/1985'
### Instruction: CREATE TABLE table_22815568_7 ( unemployment_rate VARCHAR, market_income_per_capita VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the unemployment rate in those places where the market income per capita is $16,981? ### Response:
SELECT COUNT(unemployment_rate) FROM table_22815568_7 WHERE market_income_per_capita = "$16,981"
### Instruction: CREATE TABLE table_57194 ( "Rank" real, "Constituency" text, "Winning party 2007" text, "Swing to gain" real, "Labour's place 2007" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of rank 1? ### Response:
SELECT "Result" FROM table_57194 WHERE "Rank" = '1'
### Instruction: CREATE TABLE table_13706 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score in the final of the tournament with a hard surface? ### Response:
SELECT "Score in the final" FROM table_13706 WHERE "Surface" = 'hard'
### Instruction: CREATE TABLE table_75349 ( "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. -- What is the lowest number of field goals when the points were less than 5? ### Response:
SELECT MIN("Field goals") FROM table_75349 WHERE "Points" < '5'
### Instruction: CREATE TABLE submission ( submission_id number, scores number, author text, college text ) CREATE TABLE workshop ( workshop_id number, date text, venue text, name text ) CREATE TABLE acceptance ( submission_id number, workshop_id number, result text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the authors of submissions and their colleges? ### Response:
SELECT author, college FROM submission
### Instruction: CREATE TABLE table_28456 ( "Year" real, "Championship" text, "54 holes" text, "Winning score" text, "Margin" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the space where the next one was mike turnesa ### Response:
SELECT "Margin" FROM table_28456 WHERE "Runner(s)-up" = 'Mike Turnesa'
### Instruction: CREATE TABLE table_44577 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What event has a 0:49 time? ### Response:
SELECT "Event" FROM table_44577 WHERE "Time" = '0:49'
### Instruction: CREATE TABLE table_22163 ( "Title" text, "Developer" text, "Category" text, "Function" text, "Release date" text, "Version" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the function of 1.4 version of Windows live messenger? ### Response:
SELECT "Function" FROM table_22163 WHERE "Version" = '1.4' AND "Title" = 'Windows Live Messenger'
### Instruction: CREATE TABLE table_10432 ( "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 date when Richmond was the home team? ### Response:
SELECT "Date" FROM table_10432 WHERE "Home team" = 'richmond'
### Instruction: CREATE TABLE table_name_5 ( sales__billion_ INTEGER, company VARCHAR, profits__billion_$_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average sales in billions of walmart, which has more than 15.7 billion in profits? ### Response:
SELECT AVG(sales__billion_) AS $_ FROM table_name_5 WHERE company = "walmart" AND profits__billion_$_ > 15.7
### Instruction: CREATE TABLE table_203_446 ( id number, "name" text, "gender" text, "age" number, "from" text, "occupation" text, "prize money (usd)" text, "status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the total prize money earned by contestants ? ### Response:
SELECT SUM("prize money (usd)") FROM table_203_446
### Instruction: CREATE TABLE table_51104 ( "Owner" text, "Class" text, "Number in class" real, "Road numbers" text, "Built" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was built in a class with less than 10, and the Downer Rail owner? ### Response:
SELECT "Built" FROM table_51104 WHERE "Number in class" < '10' AND "Owner" = 'downer rail'
### Instruction: CREATE TABLE table_203_245 ( 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. -- how many total international races did german silva place in the top 3 spots ? ### Response:
SELECT COUNT("competition") FROM table_203_245 WHERE "position" <= 3
### Instruction: CREATE TABLE table_204_311 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of bronze medals won by france ? ### Response:
SELECT "bronze" FROM table_204_311 WHERE "nation" = 'france'
### Instruction: CREATE TABLE table_53627 ( "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 Melbourne score as the home team? ### Response:
SELECT "Home team score" FROM table_53627 WHERE "Home team" = 'melbourne'
### Instruction: CREATE TABLE table_37462 ( "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. -- What date has dallas cowboys as the opponent? ### Response:
SELECT "Date" FROM table_37462 WHERE "Opponent" = 'dallas cowboys'
### Instruction: CREATE TABLE table_65419 ( "Branding" text, "Call-Sign" text, "Frequency" text, "Power (kw)" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the location when the branding is 1116 DXAS Zamboanga? ### Response:
SELECT "Location" FROM table_65419 WHERE "Branding" = '1116 dxas zamboanga'
### Instruction: CREATE TABLE table_30288 ( "Religion" text, "Births" real, "Conversions" text, "New adherents per year" real, "Growth rate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of new adherents per year for confucianism ### Response:
SELECT COUNT("New adherents per year") FROM table_30288 WHERE "Religion" = 'Confucianism'
### Instruction: CREATE TABLE table_31057 ( "Episode" real, "Airdate" text, "Iron Chef" text, "Challenger" text, "Theme Ingredient" text, "Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date did the episode air when guy grossi won? ### Response:
SELECT "Airdate" FROM table_31057 WHERE "Winner" = 'Guy Grossi'
### Instruction: CREATE TABLE table_328 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "Years for Rockets" text, "School/Club Team/Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What player attended Loyola Marymount? ### Response:
SELECT "Player" FROM table_328 WHERE "School/Club Team/Country" = 'Loyola Marymount'
### Instruction: CREATE TABLE table_29785 ( "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 above. -- What game in the season does this list start? ### Response:
SELECT MIN("Game") FROM table_29785
### Instruction: CREATE TABLE table_66970 ( "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 races were Chi-Chi Rodriguez the runner-up in? ### Response:
SELECT "Tournament" FROM table_66970 WHERE "Runner(s)-up" = 'chi-chi rodriguez'
### Instruction: CREATE TABLE table_22985 ( "Name" text, "Completions" real, "Attempts" real, "Completion %" text, "Yards" real, "Touchdowns" real, "Interceptions" real, "QB Rating" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of interceptions? ### Response:
SELECT MAX("Interceptions") FROM table_22985
### Instruction: CREATE TABLE table_204_888 ( id number, "location" text, "mile" number, "destinations" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what note is before former md 453 ? ### Response:
SELECT "notes" FROM table_204_888 WHERE id = (SELECT id FROM table_204_888 WHERE "notes" = 'former md 453') - 1
### Instruction: CREATE TABLE table_name_42 ( level INTEGER, example_name VARCHAR, number_of_hus__approximate_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the mean level number when the example name is lower snake and the approximate number is hus is less than 370? ### Response:
SELECT AVG(level) FROM table_name_42 WHERE example_name = "lower snake" AND number_of_hus__approximate_ < 370
### Instruction: CREATE TABLE table_20451 ( "Country" text, "Name" text, "Host" text, "Channel" text, "First Premiere" text, "Regular Judge" text, "Seasons" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of regular judge when host is bernie chan ### Response:
SELECT COUNT("Regular Judge") FROM table_20451 WHERE "Host" = 'Bernie Chan'
### Instruction: CREATE TABLE table_8055 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Falcons points" real, "Opponents" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the opponent with 16 points? ### Response:
SELECT "Opponent" FROM table_8055 WHERE "Opponents" = '16'
### Instruction: CREATE TABLE table_203_651 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times after the year 1989 did she come in 1st position ? ### Response:
SELECT COUNT(*) FROM table_203_651 WHERE "position" = 1 AND "year" > 1989
### Instruction: CREATE TABLE table_71497 ( "Direction" text, "Name" text, "Japanese" text, "Terminals" text, "Length (km)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What line is 24.7 km and head towards Toyohashi East? ### Response:
SELECT "Name" FROM table_71497 WHERE "Direction" = 'toyohashi east' AND "Length (km)" = '24.7'
### Instruction: CREATE TABLE table_62618 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Venue, when Date is '14/12/1996'? ### Response:
SELECT "Venue" FROM table_62618 WHERE "Date" = '14/12/1996'
### Instruction: CREATE TABLE table_3120 ( "Rank" text, "Player" text, "Nationality" text, "Team" text, "Opponent" text, "Score" text, "Competition" text, "Vote percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team was ranked in 7th? ### Response:
SELECT "Team" FROM table_3120 WHERE "Rank" = '7th'
### Instruction: CREATE TABLE table_75588 ( "Name" text, "Pennant number" text, "Builder" text, "Laid Down" text, "Launched" text, "Commissioned" text, "Current status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the builder who launched in danaide ### Response:
SELECT "Launched" FROM table_75588 WHERE "Name" = 'danaide'
### Instruction: CREATE TABLE table_26211058_1 ( specimen_weight_size VARCHAR, calculated_activity___ci__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the calculated activity (CI) is 4.96 10 11, what is the specimen weight/size? ### Response:
SELECT specimen_weight_size FROM table_26211058_1 WHERE calculated_activity___ci__ = "4.96×10 −11"
### Instruction: CREATE TABLE ship ( ship_id number, name text, type text, built_year number, class text, flag text ) CREATE TABLE captain ( captain_id number, name text, ship_id number, age text, class text, rank text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which rank is the most common among captains? ### Response:
SELECT rank FROM captain GROUP BY rank ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_4335 ( "Region" text, "Date" text, "Format" text, "Label" text, "Edition(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the format for worldwide region july 22, 2008 ### Response:
SELECT "Format" FROM table_4335 WHERE "Region" = 'worldwide' AND "Date" = 'july 22, 2008'
### Instruction: CREATE TABLE table_61106 ( "Year" real, "Award" text, "Category" text, "Nominated Work" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result for the Outer Critics Circle award earlier than 2004? ### Response:
SELECT "Result" FROM table_61106 WHERE "Award" = 'outer critics circle award' AND "Year" < '2004'
### Instruction: CREATE TABLE table_69836 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the placekicker position with a round above 10? ### Response:
SELECT "Name" FROM table_69836 WHERE "Round" > '10' AND "Position" = 'placekicker'
### Instruction: CREATE TABLE table_57108 ( "Pick #" real, "Player" text, "Nationality" text, "Position" text, "Team from" text, "League from" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest pick from Elitserien (Sweden)? ### Response:
SELECT MIN("Pick #") FROM table_57108 WHERE "League from" = 'elitserien (sweden)'
### Instruction: CREATE TABLE table_76813 ( "1976" text, "1977" text, "1978" text, "1979" text, "1980" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is 1977 when 1980 is chile? ### Response:
SELECT "1977" FROM table_76813 WHERE "1980" = 'chile'
### Instruction: CREATE TABLE table_21476 ( "Downstream" text, "Upstream" text, "Bandwidth" text, "Price TL" text, "Every 1 GB" text, "MAX" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the upstream speed of the network that costs 39 tl? ### Response:
SELECT "Upstream" FROM table_21476 WHERE "Price TL" = '39 TL'
### Instruction: CREATE TABLE table_name_84 ( opponents VARCHAR, date VARCHAR, score VARCHAR, competition VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Score of 2-1, and a Competition of pl, and a Date of december 22, 2006 had what opponents? ### Response:
SELECT opponents FROM table_name_84 WHERE score = "2-1" AND competition = "pl" AND date = "december 22, 2006"
### Instruction: CREATE TABLE table_8928 ( "Year" real, "Date" text, "Winner" text, "Result" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Winner, when Location is Connie Mack Stadium, and when Year is 1946? ### Response:
SELECT "Winner" FROM table_8928 WHERE "Location" = 'connie mack stadium' AND "Year" = '1946'
### Instruction: CREATE TABLE table_203_191 ( id number, "year" number, "group" text, "award" text, "result" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when was the last time rade serbedzija won an award for best actor ? ### Response:
SELECT "year" FROM table_203_191 WHERE "award" = 'best actor' ORDER BY "year" DESC LIMIT 1
### Instruction: CREATE TABLE table_60957 ( "County" text, "Per capita income" text, "Median household income" text, "Median family income" text, "Population" real, "Number of households" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the median household income for Cape Girardeau? ### Response:
SELECT "Median household income" FROM table_60957 WHERE "County" = 'cape girardeau'
### Instruction: CREATE TABLE table_64502 ( "Track" text, "Song Title" text, "Writer(s)" text, "Original Artist" text, "Original Release" real, "Length" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Original Artis of the Track with a Length of 2:38? ### Response:
SELECT "Original Artist" FROM table_64502 WHERE "Length" = '2:38'
### Instruction: CREATE TABLE table_29568 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the air date for alex taub ### Response:
SELECT "Original air date" FROM table_29568 WHERE "Written by" = 'Alex Taub'
### Instruction: CREATE TABLE table_name_59 ( score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score of the game on February 26 with the Chicago black hawks as the home team and the New York Rangers as the visitor team? ### Response:
SELECT score FROM table_name_59 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND date = "february 26"
### Instruction: CREATE TABLE product ( product_name VARCHAR, product_id VARCHAR ) CREATE TABLE problems ( product_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many problems does the product with the most problems have? List the number of the problems and product name. ### Response:
SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_47962 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which round has more than 79 overall and a position of QB? ### Response:
SELECT "Round" FROM table_47962 WHERE "Position" = 'qb' AND "Overall" > '79'
### Instruction: CREATE TABLE table_51771 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the score for Venue of tanteen recreation ground, st. george's ### Response:
SELECT "Score" FROM table_51771 WHERE "Venue" = 'tanteen recreation ground, st. george''s'
### Instruction: CREATE TABLE table_75582 ( "Name" text, "Street address" text, "Years as tallest" text, "Height ft / m" text, "Floors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the height of the building named 555 17th street? ### Response:
SELECT "Height ft / m" FROM table_75582 WHERE "Name" = '555 17th street'
### Instruction: CREATE TABLE table_17905 ( "Series number" text, "Episode number" real, "Date of first broadcast" text, "Total viewers" real, "Series average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the episode number where the total viewers is 614000? ### Response:
SELECT MIN("Episode number") FROM table_17905 WHERE "Total viewers" = '614000'
### Instruction: CREATE TABLE table_204_207 ( id number, "week" number, "date" text, "opponent" text, "result" text, "attendance" number, "bye" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- last home opponent of the season ### Response:
SELECT "opponent" FROM table_204_207 WHERE "opponent" = 'home' ORDER BY "week" DESC LIMIT 1
### Instruction: CREATE TABLE table_3007 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the reason for change when the successor was William Milnes, Jr. (C)? ### Response:
SELECT "Reason for change" FROM table_3007 WHERE "Successor" = 'William Milnes, Jr. (C)'
### Instruction: CREATE TABLE table_44926 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Score for T9 United States Player Kirk Triplett? ### Response:
SELECT "Score" FROM table_44926 WHERE "Place" = 't9' AND "Country" = 'united states' AND "Player" = 'kirk triplett'
### Instruction: CREATE TABLE table_64651 ( "Rank" real, "Name" text, "Status" text, "City" text, "Floors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest number of floors for the number 2 ranked Joyus Housing? ### Response:
SELECT MIN("Floors") FROM table_64651 WHERE "Name" = 'joyus housing' AND "Rank" < '2'
### Instruction: CREATE TABLE table_7694 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest attendance for the game after week 1 against the New York Jets? ### Response:
SELECT MAX("Attendance") FROM table_7694 WHERE "Week" > '1' AND "Opponent" = 'new york jets'
### Instruction: CREATE TABLE table_32879 ( "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 day did the VFL pay MCG? ### Response:
SELECT "Date" FROM table_32879 WHERE "Venue" = 'mcg'
### Instruction: CREATE TABLE table_68037 ( "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. -- What tournament has nov. 21, 1999 as the date? ### Response:
SELECT "Tournament" FROM table_68037 WHERE "Date" = 'nov. 21, 1999'
### Instruction: CREATE TABLE table_71364 ( "Rank" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many bronze medals did the country with 7 medals and over 5 silver medals receive? ### Response:
SELECT SUM("Bronze") FROM table_71364 WHERE "Total" = '7' AND "Silver" > '5'
### Instruction: CREATE TABLE table_40255 ( "Spoofed Title" text, "Actual Title" text, "Writer" text, "Artist" text, "Issue" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which artist has a Spoofed title in June 1992? ### Response:
SELECT "Artist" FROM table_40255 WHERE "Date" = 'june 1992'
### Instruction: CREATE TABLE table_name_34 ( gold INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Silver larger than 0? ### Response:
SELECT SUM(gold) FROM table_name_34 WHERE bronze = 0 AND total > 1 AND nation = "chad" AND silver > 0
### Instruction: CREATE TABLE table_53670 ( "Rank" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of bronze that silver is smaller than 1 and gold bigger than 0? ### Response:
SELECT AVG("Bronze") FROM table_53670 WHERE "Silver" < '1' AND "Gold" > '0'
### Instruction: CREATE TABLE table_80218 ( "Rank" real, "Heat" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the average rank with larger than 3 and heat more than 5 ### Response:
SELECT AVG("Rank") FROM table_80218 WHERE "Lane" > '3' AND "Heat" > '5'
### Instruction: CREATE TABLE table_10367 ( "State" text, "Swimsuit" real, "Interview" real, "Evening Gown" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest swimsuit for a contestant with an average of 9.125? ### Response:
SELECT MIN("Swimsuit") FROM table_10367 WHERE "Average" = '9.125'
### Instruction: CREATE TABLE table_62999 ( "Pick" real, "Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which college did the player picked larger than 130 by the New York Jets go to? ### Response:
SELECT "College" FROM table_62999 WHERE "Pick" > '130' AND "Team" = 'new york jets'
### Instruction: CREATE TABLE table_7901 ( "Round" real, "Pick" real, "Player" text, "Nationality" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What round was jerry corcoran drafted in as pick number 114? ### Response:
SELECT MAX("Round") FROM table_7901 WHERE "Pick" > '114' AND "Player" = 'jerry corcoran'
### Instruction: CREATE TABLE table_name_50 ( week_11_nov_16 VARCHAR, week_13_nov_30 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the week 11 nov 16 standing with wisconsin (10-1) on week 13 Nov 30? ### Response:
SELECT week_11_nov_16 FROM table_name_50 WHERE week_13_nov_30 = "wisconsin (10-1)"
### Instruction: CREATE TABLE table_203_88 ( id number, "language" text, "number" number, "percentage (%)" number, "males" number, "females" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the highest percentage of speakers other than polish ? ### Response:
SELECT "language" FROM table_203_88 WHERE "language" <> 'polish' ORDER BY "percentage (%)" DESC LIMIT 1
### Instruction: CREATE TABLE table_39780 ( "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 method led to a record of 9-4? ### Response:
SELECT "Method" FROM table_39780 WHERE "Record" = '9-4'
### Instruction: CREATE TABLE table_264 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the tournament of aug 29? ### Response:
SELECT "Tournament" FROM table_264 WHERE "Date" = 'Aug 29'
### Instruction: CREATE TABLE table_name_61 ( spins__since_1998__source VARCHAR, ccm_chart VARCHAR, peak_pos VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Spins sources have a CCM Chart of CHR with a peak position less than 1? ### Response:
SELECT COUNT(spins__since_1998__source) AS :_mediabase FROM table_name_61 WHERE ccm_chart = "chr" AND peak_pos < 1
### Instruction: CREATE TABLE table_204_449 ( id number, "no" number, "episode" text, "title" text, "original airdate" text, "viewers" number, "nightly\nrank" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which episode had at least 1.0 viewers ? ### Response:
SELECT "title" FROM table_204_449 WHERE "viewers" >= 1.0
### Instruction: CREATE TABLE table_203_8 ( id number, "player" text, "rec." number, "yards" number, "avg." number, "td's" number, "long" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which player had the most receptions but no touchdowns ? ### Response:
SELECT "player" FROM table_203_8 WHERE "td's" = 0 ORDER BY "rec." DESC LIMIT 1
### Instruction: CREATE TABLE table_9355 ( "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. -- What are the High assists for Team houston? ### Response:
SELECT "High assists" FROM table_9355 WHERE "Team" = 'houston'
### Instruction: CREATE TABLE table_24920 ( "School" text, "Location" text, "Team Name" text, "Colors" text, "Varsity Teams" real, "NJCAA Championships" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the school is John A. Logan College, what are the colors? ### Response:
SELECT "Colors" FROM table_24920 WHERE "School" = 'John A. Logan College'
### Instruction: CREATE TABLE table_21458142_1 ( sales_breakdown VARCHAR, publisher VARCHAR, release_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the sales breakdown of the Nintendo game released on May 15, 2006? ### Response:
SELECT sales_breakdown FROM table_21458142_1 WHERE publisher = "Nintendo" AND release_date = "May 15, 2006"
### Instruction: CREATE TABLE table_58720 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the money for place t3 and United States? ### Response:
SELECT "Money ( $ )" FROM table_58720 WHERE "Place" = 't3' AND "Country" = 'united states'
### Instruction: CREATE TABLE table_35779 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record of the Hartford Whalers home team with the April 13 game date? ### Response:
SELECT "Record" FROM table_35779 WHERE "Home" = 'hartford whalers' AND "Date" = 'april 13'
### Instruction: CREATE TABLE table_12145 ( "Year" real, "Title" text, "Format/genre" text, "Role" text, "Staged by" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the role in an original play, comedy in 1938? ### Response:
SELECT "Role" FROM table_12145 WHERE "Format/genre" = 'original play, comedy' AND "Year" = '1938'
### Instruction: CREATE TABLE table_204_415 ( id number, "season" text, "tier" number, "division" text, "place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- after the 1994/95 season , how many first place finishes did the club have ? ### Response:
SELECT COUNT(*) FROM table_204_415 WHERE "season" > '1994/95' AND "place" = 1
### Instruction: CREATE TABLE table_name_59 ( d__max_ VARCHAR, morse_taper_number VARCHAR, c__max_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With a Morse Taper number less than 3 and a C (max) of 59.5 what is the total of D (max)? ### Response:
SELECT COUNT(d__max_) FROM table_name_59 WHERE morse_taper_number < 3 AND c__max_ = 59.5
### Instruction: CREATE TABLE table_35970 ( "Player" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the lowest field goals but had 10 points and more than 2 touchdowns? ### Response:
SELECT MIN("Field goals") FROM table_35970 WHERE "Points" = '10' AND "Touchdowns" > '2'