instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_name_31 ( gold INTEGER, total VARCHAR, nation VARCHAR, rank VARCHAR, silver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least number of Gold for a Rank smaller than 5, and 1 silver medal for Pola...
SELECT MIN(gold) FROM table_name_31 WHERE rank < 5 AND silver = 1 AND nation = "poland" AND total > 1
### Instruction: CREATE TABLE table_64468 ( "Season" real, "Level" text, "Division" text, "Administration" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Position has a Season larger than 2000 with a Level of Tier 3? ### Resp...
SELECT "Position" FROM table_64468 WHERE "Season" > '2000' AND "Level" = 'tier 3'
### Instruction: CREATE TABLE table_67804 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Pts." real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest number of points for an entrant with a Jordan 192 chassis? ### Respons...
SELECT MIN("Pts.") FROM table_67804 WHERE "Chassis" = 'jordan 192'
### Instruction: CREATE TABLE table_69567 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest Attendance with a Loss of darling (0 1)? ### Re...
SELECT MAX("Attendance") FROM table_69567 WHERE "Loss" = 'darling (0–1)'
### Instruction: CREATE TABLE table_20859 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many directors were there in total for the ...
SELECT COUNT("Directed by") FROM table_20859 WHERE "Series #" = '62'
### Instruction: CREATE TABLE table_57105 ( "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. -- What is the reg gp of the player with a round number less than 2? ...
SELECT SUM("Reg GP") FROM table_57105 WHERE "Rd #" < '2'
### Instruction: CREATE TABLE table_21535453_1 ( source VARCHAR, terry_mcauliffe VARCHAR, dates_administered VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the source of the poll that gave McAuliffe 30% on June 8? ### Response:
SELECT source FROM table_21535453_1 WHERE terry_mcauliffe = "30%" AND dates_administered = "June 8"
### Instruction: CREATE TABLE table_189 ( "Team" text, "Head Coach" text, "President" text, "Home Ground" text, "Location" text, "Founded" real, "Website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The president, peter williamson, had ho...
SELECT COUNT("Home Ground") FROM table_189 WHERE "President" = 'Peter Williamson'
### 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...
SELECT general_classification FROM table_27573848_18 WHERE points_classification = "Marco Marcato" AND stage < 5.0
### Instruction: CREATE TABLE table_64247 ( "Year" real, "Title" text, "Director" text, "Studio(s)" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What studio had the director Peter Lord Nick Park before 2004? ### Response:
SELECT "Studio(s)" FROM table_64247 WHERE "Year" < '2004' AND "Director" = 'peter lord nick park'
### Instruction: CREATE TABLE table_204_520 ( id number, "outcome" text, "no." number, "date" number, "championship" text, "surface" text, "opponent" text, "score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total of winne...
SELECT COUNT(*) FROM table_204_520 WHERE "outcome" = 'winner'
### Instruction: CREATE TABLE table_26064 ( "Place came" text, "Artist" text, "Category" text, "Act" text, "Semi-final" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- During the act, Playing on Glasses, what was the semi-final? ...
SELECT "Semi-final" FROM table_26064 WHERE "Act" = 'Playing on Glasses'
### Instruction: CREATE TABLE table_29162856_1 ( pole_position VARCHAR, winning_rider VARCHAR, fastest_lap VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the pole position(s) when rob guiver won and kyle ryde had the fastest lap? ### Response:
SELECT pole_position FROM table_29162856_1 WHERE winning_rider = "Rob Guiver" AND fastest_lap = "Kyle Ryde"
### Instruction: CREATE TABLE table_6001 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Combination classification" text, "Team classification" text ) -- Using valid SQLite, answer the following questions for th...
SELECT "Combination classification" FROM table_6001 WHERE "Stage" = '14'
### Instruction: CREATE TABLE table_204_554 ( id number, "rank" number, "name" text, "nation" text, "time" text, "speed" number, "note" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the first finisher from russia ? ### Response:
SELECT "name" FROM table_204_554 WHERE "nation" = 'russia' ORDER BY "rank" LIMIT 1
### Instruction: CREATE TABLE table_59794 ( "Year" real, "Country/Territory" text, "Miss International" text, "National title" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country or territory is ma gorzata ro niecka from? ...
SELECT "Country/Territory" FROM table_59794 WHERE "Miss International" = 'małgorzata rożniecka'
### 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 were the winners in 1946 - walsall wood or wellington town reserv...
SELECT "winners" FROM table_204_596 WHERE "year" = 1946
### Instruction: CREATE TABLE table_15288 ( "First game" real, "Played" real, "Drawn" real, "Lost" real, "Percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the earliest first game with 11 played and 12 games lost? ### Response:
SELECT MIN("First game") FROM table_15288 WHERE "Played" > '11' AND "Lost" = '12'
### Instruction: CREATE TABLE table_37344 ( "Date" text, "Host" text, "Agg." text, "Visitor" text, "Ground" text, "Attendance" real, "Tournament" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the visitor of the match on July 29? ##...
SELECT "Visitor" FROM table_37344 WHERE "Date" = 'july 29'
### Instruction: CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you co...
SELECT job, COUNT(job) FROM Person GROUP BY job ORDER BY name
### Instruction: CREATE TABLE table_218 ( "Race Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date on which a race was run at Halle-Saale-S...
SELECT "Date" FROM table_218 WHERE "Circuit" = 'Halle-Saale-Schleife'
### Instruction: CREATE TABLE table_39648 ( "Date" real, "Opponent" text, "Venue" text, "Result" text, "Attendance" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Attendance in the game with a Result of won 5-2? ...
SELECT "Attendance" FROM table_39648 WHERE "Result" = 'won 5-2'
### Instruction: CREATE TABLE table_30170 ( "Round" text, "Main date" text, "Number of fixtures" real, "Clubs" text, "New entries this round" text, "Prize money" text, "Player of the Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What...
SELECT MIN("Number of fixtures") FROM table_30170
### Instruction: CREATE TABLE table_61147 ( "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 lowest Draws, when Byes is less than 2? ### Response:...
SELECT MIN("Draws") FROM table_61147 WHERE "Byes" < '2'
### Instruction: CREATE TABLE table_26599 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Final Score" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the games VS the Li...
SELECT "Final Score" FROM table_26599 WHERE "Opponent" = 'Lions'
### Instruction: CREATE TABLE table_28218 ( "Unit" text, "Commander" text, "Complement" text, "Killed" text, "Wounded" text, "Missing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of commanders that had 0 off 63 men killed? ...
SELECT COUNT("Commander") FROM table_28218 WHERE "Killed" = '0 off 63 men'
### Instruction: CREATE TABLE table_46742 ( "Country" text, "Amateur Era" real, "Open Era" real, "All-time" real, "First title" real, "Last title" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of All-Time, when Amateur Era is le...
SELECT SUM("All-time") FROM table_46742 WHERE "Amateur Era" < '0'
### Instruction: CREATE TABLE table_name_3 ( investment_earnings VARCHAR, year VARCHAR, other_local_sources VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the investment earnings in a year when other local sources were $2,670,060 after 2001? ...
SELECT investment_earnings FROM table_name_3 WHERE year > 2001 AND other_local_sources = "$2,670,060"
### Instruction: CREATE TABLE table_8430 ( "Number" text, "Builder" text, "Type" text, "Date" real, "Length" text, "Capacity" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Type has a Capacity of 28 passengers, and a Number of 16? ### Re...
SELECT "Type" FROM table_8430 WHERE "Capacity" = '28 passengers' AND "Number" = '16'
### Instruction: CREATE TABLE table_13253 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nation was number 1 and had a total larger than 5? ### Response:
SELECT "Nation" FROM table_13253 WHERE "Total" > '5' AND "Rank" = '1'
### Instruction: CREATE TABLE table_45846 ( "Player" text, "Nationality" text, "Position" text, "Years for Grizzlies" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which years did the player from Providence play for Memphis...
SELECT "Years for Grizzlies" FROM table_45846 WHERE "School/Club Team" = 'providence'
### 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_name_2 ( _m__best_ VARCHAR, _fairest VARCHAR, president VARCHAR, _m__coach VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the (M) Best & Fairest when ray kaduck was president and richard keane was coach? ...
SELECT _m__best_ & _fairest FROM table_name_2 WHERE president = "ray kaduck" AND _m__coach = "richard keane"
### Instruction: CREATE TABLE table_357 ( "L&CR No." real, "Type" text, "Manufacturer" text, "Delivered" text, "Name" text, "Jt. Cttee No." real, "1845 disposal" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the type of sussex? #...
SELECT "Type" FROM table_357 WHERE "Name" = 'Sussex'
### Instruction: CREATE TABLE table_49131 ( "Team" text, "City" text, "State/Province" text, "League" text, "Est." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team is located in missouri and was established in 1963? ### Response:
SELECT "Team" FROM table_49131 WHERE "State/Province" = 'missouri' AND "Est." = '1963'
### Instruction: CREATE TABLE table_name_52 ( frequency_mhz INTEGER, erp_w VARCHAR, call_sign VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap? ### Response:
SELECT MAX(frequency_mhz) FROM table_name_52 WHERE erp_w > 205 AND call_sign = "k230ap"
### Instruction: CREATE TABLE table_66671 ( "Name" text, "Employed" text, "Position held" text, "Honour" text, "Citation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What citation is shown for the employed years of 1970 1996? ### Response:
SELECT "Citation" FROM table_66671 WHERE "Employed" = '1970–1996'
### Instruction: CREATE TABLE table_203_164 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times was macau the oppon...
SELECT COUNT(*) FROM table_203_164 WHERE "opponent" = 'macau'
### 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. -- which chip has the least sram ? ##...
SELECT "chip" FROM table_204_416 ORDER BY "sram" LIMIT 1
### Instruction: CREATE TABLE table_64631 ( "Race Title" text, "Circuit" text, "City / State" text, "Date" text, "Winner" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the location of the team Peter Stuyvesant International ...
SELECT "City / State" FROM table_64631 WHERE "Team" = 'peter stuyvesant international racing'
### Instruction: CREATE TABLE table_204_563 ( id number, "abbreviation" text, "settlement" text, "district" text, "official name" text, "division" text, "cup" number, "other information" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the...
SELECT "settlement" FROM table_204_563 WHERE id = 1
### Instruction: CREATE TABLE table_46350 ( "Year" real, "Round" text, "Opponent" text, "Result" text, "BSU Head Coach" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result after 1993 of the first four rounds? ### Response:
SELECT "Result" FROM table_46350 WHERE "Year" > '1993' AND "Round" = 'first four'
### Instruction: CREATE TABLE table_204_652 ( id number, "title" text, "year" number, "director" text, "country" text, "genre" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of films in this category that cam...
SELECT COUNT("title") FROM table_204_652 WHERE "country" = 'france'
### Instruction: CREATE TABLE table_78229 ( "Peak" text, "Height (m)" real, "Prom. (m)" real, "Class" text, "Parent" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Class is Peak Sail when it has a Prom larger than 30? ### Response:
SELECT "Class" FROM table_78229 WHERE "Prom. (m)" > '30' AND "Peak" = 'sail'
### Instruction: CREATE TABLE table_17195 ( "Unit" text, "Commander" text, "Complement" text, "Killed" text, "Wounded" text, "Missing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the wounded for complement of 46 off 656 men? ### R...
SELECT "Wounded" FROM table_17195 WHERE "Complement" = '46 off 656 men'
### Instruction: CREATE TABLE table_60255 ( "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 highest number against on 12/04/1969? ### Response:
SELECT MAX("Against") FROM table_60255 WHERE "Date" = '12/04/1969'
### Instruction: CREATE TABLE table_11209 ( "Player" text, "Pos." text, "From" text, "School/Country" text, "Rebs" real, "Asts" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the school/country of the player with 337 assists? ### Respo...
SELECT "School/Country" FROM table_11209 WHERE "Asts" = '337'
### Instruction: CREATE TABLE table_58932 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the game played at Jepp...
SELECT "Result" FROM table_58932 WHERE "Game site" = 'jeppesen stadium'
### Instruction: CREATE TABLE table_31490 ( "Townland" text, "Area( acres )" real, "Barony" text, "Civil parish" text, "Poor law union" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the civil parishes of the townlands with an area of 119 a...
SELECT "Civil parish" FROM table_31490 WHERE "Area( acres )" = '119'
### Instruction: CREATE TABLE table_78884 ( "Year" real, "Title" text, "Director" text, "Survey" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result for director Said Elmarouk before 2008? ### Response:
SELECT "Result" FROM table_78884 WHERE "Director" = 'said elmarouk' AND "Year" < '2008'
### Instruction: CREATE TABLE Reservations ( Adults VARCHAR, LastName VARCHAR, CheckIn VARCHAR, FirstName VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010? ### Response:
SELECT Adults FROM Reservations WHERE CheckIn = "2010-10-23" AND FirstName = "CONRAD" AND LastName = "SELBIG"
### Instruction: CREATE TABLE table_17068 ( "Player" text, "Position" text, "School" text, "Hometown" text, "MLB Draft" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What pick was the player from Apopka, FL in the 2002 MLB draft ### Response:
SELECT "MLB Draft" FROM table_17068 WHERE "Hometown" = 'Apopka, FL'
### Instruction: CREATE TABLE table_203_341 ( id number, "season" text, "champion" text, "runner-up" text, "score" text, "third place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who has a larger amount of championships as a plk medalist ? ...
SELECT "champion" FROM table_203_341 GROUP BY "champion" ORDER BY COUNT("champion") DESC LIMIT 1
### Instruction: CREATE TABLE table_name_94 ( party VARCHAR, votes_cast VARCHAR, seats_won VARCHAR, percent_of_seats VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which party won less than 21 seats, has 0 percent of seats, and 69757 votes cast? ##...
SELECT party FROM table_name_94 WHERE seats_won < 21 AND percent_of_seats = 0 AND votes_cast = 69757
### Instruction: CREATE TABLE table_203_587 ( id number, "country" text, "weapon designation" text, "weapon description" text, "year(s) delivered" text, "quantity delivered" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which was the first co...
SELECT "country" FROM table_203_587 ORDER BY "year(s) delivered" LIMIT 1
### Instruction: CREATE TABLE table_67461 ( "Minister" text, "Party" text, "Governments" text, "Term start" text, "Term end" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What governments did the minister with a term start on 24 September 1984 have...
SELECT "Governments" FROM table_67461 WHERE "Term start" = '24 september 1984'
### Instruction: CREATE TABLE table_4008 ( "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 the affi...
SELECT "Affiliation" FROM table_4008 WHERE "Institution" = 'Davenport University'
### Instruction: CREATE TABLE table_47015 ( "English Name" text, "Simplified" text, "Traditional" text, "Pinyin" text, "Area" text, "Population" real, "Density" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Traditional for area ...
SELECT "Traditional" FROM table_47015 WHERE "Area" = '35'
### Instruction: CREATE TABLE table_204_530 ( id number, "type" text, "stage" number, "cyclist" text, "team" text, "reason" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- daniel martin and joost posthuma both withdrew from the race because of wh...
SELECT "reason" FROM table_204_530 WHERE "cyclist" = 'daniel martin'
### Instruction: CREATE TABLE table_name_93 ( score VARCHAR, high_points VARCHAR, high_rebounds VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Score, when High Points is 'Luis Scola (18)', and when High Rebounds is 'Luis Scola (11)'? ### Respon...
SELECT score FROM table_name_93 WHERE high_points = "luis scola (18)" AND high_rebounds = "luis scola (11)"
### Instruction: CREATE TABLE table_37788 ( "City" text, "Operator" text, "Type designation" text, "Number of vehicles" real, "Width" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Number of vehicles has a Type designation of u5-25 (bi-directi...
SELECT "Number of vehicles" FROM table_37788 WHERE "Type designation" = 'u5-25 (bi-directional)'
### Instruction: CREATE TABLE table_49776 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which round has a record of 5-3 (1)? ### Response...
SELECT MIN("Round") FROM table_49776 WHERE "Record" = '5-3 (1)'
### Instruction: CREATE TABLE table_64199 ( "Province" text, "Inhabitants" real, "established" real, "President" text, "Party" text, "Election" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the party affiliation for President Stefano Ba...
SELECT "Party" FROM table_64199 WHERE "President" = 'stefano baccelli'
### Instruction: CREATE TABLE table_36122 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHich Record has a Visitor of quebec nordiques with a Score of 7 5? ### Response:
SELECT "Record" FROM table_36122 WHERE "Visitor" = 'quebec nordiques' AND "Score" = '7–5'
### Instruction: CREATE TABLE table_55812 ( "Locomotive" text, "Serial No" text, "Entered service" text, "Gauge" text, "Livery" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the livery of the locomotive with a serial number 83-1010? ### R...
SELECT "Livery" FROM table_55812 WHERE "Serial No" = '83-1010'
### Instruction: CREATE TABLE table_19312274_2 ( total VARCHAR, last_current_driver_s_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many total where last/current driver(s) is narain karthikeyan ( 2010 ) ### Response:
SELECT COUNT(total) FROM table_19312274_2 WHERE last_current_driver_s_ = "Narain Karthikeyan ( 2010 )"
### Instruction: CREATE TABLE table_28774 ( "Portuguese name" text, "English name" text, "Subdivides in" text, "Equivalence in Varas" text, "Metrical equivalence" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the subdivides in equivalence for ...
SELECT "Subdivides in" FROM table_28774 WHERE "Equivalence in Varas" = '1/5'
### Instruction: CREATE TABLE table_32382 ( "Stage" text, "Date" text, "Route" text, "Terrain" text, "Length" text, "Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which date has a Terrain of plain stage, and a Stage of 4? ### Response...
SELECT "Date" FROM table_32382 WHERE "Terrain" = 'plain stage' AND "Stage" = '4'
### Instruction: CREATE TABLE table_24640 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the episode direc...
SELECT "Title" FROM table_24640 WHERE "Directed by" = 'Miguel Arteta'
### Instruction: CREATE TABLE table_40333 ( "Sport" text, "Record" text, "Nation \u2013 athlete(s)" text, "Date" text, "Time (seconds)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Date has a time of (seconds) 42.172? ### Response:
SELECT "Date" FROM table_40333 WHERE "Time (seconds)" = '42.172'
### Instruction: CREATE TABLE table_45299 ( "Type" text, "Construction period" text, "Cylinder" text, "Capacity" text, "Power" text, "Vmax" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the maximum speed of the car with 1.556 cc capaci...
SELECT "Vmax" FROM table_45299 WHERE "Capacity" = '1.556 cc'
### Instruction: CREATE TABLE table_46158 ( "Opposing Team" text, "Against" real, "Date" text, "Venue" text, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Against has a Date of 28 january 1950? ### Response:
SELECT AVG("Against") FROM table_46158 WHERE "Date" = '28 january 1950'
### Instruction: CREATE TABLE table_24999 ( "Province, Community" text, "Contestant" text, "Age" real, "Height" text, "Hometown" text, "Geographical Regions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which contestant hails from Dajab n? #...
SELECT "Contestant" FROM table_24999 WHERE "Province, Community" = 'Dajabón'
### Instruction: CREATE TABLE table_42067 ( "Name" text, "Nationality" text, "Position" text, "Appearances" real, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least amount of appearances by new zealand when they scored 4 goals?...
SELECT MIN("Appearances") FROM table_42067 WHERE "Goals" = '4' AND "Nationality" = 'new zealand'
### 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_204_294 ( id number, "date" text, "time" text, "opponent#" text, "rank#" text, "site" text, "tv" text, "result" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many sites ar...
SELECT COUNT(DISTINCT "site") FROM table_204_294
### Instruction: CREATE TABLE table_58756 ( "\"Long\" vowels" text, "17th c." text, "American" text, "British" text, "Australian" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the British pronunciation when the American and Australian is i? ...
SELECT "British" FROM table_58756 WHERE "American" = 'i' AND "Australian" = 'i'
### Instruction: CREATE TABLE table_19939 ( "Series Ep." text, "Episode" real, "Netflix" text, "Segment A" text, "Segment B" text, "Segment C" text, "Segment D" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the segment d for chicken ...
SELECT "Segment D" FROM table_19939 WHERE "Segment C" = 'Chicken'
### Instruction: CREATE TABLE table_63860 ( "Rank" real, "Lane" real, "Athlete" text, "Nationality" text, "Time" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many lanes have a Nationality of france, and a Rank larger than 8? ### Response:
SELECT SUM("Lane") FROM table_63860 WHERE "Nationality" = 'france' AND "Rank" > '8'
### Instruction: CREATE TABLE table_name_80 ( date_of_birth VARCHAR, party VARCHAR, house_term VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of birth of a republican member of the United States House of Representatives who held the ter...
SELECT date_of_birth FROM table_name_80 WHERE party = "republican" AND house_term = "1863-1865"
### Instruction: CREATE TABLE table_31896 ( "Name" text, "Nationality" text, "Pos." text, "College" text, "Season entered" text, "Manner of entry" text, "Left team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the left team for jos...
SELECT "Left team" FROM table_31896 WHERE "Name" = 'josh vanlandingham'
### Instruction: CREATE TABLE table_18113 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which party does the incumbent first elected in 1994 b...
SELECT "Party" FROM table_18113 WHERE "First elected" = '1994'
### Instruction: CREATE TABLE table_49675 ( "Year" real, "Stage" real, "Start of stage" text, "Distance (km)" text, "Category" text, "Stage winner" text, "Yellow jersey" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winner in 20...
SELECT "Stage winner" FROM table_49675 WHERE "Year" = '2013'
### Instruction: CREATE TABLE table_53772 ( "Group name" text, "English abbr." text, "French abbr." text, "Formal European Parliament name" text, "From" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the group name on the date of 20 July 199...
SELECT "Group name" FROM table_53772 WHERE "From" = '20 july 1999'
### Instruction: CREATE TABLE table_1758 ( "No. in series" real, "No. in season" 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. -- Wh...
SELECT MIN("No. in series") FROM table_1758
### Instruction: CREATE TABLE table_name_85 ( points INTEGER, faults VARCHAR, rider VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total points when there is a refusal fault and the rider is H.R.H. Prince Abdullah Al-Soud? ### Response:
SELECT SUM(points) FROM table_name_85 WHERE faults = "refusal" AND rider = "h.r.h. prince abdullah al-soud"
### Instruction: CREATE TABLE table_204_757 ( id number, "state" text, "interview" number, "swimsuit" number, "evening gown" number, "average" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many total evening gown scores above 9.000 were g...
SELECT COUNT(*) FROM table_204_757 WHERE "evening gown" > 9.000
### Instruction: CREATE TABLE table_27303975_3 ( copyright_information VARCHAR, catalog_number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times was the catalog number cal04 / 0091037553546? ### Response:
SELECT COUNT(copyright_information) FROM table_27303975_3 WHERE catalog_number = "CAL04 / 0091037553546"
### Instruction: CREATE TABLE table_204_448 ( id number, "team" text, "winners" number, "runners-up" number, "years won" text, "years runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what 's the total of wins does the manchester united ...
SELECT "winners" FROM table_204_448 WHERE "team" = 'manchester united'
### Instruction: CREATE TABLE table_3982 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date did 'sympa...
SELECT "Original air date" FROM table_3982 WHERE "Title" = 'Sympathy'
### Instruction: CREATE TABLE table_37230 ( "Draw" real, "Artist" text, "Song" text, "Composer" text, "Lyricist" text, "Place" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of points for ray agius #...
SELECT SUM("Points") FROM table_37230 WHERE "Lyricist" = 'ray agius'
### Instruction: CREATE TABLE table_25521 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when was the premiere of the episode ...
SELECT "Original air date" FROM table_25521 WHERE "Title" = 'Force Recon'
### Instruction: CREATE TABLE table_4935 ( "Position" text, "Race Number" real, "Driver" text, "Country" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of laps when the country was NL and the race number was s...
SELECT AVG("Laps") FROM table_4935 WHERE "Race Number" < '8' AND "Country" = 'nl'
### Instruction: CREATE TABLE table_64966 ( "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 is the sum number of year when Call of Duty 4: Modern Warfare was the game? ...
SELECT COUNT("Year") FROM table_64966 WHERE "Game" = 'call of duty 4: modern warfare'
### Instruction: CREATE TABLE table_48937 ( "Opposing Team" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has an Against smaller than 21, and a Status of second test? ### Respon...
SELECT "Date" FROM table_48937 WHERE "Against" < '21' AND "Status" = 'second test'
### Instruction: CREATE TABLE table_19908651_3 ( pole_position VARCHAR, winning_driver VARCHAR, race_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was at the pole position in the ITT Automotive Grand Prix of Detroit, won by Paul Tracy? ### Re...
SELECT pole_position FROM table_19908651_3 WHERE winning_driver = "Paul Tracy" AND race_name = "ITT Automotive Grand Prix of Detroit"
### Instruction: CREATE TABLE Ref_calendar ( day_Number VARCHAR, calendar_date VARCHAR ) CREATE TABLE All_documents ( Date_Stored VARCHAR, date_stored VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the day Number and date of all the document...
SELECT T2.day_Number, T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.Date_Stored = T2.calendar_date
### Instruction: CREATE TABLE table_203_506 ( id number, "opponent" text, "played" number, "won" number, "lost" number, "drawn" number, "% won overall" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- for how many teams was the win percentage ...
SELECT COUNT("opponent") FROM table_203_506 WHERE "% won overall" < 90
### Instruction: CREATE TABLE table_32431 ( "Week" real, "Kickoff" text, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game site" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was the Week 3 g...
SELECT "Date" FROM table_32431 WHERE "Week" = '3'
### Instruction: CREATE TABLE table_69480 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "Class" text, "FCC info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the call sign is wpib, what is lowest ERP W? ...
SELECT MIN("ERP W") FROM table_69480 WHERE "Call sign" = 'wpib'