instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_46393 ( "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 ...
SELECT "High points" FROM table_46393 WHERE "Date" = 'november 12'
### Instruction: CREATE TABLE table_27620 ( "Letters" text, "Organization" text, "Nickname" text, "Founding Date" text, "Founding University" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many letters were given to the organiza...
SELECT COUNT("Letters") FROM table_27620 WHERE "Founding Date" = '1997-12-12'
### Instruction: CREATE TABLE table_65140 ( "Title" text, "Series" text, "Director" text, "Production Number" real, "Release date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the series of the episode directed by Abe Levitow released on ...
SELECT "Series" FROM table_65140 WHERE "Director" = 'abe levitow' AND "Release date" = '1959-06-27'
### Instruction: CREATE TABLE table_60406 ( "Round" real, "Pick" real, "Overall Pick" real, "Player" text, "School/Club Team" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team had a pick of 24 and an overall pick of 310? ...
SELECT "School/Club Team" FROM table_60406 WHERE "Pick" = '24' AND "Overall Pick" = '310'
### Instruction: CREATE TABLE table_64781 ( "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 district of Paraswa...
SELECT "District" FROM table_64781 WHERE "Reserved for ( SC / ST /None)" = 'none' AND "Name" = 'paraswada'
### Instruction: CREATE TABLE table_69284 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the lowest number of points with a Year of 1978, and a Chassis of ensign n177? ...
SELECT MIN("Points") FROM table_69284 WHERE "Year" = '1978' AND "Chassis" = 'ensign n177'
### Instruction: CREATE TABLE table_44606 ( "Outcome" text, "Date" text, "Championship" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Score, when Outcome is Winner, and when Opponent is Ang...
SELECT "Score" FROM table_44606 WHERE "Outcome" = 'winner' AND "Opponent" = 'angela haynes'
### Instruction: CREATE TABLE table_name_56 ( tournament VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Tournament has a Surface of carpet, and a Date smaller than 1995, and an Oppon...
SELECT tournament FROM table_name_56 WHERE surface = "carpet" AND date < 1995 AND opponent_in_the_final = "ken flach robert seguso"
### Instruction: CREATE TABLE table_20298 ( "#" real, "Advocate # 1" text, "Advocate # 2" text, "Root of All Evil" text, "Poll winner" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the air date for andy kindler fo...
SELECT "Original air date" FROM table_20298 WHERE "Advocate # 1" = 'Andy Kindler for Donald Trump'
### Instruction: CREATE TABLE table_train_201 ( "id" int, "blood_pressure_bilaterally" bool, "creatinine_clearance_cl" float, "total_cholesterol" int, "smoking" bool, "triglyceride_tg" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT * FROM table_train_201 WHERE blood_pressure_bilaterally = 1
### Instruction: CREATE TABLE table_12353 ( "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 is the highest Bronze, when Nation is 'South Africa', and when Total i...
SELECT MAX("Bronze") FROM table_12353 WHERE "Nation" = 'south africa' AND "Total" < '20'
### Instruction: CREATE TABLE table_72545 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Time ( ET )" text, "TV" text, "Result" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What time in eastern standard t...
SELECT "Time ( ET )" FROM table_72545 WHERE "Opponent" = 'at Denver Broncos'
### Instruction: CREATE TABLE table_9307 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which week was the November 5, 1978 game which had an attendance larger than 62,989? #...
SELECT "Week" FROM table_9307 WHERE "Attendance" > '62,989' AND "Date" = 'november 5, 1978'
### Instruction: CREATE TABLE table_349 ( "Year" real, "Song name" text, "Film name" text, "Co-singer" text, "Music director" text, "Lyricist" text, "Language" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the lyricst of 'na jane a...
SELECT "Lyricist" FROM table_349 WHERE "Song name" = 'Na Jane Aise Ho Gaya Kaise'
### Instruction: CREATE TABLE table_204_228 ( id number, "year" number, "title" text, "credit" text, "role" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what did seth produce next , after cry wolf ? ### Response:
SELECT "title" FROM table_204_228 WHERE "year" > (SELECT "year" FROM table_204_228 WHERE "title" = 'cry_wolf') ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE table_43377 ( "Date" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Set 4" text, "Set 5" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Total when the Set 3 was 25-1...
SELECT "Total" FROM table_43377 WHERE "Set 3" = '25-15'
### Instruction: CREATE TABLE table_39806 ( "Airline" text, "ICAO" text, "IATA" text, "Callsign" text, "Commenced operations" real, "Fleet size" real, "Headquarters" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which ICAO has a Commenced o...
SELECT "ICAO" FROM table_39806 WHERE "Commenced operations" > '2011'
### Instruction: CREATE TABLE table_410 ( "Name" text, "Pennant" text, "Builder" text, "Laid Down" text, "Launched" text, "Commissioned" text, "Fate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the commissioned for scotts, greeno...
SELECT "Commissioned" FROM table_410 WHERE "Builder" = 'Scotts, Greenock' AND "Name" = 'Chieftain'
### Instruction: CREATE TABLE has_allergy ( stuid number, allergy text ) CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) -- U...
SELECT COUNT(DISTINCT allergytype) FROM allergy_type
### Instruction: CREATE TABLE table_74924 ( "Game" real, "November" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What record has a november greater than 11, and st. louis blues as th...
SELECT "Record" FROM table_74924 WHERE "November" > '11' AND "Opponent" = 'st. louis blues'
### Instruction: CREATE TABLE table_66026 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Grid has Points larger than 10 and a Time/Retired of +13.7 secs?...
SELECT "Grid" FROM table_66026 WHERE "Points" > '10' AND "Time/Retired" = '+13.7 secs'
### Instruction: CREATE TABLE table_27439 ( "City" text, "Population" real, "Registered voters" text, "Democratic" text, "Republican" text, "D\u2013R spread" text, "Other" text, "No party preference" text ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT "Other" FROM table_27439 WHERE "City" = 'Los Gatos'
### Instruction: CREATE TABLE table_26471 ( "World record" text, "Hicham El Guerrouj ( MAR )" text, "3:26.00" text, "Rome , Italy" text, "14 July 1998" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many of 3:26.00 have a championship record? ...
SELECT COUNT("3:26.00") FROM table_26471 WHERE "World record" = 'Championship record'
### Instruction: CREATE TABLE table_51831 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the Competition of World Junior Championships with a 2...
SELECT AVG("Year") FROM table_51831 WHERE "Competition" = 'world junior championships' AND "Position" = '20th (qf)'
### Instruction: CREATE TABLE table_20139 ( "Ecozone" text, "Area (km\u00b2)" real, "Percentage of total area" text, "Percentage of land area" text, "Percentage protected" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the percentage of tota...
SELECT "Percentage of total area" FROM table_20139 WHERE "Percentage of land area" = '2.2'
### Instruction: CREATE TABLE table_68571 ( "Name" text, "Years" text, "Gender" text, "Area" text, "Authority" text, "Decile" real, "Roll" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For a school with authority of state and a roll of 798,...
SELECT "Decile" FROM table_68571 WHERE "Authority" = 'state' AND "Roll" = '798'
### Instruction: CREATE TABLE table_24166 ( "Member countries" text, "Population" real, "Area (km\u00b2)" real, "GDP (billion US$)" text, "GDP per capita (US$)" real, "Languages" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most gdp p...
SELECT MAX("GDP per capita (US$)") FROM table_24166 WHERE "Languages" = 'Latvian'
### Instruction: CREATE TABLE table_203_656 ( id number, "date" text, "opponent" text, "venue" text, "result" text, "scorers" text, "report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the team that last played on may 17th ,2009 ### Res...
SELECT "opponent" FROM table_203_656 WHERE "date" = 'may 17, 2009 - 15:00'
### Instruction: CREATE TABLE table_30789 ( "Player" text, "Matches" real, "Innings" real, "Runs" real, "Average" text, "Highest Score" text, "100s" real, "50s" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many runs are there when ...
SELECT MIN("Runs") FROM table_30789 WHERE "50s" = '3'
### Instruction: CREATE TABLE table_15025 ( "Year" real, "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. -- Name the women's singles for glen...
SELECT "Women's singles" FROM table_15025 WHERE "Men's doubles" = 'glenn macfarlane mark leadbeater'
### Instruction: CREATE TABLE Movie ( title VARCHAR, mID VARCHAR ) CREATE TABLE Rating ( rID VARCHAR, stars INTEGER, mID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the title and star rating of the movie that got the least rating star fo...
SELECT T2.title, T1.rID, T1.stars, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID
### Instruction: CREATE TABLE table_204_342 ( id number, "#" number, "player" text, "span" text, "caps" number, "total caps" number, "win %" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many caps did jean pierre rives and michel craust...
SELECT SUM("total caps") FROM table_204_342 WHERE "player" IN ('jean-pierre rives', 'michel crauste')
### Instruction: CREATE TABLE table_1524 ( "Poll Source" text, "Dates administered" text, "Democrat: Jim Martin" text, "Republican: Saxby Chambliss" text, "Lead Margin" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times did Saxby Chamblis...
SELECT COUNT("Republican: Saxby Chambliss") FROM table_1524 WHERE "Lead Margin" = '21'
### Instruction: CREATE TABLE table_204_888 ( id number, "location" text, "mile" number, "destinations" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the first destination after berkeley springs , wv ? ### Response:
SELECT "destinations" FROM table_204_888 WHERE id = (SELECT id FROM table_204_888 WHERE "destinations" = 'us 522 south - berkeley springs, wv') + 1
### Instruction: CREATE TABLE table_50618 ( "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 ...
SELECT "Location Attendance" FROM table_50618 WHERE "Game" = '4'
### Instruction: CREATE TABLE table_50596 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Date, when Outcome is 'Winner',...
SELECT "Date" FROM table_50596 WHERE "Outcome" = 'winner' AND "Surface" = 'grass'
### Instruction: CREATE TABLE table_49768 ( "Game" real, "Date" text, "Opponent" 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 provi...
SELECT "Record" FROM table_49768 WHERE "Date" = 'june 29'
### Instruction: CREATE TABLE table_52076 ( "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. -- Which team scored 11.17 (83) wh...
SELECT "Away team" FROM table_52076 WHERE "Away team score" = '11.17 (83)'
### Instruction: CREATE TABLE table_30501 ( "No." real, "Title" text, "Directed by" text, "Written by" text, "U.S. viewers (million)" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is th...
SELECT COUNT("No.") FROM table_30501 WHERE "Production code" = '101'
### Instruction: CREATE TABLE table_9162 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the fewest total when silver is 0, and gold is less than 1, and rank is less than 13? ...
SELECT MIN("Total") FROM table_9162 WHERE "Silver" = '0' AND "Gold" < '1' AND "Rank" < '13'
### Instruction: CREATE TABLE table_18824 ( "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 ...
SELECT COUNT("Record") FROM table_18824 WHERE "Date" = 'April 12'
### Instruction: CREATE TABLE table_79303 ( "Rank" real, "Lane" real, "Athlete" text, "Nationality" text, "Time" real, "React" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total Time listings have a 0.209 React entry and a Rank that i...
SELECT COUNT("Time") FROM table_79303 WHERE "React" = '0.209' AND "Rank" > '7'
### Instruction: CREATE TABLE table_57467 ( "Election" text, "1st Member" text, "1st Party" text, "2nd Member" text, "2nd Party" text, "3rd Member" text, "3rd Party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What 3rd Member had 2nd Memb...
SELECT "3rd Member" FROM table_57467 WHERE "2nd Member" = 'university constituencies abolished'
### Instruction: CREATE TABLE table_20472 ( "Headphone Model" text, "Headphone Class" text, "Driver-matched dB" text, "Construction" text, "Earpads" text, "Termination" text, "US MSRP" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which hea...
SELECT "Headphone Model" FROM table_20472 WHERE "US MSRP" = '$150'
### Instruction: CREATE TABLE table_30598 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Ho...
SELECT "U.S. viewers (million)" FROM table_30598 WHERE "Title" = 'Bad Girls'
### Instruction: CREATE TABLE table_11966 ( "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 had a score of 8...
SELECT "Away team" FROM table_11966 WHERE "Away team score" = '8.13 (61)'
### Instruction: CREATE TABLE table_19707 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were all of the opponents when the date wa...
SELECT "Opponent" FROM table_19707 WHERE "Date" = 'November 12, 1978'
### Instruction: CREATE TABLE table_80314 ( "Year" real, "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. -- What is the average year with alf...
SELECT AVG("Year") FROM table_80314 WHERE "Mixed doubles" = 'alfredo salazar fina salazar'
### Instruction: CREATE TABLE table_203_583 ( id number, "title" text, "release" number, "6th gen" text, "handheld" text, "note" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what game was published in europe as 1945 but had a different name el...
SELECT "title" FROM table_203_583 WHERE "note" = 'released and published in europe by play it as 1945 i & ii: the arcade games'
### Instruction: CREATE TABLE table_65248 ( "Opposing Team" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belf...
SELECT MIN("Against") FROM table_65248 WHERE "Status" = 'tour match' AND "Venue" = 'ravenhill , belfast'
### Instruction: CREATE TABLE table_64706 ( "Date" text, "Event" text, "Heat/Semifinal/Final" text, "Nation" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was the men's 100m breaststroke in heat 6? ### Response:
SELECT "Date" FROM table_64706 WHERE "Event" = 'men''s 100m breaststroke' AND "Heat/Semifinal/Final" = 'heat 6'
### Instruction: CREATE TABLE table_10941 ( "Date" text, "Track" text, "Race" text, "Distance" text, "Purse ( US$ )" text, "Surface track" text, "Winning horse" text, "Winning jockey" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What i...
SELECT "Purse ( US$ )" FROM table_10941 WHERE "Track" = 'sunland park'
### Instruction: CREATE TABLE journalist ( age INTEGER, journalist_id VARCHAR ) CREATE TABLE news_report ( work_type VARCHAR, journalist_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the average age and experience working length of journali...
SELECT AVG(t1.age), AVG(Years_working), t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id = t2.journalist_id GROUP BY t2.work_type
### Instruction: CREATE TABLE table_204_859 ( id number, "year" number, "seniors (trood award & rodda medal)" text, "reserves (rex hartley medal)" text, "under 18's (bruce wilkinson medal)" text, "under 16's (shaw/carter medal)" text ) -- Using valid SQLite, answer the following questions for ...
SELECT COUNT("year") FROM table_204_859
### Instruction: CREATE TABLE elimination ( elimination_id text, wrestler_id text, team text, eliminated_by text, elimination_move text, time text ) CREATE TABLE wrestler ( wrestler_id number, name text, reign text, days_held text, location text, event text ) -- Using ...
SELECT name FROM wrestler ORDER BY days_held DESC
### Instruction: CREATE TABLE table_33781 ( "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 the away team whose op...
SELECT "Away team" FROM table_33781 WHERE "Home team score" = '8.16 (64)'
### Instruction: CREATE TABLE table_56442 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the low number of top 25s in an event w...
SELECT MIN("Top-25") FROM table_56442 WHERE "Events" > '15'
### Instruction: CREATE TABLE table_3296 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT "Points" FROM table_3296 WHERE "Position" = '1st'
### Instruction: CREATE TABLE table_26373 ( "Lines" text, "Opening" real, "Traction" text, "Length" text, "Stations" real, "Route" text, "Stops" real, "Travel time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the travel time for ...
SELECT "Travel time" FROM table_26373 WHERE "Route" = 'Porta Nolana - Nola - Baiano'
### Instruction: CREATE TABLE table_40317 ( "Season" text, "Conference" text, "Division" text, "Finish" text, "Wins" text, "Losses" text, "Win%" text, "Awards" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where the Vancouver Grizzlies ...
SELECT "Conference" FROM table_40317 WHERE "Awards" = 'vancouver grizzlies'
### Instruction: CREATE TABLE table_59686 ( "Date" text, "Race" text, "Track" text, "Location" text, "Distance" text, "Surface" text, "Purse" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Purse on January 3, 2...
SELECT "Purse" FROM table_59686 WHERE "Date" = 'january 3, 2010'
### Instruction: CREATE TABLE table_14098 ( "Club" text, "League/Division" text, "Home Ground" text, "Location" text, "Position in 2012-13" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the position in 2012-23 is 4th, second division what is t...
SELECT "Club" FROM table_14098 WHERE "Position in 2012-13" = '4th, second division'
### Instruction: CREATE TABLE table_51955 ( "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 least amount of peo...
SELECT MIN("Crowd") FROM table_51955 WHERE "Away team" = 'essendon'
### Instruction: CREATE TABLE table_22948 ( "Round" real, "Date" text, "City and venue" text, "Winner" text, "Runner-up" text, "3rd placed" text, "4th placed" text, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many runner...
SELECT COUNT("Runner-up") FROM table_22948 WHERE "3rd placed" = 'Jason Crump'
### Instruction: CREATE TABLE table_41547 ( "Season" text, "Series" text, "Team" text, "Races" real, "wins" real, "Poles" real, "Fast laps" real, "Points" real, "Pos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highes...
SELECT MAX("Poles") FROM table_41547 WHERE "wins" < '0'
### Instruction: CREATE TABLE table_28092 ( "Entered [A ]" text, "Weeks in top 10" real, "Single" text, "Artist" text, "Peak" real, "Peak reached [A ]" text, "Weeks at number 1" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the song...
SELECT "Single" FROM table_28092 WHERE "Artist" = 'Panjabi MC'
### Instruction: CREATE TABLE table_65 ( "Approximate Age" text, "Virtues" text, "Psycho Social Crisis" text, "Significant Relationship" text, "Existential Question [ not in citation given ]" text, "Examples" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "Examples" FROM table_65 WHERE "Existential Question [ not in citation given ]" = 'Can I Love?'
### Instruction: CREATE TABLE table_204_909 ( id number, "pollutant" text, "units" text, "emission standard" number, "coal-fired" text, "petroleum coke-fired" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- at most part , how many emission standa...
SELECT COUNT("emission standard") FROM table_204_909 WHERE "emission standard" = '≤ 1.1'
### Instruction: CREATE TABLE table_3720 ( "season" text, "division" text, "date" text, "home team" text, "result" text, "away team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date where the home team was kaizer chiefs and the di...
SELECT "date" FROM table_3720 WHERE "home team" = 'Kaizer Chiefs' AND "division" = 'MTN 8 Semi-final'
### Instruction: CREATE TABLE table_6969 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Partner has an Opponents of wayne arthu...
SELECT "Partner" FROM table_6969 WHERE "Opponents" = 'wayne arthurs sandon stolle'
### Instruction: CREATE TABLE table_57804 ( "Annual ridership (2012)" real, "Rider. per mile" real, "Opened" real, "Stations" real, "Lines" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many lines have fewer than 44 stations and fewer than 881 ...
SELECT COUNT("Lines") FROM table_57804 WHERE "Stations" < '44' AND "Rider. per mile" < '881'
### Instruction: CREATE TABLE table_65370 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Year has a Position of 2nd, and Notes of -63kg, and a Venue of manchester? ###...
SELECT "Year" FROM table_65370 WHERE "Position" = '2nd' AND "Notes" = '-63kg' AND "Venue" = 'manchester'
### Instruction: CREATE TABLE table_1375 ( "County" text, "McCain %" text, "McCain Votes" real, "Obama %" text, "Obama Votes" real, "Others %" text, "Others Votes" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of others vote...
SELECT COUNT("Others Votes") FROM table_1375 WHERE "Others %" = '2.0%'
### Instruction: CREATE TABLE table_41865 ( "Peel" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Wins has an Against of 1940, and a Byes larger than 0? ### Response:...
SELECT MAX("Wins") FROM table_41865 WHERE "Against" = '1940' AND "Byes" > '0'
### Instruction: CREATE TABLE table_204_364 ( 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 venue was before beijing , china ? ### Res...
SELECT "venue" FROM table_204_364 WHERE id = (SELECT id FROM table_204_364 WHERE "venue" = 'beijing, china') - 1
### Instruction: CREATE TABLE table_73612 ( "County" text, "Kerry%" text, "Kerry#" real, "Bush%" text, "Bush#" real, "Others%" text, "Others#" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's percentage voted for Busg in the county wher...
SELECT "Bush%" FROM table_73612 WHERE "Kerry%" = '37.6%'
### Instruction: CREATE TABLE table_203_683 ( id number, "season" text, "league" text, "gold" text, "silver" text, "bronze" text, "winning manager" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- after rosenborg , which team has the most cup ...
SELECT "gold" FROM table_203_683 WHERE "gold" <> 'rosenborg' GROUP BY "gold" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_2936 ( "Season" real, "Lowest" real, "Low Team" text, "Average" real, "Highest" real, "High Team" text, "2nd Highest" real, "2nd Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the entry ...
SELECT "Highest" FROM table_2936 WHERE "Average" = '10295'
### Instruction: CREATE TABLE table_5278 ( "Date" text, "Result" text, "Score" text, "Brazil scorers" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score at Bernardo O'Higgins Cup on May 7, 1961? ### Response:
SELECT "Score" FROM table_5278 WHERE "Competition" = 'bernardo o''higgins cup' AND "Date" = 'may 7, 1961'
### Instruction: CREATE TABLE table_77960 ( "Team" text, "Played" real, "Drew" real, "Lost" real, "Against" real, "Difference" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average points for a team that lost 4 an...
SELECT AVG("Points") FROM table_77960 WHERE "Lost" = '4' AND "Played" > '28'
### Instruction: CREATE TABLE table_train_92 ( "id" int, "thyroid_disease" bool, "heart_disease" bool, "global_deterioration_scale" int, "rosen_modified_hachinski_ischemic_score" int, "hypertension" bool, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables ...
SELECT * FROM table_train_92 WHERE thyroid_disease = 1
### Instruction: CREATE TABLE table_57046 ( "Tournament" text, "Winner" text, "Runner-up" text, "Score" text, "Third Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the winner for the Tournament in Hong Kong with a third place winner na...
SELECT "Winner" FROM table_57046 WHERE "Third Place" = 'mikael pernfors' AND "Tournament" = 'hong kong'
### Instruction: CREATE TABLE table_name_75 ( group_vI VARCHAR, group_iII VARCHAR, valencia VARCHAR, group_i VARCHAR, group_iV VARCHAR, sevilla VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won Group VI, when Group 1 was won by deportivo...
SELECT group_vI FROM table_name_75 WHERE group_i = "deportivo" AND group_iV = sevilla AND group_iII = valencia
### Instruction: CREATE TABLE table_1726 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was t...
SELECT "Original air date" FROM table_1726 WHERE "Written by" = 'Debbie Sarjeant'
### Instruction: CREATE TABLE table_48265 ( "Name" text, "in \u00d7 in" text, "mm \u00d7 mm" text, "Ratio" real, "Similar ISO A size" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which mm mm has an in in of 11 17? ### Response:
SELECT "mm \u00d7 mm" FROM table_48265 WHERE "in \u00d7 in" = '11 × 17'
### Instruction: CREATE TABLE book ( Book_ID int, Title text, Issues real, Writer text ) CREATE TABLE publication ( Publication_ID int, Book_ID int, Publisher text, Publication_Date text, Price real ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT Publication_Date, COUNT(Publication_Date) FROM publication GROUP BY Publication_Date ORDER BY Publication_Date
### Instruction: CREATE TABLE table_name_94 ( us_cham_rank INTEGER, next_highest_spender VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a...
SELECT MIN(us_cham_rank) FROM table_name_94 WHERE next_highest_spender = "national assn of realtors" AND year < 2012
### Instruction: CREATE TABLE table_62844 ( "Tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the 2012 when 2009 was 205? ### Response:
SELECT "2012" FROM table_62844 WHERE "2009" = '205'
### Instruction: CREATE TABLE table_71149 ( "Ensemble" text, "Gold Medals" real, "Silver Medals" real, "Bronze Medals" real, "Total Medals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many gold medals for the school with 2 total medals and un...
SELECT COUNT("Gold Medals") FROM table_71149 WHERE "Total Medals" = '2' AND "Bronze Medals" < '0'
### Instruction: CREATE TABLE table_26954 ( "Name" text, "Position" text, "Period" text, "Appearances\u00b9" real, "Goals\u00b9" real, "Nationality\u00b2" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the minimum impressions for sammy trao...
SELECT MIN("Appearances\u00b9") FROM table_26954 WHERE "Name" = 'Sammy Traoré'
### Instruction: CREATE TABLE table_203_374 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- did italy or spain receive a greater number of s...
SELECT "nation" FROM table_203_374 WHERE "nation" IN ('italy', 'spain') ORDER BY "silver" DESC LIMIT 1
### Instruction: CREATE TABLE table_48287 ( "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 ...
SELECT "Score" FROM table_48287 WHERE "Team" = 'memphis'
### Instruction: CREATE TABLE table_203_743 ( id number, "version" text, "date" text, "development cycle" text, "size (in kb)" number, "download" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the version 2 spots after 0.8 ##...
SELECT "version" FROM table_203_743 WHERE id = (SELECT id FROM table_203_743 WHERE "version" = '0.8') + 2
### Instruction: CREATE TABLE table_75285 ( "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. -- What is the series episode number...
SELECT "Series Ep." FROM table_75285 WHERE "Segment D" = 'fluorescent tubes'
### Instruction: CREATE TABLE table_name_53 ( two_mora_word VARCHAR, gloss VARCHAR, accented_mora VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the two-mora word with a low tone accented mora and a gloss of / kusu ri/ [k s ]? ### Response:
SELECT two_mora_word FROM table_name_53 WHERE NOT accented_mora = "low tone" AND gloss = "/˩kusuꜜri/ [kɯ̀sɯ́ɽì]"
### Instruction: CREATE TABLE table_21068 ( "Position" real, "Team" text, "Played" real, "Wins" real, "Draws" real, "Losses" real, "Scored" real, "Conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many point...
SELECT COUNT("Points") FROM table_21068 WHERE "Team" = 'Sportivo Luqueño'
### Instruction: CREATE TABLE table_204_673 ( id number, "name" text, "egot completed" text, "emmy" number, "grammy" number, "oscar" number, "tony" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- did it take scott rudin more or less than 30...
SELECT (SELECT "egot completed" FROM table_204_673 WHERE "name" = 'scott rudin') > 30
### Instruction: CREATE TABLE table_204_154 ( id number, "player" text, "matches" number, "innings" number, "runs" number, "average" number, "100s" number, "50s" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many innings did bill ...
SELECT SUM("innings") FROM table_204_154 WHERE "player" IN ('bill roe', 'ted tyler')
### Instruction: CREATE TABLE table_73519 ( "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 ...
SELECT "Location Attendance" FROM table_73519 WHERE "Date" = 'January 18'
### Instruction: CREATE TABLE table_204_30 ( id number, "year built" text, "works number" number, "wheel arr." text, "gauge" text, "original owner" text, "name" text, "current location" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provid...
SELECT COUNT(*) FROM table_204_30 WHERE "year built" > 1940