instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
-- Using valid SQLite, answer the fol... | SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID |
### Instruction:
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height re... | SELECT Sex, SUM(Height) FROM people GROUP BY Sex |
### Instruction:
CREATE TABLE table_40264 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has an Against ... | SELECT SUM("Position") FROM table_40264 WHERE "Against" = '32' AND "Difference" = '18' AND "Drawn" > '4' |
### Instruction:
CREATE TABLE personfriend (
name text,
friend text,
year number
)
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names, ages, and job... | SELECT T1.name, T1.age, T1.job FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT MAX(year) FROM personfriend WHERE friend = 'Alice') |
### Instruction:
CREATE TABLE table_18794 (
"Season" real,
"Premiers" text,
"Runners Up" text,
"Score" text,
"Captain" text,
"Coach" text,
"Simpson Medal" text,
"Venue" text,
"Attendance" real,
"Umpires" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "Umpires" FROM table_18794 WHERE "Simpson Medal" = 'Paul Medhurst (C)' |
### Instruction:
CREATE TABLE table_41496 (
"Tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What 2011 has 4r as the 2... | SELECT "2011" FROM table_41496 WHERE "2008" = '4r' |
### Instruction:
CREATE TABLE table_72845 (
"Poll Year" text,
"Winner" text,
"Second" text,
"Third" text,
"Fourth" text,
"Fifth" text,
"Sixth" text,
"Seventh" text,
"Eighth" text,
"Ninth" text,
"Tenth" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT COUNT("Seventh") FROM table_72845 WHERE "Sixth" = 'Interpol' |
### Instruction:
CREATE TABLE table_68058 (
"Tournament" text,
"1999" text,
"2002" text,
"2004" text,
"2006" text,
"2007" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2004 value wi... | SELECT "2004" FROM table_68058 WHERE "2010" = 'sf' |
### Instruction:
CREATE TABLE table_22496 (
"Athlete" text,
"Class" text,
"Event" text,
"Round of 64" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text,
"Semifinals" text,
"Final/ Bronze medal match" text
)
-- Using valid SQLite, answer the following questions for ... | SELECT "Quarterfinals" FROM table_22496 WHERE "Athlete" = 'Bas van Erp' |
### Instruction:
CREATE TABLE table_23951 (
"Position" real,
"Race number" text,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Elapsed time d:hh:mm:ss" text
)
-- Using valid SQLite, answer the following questions fo... | SELECT MAX("Position") FROM table_23951 WHERE "LOA (Metres)" = '20.12' |
### Instruction:
CREATE TABLE table_58237 (
"Index (Year)" text,
"Author / Editor / Source" text,
"Year of publication" text,
"Countries sampled" real,
"World Ranking (1)" text,
"Ranking L.A. (2)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I... | SELECT "World Ranking (1)" FROM table_58237 WHERE "Ranking L.A. (2)" = '5th' AND "Year of publication" = '2008' |
### Instruction:
CREATE TABLE table_35049 (
"gzip" text,
"bzip2" text,
"LHA/LZH" text,
"StuffIt" text,
"StuffIt X" text,
"ISO/CD Image" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the gzip value associated with a stuffit of no, bzip2 ... | SELECT "gzip" FROM table_35049 WHERE "StuffIt" = 'no' AND "bzip2" = 'no' AND "LHA/LZH" = 'no' |
### Instruction:
CREATE TABLE phone_market (
market_id number,
phone_id text,
num_of_stock number
)
CREATE TABLE phone (
name text,
phone_id number,
memory_in_g number,
carrier text,
price number
)
CREATE TABLE market (
market_id number,
district text,
num_of_employees numb... | SELECT carrier, COUNT(*) FROM phone GROUP BY carrier |
### Instruction:
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
... | SELECT Nationality, COUNT(Nationality) FROM journalist GROUP BY Nationality ORDER BY Nationality |
### Instruction:
CREATE TABLE table_20565 (
"Year" real,
"GDP Nominal ($ billions)" text,
"GDP Adjusted ($ billions)" text,
"Population (millions)" text,
"GDP per capita Nominal ($)" real,
"GDP per capita Adjusted ($)" real
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT "GDP per capita Adjusted ($)" FROM table_20565 WHERE "Population (millions)" = '37.376' |
### Instruction:
CREATE TABLE table_34583 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall FHT points" text,
"Overall WC points (Rank)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT MIN("Rank") FROM table_34583 WHERE "Nationality" = 'aut' AND "1st (m)" > '132' |
### Instruction:
CREATE TABLE table_29804 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "Production code" FROM table_29804 WHERE "U.S. viewers (millions)" = '23.9' |
### Instruction:
CREATE TABLE table_66322 (
"Producer" text,
"Product" text,
"Samples taken" real,
"Samples failed" real,
"Melamine content(mg/kg)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the product that has less than 98.6 melamine co... | SELECT "Product" FROM table_66322 WHERE "Melamine content(mg/kg)" < '98.6' AND "Samples failed" > '1' AND "Samples taken" < '3' |
### Instruction:
CREATE TABLE table_30667 (
"Couple" text,
"Style" text,
"Music" text,
"Trine Dehli Cleve" real,
"Tor Fl\u00f8ysvik" real,
"Karianne Gulliksen" real,
"Christer Tornell" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT COUNT("Tor Fl\u00f8ysvik") FROM table_30667 WHERE "Christer Tornell" = '7' |
### Instruction:
CREATE TABLE table_62416 (
"Date" text,
"Opponent" text,
"Score" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the opponent when the score was 3 - 2, and the decision ... | SELECT "Opponent" FROM table_62416 WHERE "Score" = '3 - 2' AND "Decision" = 'raycroft' AND "Record" = '25-29-1' |
### Instruction:
CREATE TABLE table_72823 (
"Rank" real,
"Company" text,
"Headquarters" text,
"Industry" text,
"Sales (billion $)" text,
"Profits (billion $)" text,
"Assets (billion $)" text,
"Market Value (billion $)" text
)
-- Using valid SQLite, answer the following questions for th... | SELECT "Profits (billion $)" FROM table_72823 WHERE "Company" = 'Berkshire Hathaway' |
### Instruction:
CREATE TABLE table_13309 (
"Entities" text,
"Country" text,
"Supply point" text,
"Voltage (kV)" real,
"Power (MW)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Voltage (kV) has a Country of argentina, and a Power (MW) lar... | SELECT COUNT("Voltage (kV)") FROM table_13309 WHERE "Country" = 'argentina' AND "Power (MW)" > '30' AND "Supply point" = 'yacyretá' |
### Instruction:
CREATE TABLE table_33123 (
"Player" text,
"Span" text,
"Start" real,
"Tries" real,
"Conv" real,
"Pens" real,
"Drop" real,
"Lost" real,
"Draw" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total losses fo... | SELECT COUNT("Lost") FROM table_33123 WHERE "Pens" < '51' AND "Tries" = '3' AND "Start" = '45' |
### Instruction:
CREATE TABLE table_dev_15 (
"id" int,
"hemoglobin_a1c_hba1c" float,
"hepatic_enzymes" bool,
"platelet_count" float,
"liver_disease" bool,
"hba1c" float,
"triglyceride_tg" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT * FROM table_dev_15 WHERE liver_disease = 1 OR hepatic_enzymes = 1 |
### Instruction:
CREATE TABLE table_15344 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which gold Coast has a Melbourne of yes, a Perth of yes, an ... | SELECT "Gold Coast" FROM table_15344 WHERE "Melbourne" = 'yes' AND "Perth" = 'yes' AND "Auckland" = 'no' AND "Sydney" = 'no' |
### Instruction:
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ... | SELECT Name, SUM(Price) FROM Products GROUP BY Name ORDER BY SUM(Price) |
### Instruction:
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billi... | SELECT born_state, COUNT(born_state) FROM head GROUP BY born_state |
### Instruction:
CREATE TABLE table_204_239 (
id number,
"year" number,
"title" text,
"uk" text,
"us:\nbillboard\nhot 100" text,
"us:\nbillboard\nr&b" text,
"us:\nbillboard\na/c" text,
"australia" text,
"various" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "year" FROM table_204_239 GROUP BY "year" ORDER BY COUNT("title") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_15148 (
"Kick Off" text,
"Opponents" text,
"H / A" text,
"Result" text,
"Referee" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the match with a H/A of A and a kick off at... | SELECT "Result" FROM table_15148 WHERE "H / A" = 'a' AND "Kick Off" = '1992-10-31 16:00' |
### Instruction:
CREATE TABLE table_23014 (
"Name" text,
"Country" text,
"Seasons" text,
"Championship Titles" text,
"Race entries (Starts)" text,
"Poles" real,
"Wins" real,
"Podiums" real,
"Fastest Laps" real,
"Points" real
)
-- Using valid SQLite, answer the following questio... | SELECT "Name" FROM table_23014 WHERE "Country" = 'France' AND "Race entries (Starts)" = '10' |
### Instruction:
CREATE TABLE table_27522 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What June 10-11 is is that corresponds to March 28, 1968?
###... | SELECT "June 10-11" FROM table_27522 WHERE "March 27-29" = 'March 28, 1968' |
### Instruction:
CREATE TABLE table_24211 (
"Competition" text,
"Round" text,
"Opponent" text,
"Result" text,
"Score" text,
"Home/Away" text,
"Venue" text,
"Attendance" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- stat... | SELECT "Opponent" FROM table_24211 WHERE "Venue" = 'Halliwell Jones Stadium' AND "Competition" = 'Super League XIV' |
### Instruction:
CREATE TABLE certificate (
eid number,
aid number
)
CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,... | SELECT origin FROM flight WHERE destination = "Honolulu" |
### Instruction:
CREATE TABLE table_76306 (
"Season" text,
"Series" text,
"Team Name" text,
"Races" real,
"Wins" real,
"Poles" real,
"F.L." real,
"Podiums" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT AVG("Podiums") FROM table_76306 WHERE "Position" = '32nd' AND "Wins" < '0' |
### Instruction:
CREATE TABLE table_66913 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Intergiro classification" text,
"Trofeo Fast Team" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT "Winner" FROM table_66913 WHERE "Trofeo Fast Team" = 'asics-c.g.a.' AND "Mountains classification" = 'mariano piccoli' |
### Instruction:
CREATE TABLE table_204_587 (
id number,
"drop(s)" text,
"multiplayer map(s)" text,
"spec ops mission(s)" text,
"face off map(s)" text,
"xbox 360 release date" text,
"playstation 3 release date" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "drop(s)" FROM table_204_587 ORDER BY "spec ops mission(s)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_25350 (
"County" text,
"Population" real,
"Unemployment Rate" text,
"Market Income Per Capita" text,
"Poverty Rate" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the market income per c... | SELECT "Market Income Per Capita" FROM table_25350 WHERE "Status" = 'Distressed' AND "Unemployment Rate" = '10.5%' |
### Instruction:
CREATE TABLE table_28972 (
"Species" text,
"Common Name" text,
"Protein Name" text,
"Accession Number" text,
"NT Length" text,
"NT Identity" text,
"AA Length" text,
"AA Identity" text,
"E-Value" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT COUNT("Common Name") FROM table_28972 WHERE "Accession Number" = 'XP_001843282' |
### Instruction:
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT director, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY director ORDER BY director DESC |
### Instruction:
CREATE TABLE table_1852 (
"Main contestant" text,
"Co-contestant (Yaar vs. Pyaar)" text,
"Date performed" text,
"Scores by each individual judge" text,
"Total score/week" text,
"Position" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Scores by each individual judge" FROM table_1852 WHERE "Main contestant" = 'Karanvir Bohra' AND "Date performed" = 'August 13' |
### Instruction:
CREATE TABLE table_203_273 (
id number,
"name" text,
"japanese" text,
"distance\n(km)" number,
"connections" text,
"location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many consecutive stops must you travel through is y... | SELECT (SELECT id FROM table_203_273 WHERE "name" = 'kibitsu') - (SELECT id FROM table_203_273 WHERE "name" = 'bizen-mikado') - 1 |
### Instruction:
CREATE TABLE rental (
first_name VARCHAR,
customer_id VARCHAR,
rental_date INTEGER
)
CREATE TABLE customer (
first_name VARCHAR,
customer_id VARCHAR,
rental_date INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the fi... | SELECT first_name FROM customer WHERE NOT customer_id IN (SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01') |
### Instruction:
CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE head (
head_ID int,
name text,
... | SELECT born_state, AVG(age) FROM head GROUP BY born_state |
### Instruction:
CREATE TABLE table_58536 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text,
"Apparent magnitude" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is ... | SELECT MIN("Apparent magnitude") FROM table_58536 WHERE "Declination ( J2000 )" = '°39′45″' |
### Instruction:
CREATE TABLE table_3512 (
"Outcome" text,
"No." text,
"Date" text,
"Championship" 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.
-- How many numbers corre... | SELECT COUNT("No.") FROM table_3512 WHERE "Score in the final" = '6–3, 6–4, 7–6 (13–11)' |
### Instruction:
CREATE TABLE table_204_465 (
id number,
"#" number,
"temple name" text,
"hangul" text,
"hanja" text,
"period of reign" text,
"personal name" text,
"relationship" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT (SELECT id FROM table_204_465 WHERE "temple name" = 'gye') < (SELECT id FROM table_204_465 WHERE "temple name" = 'biryu') |
### Instruction:
CREATE TABLE table_25007 (
"Character" text,
"Original Manchester Performer" text,
"Original West End Performer" text,
"Original Broadway Performer" text,
"Original UK Tour Performer" text,
"Original Non-Equity US Tour Performer" text,
"Original Italian Tour Performer" text,... | SELECT "Original Manchester Performer" FROM table_25007 WHERE "Original West End Performer" = 'Lisa Davina Phillip' |
### Instruction:
CREATE TABLE table_49002 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Team" FROM table_49002 WHERE "High points" = 'rashard lewis , mickaël piétrus (17)' |
### Instruction:
CREATE TABLE team (
team_id_br VARCHAR,
name VARCHAR
)
CREATE TABLE home_game (
attendance INTEGER,
team_id VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total home game attendance of team Boston Red S... | SELECT SUM(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010 |
### Instruction:
CREATE TABLE table_62978 (
"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's the sum of Top-10 that has Events that's... | SELECT COUNT("Top-10") FROM table_62978 WHERE "Events" > '16' AND "Top-5" > '5' |
### Instruction:
CREATE TABLE table_44015 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has a Position of lw, and a College/Junior/C... | SELECT AVG("Round") FROM table_44015 WHERE "Position" = 'lw' AND "College/Junior/Club Team (League)" = 'swift current broncos (wchl)' |
### Instruction:
CREATE TABLE table_73467 (
"Episode Air Date" text,
"Audition City" text,
"First Audition Date" text,
"Audition Venue" text,
"Callback Date" text,
"Callback Venue" text,
"Guest Judge" text,
"Golden Tickets" real
)
-- Using valid SQLite, answer the following questions f... | SELECT COUNT("Guest Judge") FROM table_73467 WHERE "First Audition Date" = 'July 9, 2009' |
### Instruction:
CREATE TABLE table_3373 (
"Skip (Club)" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the p... | SELECT MIN("PA") FROM table_3373 WHERE "Skip (Club)" = 'Jocelyn Nix (Glooscap)' |
### Instruction:
CREATE TABLE table_201_2 (
id number,
"name" text,
"height\nm (ft)" text,
"completed" number,
"country" text,
"location" text,
"coordinates" text,
"remarks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which of the fol... | SELECT "name" FROM table_201_2 WHERE "name" IN ('star of lake tai', 'star of nanchang', 'melbourne star') ORDER BY "completed" LIMIT 1 |
### Instruction:
CREATE TABLE table_20609 (
"Year" text,
"Stamp duty reserve tax" text,
"Standard Stamp Duty" text,
"Standard Duties Total Revenue (in \u20acmillion)" real,
"over Total Tax Revenue (in %)" text,
"over GDP (in %)" text
)
-- Using valid SQLite, answer the following questions for ... | SELECT "Stamp duty reserve tax" FROM table_20609 WHERE "over Total Tax Revenue (in %)" = '0.79' |
### Instruction:
CREATE TABLE table_13313 (
"Number" real,
"Sanskrit" text,
"International Alphabet of Sanskrit Transliteration" text,
"Sanskrit gloss" text,
"Western name" text,
"Greek" text,
"Gloss" text,
"Tattva (Element)" text,
"Quality" text,
"Ruling Planet" text
)
-- Usin... | SELECT "Sanskrit" FROM table_13313 WHERE "Greek" = 'λέων' |
### Instruction:
CREATE TABLE table_63171 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" real,
"Average Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Romaji Title has 11 Episodes, and a TV Station of fuji... | SELECT "Romaji Title" FROM table_63171 WHERE "Episodes" = '11' AND "TV Station" = 'fuji tv' AND "Average Ratings" = '14.9%' |
### Instruction:
CREATE TABLE table_20828 (
"Country" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot %" real
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT MAX("Ends Lost") FROM table_20828 WHERE "PF" = '87' |
### Instruction:
CREATE TABLE table_22469 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT MIN("GEO ID") FROM table_22469 WHERE "Water (sqmi)" = '0.457' |
### Instruction:
CREATE TABLE table_42425 (
"Year" real,
"Champions" text,
"Result" text,
"Runners-up" text,
"Playoffs MVP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result for the champions jeonju kcc egis with runners-up seoul sam... | SELECT "Result" FROM table_42425 WHERE "Year" > '2007' AND "Runners-up" = 'seoul samsung thunders' AND "Champions" = 'jeonju kcc egis' |
### Instruction:
CREATE TABLE table_5612 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"Year Joined" real,
"Previous Conference" text,
"Year Left" real,
"Conference Joined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT MIN("Year Left") FROM table_5612 WHERE "School" = 'calumet' AND "Year Joined" > '1993' |
### Instruction:
CREATE TABLE table_7615 (
"Kansas State vs." text,
"Games played" text,
"Overall Record" text,
"Last 5 Meetings" text,
"Last 10 Meetings" text,
"Current Streak" text,
"Last Meeting" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Last 10 Meetings" FROM table_7615 WHERE "Last Meeting" = '11/26/1988' |
### Instruction:
CREATE TABLE table_7691 (
"Regulator" text,
"Rights of audience" text,
"Conduct of litigation" text,
"Reserved instruments" text,
"Probate activities" text,
"Notarial activities" text,
"Administration of oaths" text
)
-- Using valid SQLite, answer the following questions f... | SELECT "Reserved instruments" FROM table_7691 WHERE "Conduct of litigation" = 'yes' AND "Probate activities" = 'yes' |
### Instruction:
CREATE TABLE table_28718 (
"Monarch" text,
"Heir" text,
"Status" text,
"Relationship to Monarch" text,
"Became heir; reason" text,
"Ceased to be heir; reason" text,
"Next in succession" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Status" FROM table_28718 WHERE "Ceased to be heir; reason" = '18 February 1853 succeeded' |
### Instruction:
CREATE TABLE course (
title VARCHAR,
course_id VARCHAR
)
CREATE TABLE instructor (
name VARCHAR,
id VARCHAR
)
CREATE TABLE teaches (
course_id VARCHAR,
id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- list in alphabetic or... | SELECT T1.title, T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.id = T3.id WHERE YEAR = 2008 ORDER BY T1.title |
### Instruction:
CREATE TABLE table_37309 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text,
"10:30" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is on at 8:30 on the same channel as Les ... | SELECT "8:30" FROM table_37309 WHERE "9:00" = 'les machos' |
### Instruction:
CREATE TABLE table_28193 (
"Metropolitan ring" text,
"Localities" real,
"Total" real,
"Jews and others 1" real,
"Thereof: Jews" real,
"Arabs" real,
"Population density (per km\u00b2)" text,
"Annual Population growth rate" text
)
-- Using valid SQLite, answer the follow... | SELECT "Arabs" FROM table_28193 WHERE "Annual Population growth rate" = '1.7%' |
### Instruction:
CREATE TABLE table_41551 (
"Headphone Model" text,
"Headphone Class" text,
"Sensitivity (dB)" text,
"Impedance (Ohms)" real,
"Driver-matched dB" text,
"Construction" text,
"Earpads" text,
"Termination" text,
"Succeeded by" text
)
-- Using valid SQLite, answer the f... | SELECT "Headphone Model" FROM table_41551 WHERE "Succeeded by" = 'sr325' |
### Instruction:
CREATE TABLE table_18833 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite,... | SELECT "Tries against" FROM table_18833 WHERE "Lost" = '4' |
### Instruction:
CREATE TABLE table_204_522 (
id number,
"boat #" text,
"name" text,
"builder" text,
"laid down" text,
"launched" text,
"completed" text,
"fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was a boat launched imme... | SELECT "name" FROM table_204_522 WHERE "launched" < (SELECT "launched" FROM table_204_522 WHERE "name" = 'ha-206') ORDER BY "launched" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_9979 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is 2010 when 2011 is 2r and 2008 is 2r?
### Response:... | SELECT "2010" FROM table_9979 WHERE "2011" = '2r' AND "2008" = '2r' |
### Instruction:
CREATE TABLE table_72922 (
"School" text,
"Est. Denotes original date of establishment of the school, changes in name and/or location noted in corresponding ootnote" real,
"Location Denotes location of school by Seattle neighborhood, does not necessary correspond with attendance area" text,... | SELECT MIN("11-12 Enrollment") FROM table_72922 WHERE "School" = 'Washington' |
### Instruction:
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT title, SUM(stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title ORDER BY SUM(stars) |
### Instruction:
CREATE TABLE table_10111 (
"Place" real,
"TV network" text,
"% of US households reached" text,
"Number of households viewable" real,
"Type of Television Network" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which TV network is a s... | SELECT "TV network" FROM table_10111 WHERE "Type of Television Network" = 'spanish commercial' AND "Number of households viewable" > '53,674,000' AND "Place" > '1' |
### Instruction:
CREATE TABLE table_66573 (
"State and District of Columbia" text,
"Obese adults" text,
"Overweight (incl. obese) adults" text,
"Obese children and adolescents" text,
"Obesity rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "Obesity rank" FROM table_66573 WHERE "Overweight (incl. obese) adults" = '66.8%' AND "State and District of Columbia" = 'west virginia' |
### Instruction:
CREATE TABLE table_8160 (
"Municipality" text,
"Inhabitants" real,
"Mayor" text,
"Party" text,
"Election" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Inhabitants has a Party of south tyrolean people's party, a Municipality ... | SELECT AVG("Inhabitants") FROM table_8160 WHERE "Party" = 'south tyrolean people''s party' AND "Municipality" = 'bruneck' AND "Election" > '2010' |
### Instruction:
CREATE TABLE table_74817 (
"Week" real,
"Date" text,
"Kickoff (ET)" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game site" text,
"NFL Recap" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game site has a ... | SELECT "Game site" FROM table_74817 WHERE "Kickoff (ET)" = '1:00pm' AND "Record" = '4–1' |
### Instruction:
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID in... | SELECT Nationality, AVG(Age) FROM journalist GROUP BY Nationality ORDER BY Nationality DESC |
### Instruction:
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height re... | SELECT Name, Height FROM people ORDER BY Height DESC |
### Instruction:
CREATE TABLE table_492 (
"Celebrity" text,
"Background" text,
"Original Team" text,
"Age" real,
"Hometown" text,
"Charity" text,
"Result" text,
"Raised" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the backgrou... | SELECT "Background" FROM table_492 WHERE "Result" = '13 The Celebrity Apprentice (2008-03-27)' |
### Instruction:
CREATE TABLE table_48976 (
"Competition" text,
"Played" real,
"Millwall wins" real,
"Drawn" real,
"West Ham wins" real,
"Millwall goals" real,
"West Ham goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins did... | SELECT "West Ham wins" FROM table_48976 WHERE "Millwall wins" > '5' AND "Millwall goals" > '23' AND "Drawn" = '8' |
### Instruction:
CREATE TABLE table_19555 (
"Station (and code)" text,
"Managed by" text,
"Lines served" text,
"Station users 2007/8" real,
"Station users 2008/9" text,
"Year opened" text,
"Platforms" text,
"Borough" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "Borough" FROM table_19555 WHERE "Station users 2008/9" = '28702' |
### Instruction:
CREATE TABLE table_80281 (
"Year" real,
"Competition" text,
"Wins" real,
"Draws" real,
"Loses" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What sum of Losses has Year greater than 1972, and Competition of nswrfl, and Draws 0, and... | SELECT SUM("Loses") FROM table_80281 WHERE "Year" > '1972' AND "Competition" = 'nswrfl' AND "Draws" = '0' AND "Wins" = '16' |
### Instruction:
CREATE TABLE table_name_1 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total in 2005 if there's more than 10.2 in 2006, less than 29.5 in 2007, more than 4.9 in 2009 and less than 43.8 in 2010?
### Response:
| SELECT COUNT(2005) FROM table_name_1 WHERE 2010 < 43.8 AND 2007 < 29.5 AND 2009 > 4.9 AND 2006 > 10.2 |
### Instruction:
CREATE TABLE table_7297 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Set 3 when the Set 2 is 21 25,... | SELECT "Set 3" FROM table_7297 WHERE "Set 2" = '21–25' AND "Set 1" = '25–21' |
### Instruction:
CREATE TABLE table_76454 (
"Season" real,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Ranking" text,
"Households (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which TV season has a Season sma... | SELECT "TV season" FROM table_76454 WHERE "Season" < '8' AND "Households (in millions)" = '15.92 (17.1 rating)' |
### Instruction:
CREATE TABLE table_60333 (
"Position" real,
"Club" text,
"Games played" real,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT COUNT("Loses") FROM table_60333 WHERE "Position" = '4' AND "Goals conceded" < '23' |
### Instruction:
CREATE TABLE table_55726 (
"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.
-- If the Home team was north melb... | SELECT "Home team score" FROM table_55726 WHERE "Crowd" > '10,000' AND "Home team" = 'north melbourne' |
### Instruction:
CREATE TABLE table_42929 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions have points... | SELECT COUNT("Position") FROM table_42929 WHERE "Against" < '28' AND "Team" = 'americano-sp' AND "Played" > '8' |
### Instruction:
CREATE TABLE table_5490 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Tournament of at&t pebble beach national pro-am, and ... | SELECT "Date" FROM table_5490 WHERE "Tournament" = 'at&t pebble beach national pro-am' AND "Margin of victory" = '1 stroke' AND "To par" = '–11' |
### Instruction:
CREATE TABLE table_13087 (
"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 District has a Number of e... | SELECT "District" FROM table_13087 WHERE "Number of electorates (2009)" > '234,537' AND "Name" = 'baldev' |
### Instruction:
CREATE TABLE table_26221 (
"Season" real,
"Champion" text,
"Count" real,
"Runners-up" text,
"Third place" text,
"Top scorer" text,
"Top scorers club" text,
"Goals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year... | SELECT "Season" FROM table_26221 WHERE "Top scorers club" = 'Sporting Cristal' AND "Champion" = 'Universitario' |
### Instruction:
CREATE TABLE table_41498 (
"Tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What 2006 has 1r as the 2... | SELECT "2006" FROM table_41498 WHERE "2007" = '1r' |
### Instruction:
CREATE TABLE routes (
dst_apid VARCHAR,
alid VARCHAR
)
CREATE TABLE airlines (
alid VARCHAR,
name VARCHAR
)
CREATE TABLE airports (
apid VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return the number of r... | SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines' |
### Instruction:
CREATE TABLE table_6243 (
"Windows" text,
"Mac OS X" text,
"Linux" text,
"Other Unix" text,
"AmigaOS" text,
"Android" text,
"Windows Mobile" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Windows system has Windows Mob... | SELECT "Windows" FROM table_6243 WHERE "Windows Mobile" = 'unknown' AND "Mac OS X" = 'yes' AND "Other Unix" = 'yes' AND "AmigaOS" = 'partial' |
### Instruction:
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of text
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Ma... | SELECT Open_Date, COUNT(Open_Date) FROM church |
### Instruction:
CREATE TABLE table_21925 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Average Speed (mph)" FROM table_21925 WHERE "Race Time" = '1:45:00' |
### Instruction:
CREATE TABLE table_70484 (
"Season" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Rounds" text,
"Teams" text,
"Drivers" text,
"Champion (points)" text,
"Second (points)" text,
"Third (points)" text
)
-- Using valid SQLite, answer the following questions f... | SELECT "Engine" FROM table_70484 WHERE "Rounds" = '11' AND "Teams" = '25' |
### Instruction:
CREATE TABLE table_73220 (
"County" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real,
"Others%" text,
"Others#" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage was the others vote when McCain... | SELECT "Others%" FROM table_73220 WHERE "McCain%" = '52.9%' AND "McCain#" < '45205.0' |
### Instruction:
CREATE TABLE table_21566 (
"1391 Carelia" text,
"1398 Donnera" text,
"1405 Sibelius" text,
"1406 Komppa" text,
"1407 Lindel\u00f6f" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the 1406 komppa of asteroid which 1391 careli... | SELECT "1406 Komppa" FROM table_21566 WHERE "1391 Carelia" = '1460 Haltia' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.