instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID in... | SELECT Nationality, COUNT(Nationality) FROM journalist GROUP BY Nationality ORDER BY COUNT(Nationality) DESC |
### Instruction:
CREATE TABLE table_36517 (
"Result" text,
"Opponent" text,
"Method" text,
"Event" text,
"Date" text,
"Round" text,
"Time" text,
"Location" text,
"Rules" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent h... | SELECT "Opponent" FROM table_36517 WHERE "Round" = '3' AND "Time" = 'n/a' AND "Rules" = 'n/a' |
### Instruction:
CREATE TABLE table_58174 (
"Heir" text,
"Status" text,
"Relationship to Monarch" text,
"Became heir" text,
"Reason" text,
"Ceased to be heir" text,
"Monarch" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Status ... | SELECT "Status" FROM table_58174 WHERE "Monarch" = 'henry i' AND "Reason" = 'succession unclear 1100-1103' |
### Instruction:
CREATE TABLE table_15946 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions fo... | SELECT COUNT("Top 10") FROM table_15946 WHERE "Avg. Start" = '29.4' |
### Instruction:
CREATE TABLE table_3955 (
"Code" text,
"District" text,
"Headquarters" text,
"Population (2001 Census)" real,
"Population (2011 Census)" real,
"Area (km\u00b2)" real,
"Density in 2011 (/km\u00b2)" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "Population (2001 Census)" FROM table_3955 WHERE "Headquarters" = 'Bhubaneswar' |
### Instruction:
CREATE TABLE table_48438 (
"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 rebounds" FROM table_48438 WHERE "Game" > '33' AND "Score" = 'w 132-101' |
### Instruction:
CREATE TABLE table_5218 (
"Variant id" text,
"5\u2019UTR splice" text,
"Coding" text,
"3\u2019UTR sequence" text,
"GenBank id" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Coding has a 3 UTR sequence of 6a 4 with a GenBank id... | SELECT "Coding" FROM table_5218 WHERE "3\u2019UTR sequence" = '6a 4' AND "GenBank id" = 'hq021439' |
### Instruction:
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT T2.title, SUM(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title ORDER BY T2.title DESC |
### Instruction:
CREATE TABLE table_36673 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank has a Bronze larger than 1, and a Silver larger than 0, and a Na... | SELECT COUNT("Rank") FROM table_36673 WHERE "Bronze" > '1' AND "Silver" > '0' AND "Nation" = 'norway (host nation)' AND "Total" > '16' |
### Instruction:
CREATE TABLE table_64637 (
"Name" text,
"LWAT" real,
"100+" real,
"140+" real,
"180s" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the LWAT having more than 43 for 180s, 194 for 100+, and more than 128 for 140+?
### Respo... | SELECT AVG("LWAT") FROM table_64637 WHERE "180s" > '43' AND "100+" = '194' AND "140+" > '128' |
### Instruction:
CREATE TABLE table_79555 (
"Date" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Lineup that has an Assist/pass of... | SELECT "Lineup" FROM table_79555 WHERE "Assist/pass" = 'carli lloyd' AND "Competition" = '2010 concacaf world cup qualifying – group stage' |
### Instruction:
CREATE TABLE table_203_262 (
id number,
"year" number,
"team" text,
"co-drivers" text,
"car" text,
"class" text,
"laps" number,
"pos." text,
"class\npos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was john n... | SELECT "co-drivers" FROM table_203_262 WHERE "year" = 2004 AND "team" = 'lister racing' AND "co-drivers" <> 'john nielsen' |
### Instruction:
CREATE TABLE table_204_496 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who finished... | SELECT "driver" FROM table_204_496 WHERE "pos" = (SELECT "pos" FROM table_204_496 WHERE "time/retired" = '+1:28.745') + 1 |
### Instruction:
CREATE TABLE table_45086 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT MIN("Goals For") FROM table_45086 WHERE "Goal Difference" = '+10' AND "Goals Against" > '61' |
### Instruction:
CREATE TABLE table_21902 (
"Year(s)" real,
"Final television commentator" text,
"Radio commentator" text,
"Spokesperson" text,
"Semi-final television commentator" text,
"Semi-final second television commentator" text
)
-- Using valid SQLite, answer the following questions for ... | SELECT "Semi-final television commentator" FROM table_21902 WHERE "Spokesperson" = 'Colin Berry' AND "Final television commentator" = 'Pete Murray' |
### Instruction:
CREATE TABLE journal (
journal_id number,
date text,
theme text,
sales number
)
CREATE TABLE editor (
editor_id number,
name text,
age number
)
CREATE TABLE journal_committee (
editor_id number,
journal_id number,
work_type text
)
-- Using valid SQLite, answe... | SELECT T1.editor_id, T1.name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.editor_id = T2.editor_id GROUP BY T1.editor_id |
### Instruction:
CREATE TABLE table_204_912 (
id number,
"rank" number,
"athlete" text,
"country" text,
"time" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country had the same number of athletes in the top 10 as the unit... | SELECT "country" FROM table_204_912 WHERE id <= 10 GROUP BY "country" HAVING COUNT("athlete") = (SELECT COUNT("athlete") FROM table_204_912 WHERE id <= 10 AND "country" = 'united states') AND "country" <> 'united states' |
### 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, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter ORDER BY MAX(Revenue) |
### Instruction:
CREATE TABLE table_1928 (
"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 provid... | SELECT "Water (sqmi)" FROM table_1928 WHERE "Latitude" = '48.064751' |
### 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 Creation, COUNT(Creation) FROM department GROUP BY Creation ORDER BY Creation |
### Instruction:
CREATE TABLE table_70379 (
"Rank" real,
"Subdivision name" text,
"Country" text,
"Area (km\u00b2)" real,
"Population" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the name of a subdivision in Denmark ranked less than 24 wit... | SELECT "Subdivision name" FROM table_70379 WHERE "Rank" < '24' AND "Area (km\u00b2)" > '1,420,968' AND "Country" = 'denmark' |
### Instruction:
CREATE TABLE table_62328 (
"Month" text,
"15th- 20th century" text,
"U.S. (1912)" text,
"U.S. (2013)" text,
"Britain (2013)" text,
"Hindu" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the U.S birthstone in 1912 when i... | SELECT "U.S. (1912)" FROM table_62328 WHERE "U.S. (2013)" = 'amethyst' |
### Instruction:
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT T1.Price, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code |
### Instruction:
CREATE TABLE volume (
volume_id number,
volume_issue text,
issue_date text,
weeks_on_top number,
song text,
artist_id number
)
CREATE TABLE artist (
artist_id number,
artist text,
age number,
famous_title text,
famous_release_date text
)
CREATE TABLE music_... | SELECT AVG(age) FROM artist |
### Instruction:
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_hosts int
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
... | SELECT Location, COUNT(Location) FROM party GROUP BY Location ORDER BY COUNT(Location) DESC |
### Instruction:
CREATE TABLE table_71451 (
"Tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is ... | SELECT "2010" FROM table_71451 WHERE "Tournament" = 'australian open' |
### Instruction:
CREATE TABLE table_204_914 (
id number,
"year" number,
"team" text,
"games" number,
"attempts" number,
"yards" number,
"ypc" number,
"long" number,
"tds" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who did this ... | SELECT "team" FROM table_204_914 WHERE "year" > (SELECT MAX("year") FROM table_204_914 WHERE "team" = 'los angeles rams') ORDER BY "year" LIMIT 1 |
### Instruction:
CREATE TABLE table_37648 (
"Commune" text,
"Area (km 2 )" real,
"2002 population" real,
"Density (km 2 )" real,
"Government website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the density for the area that is larger than... | SELECT COUNT("Density (km 2 )") FROM table_37648 WHERE "Area (km 2 )" > '4,015.6' AND "2002 population" < '6,178' |
### Instruction:
CREATE TABLE table_train_111 (
"id" int,
"mini_mental_state_examination_mmse" int,
"liver_disease" bool,
"geriatric_depression_scale_gds" int,
"rosen_modified_hachinski_ischemic_score" int,
"plasma_creatinine" float,
"NOUSE" float
)
-- Using valid SQLite, answer the follow... | SELECT * FROM table_train_111 WHERE geriatric_depression_scale_gds < 6 |
### Instruction:
CREATE TABLE table_38778 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Average larger than 2,279, and a Team of queen of the south, and a ... | SELECT SUM("Lowest") FROM table_38778 WHERE "Average" > '2,279' AND "Team" = 'queen of the south' AND "Capacity" > '6,412' |
### Instruction:
CREATE TABLE table_59540 (
"Rank" real,
"Local government area" text,
"Population 2006 census" real,
"Population 2007 estimate" real,
"Growth rate" text,
"Stat. division/district" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT AVG("Population 2006 census") FROM table_59540 WHERE "Local government area" = 'alexandrina council' AND "Rank" < '19' |
### Instruction:
CREATE TABLE table_971 (
"Quarter" text,
"Android" text,
"iOS" text,
"Symbian" text,
"BlackBerry OS" text,
"Linux" text,
"Windows Phone" text,
"Other" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Duri... | SELECT COUNT("BlackBerry OS") FROM table_971 WHERE "Other" = '0.1' AND "Quarter" = '2012 Q2' |
### Instruction:
CREATE TABLE table_203_467 (
id number,
"year" number,
"numer of jamaicans\ngranted british\ncitizenship" number,
"naturalisation\nby residence" number,
"naturalisation\nby marriage" number,
"registration\nof a minor child" number,
"registration\nby other means" number
)
-... | SELECT COUNT("year") FROM table_203_467 WHERE "naturalisation\nby residence" + "naturalisation\nby marriage" < 1500 |
### Instruction:
CREATE TABLE table_30641 (
"Team" text,
"Average" text,
"Points" real,
"Played" real,
"2003-04" text,
"2004-05" text,
"2005-06" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2004-2005 value associated with a 200... | SELECT "2004-05" FROM table_30641 WHERE "2005-06" = '56/38' |
### Instruction:
CREATE TABLE table_46014 (
"Year" real,
"Best teenage/Young Adult" text,
"Reader's Vote" text,
"Best Non-Fiction" text,
"Lifetime Achievement" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who won the lifetime achievement when the ... | SELECT "Lifetime Achievement" FROM table_46014 WHERE "Best Non-Fiction" = 'na' AND "Reader's Vote" = 'na' AND "Year" > '2005' |
### Instruction:
CREATE TABLE table_23187 (
"Rank" real,
"Mountain Peak" text,
"Mountain Range" text,
"Elevation" text,
"Prominence" text,
"Isolation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different isolation numbers does the p... | SELECT COUNT("Isolation") FROM table_23187 WHERE "Elevation" = '2782.622 = 9,127feet 2782m' |
### Instruction:
CREATE TABLE film (
film_id number,
title text,
studio text,
director text,
gross_in_dollar number
)
CREATE TABLE market (
market_id number,
country text,
number_cities number
)
CREATE TABLE film_market_estimation (
estimation_id number,
low_estimate number,
... | SELECT studio FROM film GROUP BY studio ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_31403 (
"Rank" real,
"Country/Territory" text,
"Miss International" real,
"1st Runner-up" real,
"2nd Runner-up" real,
"3rd Runner-up" real,
"4th Runner-up" real,
"Semifinalists" real,
"Total" real
)
-- Using valid SQLite, answer the following que... | SELECT MAX("3rd Runner-up") FROM table_31403 WHERE "Country/Territory" = 'Uruguay' |
### Instruction:
CREATE TABLE table_55349 (
"Candidate" text,
"Money Raised, 2Q" text,
"Loans Received, 2Q" text,
"Money Spent, 2Q" text,
"Total Receipts" text,
"Cash On Hand" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much money was rai... | SELECT "Money Raised, 2Q" FROM table_55349 WHERE "Total Receipts" = '$63,075,927' |
### Instruction:
CREATE TABLE table_31770 (
"Nationality" text,
"No [a ]" text,
"Pos [a ]" text,
"From" text,
"School/club" text,
"Pts [b ]" real,
"Reb [b ]" real,
"Ast [b ]" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the poi... | SELECT "Pts [b ]" FROM table_31770 WHERE "Reb [b ]" > '636' AND "No [a ]" = '50' |
### Instruction:
CREATE TABLE debate (
Debate_ID int,
Date text,
Venue text,
Num_of_Audience int
)
CREATE TABLE people (
People_ID int,
District text,
Name text,
Party text,
Age int
)
CREATE TABLE debate_people (
Debate_ID int,
Affirmative int,
Negative int,
If_Affi... | SELECT Venue, COUNT(Venue) FROM debate GROUP BY Venue ORDER BY Venue |
### Instruction:
CREATE TABLE table_29443 (
"Episode" text,
"Date" text,
"Official ITV rating (millions)" text,
"Weekly rank" real,
"Share (%)" text,
"Official ITV HD rating (millions)" text,
"Total ITV viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for th... | SELECT "Total ITV viewers (millions)" FROM table_29443 WHERE "Official ITV rating (millions)" = '10.24' |
### Instruction:
CREATE TABLE table_203_864 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who finished next after bobby jones and al espi... | SELECT "player" FROM table_203_864 WHERE "place" = (SELECT "place" FROM table_203_864 WHERE "place" > (SELECT "place" FROM table_203_864 WHERE "player" = 'al espinosa') ORDER BY "place" LIMIT 1) |
### Instruction:
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name ... | SELECT COUNT(*) FROM location, restaurant WHERE location.city_name = 'palo alto' AND restaurant.food_type = 'french' AND restaurant.id = location.restaurant_id |
### Instruction:
CREATE TABLE table_203_456 (
id number,
"player" text,
"-1967" text,
"3.3" text,
"3.31" text,
"4.04" text,
"10.14" text,
"1968" text,
"total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had more points takaji ... | SELECT "player" FROM table_203_456 WHERE "player" IN ('takaji mori', 'junji kawano') ORDER BY "total" DESC LIMIT 1 |
### Instruction:
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT stars, MAX(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director <> "null" GROUP BY stars |
### Instruction:
CREATE TABLE table_16992 (
"Marginal Ordinary Income Tax Rate" text,
"Single" text,
"Married Filing Jointly or Qualified Widow(er)" text,
"Married Filing Separately" text,
"Head of Household" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT COUNT("Marginal Ordinary Income Tax Rate") FROM table_16992 WHERE "Single" = '$8,351– $33,950' |
### Instruction:
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
... | SELECT Year, COUNT(Year) FROM exhibition WHERE Ticket_Price < 15 GROUP BY Year |
### Instruction:
CREATE TABLE table_26752 (
"Year" real,
"Tournaments played" real,
"Cuts made" real,
"Wins" real,
"2nd" real,
"3rd" real,
"Top 10s" real,
"Best finish" text,
"Earnings ($)" real,
"Money list rank" real,
"Scoring average" text,
"Scoring rank" real
)
-- U... | SELECT MIN("3rd") FROM table_26752 |
### Instruction:
CREATE TABLE table_24646 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions fo... | SELECT "Position" FROM table_24646 WHERE "Avg. Finish" = '21.5' |
### Instruction:
CREATE TABLE table_62952 (
"Team" text,
"Tries for" real,
"Tries against" real,
"Try diff" text,
"Points for" real,
"Points against" real,
"Points diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Tries for has Poin... | SELECT MAX("Tries for") FROM table_62952 WHERE "Points against" < '124' AND "Points for" < '241' AND "Tries against" < '11' |
### Instruction:
CREATE TABLE table_77709 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & jerk" real,
"Total (kg)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the total number of snatches for clean and jerk more than 132.5 when ... | SELECT COUNT("Snatch") FROM table_77709 WHERE "Clean & jerk" > '132.5' AND "Total (kg)" = '315' AND "Bodyweight" = '68.63' |
### Instruction:
CREATE TABLE technician (
Name VARCHAR,
technician_ID VARCHAR
)
CREATE TABLE machine (
machine_id VARCHAR,
value_points INTEGER
)
CREATE TABLE repair_assignment (
machine_id VARCHAR,
technician_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70 |
### Instruction:
CREATE TABLE table_204_257 (
id number,
"ethnicity" text,
"1926 census" text,
"1939 census" text,
"1959 census" text,
"1970 census" text,
"1979 census" text,
"1989 census" text,
"2007 estimate" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT "1970 census" FROM table_204_257 WHERE "ethnicity" = 'russians' |
### Instruction:
CREATE TABLE table_37172 (
"Club" text,
"Played" 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, answer the foll... | SELECT "Drawn" FROM table_37172 WHERE "Played" = '22' AND "Points" = '96' |
### Instruction:
CREATE TABLE table_25575 (
"Rank" real,
"Incorporated place" text,
"Metropolitan area" text,
"State" text,
"Population (2010 census)" real,
"Land area (mi 2 )" text,
"Population density (people per mi 2 )" text
)
-- Using valid SQLite, answer the following questions for th... | SELECT "Population density (people per mi 2 )" FROM table_25575 WHERE "Land area (mi 2 )" = '135.09' |
### Instruction:
CREATE TABLE table_4302 (
"Year" real,
"GDP at constant prices (THB trillions)" text,
"GDP at constant prices growth rate (percent change)" text,
"GDP at current prices (USD billions)" text,
"Export volume of goods and services (percent change)" text,
"Current account balance (p... | SELECT "Current account balance (percent of GDP)" FROM table_4302 WHERE "Export volume of goods and services (percent change)" = '-4.2' |
### Instruction:
CREATE TABLE table_name_94 (
university_of_dublin VARCHAR,
industrial_and_commercial_panel VARCHAR,
agricultural_panel VARCHAR,
nominated_by_the_taoiseach VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total for Universit... | SELECT COUNT(university_of_dublin) FROM table_name_94 WHERE agricultural_panel = 0 AND nominated_by_the_taoiseach > 0 AND industrial_and_commercial_panel < 0 |
### Instruction:
CREATE TABLE table_2156 (
"Country" text,
"1948/49 ($ millions)" real,
"1949/50 ($ millions)" real,
"1950/51 ($ millions)" real,
"Cumulative ($ millions)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the 1948/49 expenditure... | SELECT "1948/49 ($ millions)" FROM table_2156 WHERE "1949/50 ($ millions)" = '921' |
### Instruction:
CREATE TABLE table_7242 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" text,
"Round of 32" text,
"Sweet Sixteen" text,
"Elite Eight" text,
"Final Four" text,
"Championship Game" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT "Elite Eight" FROM table_7242 WHERE "Sweet Sixteen" = '1' AND "Win %" = '.875' |
### Instruction:
CREATE TABLE table_58872 (
"DSL Type" text,
"Provider" text,
"Resale" text,
"Down (up to kbit/s)" real,
"Up (up to kbit/s)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average down (up to kbit/s) when the provider is ... | SELECT AVG("Down (up to kbit/s)") FROM table_58872 WHERE "Provider" = 'willy.tel' AND "Up (up to kbit/s)" > '1984' |
### Instruction:
CREATE TABLE table_22680 (
"Name" text,
"Career" text,
"Matches" real,
"Overs" text,
"Maidens" real,
"Runs" real,
"Wickets" real,
"Average" text,
"Best" text,
"5w" real,
"10w" real
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Best" FROM table_22680 WHERE "Career" = '1971-1984' |
### Instruction:
CREATE TABLE table_25647 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions fo... | SELECT "Avg. Start" FROM table_25647 WHERE "Avg. Finish" = '24.2' |
### Instruction:
CREATE TABLE table_75186 (
"Company" text,
"Type" text,
"Principal activities" text,
"Incorporated in" text,
"Group's Equity Shareholding (10 March 2010)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type for the Catha... | SELECT "Type" FROM table_75186 WHERE "Incorporated in" = 'hong kong' AND "Principal activities" = 'travel agency' AND "Company" = 'cathay pacific holidays' |
### Instruction:
CREATE TABLE table_2492 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT "Miles (km)" FROM table_2492 WHERE "Average Speed (mph)" = '103.145' |
### Instruction:
CREATE TABLE table_59188 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place has money ( ) greater than 17,333 with +8 as the t... | SELECT "Place" FROM table_59188 WHERE "Money ( \u00a3 )" > '17,333' AND "To par" = '+8' AND "Player" = 'seve ballesteros' |
### Instruction:
CREATE TABLE shop (
Shop_ID int,
Shop_Name text,
Location text,
Open_Date text,
Open_Year int
)
CREATE TABLE device (
Device_ID int,
Device text,
Carrier text,
Package_Version text,
Applications text,
Software_Platform text
)
CREATE TABLE stock (
Shop_I... | SELECT Location, COUNT(Location) FROM shop GROUP BY Location ORDER BY Location |
### Instruction:
CREATE TABLE table_16037 (
"Character" text,
"1954 Broadway" text,
"1955 broadcast" text,
"1960 broadcast" text,
"1979 Broadway" text,
"1990 Broadway" text,
"1991 Broadway" text,
"1998 Broadway" text,
"1999 Broadway" text
)
-- Using valid SQLite, answer the followi... | SELECT COUNT("1999 Broadway") FROM table_16037 WHERE "Character" = 'Mrs. Darling' |
### Instruction:
CREATE TABLE table_11675 (
"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.
-- Tell me the average top 10 for cuts made less t... | SELECT AVG("Top-10") FROM table_11675 WHERE "Wins" < '1' AND "Top-25" = '5' AND "Cuts made" < '10' |
### Instruction:
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
birth_date text,
birth_place text
)
CREATE TABLE body_builder (
body_builder_id number,
people_id number,
snatch number,
clean_jerk number,
total number
)
-- Using valid SQLit... | SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.birth_date LIKE "%January%" |
### Instruction:
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
... | SELECT Location, COUNT(Location) FROM station GROUP BY Location ORDER BY Location DESC |
### Instruction:
CREATE TABLE table_20400 (
"Player" text,
"Matches" real,
"Overs" text,
"Maidens" real,
"Runs" real,
"Wickets" real,
"Average" text,
"Economy" text,
"5w" real,
"10w" real,
"Best Bowling" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT MAX("Maidens") FROM table_20400 WHERE "Best Bowling" = '1/13' |
### Instruction:
CREATE TABLE table_16211 (
"Player" text,
"Matches" real,
"Inns" real,
"N/O" real,
"Runs" real,
"High Score" real,
"Average" text,
"100" real,
"50" real,
"Catches" real,
"Stump" real
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "Player" FROM table_16211 WHERE "50" = '2' AND "N/O" = '0' |
### Instruction:
CREATE TABLE table_19016 (
"Rank" real,
"Airport" text,
"Total Passengers 2008" real,
"Total Passengers 2009" real,
"Change 2008/09" text,
"Aircraft movements 2009" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the maxi... | SELECT MAX("Aircraft movements 2009") FROM table_19016 WHERE "Change 2008/09" = '18.2%' |
### Instruction:
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
... | SELECT Sex, SUM(Weight) FROM people GROUP BY Sex ORDER BY SUM(Weight) |
### Instruction:
CREATE TABLE table_29895 (
"Season" real,
"LMP1 Winning Team" text,
"LMP2 Winning Driver" text,
"LMPC Winning Team" text,
"GT Winning Team" text,
"GTC Winning Team" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "LMP2 Winning Driver" FROM table_29895 WHERE "LMP1 Winning Team" = 'No. 20 Oryx Dyson Racing' |
### Instruction:
CREATE TABLE table_name_30 (
miss_maja_pilipinas VARCHAR,
binibining_pilipinas_tourism VARCHAR,
binibining_pilipinas_universe VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of n... | SELECT miss_maja_pilipinas FROM table_name_30 WHERE binibining_pilipinas_tourism = "not awarded" AND binibining_pilipinas_universe = "anjanette abayari" |
### Instruction:
CREATE TABLE table_58484 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location is the tournament with... | SELECT "Location" FROM table_58484 WHERE "1st Prize( $ )" > '202,500' AND "Score" = '274 (-14)' |
### Instruction:
CREATE TABLE table_203_137 (
id number,
"title" text,
"album details" text,
"peak chart positions\nus" number,
"peak chart positions\nus r&b" number,
"certifications" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what albume pe... | SELECT "title" FROM table_203_137 WHERE "title" IN ('can-i-bus', '2000 b.c. (before can-i-bus)') ORDER BY "peak chart positions\nus" LIMIT 1 |
### Instruction:
CREATE TABLE table_2506 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions for... | SELECT MAX("Top 5") FROM table_2506 WHERE "Avg. Start" = '28.5' |
### Instruction:
CREATE TABLE table_51148 (
"Tribunal" text,
"Number of autos da f\u00e9 with known sentences" text,
"Executions in persona" text,
"Executions in effigie" text,
"Penanced" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Executions in persona" FROM table_51148 WHERE "Number of autos da f\u00e9 with known sentences" = '2 (1543–1544)' |
### Instruction:
CREATE TABLE table_36776 (
"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 COUNT("1st (m)") FROM table_36776 WHERE "Name" = 'martin schmitt' AND "Points" < '235.7' |
### Instruction:
CREATE TABLE table_14167 (
"Debut year" real,
"Player" text,
"Games" real,
"Goals" real,
"Years at club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WhichPlayer has a Debut year larger than 1930, and Goals smaller than 95, and Ye... | SELECT "Player" FROM table_14167 WHERE "Debut year" > '1930' AND "Goals" < '95' AND "Years at club" = '1938' AND "Games" = '6' |
### Instruction:
CREATE TABLE table_46011 (
"Nat." text,
"Name" text,
"Since" text,
"App(L/C/E)" text,
"Goals(L/C/E)" text,
"Ends" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the gaols(L/C/E) with an App(L/C/... | SELECT "Goals(L/C/E)" FROM table_46011 WHERE "App(L/C/E)" = '55 (47/5/3)' |
### Instruction:
CREATE TABLE table_40307 (
"Date" text,
"Result" text,
"Opponent" text,
"Location" text,
"Method" text,
"Round" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has a Location of auckland, new zealan... | SELECT AVG("Round") FROM table_40307 WHERE "Location" = 'auckland, new zealand' AND "Method" = 'tko' AND "Date" = '1994-11-24' |
### Instruction:
CREATE TABLE table_56045 (
"Rank" text,
"Country (or dependent territory)" text,
"July 1, 2013 projection" real,
"% of pop." real,
"Average relative annual growth (%)" real,
"Average absolute annual growth" real
)
-- Using valid SQLite, answer the following questions for the t... | SELECT AVG("% of pop.") FROM table_56045 WHERE "Country (or dependent territory)" = 'tunisia' AND "Average relative annual growth (%)" < '1.03' |
### Instruction:
CREATE TABLE table_22197 (
"Year" real,
"Date" text,
"Type" text,
"Species" text,
"Author Species" text,
"Value" text,
"Afinsa" real,
"Scott" text,
"Mitchell" real,
"Yvert" text,
"Sta. & Gib." real,
"Order" text,
"Family" text
)
-- Using valid SQLit... | SELECT COUNT("Order") FROM table_22197 WHERE "Species" = 'Pavo cristatus' |
### Instruction:
CREATE TABLE table_13746866_2 (
number_of_deputies VARCHAR,
number_of_votes_received VARCHAR,
election_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the number of deputies with number of votes received being smaller than 154... | SELECT number_of_deputies FROM table_13746866_2 WHERE number_of_votes_received < 1549176.2765483726 AND election_date = 1969 |
### Instruction:
CREATE TABLE table_42604 (
"Week" real,
"Date" text,
"Result" text,
"Record" text,
"Opponent" text,
"Points For" real,
"Points Against" real,
"First Downs" real,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT MIN("Attendance") FROM table_42604 WHERE "Opponent" = 'tampa bay buccaneers' AND "Points Against" < '7' |
### Instruction:
CREATE TABLE table_38616 (
"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.
-- What is the lowest number of p... | SELECT MIN("Played") FROM table_38616 WHERE "Drawn" < '12' AND "Against" = '41' AND "Points" < '69' |
### Instruction:
CREATE TABLE table_22193 (
"Year" real,
"Date" text,
"Type" text,
"Species" text,
"Author Species" text,
"Value" text,
"Afinsa" real,
"Scott" text,
"Mitchell" real,
"Yvert" text,
"Sta. & Gib." real,
"Order" text,
"Family" text
)
-- Using valid SQLit... | SELECT "Value" FROM table_22193 WHERE "Mitchell" = '676' |
### Instruction:
CREATE TABLE table_20809 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was ... | SELECT "Production code" FROM table_20809 WHERE "Written by" = 'Joe Connelly and Bob Mosher' AND "Title" = 'Beaver Gets Adopted' |
### Instruction:
CREATE TABLE table_20431 (
"Episode Number" real,
"Air Date" text,
"Guest Host" text,
"Musical Guest (Song performed)" text,
"Who knows the most about the guest host? panelists" text,
"Coat Of Cash Wearing Celebrity" text
)
-- Using valid SQLite, answer the following questions... | SELECT "Musical Guest (Song performed)" FROM table_20431 WHERE "Who knows the most about the guest host? panelists" = 'Jermaine Jackson and Nora Sands' |
### Instruction:
CREATE TABLE table_46998 (
"Club" text,
"Played" 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, answer the foll... | SELECT "Points" FROM table_46998 WHERE "Drawn" = '1' AND "Lost" = '5' |
### Instruction:
CREATE TABLE table_train_253 (
"id" int,
"pregnancy_or_lactation" bool,
"pre_eclampsia" bool,
"acute_ischemia" bool,
"pre_gestational_hypertension" bool,
"diabetic" string,
"smoking" bool,
"coronary_artery_disease_cad" bool,
"NOUSE" float
)
-- Using valid SQLite, a... | SELECT * FROM table_train_253 WHERE pregnancy_or_lactation = 1 AND smoking = 1 |
### 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 Price, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 GROUP BY Name |
### Instruction:
CREATE TABLE table_77683 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"L2 cache" text,
"Mult." text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
)
-- Using valid SQLite, answer the fol... | SELECT "L2 cache" FROM table_77683 WHERE "Release date" = 'august 26, 2007' |
### Instruction:
CREATE TABLE table_19591 (
"INEGI code" real,
"Municipality" text,
"Municipal Seat" text,
"Area (km 2 )" text,
"Population (2005)" real,
"Population density (/km 2 )" text,
"Human Development Index (2000)" text
)
-- Using valid SQLite, answer the following questions for th... | SELECT "Human Development Index (2000)" FROM table_19591 WHERE "INEGI code" = '10' |
### Instruction:
CREATE TABLE table_17821 (
"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 "Points for" FROM table_17821 WHERE "Try bonus" = '6' |
### Instruction:
CREATE TABLE table_370 (
"Date of Issue" text,
"Theme" text,
"Denomination" text,
"Design" text,
"Illustration" text,
"Printing Process" text,
"Paper Type" text,
"First Day Cover Cancellation" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "First Day Cover Cancellation" FROM table_370 WHERE "Date of Issue" = '3 April 2008' AND "Theme" = 'IIHF World Championships, Quebec City' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.