instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_name_41 ( frequency_mhz VARCHAR, city_of_license VARCHAR, erp_w VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has? ### Resp...
SELECT COUNT(frequency_mhz) FROM table_name_41 WHERE city_of_license = "port charlotte, florida" AND erp_w > 10
### Instruction: CREATE TABLE table_72820 ( "Name" text, "Latitude" text, "Longitude" text, "Diameter (km)" text, "Year named" real, "Name origin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the diameter (km) of feature of latitude 40...
SELECT "Diameter (km)" FROM table_72820 WHERE "Latitude" = '40.5S'
### Instruction: CREATE TABLE table_25018 ( "State (class)" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date of successors formal installation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when the vacator was Henry Latimer ...
SELECT "Reason for change" FROM table_25018 WHERE "Vacator" = 'Henry Latimer (F)'
### Instruction: CREATE TABLE user_profiles ( uid number, name text, email text, partitionid number, followers number ) CREATE TABLE tweets ( id number, uid number, text text, createdate time ) CREATE TABLE follows ( f1 number, f2 number ) -- Using valid SQLite, answer th...
SELECT text FROM tweets ORDER BY createdate
### Instruction: CREATE TABLE table_33143 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What away team played at Wester...
SELECT "Away team" FROM table_33143 WHERE "Venue" = 'western oval'
### Instruction: CREATE TABLE table_5345 ( "Year" text, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the men's single in 1940? ...
SELECT "Men's singles" FROM table_5345 WHERE "Year" = '1940'
### Instruction: CREATE TABLE table_49808 ( "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. -- Which country has a total less than 289 and finished t2? ### Re...
SELECT "Country" FROM table_49808 WHERE "Total" < '289' AND "Finish" = 't2'
### Instruction: CREATE TABLE table_17265 ( "No." text, "Player" text, "Date of Birth" text, "Batting Style" text, "Bowling Style" text, "First Class Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Javagal Srinath's batting style? ...
SELECT "Batting Style" FROM table_17265 WHERE "Player" = 'Javagal Srinath'
### Instruction: CREATE TABLE table_15601 ( "Margin" real, "Score" text, "Opponent" text, "Venue" text, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of the game that had a round of Rd 26, 2001? ### Response:
SELECT "Score" FROM table_15601 WHERE "Round" = 'rd 26, 2001'
### Instruction: CREATE TABLE table_203_876 ( id number, "name" text, "birth" text, "marriages" text, "death" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who came to power after the rule of james iii ? ### Response:
SELECT "name" FROM table_203_876 WHERE id > (SELECT id FROM table_203_876 WHERE "name" = 'james iii') LIMIT 1
### Instruction: CREATE TABLE table_62395 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHo has a Country of united states and a To par of 3? ### Respon...
SELECT "Player" FROM table_62395 WHERE "Country" = 'united states' AND "To par" = '–3'
### Instruction: CREATE TABLE table_63371 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name when the const...
SELECT "Name" FROM table_63371 WHERE "Constituency number" = '150'
### Instruction: CREATE TABLE table_204_789 ( id number, "plant name" text, "location" text, "country" text, "startup date" number, "capacity (mmtpa)" text, "corporation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which country has the m...
SELECT "country" FROM table_204_789 GROUP BY "country" ORDER BY COUNT("plant name") DESC LIMIT 1
### Instruction: CREATE TABLE table_16165 ( "Season" real, "Premier" text, "Runner-up" text, "Score" text, "Margin" real, "Venue" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who's the premier with in 1970 ### Response...
SELECT "Premier" FROM table_16165 WHERE "Season" = '1970'
### Instruction: CREATE TABLE table_name_95 ( general_election VARCHAR, _number_of_seats_won VARCHAR, _number_of_candidates VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many general elections that have won smaller than 23 with candidates larger tha...
SELECT COUNT(general_election) FROM table_name_95 WHERE _number_of_seats_won < 23 AND _number_of_candidates > 108
### Instruction: CREATE TABLE table_10454 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which CFL Team has a College of montreal, and a Player of marc trepanier? ### Resp...
SELECT "CFL Team" FROM table_10454 WHERE "College" = 'montreal' AND "Player" = 'marc trepanier'
### Instruction: CREATE TABLE table_24945 ( "Rank" real, "Athlete" text, "Nation" text, "Olympics" text, "Gold" real, "Silver" real, "Bronze" real, "Total(min. 2 medals)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the maximum...
SELECT MAX("Gold") FROM table_24945
### Instruction: CREATE TABLE table_204_635 ( id number, "round" number, "selection" number, "player" text, "position" text, "college" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who got the first draft pick - washington or clemson ? ### Re...
SELECT "college" FROM table_204_635 WHERE "college" IN ('washington', 'clemson') ORDER BY "round" LIMIT 1
### Instruction: CREATE TABLE table_71638 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Laps" real, "Pos." text, "Class Pos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the co-drivers in 2008? ### Response:
SELECT "Co-Drivers" FROM table_71638 WHERE "Year" = '2008'
### Instruction: CREATE TABLE table_203_562 ( id number, "state" text, "no. of candidates" number, "no. of elected" number, "total no. of seats in assembly" number, "year of election" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- total number...
SELECT COUNT("state") FROM table_203_562 WHERE "year of election" = 2002
### Instruction: CREATE TABLE table_806 ( "Rank by average" real, "Competition finish" real, "Couple" text, "Total" real, "Number of dances" real, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The minimum average number of dancers is ...
SELECT MIN("Number of dances") FROM table_806 WHERE "Average" = '34.1'
### Instruction: CREATE TABLE table_10272 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the away team from st k...
SELECT "Away team" FROM table_10272 WHERE "Home team" = 'st kilda'
### Instruction: CREATE TABLE table_53626 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the game played at Pri...
SELECT "Date" FROM table_53626 WHERE "Venue" = 'princes park'
### Instruction: CREATE TABLE table_203_489 ( id number, "year" number, "title" text, "system" text, "developer" text, "publisher" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games were produced from 1988 to 1993 ? ### Response:
SELECT COUNT("title") FROM table_203_489 WHERE "year" >= 1988 AND "year" <= 1993
### Instruction: CREATE TABLE table_32811 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Melbourne's score as t...
SELECT "Home team score" FROM table_32811 WHERE "Home team" = 'melbourne'
### Instruction: CREATE TABLE table_68705 ( "Bellarine FL" 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 sum of the number of wins for teams with more than 0 dra...
SELECT SUM("Wins") FROM table_68705 WHERE "Draws" > '0'
### Instruction: CREATE TABLE table_67506 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What engine with more than 2 points has Brabham bt58 as Chassis? ### Response:
SELECT "Engine" FROM table_67506 WHERE "Chassis" = 'brabham bt58' AND "Points" > '2'
### Instruction: CREATE TABLE table_72520 ( "School" text, "Winners" real, "Finalists" real, "Total Finals" real, "Year of last win" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the school where the year of last win is 1985-86?...
SELECT "School" FROM table_72520 WHERE "Year of last win" = '1985-86'
### Instruction: CREATE TABLE table_21713 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 3rd participle of the verb whose 2nd participle is ba...
SELECT "Part 3" FROM table_21713 WHERE "Part 2" = 'band'
### Instruction: CREATE TABLE table_203_523 ( id number, "state" text, "swimsuit" number, "interview" number, "evening gown" number, "average" number, "finalists" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many points did iowa scor...
SELECT "swimsuit" FROM table_203_523 WHERE "state" = 'iowa'
### Instruction: CREATE TABLE table_14813 ( "Office" text, "Representative" text, "Party" text, "Residence" text, "First Elected" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Office has a Party of dem, and a First Elected of 1991 ? ### Res...
SELECT "Office" FROM table_14813 WHERE "Party" = 'dem' AND "First Elected" = '1991†'
### Instruction: CREATE TABLE table_41741 ( "Date" text, "Opponent" text, "Location" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the Opponent when there is a Record of 39-19? ###...
SELECT "Opponent" FROM table_41741 WHERE "Record" = '39-19'
### Instruction: CREATE TABLE table_101336_1 ( notation VARCHAR, crystal_structure VARCHAR, formula VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the notion when the crystal structure is tetragonal and the formula is bi 2 sr 2 cacu 2 o 8 ### R...
SELECT notation FROM table_101336_1 WHERE crystal_structure = "Tetragonal" AND formula = "Bi 2 Sr 2 CaCu 2 O 8"
### Instruction: CREATE TABLE table_204_546 ( id number, "year" number, "film" text, "song" text, "language" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many songs did ishaan dev provide for movies made between 2007 and 2009 ? ### Response:...
SELECT COUNT("song") FROM table_204_546 WHERE "year" >= 2007 AND "year" <= 2009
### Instruction: CREATE TABLE table_51176 ( "Name of ground" text, "Location" text, "Year" text, "FC matches" text, "LA matches" text, "T20 matches" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What T20 match was played in 19...
SELECT "T20 matches" FROM table_51176 WHERE "Year" = '1979'
### Instruction: CREATE TABLE table_77829 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the game with richmond...
SELECT "Date" FROM table_77829 WHERE "Away team" = 'richmond'
### Instruction: CREATE TABLE table_18039 ( "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. -- On what day was the team playing at milwaukee ...
SELECT "Date" FROM table_18039 WHERE "Game site" = 'Milwaukee County Stadium'
### Instruction: CREATE TABLE table_78936 ( "Home (1st leg)" text, "Home (2nd leg)" text, "1st Leg" text, "2nd leg" text, "Aggregate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who played at home for the 2nd leg with a score of 1-2? ### Respon...
SELECT "Home (2nd leg)" FROM table_78936 WHERE "2nd leg" = '1-2'
### Instruction: CREATE TABLE table_203_218 ( id number, "pos" number, "class" text, "no" number, "team" text, "drivers" text, "chassis" text, "engine" text, "laps" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what team did not c...
SELECT "team" FROM table_203_218 WHERE "laps" = 0
### Instruction: CREATE TABLE table_204_816 ( id number, "locomotive" text, "named" 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 total number of standard an...
SELECT COUNT(*) FROM table_204_816 WHERE "gauge" IN ('standard', 'broad')
### Instruction: CREATE TABLE table_66417 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "# / County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much Enrollment has a School of fort wayne homestea...
SELECT SUM("Enrollment") FROM table_66417 WHERE "School" = 'fort wayne homestead'
### Instruction: CREATE TABLE table_18583 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the the candidates with incumbent being alfred j...
SELECT "Candidates" FROM table_18583 WHERE "Incumbent" = 'Alfred J. Elliott'
### Instruction: CREATE TABLE table_206217_2 ( epoch__utc_ VARCHAR, inclination__deg___to_moon_equator_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every value of epoch if inclination is 90.063603? ### Response:
SELECT epoch__utc_ FROM table_206217_2 WHERE inclination__deg___to_moon_equator_ = "90.063603"
### Instruction: CREATE TABLE table_21368 ( "Official Name" text, "Status" text, "Area km 2" text, "Population" real, "Census Ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the population for census ranking 782 of 5,008? ### Resp...
SELECT "Population" FROM table_21368 WHERE "Census Ranking" = '782 of 5,008'
### Instruction: CREATE TABLE table_204_791 ( id number, "event" text, "winner" text, "second" text, "third" text, "fourth" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the top performer in the 2008 telstra men 's pro ? ### Response:...
SELECT "winner" FROM table_204_791 WHERE "event" = "2008 telstra men's pro"
### Instruction: CREATE TABLE table_204_401 ( id number, "rank" number, "lane" number, "name" text, "nationality" text, "react" number, "time" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long did it take elin backm...
SELECT "time" FROM table_204_401 WHERE "name" = 'elin backman'
### Instruction: CREATE TABLE table_name_30 ( el_samurai VARCHAR, mazada VARCHAR, ryuji_hijikata VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the El samurai with MAZADA of x for Ryuji Hijikata of draw (30:00) ### Response:
SELECT el_samurai FROM table_name_30 WHERE mazada = "x" AND ryuji_hijikata = "draw (30:00)"
### Instruction: CREATE TABLE table_52667 ( "Rank" real, "Player" text, "Country" text, "Earnings( $ )" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank of Lee Trevino, who had less than 27 wins? ### Response:
SELECT SUM("Rank") FROM table_52667 WHERE "Player" = 'lee trevino' AND "Wins" < '27'
### Instruction: CREATE TABLE table_45910 ( "Winner" text, "Country" text, "Winter Olympics" text, "FIS Nordic World Ski Championships" text, "Holmenkollen" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which FIS Nordic World Ski Championships has ...
SELECT "FIS Nordic World Ski Championships" FROM table_45910 WHERE "Winter Olympics" = '1960'
### Instruction: CREATE TABLE table_75131 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the decision when the attendance was 19,...
SELECT "Decision" FROM table_75131 WHERE "Attendance" = '19,592'
### Instruction: CREATE TABLE table_14641 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the average founded with joined le...
SELECT AVG("Founded") FROM table_14641 WHERE "Joined" < '2008'
### Instruction: CREATE TABLE table_61394 ( "Name" text, "Season" text, "Games" text, "Goals" text, "Assists" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the points in the season with 47 games and 28 goals? ### Respo...
SELECT "Points" FROM table_61394 WHERE "Goals" = '28' AND "Games" = '47'
### Instruction: CREATE TABLE table_name_11 ( feet INTEGER, latitude__n_ VARCHAR, metres VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average feet that has a Latitude (N) of 35 48 35 , and under 8,047m? ### Response:
SELECT AVG(feet) FROM table_name_11 WHERE latitude__n_ = "35°48′35″" AND metres < 8 OFFSET 047
### Instruction: CREATE TABLE table_40579 ( "Spoofed Title" text, "Actual Title" text, "Writer" text, "Artist" text, "Issue" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Artist with a Date that is june 1979? ### Resp...
SELECT "Artist" FROM table_40579 WHERE "Date" = 'june 1979'
### Instruction: CREATE TABLE table_79989 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score of the game that was played against Maria Kondr...
SELECT "Score" FROM table_79989 WHERE "Opponent" = 'maria kondratieva'
### Instruction: CREATE TABLE table_51778 ( "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 avarage Attendance for the Date of october 26, 1947? ### Response:
SELECT AVG("Attendance") FROM table_51778 WHERE "Date" = 'october 26, 1947'
### Instruction: CREATE TABLE table_16048129_5 ( number_of_families VARCHAR, _percentage_of_total_deportees VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total families are there in regions with 5.8 percent of the population being made up of deport...
SELECT COUNT(number_of_families) FROM table_16048129_5 WHERE _percentage_of_total_deportees = "5.8"
### Instruction: CREATE TABLE table_name_13 ( match_report VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the match report for the game that was played on 23 august 2008 in stark's park during...
SELECT match_report FROM table_name_13 WHERE venue = "stark's park" AND competition = "second division" AND date = "23 august 2008"
### Instruction: CREATE TABLE table_204_601 ( id number, "area served" text, "city of license" text, "vc" number, "rf" number, "callsign" text, "network" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total numb...
SELECT COUNT(*) FROM table_204_601 WHERE "network" = 'cbs'
### Instruction: CREATE TABLE table_40400 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the name of the tournament that the final was played against Yi...
SELECT "Tournament" FROM table_40400 WHERE "Opponent in the final" = 'yi jingqian'
### Instruction: CREATE TABLE table_75236 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Save" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the loss with save of || 23,391 ||17-18||? ### Response:
SELECT "Loss" FROM table_75236 WHERE "Save" = '|| 23,391 ||17-18||'
### Instruction: CREATE TABLE table_18160 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Results" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many candidates ran in the election where Mike Doy...
SELECT COUNT("Candidates") FROM table_18160 WHERE "Incumbent" = 'Mike Doyle'
### Instruction: CREATE TABLE table_9516 ( "Party" text, "Leader" text, "Seats" text, "% of seats" text, "First Pref votes" text, "% FPv" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the First Pref Votes for the % FPv of 0.06? ### Re...
SELECT "First Pref votes" FROM table_9516 WHERE "% FPv" = '0.06'
### Instruction: CREATE TABLE table_name_78 ( rank INTEGER, react VARCHAR, lane VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average ranking for a react of 0.17300000000000001 and less than 5 lanes? ### Response:
SELECT AVG(rank) FROM table_name_78 WHERE react = 0.17300000000000001 AND lane < 5
### Instruction: CREATE TABLE table_train_229 ( "id" int, "hemoglobin_a1c_hba1c" float, "active_metabolic" bool, "body_weight" float, "hba1c" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- minimal weight of 40 kg...
SELECT * FROM table_train_229 WHERE body_weight >= 40
### Instruction: CREATE TABLE table_58820 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Round has a Time of 0:37? ...
SELECT "Round" FROM table_58820 WHERE "Time" = '0:37'
### Instruction: CREATE TABLE table_44017 ( "Team" text, "Driver" text, "Class" text, "Chassis" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which driver was in 8 rounds with a chassis of dallara f306? ### Response:
SELECT "Driver" FROM table_44017 WHERE "Chassis" = 'dallara f306' AND "Rounds" = '8'
### Instruction: CREATE TABLE table_36719 ( "Driver" text, "Seasons" text, "Entries" real, "Poles" real, "Percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Seasons have a Poles larger than 29, and Entries larger than 191? ### Respon...
SELECT "Seasons" FROM table_36719 WHERE "Poles" > '29' AND "Entries" > '191'
### Instruction: CREATE TABLE table_68777 ( "Name" text, "Street Address" text, "Years as tallest" text, "Height ft / m" text, "Floors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of floors at 170 Fourth Avenue North? ...
SELECT AVG("Floors") FROM table_68777 WHERE "Street Address" = '170 fourth avenue north'
### Instruction: CREATE TABLE table_61182 ( "Nat." text, "Name" text, "Moving from" text, "Type" text, "Transfer window" text, "Ends" real, "Transfer fee" text, "Source" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the transfer...
SELECT "Transfer window" FROM table_61182 WHERE "Name" = 'larsson'
### Instruction: CREATE TABLE table_15838 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points did the Ford V8 with a Tyrrell 007 have? ### Response:
SELECT "Points" FROM table_15838 WHERE "Engine" = 'ford v8' AND "Chassis" = 'tyrrell 007'
### Instruction: CREATE TABLE perpetrator ( perpetrator_id number, people_id number, date text, year number, location text, country text, killed number, injured number ) CREATE TABLE people ( people_id number, name text, height number, weight number, home town text )...
SELECT MAX(year) FROM perpetrator
### Instruction: CREATE TABLE table_204_480 ( id number, "title" text, "alternate title(s)" text, "year" number, "manufacturer" text, "genre(s)" text, "max. players" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games have a max ...
SELECT COUNT(*) FROM table_204_480 WHERE "max. players" >= 3
### 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 ab...
SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher ORDER BY Publisher
### Instruction: CREATE TABLE table_799 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT "Date" FROM table_799 WHERE "Team" = 'Chicago'
### Instruction: CREATE TABLE table_23455 ( "Number" real, "Registration" text, "First flew" text, "Last flew" text, "Flying hours" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- on 19 april 1985 how many of number last flew #...
SELECT COUNT("Number") FROM table_23455 WHERE "Last flew" = '19 April 1985'
### Instruction: CREATE TABLE table_55354 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What did the home team when the...
SELECT "Home team score" FROM table_55354 WHERE "Away team" = 'richmond'
### Instruction: CREATE TABLE table_44751 ( "Lane" real, "Name" text, "Country" text, "Mark" text, "React" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of React, when Name is Sean Wroe, and when Lane is greater than 2? #...
SELECT COUNT("React") FROM table_44751 WHERE "Name" = 'sean wroe' AND "Lane" > '2'
### Instruction: CREATE TABLE table_73563 ( "Order number" text, "Build date" text, "Serial numbers" text, "Country" text, "Railroad" text, "Numbers" text, "Quantity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The numbers 801-812 are in ...
SELECT "Country" FROM table_73563 WHERE "Numbers" = '801-812'
### Instruction: CREATE TABLE table_46204 ( "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 Player, when Total is greater than 148, and when To Par is '12'? ### Respo...
SELECT "Player" FROM table_46204 WHERE "Total" > '148' AND "To par" = '12'
### Instruction: CREATE TABLE table_name_91 ( wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Wins have a Goal Difference larger than 12, and a Club of granada cf, and Played larger tha...
SELECT AVG(wins) FROM table_name_91 WHERE goal_difference > 12 AND club = "granada cf" AND played > 30
### Instruction: CREATE TABLE table_204_683 ( id number, "no." number, "constituency" text, "winner candidate" text, "party" text, "votes" number, "margin" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which party had the most candidates ...
SELECT "party" FROM table_204_683 GROUP BY "party" ORDER BY COUNT("winner candidate") DESC LIMIT 1
### Instruction: CREATE TABLE table_5698 ( "Model" text, "Engine" text, "Displacement" text, "Power" text, "Torque" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which model had a power of 66kw (90 ps) @ 6250 rpm? ### Response:
SELECT "Model" FROM table_5698 WHERE "Power" = '66kw (90 ps) @ 6250 rpm'
### Instruction: CREATE TABLE table_78212 ( "Date" text, "Competition" text, "Venue" text, "Result" text, "Score" text, "Tries" text, "Goals" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the goals on 3/10/97? ### Response:
SELECT "Goals" FROM table_78212 WHERE "Date" = '3/10/97'
### Instruction: CREATE TABLE table_46332 ( "Round" real, "Pick #" real, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which the highest Round has a Player of mike williams, and a Pick # larger than 4? ##...
SELECT MAX("Round") FROM table_46332 WHERE "Player" = 'mike williams' AND "Pick #" > '4'
### Instruction: CREATE TABLE table_23173 ( "Player" text, "Minutes" real, "Field Goals" real, "Rebounds" real, "Assists" real, "Steals" real, "Blocks" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times did debb...
SELECT "Blocks" FROM table_23173 WHERE "Player" = 'Debbie Black'
### Instruction: CREATE TABLE table_48833 ( "Game" text, "Date" text, "Score" text, "Opponent" text, "Attendance" real, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Attendance of the game against the Flo...
SELECT SUM("Attendance") FROM table_48833 WHERE "Opponent" = 'florida panthers'
### Instruction: CREATE TABLE table_7789 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Ground" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest crowd of the...
SELECT MIN("Crowd") FROM table_7789 WHERE "Home team" = 'west coast'
### Instruction: CREATE TABLE table_17156 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "Years for Rockets" text, "School/Club Team/Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which years had a jersey number ...
SELECT "Years for Rockets" FROM table_17156 WHERE "No.(s)" = '55'
### Instruction: CREATE TABLE table_23353 ( "School" text, "City / Town" text, "Website" text, "Size" real, "Principal" text, "Grades" text, "IDOE Profile" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the school/s in No...
SELECT "School" FROM table_23353 WHERE "City / Town" = 'North Manchester'
### Instruction: CREATE TABLE table_10253 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the home team at windy ...
SELECT "Home team" FROM table_10253 WHERE "Venue" = 'windy hill'
### Instruction: CREATE TABLE table_45053 ( "Season" text, "Races" real, "Wins" real, "Podiums" real, "Poles" real, "Fastest Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average number of fastest laps with less than 0 poles?...
SELECT AVG("Fastest Laps") FROM table_45053 WHERE "Poles" < '0'
### Instruction: CREATE TABLE table_64378 ( "Round" real, "Dates" text, "Rally Name" text, "Rally HQ" text, "Support Category" text, "Surface" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was adac rally deutschland's rally HQ? ### Resp...
SELECT "Rally HQ" FROM table_64378 WHERE "Rally Name" = 'adac rally deutschland'
### Instruction: CREATE TABLE table_72644 ( "Year" real, "Championship" text, "54 holes" text, "Winning score" text, "Margin" text, "Runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT YEAR DID MIKE BRADY GET RUNNER-UP? ### Response...
SELECT MIN("Year") FROM table_72644 WHERE "Runner-up" = 'Mike Brady'
### Instruction: CREATE TABLE table_74337 ( "Team" text, "Stadium" text, "Home Games" real, "Average Attendance" real, "Total Attendance" real, "Capacity Percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team had a capacity of 102....
SELECT "Team" FROM table_74337 WHERE "Capacity Percentage" = '102.3%'
### Instruction: CREATE TABLE table_2598 ( "Market Rank & City of license /Market" text, "Station" text, "Channel TV / DT" text, "Owned since" real, "Affiliation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What market rank and city had the stati...
SELECT "Market Rank & City of license /Market" FROM table_2598 WHERE "Station" = 'KABC-TV'
### Instruction: CREATE TABLE table_62955 ( "Draw" real, "Artist" text, "Song" text, "Percentage" text, "Place" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Song has a Draw of less than 4 with a Percentage of 32.22%? ### Response:
SELECT "Song" FROM table_62955 WHERE "Draw" < '4' AND "Percentage" = '32.22%'
### Instruction: CREATE TABLE table_name_66 ( result INTEGER, lane VARCHAR, reaction_time VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest result for Christian Malcolm with a reaction time greater than 0.185 and a lane ...
SELECT MIN(result) FROM table_name_66 WHERE reaction_time > 0.185 AND name = "christian malcolm" AND lane > 3
### Instruction: CREATE TABLE table_name_91 ( channels___analog___digital__ VARCHAR, first_air_date VARCHAR, region_served VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What channels first aired on 31 December 1990 in the Southern Downs region? ### Re...
SELECT channels___analog___digital__ FROM table_name_91 WHERE first_air_date = "31 december 1990" AND region_served = "southern downs"
### Instruction: CREATE TABLE table_18497 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the the incumbent with dbeingtrict being florida...
SELECT "Incumbent" FROM table_18497 WHERE "District" = 'Florida 2'