instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_29057 ( "Date" text, "Time" text, "Visiting team" text, "Home team" text, "Site" text, "Broadcast" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the time for #1 alabama ### Response:
SELECT "Time" FROM table_29057 WHERE "Visiting team" = '#1 Alabama'
### Instruction: CREATE TABLE table_name_53 ( total_area VARCHAR, code VARCHAR, density__per_km_2_land_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total area for a code less than 1862 and a density (per km 2 land) of 21.6? ### Response:
SELECT total_area FROM table_name_53 WHERE code < 1862 AND density__per_km_2_land_ = 21.6
### Instruction: CREATE TABLE table_77265 ( "Round" real, "Pick" real, "Player" text, "Position" text, "Nationality" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE NATIONALITY FOR SOUTHWESTERN OKLAHOMA? ### Response:
SELECT "Nationality" FROM table_77265 WHERE "College" = 'southwestern oklahoma'
### Instruction: CREATE TABLE student_course_registrations ( student_id VARCHAR ) CREATE TABLE students ( student_details VARCHAR, student_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is detail of the student who registered the most number of courses? ### Response:
SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_55089 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average laps for lorenzo bandini with a grid under 3? ### Response:
SELECT AVG("Laps") FROM table_55089 WHERE "Driver" = 'lorenzo bandini' AND "Grid" < '3'
### Instruction: CREATE TABLE table_17503 ( "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. -- How many years did Peter Mikkelsen win the Mens Singles? ### Response:
SELECT COUNT("Year") FROM table_17503 WHERE "Mens singles" = 'Peter Mikkelsen'
### Instruction: CREATE TABLE torrents ( groupname text, totalsnatched number, artist text, groupyear number, releasetype text, groupid number, id number ) CREATE TABLE tags ( index number, id number, tag text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which year had the minimum number of releases? ### Response:
SELECT groupyear FROM torrents GROUP BY groupyear ORDER BY COUNT(groupname) LIMIT 1
### Instruction: CREATE TABLE table_59103 ( "Original NFL team" text, "Player" text, "Pos." text, "College" text, "Conf." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the original NFL team when the POS is S and college is Georgia Tech? ### Response:
SELECT "Original NFL team" FROM table_59103 WHERE "Pos." = 's' AND "College" = 'georgia tech'
### Instruction: CREATE TABLE table_59488 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What day was the opposing team Australia and the against 25? ### Response:
SELECT "Date" FROM table_59488 WHERE "Against" = '25' AND "Opposing Teams" = 'australia'
### Instruction: CREATE TABLE table_28030 ( "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 touchdowns did the player took which gained 25 points? ### Response:
SELECT "Touchdowns" FROM table_28030 WHERE "Points" = '25'
### Instruction: CREATE TABLE table_27573848_18 ( general_classification VARCHAR, points_classification VARCHAR, stage VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the stage is smaller than 5.0, and the points classification is by Marco Marcato, who is the General classification by? ### Response:
SELECT general_classification FROM table_27573848_18 WHERE points_classification = "Marco Marcato" AND stage < 5.0
### Instruction: CREATE TABLE table_name_41 ( chassis VARCHAR, points VARCHAR, year VARCHAR, entrant VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Chassis having a year later than 1990, and Minardi Scuderia Italia as an entrant, and 4 points? ### Response:
SELECT chassis FROM table_name_41 WHERE year > 1990 AND entrant = "minardi scuderia italia" AND points = 4
### Instruction: CREATE TABLE table_203_473 ( id number, "no." number, "date" text, "tournament" text, "winning score" text, "margin\nof victory" text, "runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the best winning score ? ### Response:
SELECT "winning score" FROM table_203_473 ORDER BY "winning score" LIMIT 1
### Instruction: CREATE TABLE table_name_85 ( player VARCHAR, date_of_birth__age_when_delisted_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Player has a Date of Birth (Age When Delisted) of 13 February 1987 (aged 24)? ### Response:
SELECT player FROM table_name_85 WHERE date_of_birth__age_when_delisted_ = "13 february 1987 (aged 24)"
### Instruction: CREATE TABLE table_67412 ( "2000" text, "2004" text, "2009" text, "2013" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What shows for 2000 when 2013 shows 3rd? ### Response:
SELECT "2000" FROM table_67412 WHERE "2013" = '3rd'
### Instruction: CREATE TABLE table_2221 ( "Team" text, "Location" text, "Head Coach" text, "Team Captain" text, "Venue" text, "Capacity" real, "Position in 2008" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the venue for the team Terek? ### Response:
SELECT "Venue" FROM table_2221 WHERE "Team" = 'Terek'
### Instruction: CREATE TABLE table_80232 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What company made the chassis when Ferrari made the engine and there were 25 points? ### Response:
SELECT "Chassis" FROM table_80232 WHERE "Engine" = 'ferrari' AND "Points" = '25'
### Instruction: CREATE TABLE table_48193 ( "Test flight" text, "Date" text, "Speed" text, "Altitude" text, "Crew" text, "Duration" text, "Comment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Duration, when Test Flight is Taxi Test #2? ### Response:
SELECT "Duration" FROM table_48193 WHERE "Test flight" = 'taxi test #2'
### Instruction: CREATE TABLE table_60461 ( "Golden Rivers" text, "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 number of byes when draws are larger than 0? ### Response:
SELECT MAX("Byes") FROM table_60461 WHERE "Draws" > '0'
### Instruction: CREATE TABLE table_name_71 ( attendance INTEGER, result_f___a VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Attendances have a Result F A of 0 2, and a Date of 31 january 1903? ### Response:
SELECT AVG(attendance) FROM table_name_71 WHERE result_f___a = "0 – 2" AND date = "31 january 1903"
### Instruction: CREATE TABLE table_36929 ( "Name" text, "GP-GS" text, "Effic" real, "Cmp-Att-Int" text, "Avg/G" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Cmp-Att-Int has a GP-GS of 3-0? ### Response:
SELECT "Cmp-Att-Int" FROM table_36929 WHERE "GP-GS" = '3-0'
### Instruction: CREATE TABLE table_10716 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who built michael schumacher's car that went under 31 laps? ### Response:
SELECT "Constructor" FROM table_10716 WHERE "Laps" < '31' AND "Driver" = 'michael schumacher'
### Instruction: CREATE TABLE table_51425 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score of the 2002 Tiger Cup third/fourth place match? ### Response:
SELECT "Score" FROM table_51425 WHERE "Competition" = '2002 tiger cup third/fourth place'
### Instruction: CREATE TABLE table_10782 ( "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. -- Name the frequency mhz for ERP W of 850 watts ### Response:
SELECT "Frequency MHz" FROM table_10782 WHERE "ERP W" = '850 watts'
### Instruction: CREATE TABLE table_11167610_1 ( engine VARCHAR, performance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the engine where performance is 0 100km/h: 10.5s, vmax km/h (mph) ### Response:
SELECT engine FROM table_11167610_1 WHERE performance = "0–100km/h: 10.5s, VMax km/h (mph)"
### Instruction: CREATE TABLE table_5760 ( "Candidate" text, "Party" text, "Votes" text, "Quotient" text, "Municipality" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Quotient of 97 350,333 has how many votes? ### Response:
SELECT "Votes" FROM table_5760 WHERE "Quotient" = '97 350,333'
### Instruction: CREATE TABLE table_73428 ( "Number" real, "Name" text, "Height (m)" real, "Date of Birth" text, "Position" text, "Nationality" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date of birth for 27/07/86 ### Response:
SELECT "Name" FROM table_73428 WHERE "Date of Birth" = '27/07/86'
### Instruction: CREATE TABLE table_34685 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team (League)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which college has a position of goaltender? ### Response:
SELECT "College/Junior/Club Team (League)" FROM table_34685 WHERE "Position" = 'goaltender'
### Instruction: CREATE TABLE table_name_44 ( division_southwest VARCHAR, division_north VARCHAR, division_south VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won Division Southwest when the winner of Division North was Lepenec and Division South was won by 11 Oktomvri? ### Response:
SELECT division_southwest FROM table_name_44 WHERE division_north = "lepenec" AND division_south = "11 oktomvri"
### Instruction: CREATE TABLE table_8967 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- At what event did he fight takaharu murahama? ### Response:
SELECT "Event" FROM table_8967 WHERE "Opponent" = 'takaharu murahama'
### Instruction: CREATE TABLE table_29026 ( "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. -- What was the nationality of player Cliff Abrecht? ### Response:
SELECT "Nationality" FROM table_29026 WHERE "Player" = 'Cliff Abrecht'
### Instruction: CREATE TABLE table_68766 ( "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 was the date of the game with a loss of Wakefield (5-2)? ### Response:
SELECT "Date" FROM table_68766 WHERE "Loss" = 'wakefield (5-2)'
### Instruction: CREATE TABLE table_37465 ( "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 when the visiting team was the Quebec Nordiques on April 22? ### Response:
SELECT "Record" FROM table_37465 WHERE "Visitor" = 'quebec nordiques' AND "Date" = 'april 22'
### Instruction: CREATE TABLE table_12251936_1 ( whites_as__percentage_of_pop VARCHAR, gfr_2006 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times was the GFR 2006 equal to 53.2? ### Response:
SELECT COUNT(whites_as__percentage_of_pop) FROM table_12251936_1 WHERE gfr_2006 = "53.2"
### Instruction: CREATE TABLE table_204_596 ( id number, "year" number, "winners" text, "score" text, "runners up" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who won before walsall wood in 1952 ? ### Response:
SELECT "winners" FROM table_204_596 WHERE "year" < 1952 ORDER BY "year" DESC LIMIT 1
### Instruction: CREATE TABLE table_47453 ( "Election" text, "Candidate" text, "Number of votes" text, "Share of votes" text, "Outcome of election" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the share of votes in the 2008 (1) election? ### Response:
SELECT "Share of votes" FROM table_47453 WHERE "Election" = '2008 (1)'
### Instruction: CREATE TABLE table_1014319_1 ( goodman VARCHAR, result VARCHAR, total VARCHAR, horwood VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What score did Goodman give to all songs with safe results, which received a 7 from Horwood and have a total score of 31? ### Response:
SELECT goodman FROM table_1014319_1 WHERE total = "31" AND horwood = "7" AND result = "Safe"
### Instruction: CREATE TABLE table_203_330 ( id number, "year of election" number, "candidates elected" number, "# of seats available" number, "# of votes" number, "% of popular vote" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many candidates were elected in 1990 ? ### Response:
SELECT "candidates elected" FROM table_203_330 WHERE "year of election" = 1990
### Instruction: CREATE TABLE table_247955_2 ( to_par VARCHAR, winning_score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the shots below par when the winning score was 67-64-63-71-66=331? ### Response:
SELECT to_par FROM table_247955_2 WHERE winning_score = 67 - 64 - 63 - 71 - 66 = 331
### Instruction: CREATE TABLE table_203_228 ( id number, "#" number, "title" text, "songwriters" text, "producer(s)" text, "performer (s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many tracks in word ... life were produced by buckwild ? ### Response:
SELECT COUNT("title") FROM table_203_228 WHERE "producer(s)" = 'buckwild'
### Instruction: CREATE TABLE table_name_96 ( laps INTEGER, grid VARCHAR, manufacturer VARCHAR, rider VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the smallest number of laps marco simoncelli has with grid less than 8 and gilera as the manufacturer? ### Response:
SELECT MIN(laps) FROM table_name_96 WHERE manufacturer = "gilera" AND rider = "marco simoncelli" AND grid < 8
### Instruction: CREATE TABLE table_79307 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Notes have a Competition of world championships, and a Position of 2nd? ### Response:
SELECT "Notes" FROM table_79307 WHERE "Competition" = 'world championships' AND "Position" = '2nd'
### Instruction: CREATE TABLE table_19686 ( "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 won women's singles in 2001? ### Response:
SELECT "Womens singles" FROM table_19686 WHERE "Year" = '2001'
### Instruction: CREATE TABLE table_65033 ( "Season" text, "Division" text, "Rank" text, "Avg.Att." text, "Top Goalscorer" text, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what season was Sch dlich the top goalscorer? ### Response:
SELECT "Season" FROM table_65033 WHERE "Top Goalscorer" = 'schädlich'
### Instruction: CREATE TABLE table_30203 ( "No." real, "Title" text, "Lyricist" text, "Composer" text, "Arrangement" text, "Sound Engineer" text, "Length" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the composer of te3rafy? ### Response:
SELECT "Composer" FROM table_30203 WHERE "Title" = 'Te3rafy'
### Instruction: CREATE TABLE table_49471 ( "Game" text, "Date" text, "Home team" text, "Result" text, "Road team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Road team has a Home team of portland, and a Date of may 31? ### Response:
SELECT "Road team" FROM table_49471 WHERE "Home team" = 'portland' AND "Date" = 'may 31'
### Instruction: CREATE TABLE table_203_105 ( id number, "name" text, "street address" text, "years as tallest" text, "height\nft (m)" text, "floors" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many floors does the foshay tower have ? ### Response:
SELECT "floors" FROM table_203_105 WHERE "name" = 'foshay tower'
### Instruction: CREATE TABLE table_58586 ( "Player" text, "Comp." real, "Att." real, "Comp%" real, "Yards" real, "TD's" real, "INT's" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the computation for 5 or less TD's? ### Response:
SELECT AVG("Comp%") FROM table_58586 WHERE "TD's" < '5'
### Instruction: CREATE TABLE table_204_717 ( id number, "season" text, "level" number, "division" text, "place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what place did this team finish immediately after the 2008/2009 season ? ### Response:
SELECT "place" FROM table_204_717 WHERE "season" > '2008/09' ORDER BY "season" LIMIT 1
### Instruction: CREATE TABLE table_37963 ( "Callsign" text, "Area served" text, "Frequency" text, "Band" text, "On-air ID" text, "Purpose" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the area served for on-air ID of abc canberra ### Response:
SELECT "Area served" FROM table_37963 WHERE "On-air ID" = 'abc canberra'
### Instruction: CREATE TABLE table_12309 ( "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 Record of 4 2? ### Response:
SELECT "Event" FROM table_12309 WHERE "Record" = '4–2'
### Instruction: CREATE TABLE table_64085 ( "Name" text, "Pos." text, "Height" text, "Weight" text, "2012 club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Height of the CF Player with 2012 club of Posillipo? ### Response:
SELECT "Height" FROM table_64085 WHERE "Pos." = 'cf' AND "2012 club" = 'posillipo'
### Instruction: CREATE TABLE table_21993 ( "Spaceport" text, "Launch complex" text, "Launcher" text, "Spacecraft" text, "Flights" text, "Years" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What launcher had spacecrafts that did 37 orbital flights? ### Response:
SELECT "Launcher" FROM table_21993 WHERE "Flights" = '37 Orbital'
### Instruction: CREATE TABLE table_1099080_1 ( condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What conditions had both prolonged bleeding times and prolonged partial thromboplastin times ### Response:
SELECT condition FROM table_1099080_1 WHERE partial_thromboplastin_time = "Prolonged" AND bleeding_time = "Prolonged"
### Instruction: CREATE TABLE table_38503 ( "Borough" text, "Components" text, "Population" real, "Number of Borough Councilors" real, "Number of Municipal Councilors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of borough councilors from Brompton? ### Response:
SELECT AVG("Number of Borough Councilors") FROM table_38503 WHERE "Borough" = 'brompton'
### Instruction: CREATE TABLE table_18424435_4 ( no VARCHAR, directed_by VARCHAR, written_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number episode in the series was directed by Kelly Makin and written by Mark Ellis & Stephanie Morgenstern? ### Response:
SELECT no FROM table_18424435_4 WHERE directed_by = "Kelly Makin" AND written_by = "Mark Ellis & Stephanie Morgenstern"
### Instruction: CREATE TABLE table_17962 ( "Year" real, "Points" text, "Rebounds" text, "Assists" text, "Steals" text, "Blocks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year has Nerlens Noel (4) as blocker? ### Response:
SELECT MIN("Year") FROM table_17962 WHERE "Blocks" = 'Nerlens Noel (4)'
### Instruction: CREATE TABLE table_19078 ( "Rd." real, "Race Title" text, "Circuit" text, "City / State" text, "Date" text, "Winner" text, "Team" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the dates for Round 8? ### Response:
SELECT "Date" FROM table_19078 WHERE "Rd." = '8'
### Instruction: CREATE TABLE table_62529 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Place of the Player with a Score of 68-73-76=217? ### Response:
SELECT "Place" FROM table_62529 WHERE "Score" = '68-73-76=217'
### Instruction: CREATE TABLE list ( LastName TEXT, FirstName TEXT, Grade INTEGER, Classroom INTEGER ) CREATE TABLE teachers ( LastName TEXT, FirstName TEXT, Classroom INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For each grade 0 classroom, report the total number of students. Visualize by scatter chart. ### Response:
SELECT Classroom, COUNT(*) FROM list WHERE Grade = "0" GROUP BY Classroom
### Instruction: CREATE TABLE table_67139 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which start has 32 as the finish and laps more than 6? ### Response:
SELECT "Start" FROM table_67139 WHERE "Finish" = '32' AND "Laps" > '6'
### Instruction: CREATE TABLE table_41753 ( "Player" text, "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 year did Orlando have a School/Club team in Clemson? ### Response:
SELECT "Years in Orlando" FROM table_41753 WHERE "School/Club Team" = 'clemson'
### Instruction: CREATE TABLE table_44678 ( "Nat." text, "Name" text, "Moving to" text, "Type" text, "Transfer window" text, "Transfer fee" text, "Source" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The player moving to Villa Rio has what transfer fee? ### Response:
SELECT "Transfer fee" FROM table_44678 WHERE "Moving to" = 'villa rio'
### Instruction: CREATE TABLE table_63866 ( "Year" real, "Population" real, "Five Year % change" text, "Ten Year % change" text, "Rank Among Provinces" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest year having a ten-year percentage change of 7.9? ### Response:
SELECT MAX("Year") FROM table_63866 WHERE "Ten Year % change" = '7.9'
### Instruction: CREATE TABLE table_57598 ( "Driver" text, "Constructor" text, "Laps" text, "Time/Retired" text, "Grid" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the grid with 71 laps and the driver, Allan McNish. ### Response:
SELECT "Grid" FROM table_57598 WHERE "Laps" = '71' AND "Driver" = 'allan mcnish'
### Instruction: CREATE TABLE table_203_620 ( id number, "tie no" number, "home team" text, "score" text, "away team" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which teams were in the first replay match ? ### Response:
SELECT "home team", "away team" FROM table_203_620 WHERE "tie no" = 'replay' ORDER BY id LIMIT 1
### Instruction: CREATE TABLE table_63172 ( "Year" real, "Category" text, "Nominee(s)" text, "Episode" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of nomination for Season 6 after 1995? ### Response:
SELECT "Result" FROM table_63172 WHERE "Year" > '1995' AND "Episode" = 'season 6'
### Instruction: CREATE TABLE table_1176 ( "Province" text, "Swimsuit" text, "Evening Gown" text, "Interview" text, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the swimsuit score for the item that has 7.61 as evening gown ### Response:
SELECT "Swimsuit" FROM table_1176 WHERE "Evening Gown" = '7.61'
### Instruction: CREATE TABLE table_204_87 ( id number, "courthouse" text, "city" text, "street address" text, "jurisdiction" text, "dates of use" text, "named for" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many courthouses were named for someone ? ### Response:
SELECT COUNT("courthouse") FROM table_204_87 WHERE NOT "named for" IS NULL
### Instruction: CREATE TABLE table_name_1 ( to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the to par score in T8 place from Zimbabwe and has a score of 73-68=141? ### Response:
SELECT to_par FROM table_name_1 WHERE place = "t8" AND score = 73 - 68 = 141 AND country = "zimbabwe"
### Instruction: CREATE TABLE table_40364 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which nation has 0 golds and more than 1 silver? ### Response:
SELECT "Nation" FROM table_40364 WHERE "Gold" = '0' AND "Silver" > '1'
### Instruction: CREATE TABLE table_22819 ( "Programme" text, "Date(s) of original removal" text, "Original channel" text, "Date of return" text, "New channel(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When bbc two is the original channel what is the date of original removal? ### Response:
SELECT "Date(s) of original removal" FROM table_22819 WHERE "Original channel" = 'BBC Two'
### Instruction: CREATE TABLE table_24565004_19 ( goals¹ INTEGER, period VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most goals for 1972 1975, 1976 1982 ### Response:
SELECT MAX(goals¹) FROM table_24565004_19 WHERE period = "1972 – 1975, 1976 – 1982"
### Instruction: CREATE TABLE table_63821 ( "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 date for the week larger than 1 and the opponent detroit lions? ### Response:
SELECT "Date" FROM table_63821 WHERE "Week" > '1' AND "Opponent" = 'detroit lions'
### Instruction: CREATE TABLE table_24353 ( "Type of Record" text, "Attendance" real, "Date/Year" text, "Stadium" text, "Result/Games" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- where was sun 09/12/93 record made ### Response:
SELECT "Stadium" FROM table_24353 WHERE "Date/Year" = 'Sun 09/12/93'
### Instruction: CREATE TABLE complaints ( staff_id VARCHAR ) CREATE TABLE staff ( first_name VARCHAR, staff_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is first names of the top 5 staff who have handled the greatest number of complaints? ### Response:
SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id GROUP BY t2.staff_id ORDER BY COUNT(*) LIMIT 5
### Instruction: CREATE TABLE table_52750 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which surface has a Date of 22 august 2006? ### Response:
SELECT "Surface" FROM table_52750 WHERE "Date" = '22 august 2006'
### Instruction: CREATE TABLE publication ( Publication_ID int, Book_ID int, Publisher text, Publication_Date text, Price real ) CREATE TABLE book ( Book_ID int, Title text, Issues real, Writer text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the number of the writers of the books in ascending alphabetical order. ### Response:
SELECT Writer, COUNT(Writer) FROM book GROUP BY Writer ORDER BY Writer
### Instruction: CREATE TABLE table_name_64 ( Away INTEGER, matches VARCHAR, no_result VARCHAR, losses VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Away Losses with a No Result of more than 0, losses of more than 6, and matches of more than 91? ### Response:
SELECT SUM(Away) AS losses FROM table_name_64 WHERE no_result > 0 AND losses > 6 AND matches > 91
### Instruction: CREATE TABLE table_30623 ( "Position" text, "Player" text, "Period" text, "Teams" text, "Consecutive starts" real, "Playoffs" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team(s) had 120 consecutive starts? ### Response:
SELECT "Teams" FROM table_30623 WHERE "Consecutive starts" = '120'
### Instruction: CREATE TABLE table_204_400 ( id number, "district" number, "senator" text, "party" text, "caucus" text, "first elected" number, "counties represented" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which party has the most members ? ### Response:
SELECT "party" FROM table_204_400 GROUP BY "party" ORDER BY COUNT("senator") DESC LIMIT 1
### Instruction: CREATE TABLE table_54912 ( "Rd #" real, "Pick #" real, "Player" text, "Team (League)" text, "Reg GP" real, "Pl GP" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Pick # is the highest and has the Rd # is under 1? ### Response:
SELECT MAX("Pick #") FROM table_54912 WHERE "Rd #" < '1'
### Instruction: CREATE TABLE table_62748 ( "Year" real, "Game" text, "Genre" text, "Platform(s)" text, "Developer(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What platform came out before 2009 with the game wii sports? ### Response:
SELECT "Platform(s)" FROM table_62748 WHERE "Year" < '2009' AND "Game" = 'wii sports'
### Instruction: CREATE TABLE table_70254 ( "Pair No." real, "Comedian:1" text, "Comedian:II" text, "Tansen(Singers)" text, "Place(Result)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result of Comedian : II of Ali Asgar? ### Response:
SELECT "Place(Result)" FROM table_70254 WHERE "Comedian:II" = 'ali asgar'
### Instruction: CREATE TABLE table_65308 ( "Points" real, "Name" text, "Club" text, "Tries" real, "Drop" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Points have a Club of london wasps, and a Drop larger than 1? ### Response:
SELECT AVG("Points") FROM table_65308 WHERE "Club" = 'london wasps' AND "Drop" > '1'
### Instruction: CREATE TABLE table_73585 ( "Tournament" text, "Games played" real, "Points per game" text, "Rebounds per game" text, "Assists per game" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many assists per game have 4.2 rebounds per game? ### Response:
SELECT "Assists per game" FROM table_73585 WHERE "Rebounds per game" = '4.2'
### Instruction: CREATE TABLE table_72931 ( "DSL Type" text, "Provider" text, "Resale" text, "Down (up to kbit/s)" real, "Up (up to kbit/s)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are all the dsl type offered by the M-Net telecom company? ### Response:
SELECT "DSL Type" FROM table_72931 WHERE "Provider" = 'M-net'
### Instruction: CREATE TABLE table_3542 ( "Institution" text, "Location" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Team Nickname" text, "Primary conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Kent State University's team nickname? ### Response:
SELECT "Team Nickname" FROM table_3542 WHERE "Institution" = 'Kent State University'
### Instruction: CREATE TABLE table_28908 ( "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 number of candidates for samuel d. ingham ### Response:
SELECT COUNT("Candidates") FROM table_28908 WHERE "Incumbent" = 'Samuel D. Ingham'
### Instruction: CREATE TABLE table_203_69 ( id number, "representative" text, "title" text, "from" number, "to" number, "appointed by" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which united states president appointed the most ambassador 's to mexico ### Response:
SELECT "appointed by" FROM table_203_69 GROUP BY "appointed by" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_203_734 ( 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. -- what is the total number of times that the competition is listed as world championships ? ### Response:
SELECT COUNT(*) FROM table_203_734 WHERE "competition" = 'world championships'
### Instruction: CREATE TABLE table_51272 ( "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. -- What's the sum of the attendance for the calgary home team? ### Response:
SELECT SUM("Attendance") FROM table_51272 WHERE "Home" = 'calgary'
### Instruction: CREATE TABLE table_203_139 ( id number, "name" text, "abbr." text, "leader" text, "ideology" text, "political position" text, "mps" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many parties follow the ideology of social democracy ? ### Response:
SELECT COUNT("name") FROM table_203_139 WHERE "ideology" = 'social democracy'
### Instruction: CREATE TABLE table_name_4 ( overall VARCHAR, college VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much Overall has a Pick of 10, and a Round smaller than 8, and a Position of e, and a College of tennessee? ### Response:
SELECT COUNT(overall) FROM table_name_4 WHERE pick = 10 AND round < 8 AND position = "e" AND college = "tennessee"
### Instruction: CREATE TABLE table_78027 ( "Code" real, "Type" text, "Name" text, "Area (km 2 )" real, "Population" real, "Regional County Municipality" text, "Region" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type has a population of 370? ### Response:
SELECT "Type" FROM table_78027 WHERE "Population" = '370'
### Instruction: CREATE TABLE table_27353 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number draft pick was Oklahoma State's Greg Hill in 1983? ### Response:
SELECT "Pick #" FROM table_27353 WHERE "College" = 'Oklahoma State' AND "Player" = 'Greg Hill'
### Instruction: CREATE TABLE table_43305 ( "Year" real, "Class" text, "Team" text, "Points" real, "Rank" text, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team has points less than 6 in a year after 1969? ### Response:
SELECT "Team" FROM table_43305 WHERE "Points" < '6' AND "Year" > '1969'
### Instruction: CREATE TABLE table_204_64 ( id number, "place" text, "code" number, "area (km2)" number, "population" number, "most spoken language" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the combined population of makeleketla and theunissen ? ### Response:
SELECT SUM("population") FROM table_204_64 WHERE "place" IN ('makeleketla', 'theunissen')
### Instruction: CREATE TABLE table_204_416 ( id number, "chip" text, "flash size" text, "eeprom" number, "sram" number, "frequency\n[mhz]" number, "package" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what chip has the lowest flash size ? ### Response:
SELECT "chip" FROM table_204_416 ORDER BY "flash size" LIMIT 1
### Instruction: CREATE TABLE table_44660 ( "Pos." real, "Artist" text, "Single" text, "Year" real, "Sales" real, "Peak" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many sales took place with a peak of 1 for Boris? ### Response:
SELECT COUNT("Sales") FROM table_44660 WHERE "Peak" = '1' AND "Artist" = 'boris'