instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_48919 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Tie Number when the home team was West Ham United? ### Response:
SELECT "Tie no" FROM table_48919 WHERE "Home team" = 'west ham united'
### Instruction: CREATE TABLE table_2430014_8 ( written_by VARCHAR, uk_ratings__bbc2_rank_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote the episode what had the rating 2.27m (5)? ### Response:
SELECT written_by FROM table_2430014_8 WHERE uk_ratings__bbc2_rank_ = "2.27m (5)"
### Instruction: CREATE TABLE table_name_16 ( round INTEGER, overall VARCHAR, position VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Round for wide receiver r. jay soward and Overall smaller than 29? ### Response:...
SELECT AVG(round) FROM table_name_16 WHERE position = "wide receiver" AND name = "r. jay soward" AND overall < 29
### Instruction: CREATE TABLE table_32778 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Grid has Driver Cristiano da Matta? ### Response:
SELECT "Grid" FROM table_32778 WHERE "Driver" = 'cristiano da matta'
### Instruction: CREATE TABLE table_62967 ( "play" text, "author" text, "company" text, "base" text, "country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Country's Author is based on Sophocles and Euripides? ### Response:
SELECT "country" FROM table_62967 WHERE "author" = 'based on sophocles and euripides'
### Instruction: CREATE TABLE table_70294 ( "Representative" text, "Years" text, "State" text, "Party" text, "Lifespan" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What years did Representative Frank A. Oliver serve? ### Response:
SELECT "Years" FROM table_70294 WHERE "Representative" = 'frank a. oliver'
### Instruction: CREATE TABLE table_name_96 ( year VARCHAR, tournament_name VARCHAR, runners_up VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the Grand Prix Passing Shot Bordeaux that had Runners-up of Diego Nargiso? ### Response:
SELECT year FROM table_name_96 WHERE tournament_name = "grand prix passing shot bordeaux" AND runners_up = "diego nargiso"
### Instruction: CREATE TABLE table_name_42 ( number_on_map INTEGER, name VARCHAR, construction_commenced VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number for Northgate which commenced its construction before 1951? ### Response...
SELECT AVG(number_on_map) FROM table_name_42 WHERE name = "northgate" AND construction_commenced < 1951
### Instruction: CREATE TABLE table_47175 ( "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 curtis strange's to par? ### Response:
SELECT "To par" FROM table_47175 WHERE "Player" = 'curtis strange'
### Instruction: CREATE TABLE table_name_41 ( call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which call sign has a frequency greater than 98.5MHz and ERP W under 155? ### Response:
SELECT call_sign FROM table_name_41 WHERE frequency_mhz > 98.5 AND erp_w < 155
### Instruction: CREATE TABLE table_21138 ( "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. -- When was 'Tell You When' released? ### Response:
SELECT "Release date" FROM table_21138 WHERE "Title" = 'Tell You When'
### Instruction: CREATE TABLE table_64645 ( "Name" text, "Nickname" text, "Location" text, "Home ground(s)" text, "Coach" text, "Captain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Name has the Location of Bayswater? ### Response:
SELECT "Name" FROM table_64645 WHERE "Location" = 'bayswater'
### Instruction: CREATE TABLE table_204_422 ( id number, "rank" number, "lane" number, "name" text, "nationality" text, "time" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the fastest swimmer ? ### Response:
SELECT "name" FROM table_204_422 ORDER BY "time" LIMIT 1
### Instruction: CREATE TABLE table_204_780 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which position was held the most number of times ? ### Response:
SELECT "position" FROM table_204_780 GROUP BY "position" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_name_94 ( venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Venue has an Event of marathon, and a Year larger than 1995, and a Position of 4th? ### Response...
SELECT venue FROM table_name_94 WHERE event = "marathon" AND year > 1995 AND position = "4th"
### Instruction: CREATE TABLE table_61211 ( "Date" text, "Series" text, "Circuit" text, "City / State" text, "Winner" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team won at winton motor raceway? ### Response:
SELECT "Team" FROM table_61211 WHERE "Circuit" = 'winton motor raceway'
### Instruction: CREATE TABLE table_11585313_1 ( name VARCHAR, date_of_death† VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the person whose date of death is 01-04-1954? ### Response:
SELECT name FROM table_11585313_1 WHERE date_of_death† = "01-04-1954"
### Instruction: CREATE TABLE table_name_89 ( position VARCHAR, no_s_ VARCHAR, years_for_rockets VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the position for number 11 and years on the rockets for 1989-95 ### Response:
SELECT position FROM table_name_89 WHERE no_s_ = "11" AND years_for_rockets = "1989-95"
### Instruction: CREATE TABLE table_51053 ( "Channel" real, "Video" text, "Aspect" text, "PSIP Short Name" text, "Programming" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Aspect has a Programming of Saigon Network Television? ### Response:...
SELECT "Aspect" FROM table_51053 WHERE "Programming" = 'saigon network television'
### Instruction: CREATE TABLE table_name_80 ( losses INTEGER, goals_against VARCHAR, games_played VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the sum of the losses when the goals against is less than 34 and the games played is less than 8? #...
SELECT SUM(losses) FROM table_name_80 WHERE goals_against < 34 AND games_played < 8
### Instruction: CREATE TABLE table_203_81 ( id number, "date" text, "constituency" text, "gain" text, "loss" text, "note" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- for loss , what 's the number of times labor party is listed ? ### Respon...
SELECT COUNT(*) FROM table_203_81 WHERE "loss" = 'labour party'
### Instruction: CREATE TABLE table_59632 ( "Round" text, "Date" text, "Event" text, "Circuit" text, "Winning Driver" text, "Winning Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winning team for round 3? ### Response:
SELECT "Winning Team" FROM table_59632 WHERE "Round" = '3'
### Instruction: CREATE TABLE table_47816 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What week had attendance of 64,146? ### Response:
SELECT MIN("Week") FROM table_47816 WHERE "Attendance" = '64,146'
### Instruction: CREATE TABLE table_27133147_3 ( date_of_vacancy VARCHAR, incoming_head_coach VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the incoming head coach is Carlos Azenha, what is the date of vacancy? ### Response:
SELECT date_of_vacancy FROM table_27133147_3 WHERE incoming_head_coach = "Carlos Azenha"
### Instruction: CREATE TABLE table_39012 ( "Game" real, "February" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which Record has a Score of 1 4? ### Response:
SELECT "Record" FROM table_39012 WHERE "Score" = '1–4'
### Instruction: CREATE TABLE table_25084227_1 ( written_by VARCHAR, us_viewers__in_millions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- if the 2.09 million US viewers watched this episode, who was it written by ### Response:
SELECT written_by FROM table_25084227_1 WHERE us_viewers__in_millions_ = "2.09"
### Instruction: CREATE TABLE table_name_33 ( _number_100 INTEGER, season VARCHAR, against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which sum of # 100 has a Season of 1990, and an Against of warwickshire? ### Response:
SELECT SUM(_number_100) FROM table_name_33 WHERE season = "1990" AND against = "warwickshire"
### Instruction: CREATE TABLE table_204_541 ( id number, "name" text, "area" text, "height" text, "floors" number, "year" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many floors does the bsnl tower have ? ### Response:
SELECT "floors" FROM table_204_541 WHERE "name" = 'bsnl tower'
### Instruction: CREATE TABLE table_39950 ( "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest draw against 2161? ### Response:
SELECT MAX("Draws") FROM table_39950 WHERE "Against" > '2161'
### Instruction: CREATE TABLE table_20104 ( "No" real, "Driver" text, "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many chassis used number 34? ### Response:
SELECT COUNT("Chassis") FROM table_20104 WHERE "No" = '34'
### Instruction: CREATE TABLE table_37013 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score when their record was 35 23 15? ### Response:
SELECT "Score" FROM table_37013 WHERE "Record" = '35–23–15'
### Instruction: CREATE TABLE table_31963 ( "Calls" text, "Frequency" text, "Branding" text, "Format" text, "Timeslot" text, "Group owner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the timeslot of calls of wrko ### Response:
SELECT "Timeslot" FROM table_31963 WHERE "Calls" = 'wrko'
### Instruction: CREATE TABLE table_38664 ( "District" text, "Incumbent" text, "Party" text, "Elected" real, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which incumbent was in the 24th district? ### Response:
SELECT "Incumbent" FROM table_38664 WHERE "District" = '24th'
### Instruction: CREATE TABLE table_1149 ( "Year (Ceremony)" text, "English title" text, "Hungarian title" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the director for diary for my loves? ### Response:
SELECT "Director" FROM table_1149 WHERE "English title" = 'Diary for My Loves'
### Instruction: CREATE TABLE table_13589 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What event has 7860 notes? ### Response:
SELECT "Event" FROM table_13589 WHERE "Notes" = '7860'
### Instruction: CREATE TABLE table_43943 ( "Fieldbus" text, "Bus power" text, "Cabling redundancy" text, "Synchronisation" text, "Sub millisecond cycle" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the synchronisation for the controlnet f...
SELECT "Synchronisation" FROM table_43943 WHERE "Fieldbus" = 'controlnet'
### Instruction: CREATE TABLE table_name_25 ( elimination VARCHAR, team VARCHAR, eliminated_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Elimination move is listed against Team Orton, Eliminated by Batista against Elimination number 7? ### R...
SELECT elimination AS Move FROM table_name_25 WHERE team = "team orton" AND eliminated_by = "batista" AND elimination = "7"
### Instruction: CREATE TABLE table_57282 ( "Last" text, "First" text, "Year" real, "Sport" text, "Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sum of year for swimming and first of mike ### Response:
SELECT SUM("Year") FROM table_57282 WHERE "Sport" = 'swimming' AND "First" = 'mike'
### Instruction: CREATE TABLE table_27776266_1 ( production_code VARCHAR, us_viewers__million_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the production code of the episode with an audience of 14.79 million in the US? ### Response:
SELECT production_code FROM table_27776266_1 WHERE us_viewers__million_ = "14.79"
### Instruction: CREATE TABLE table_name_53 ( designated_home VARCHAR, date VARCHAR, television VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the home team during the game that aired on Fox after 2007 on October 23? ### Resp...
SELECT designated_home FROM table_name_53 WHERE television = "fox" AND year > 2007 AND date = "october 23"
### Instruction: CREATE TABLE table_34551 ( "Year" real, "Tournament" text, "Venue" text, "Result" text, "Distance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How far Venue of seoul, south korea is? ### Response:
SELECT "Distance" FROM table_34551 WHERE "Venue" = 'seoul, south korea'
### Instruction: CREATE TABLE table_204_110 ( id number, "year" number, "champion" text, "city" text, "llws" text, "record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who came in first place in 1966 ? ### Response:
SELECT "champion" FROM table_204_110 WHERE "year" = 1966
### Instruction: CREATE TABLE table_204_321 ( id number, "community" text, "currency" text, "region" text, "target date" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the only proposed community in the south asia region ...
SELECT "community" FROM table_204_321 WHERE "region" = 'south asia'
### Instruction: CREATE TABLE table_204_321 ( id number, "community" text, "currency" text, "region" text, "target date" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many currency does the region of africa have ### Respon...
SELECT COUNT(DISTINCT "currency") FROM table_204_321 WHERE "region" = 'africa'
### Instruction: CREATE TABLE table_name_42 ( time VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Time when there are 18 laps, grid larger than 15, and Rider of Russell Holland? ### Response:
SELECT time FROM table_name_42 WHERE laps = 18 AND grid > 15 AND rider = "russell holland"
### Instruction: CREATE TABLE table_57885 ( "Player" text, "Height" text, "School" text, "Hometown" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the hometown for the player that went to the college of washington ### Respo...
SELECT "Hometown" FROM table_57885 WHERE "College" = 'washington'
### Instruction: CREATE TABLE table_22366 ( "Voting order" real, "Country" text, "Spokespersons" text, "Commentator" text, "Broadcaster" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which countries were commentated on by gordana bonetti ### Resp...
SELECT "Country" FROM table_22366 WHERE "Commentator" = 'Gordana Bonetti'
### Instruction: CREATE TABLE table_203_20 ( id number, "player" text, "year" number, "round" text, "result" text, "opponent" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who are the only players listed that played in 2011 ? ### Response:
SELECT "player" FROM table_203_20 WHERE "year" = 2011
### Instruction: CREATE TABLE table_34683 ( "Player" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Whicih Extra points are the average ones that have Points smaller than 6? ...
SELECT AVG("Extra points") FROM table_34683 WHERE "Points" < '6'
### Instruction: CREATE TABLE table_68772 ( "Estimate" text, "Name" text, "Nat." text, "Ship type" text, "Where sunk" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type of ship was the Shinano? ### Response:
SELECT "Ship type" FROM table_68772 WHERE "Name" = 'shinano'
### Instruction: CREATE TABLE table_60385 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the to par for the player with total of 155? ### Response:
SELECT AVG("To par") FROM table_60385 WHERE "Total" = '155'
### Instruction: CREATE TABLE table_18933037_3 ( b_52_model VARCHAR, unit VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 7th bw attached to 43rd sw is the unit what is the b-52 model? ### Response:
SELECT b_52_model FROM table_18933037_3 WHERE unit = "7th BW attached to 43rd SW"
### Instruction: CREATE TABLE table_68315 ( "Language" text, "Number" text, "percentage (%)" text, "males" text, "females" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Males have a percentage of 0.42? ### Response:
SELECT "males" FROM table_68315 WHERE "percentage (%)" = '0.42'
### Instruction: CREATE TABLE table_name_47 ( wins INTEGER, club VARCHAR, goals_for VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the sum of Wins that has the Club of abuls smiltene, and the Goals smaller than 18? ### Response:
SELECT SUM(wins) FROM table_name_47 WHERE club = "abuls smiltene" AND goals_for < 18
### Instruction: CREATE TABLE table_1373542_1 ( date_completed VARCHAR, date_announced VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date was the asset acquisition that was announced on February 22, 2007 completed? ### Response:
SELECT date_completed FROM table_1373542_1 WHERE date_announced = "February 22, 2007"
### Instruction: CREATE TABLE table_14662 ( "Player" text, "Height" real, "Position" text, "Year born" real, "Current Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was tony parker (guard) born? ### Response:
SELECT MAX("Year born") FROM table_14662 WHERE "Position" = 'guard' AND "Player" = 'tony parker'
### Instruction: CREATE TABLE table_name_27 ( win__number INTEGER, year VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Win #, when Year is '2011-12', and when Points is less than 97? ### Response:
SELECT MIN(win__number) FROM table_name_27 WHERE year = "2011-12" AND points < 97
### Instruction: CREATE TABLE table_2503 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Language(s)" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the year for japanese ### Response:
SELECT "Year (Ceremony)" FROM table_2503 WHERE "Language(s)" = 'Japanese'
### Instruction: CREATE TABLE table_71513 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With a record of 43-26, what was the score that game? ### Response:
SELECT "Score" FROM table_71513 WHERE "Record" = '43-26'
### Instruction: CREATE TABLE table_204_659 ( id number, "seat" text, "state" text, "majority" number, "member" text, "party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the total majority that the dobell seat had ? ### Response:
SELECT "majority" FROM table_204_659 WHERE "seat" = 'dobell'
### Instruction: CREATE TABLE candidates ( candidate_id VARCHAR ) CREATE TABLE people ( first_name VARCHAR, last_name VARCHAR, person_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what are the first name and last name of all candidates? ### Re...
SELECT T2.first_name, T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id
### Instruction: CREATE TABLE table_204_784 ( id number, "player" text, "league" number, "cup" number, "europa league" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which players have at least 4 in the europa league ? ### Re...
SELECT "player" FROM table_204_784 WHERE "europa league" >= 4
### Instruction: CREATE TABLE table_name_48 ( round VARCHAR, player VARCHAR, draft VARCHAR, pick VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the round of player brad winton with a draft before 1983 and a pick less than 132? ### Response:...
SELECT round FROM table_name_48 WHERE draft < 1983 AND pick < 132 AND player = "brad winton"
### Instruction: CREATE TABLE table_48614 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what Week was the Attendance 39,923? ### Response:
SELECT SUM("Week") FROM table_48614 WHERE "Attendance" = '39,923'
### Instruction: CREATE TABLE table_75706 ( "Rank" real, "Location" text, "Total Passengers" real, "Annual change" text, "Capacity in use" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What location has an annual change of 7.6% ### Response:
SELECT "Location" FROM table_75706 WHERE "Annual change" = '7.6%'
### 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. -- which language had the smallest number of females speak...
SELECT "language" FROM table_203_88 ORDER BY "females" LIMIT 1
### Instruction: CREATE TABLE table_name_19 ( accidentally_achieved INTEGER, orbital_regime VARCHAR, successes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total of medium earth orbital regime, accidentally achieved and successes greater th...
SELECT SUM(accidentally_achieved) FROM table_name_19 WHERE orbital_regime = "medium earth" AND successes > 3
### Instruction: CREATE TABLE table_44030 ( "Test" text, "Subject" text, "Mean score" text, "Standard deviation" text, "Number of Students" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What test had 49,608 students? ### Response:
SELECT "Test" FROM table_44030 WHERE "Number of Students" = '49,608'
### Instruction: CREATE TABLE table_name_8 ( week INTEGER, result VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Week has a Result of l 20 13, and an Attendance larger than 49,598? ### Response:
SELECT MAX(week) FROM table_name_8 WHERE result = "l 20–13" AND attendance > 49 OFFSET 598
### Instruction: CREATE TABLE table_8725 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what event is the opponent Joe Nameth? ### Response:
SELECT "Event" FROM table_8725 WHERE "Opponent" = 'joe nameth'
### Instruction: CREATE TABLE table_203_717 ( id number, "number" number, "year built" number, "livery" text, "current status" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many cars were created before 1960 ? ### Response:
SELECT COUNT(*) FROM table_203_717 WHERE "year built" < 1960
### Instruction: CREATE TABLE table_79884 ( "Year" real, "Chassis" text, "Engine" text, "Tyres" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What engine was for the vehicle with a cooper t43 chassis? ### Response:
SELECT "Engine" FROM table_79884 WHERE "Chassis" = 'cooper t43'
### Instruction: CREATE TABLE table_16071 ( "Round" real, "Choice" real, "Overall" real, "Player name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is the college where Keith Hartwig plays? ### Response...
SELECT "College" FROM table_16071 WHERE "Player name" = 'Keith Hartwig'
### Instruction: CREATE TABLE table_41700 ( "Name" text, "Rank" real, "Out of" text, "Source" text, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Concerning protestantism by country, the ranking is out of how many total? ### Response:
SELECT "Out of" FROM table_41700 WHERE "Source" = 'protestantism by country'
### Instruction: CREATE TABLE table_79746 ( "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 scored is recorded on April 24? ### Response:
SELECT "Score" FROM table_79746 WHERE "Date" = 'april 24'
### Instruction: CREATE TABLE table_name_15 ( _number_of_phones_as__percentage_of_population INTEGER, country_or_region VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percent of the population has phone in Russia? ### Response:
SELECT AVG(_number_of_phones_as__percentage_of_population) FROM table_name_15 WHERE country_or_region = "russia"
### Instruction: CREATE TABLE table_77443 ( "Tie no" real, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Tie no when the date is Birmingham City? ### Response:
SELECT AVG("Tie no") FROM table_77443 WHERE "Date" = 'birmingham city'
### Instruction: CREATE TABLE table_35062 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was Barclay Henley first elected? ### Response:
SELECT COUNT("First elected") FROM table_35062 WHERE "Incumbent" = 'barclay henley'
### Instruction: CREATE TABLE table_203_657 ( id number, "call sign" text, "frequency" text, "city of license" text, "licensee" text, "format" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many christian contemporary stations are there ? ...
SELECT COUNT(*) FROM table_203_657 WHERE "format" = 'christian contemporary'
### Instruction: CREATE TABLE table_12715053_1 ( molecular_target VARCHAR, compound_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the molecular target listed under the compounded name of hemiasterlin (e7974) ### Response:
SELECT molecular_target FROM table_12715053_1 WHERE compound_name = "Hemiasterlin (E7974)"
### Instruction: CREATE TABLE table_59414 ( "Year" text, "Result" text, "Matches" text, "Wins" text, "Draws" text, "Losses" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result in 2008? ### Response:
SELECT "Result" FROM table_59414 WHERE "Year" = '2008'
### Instruction: CREATE TABLE table_3598 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was Henry Daniel first elected? ### Response:
SELECT "First elected" FROM table_3598 WHERE "Incumbent" = 'Henry Daniel'
### Instruction: CREATE TABLE table_80444 ( "Rank" real, "Nation" text, "National Wins" real, "Drivers" text, "Driver Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of wins of drivers from Sweden? ### Response:
SELECT AVG("Driver Wins") FROM table_80444 WHERE "Nation" = 'sweden'
### Instruction: CREATE TABLE table_name_49 ( ring_name VARCHAR, stable VARCHAR, birthplace VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Ring Name, when Stable is Kasugano, and when Birthplace is Z Mtskheta , Georgia? ### Response:
SELECT ring_name FROM table_name_49 WHERE stable = "kasugano" AND birthplace = "z mtskheta , georgia"
### Instruction: CREATE TABLE table_name_60 ( engine INTEGER, model VARCHAR, chassis VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Engine has a Model of sl500, and a Chassis smaller than 129.067? ### Response:
SELECT MIN(engine) FROM table_name_60 WHERE model = "sl500" AND chassis < 129.067
### Instruction: CREATE TABLE table_48799 ( "Rider" text, "Manufacturer" text, "Laps" text, "Time/Retired" text, "Grid" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the grid of rider shinya nakano? ### Response:
SELECT "Grid" FROM table_48799 WHERE "Rider" = 'shinya nakano'
### Instruction: CREATE TABLE table_12870 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the results for the incumbent from Iowa 2 district? ### Response:...
SELECT "Results" FROM table_12870 WHERE "District" = 'iowa 2'
### Instruction: CREATE TABLE table_61415 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is sheffield united's away team? ### Response:
SELECT "Away team" FROM table_61415 WHERE "Home team" = 'sheffield united'
### Instruction: CREATE TABLE table_name_60 ( outcome VARCHAR, opponents_in_the_final VARCHAR, surface VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the outcome when the oppenent was serena williams venus williams and had a hard surface? ### ...
SELECT outcome FROM table_name_60 WHERE opponents_in_the_final = "serena williams venus williams" AND surface = "hard"
### Instruction: CREATE TABLE table_56776 ( "Year" text, "League" text, "Reg. Season" text, "Playoffs" text, "Avg. attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which league had a playoffs result of a lost semifinal? ### Response:
SELECT "League" FROM table_56776 WHERE "Playoffs" = 'lost semifinal'
### Instruction: CREATE TABLE table_21977704_1 ( no INTEGER, entrant VARCHAR, driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most number for autom vil club argentino for benedicto campos ### Response:
SELECT MAX(no) FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Benedicto Campos"
### Instruction: CREATE TABLE table_71991 ( "Rank" real, "Mountain Peak" text, "Province" text, "Mountain Range" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which mountain range includes Mount Hubbard? ### Response:
SELECT "Mountain Range" FROM table_71991 WHERE "Mountain Peak" = 'mount hubbard'
### Instruction: CREATE TABLE table_15671 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What chassis was paired with climax straight-4? ### Response:
SELECT "Chassis" FROM table_15671 WHERE "Engine" = 'climax straight-4'
### Instruction: CREATE TABLE table_68537 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Loss when the Record was 50-54? ### Response:
SELECT "Loss" FROM table_68537 WHERE "Record" = '50-54'
### Instruction: CREATE TABLE table_name_39 ( year INTEGER, role VARCHAR, notes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Year, when Role is 'himself', and when Notes is 'celebrity guest alongside yg family'? ### Response:
SELECT SUM(year) FROM table_name_39 WHERE role = "himself" AND notes = "celebrity guest alongside yg family"
### Instruction: CREATE TABLE table_22837363_1 ( episodes INTEGER, viewers__in_millions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the highest amount of episodes for the season with 5.74 million viewers? ### Response:
SELECT MAX(episodes) FROM table_22837363_1 WHERE viewers__in_millions_ = "5.74"
### Instruction: CREATE TABLE table_46784 ( "Game" text, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Record is dated Dec 10? ### Response:
SELECT "Record" FROM table_46784 WHERE "Date" = 'dec 10'
### Instruction: CREATE TABLE table_name_52 ( wins INTEGER, top_25 VARCHAR, cuts_made VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest number of wins for a top-25 value greater than 5 and more than 38 cuts? ### Response:
SELECT MIN(wins) FROM table_name_52 WHERE top_25 > 5 AND cuts_made > 38
### Instruction: CREATE TABLE table_name_82 ( bronze INTEGER, silver VARCHAR, gold VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of bronzes for teams with more than 2 gold, ranked under 3, and less than 22 silver? ###...
SELECT SUM(bronze) FROM table_name_82 WHERE gold > 2 AND rank < 3 AND silver < 22
### Instruction: CREATE TABLE table_15108 ( "Year" real, "\u00c1lbum" text, "Charts" text, "Sales" real, "Certification" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the No. 7 charts? ### Response:
SELECT AVG("Year") FROM table_15108 WHERE "Charts" = 'no. 7'