db_id stringclasses 66 values | question stringlengths 24 325 | evidence stringlengths 1 673 ⌀ | gold_query stringlengths 23 804 | db_schema stringclasses 66 values |
|---|---|---|---|---|
sales | List the first names of customers who have purchased products from sale person id 1. | null | SELECT T1.FirstName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.SalesPersonID = 1 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER not null, --
foreign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,
Quantity INTEGER not null, --
ProductID INTEGER not null, --
foreign key (ProductID) references Products (ProductID) on update cascade on delete cascade,
);
CREATE TABLE Customers
(
MiddleInitial TEXT null, --
FirstName TEXT not null, --
LastName TEXT not null, --
CustomerID INTEGER not null primary key,
);
CREATE TABLE Products
(
Price REAL null, --
ProductID INTEGER not null primary key,
Name TEXT not null, --
);
CREATE TABLE Employees
(
EmployeeID INTEGER not null primary key,
LastName TEXT not null, --
FirstName TEXT not null, --
MiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0
); |
olympics | What is the average height of the male Olympic competitors from Finland? | DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M'; | SELECT AVG(T3.height) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Finland' AND T3.gender = 'M' | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | Who is the hero character of the Disney movie directed by Will Finn? | Will Finn refers to director = 'Will Finn'; | SELECT T1.hero FROM characters AS T1 INNER JOIN director AS T2 ON T2.name = T1.movie_title WHERE T2.director = 'Will Finn' | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
public_review_platform | List the categories of inactive businesses in AZ. | inactive business refers to active = 'FALSE'; 'AZ' is the state; category refers to category_name | SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.active LIKE 'FALSE' AND T1.state LIKE 'AZ' | CREATE TABLE Attributes
(
attribute_name TEXT, --
attribute_id INTEGER constraint Attributes_pk primary key,
);
CREATE TABLE Elite
(
year_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0
constraint Elite_pk primary key (user_id, year_id),
user_id INTEGER constraint Elite_Users_user_id_fk references Users, --
);
CREATE TABLE Business_Hours
(
closing_time TEXT, --
business_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, --
day_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0
opening_time TEXT, --
constraint Business_Hours_pk primary key (business_id, day_id),
);
CREATE TABLE Categories
(
category_id INTEGER constraint Categories_pk primary key,
category_name TEXT, --
);
CREATE TABLE Business_Categories
(
business_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, --
category_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, --
constraint Business_Categories_pk primary key (business_id, category_id),
);
CREATE TABLE Tips
(
likes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0
user_id INTEGER constraint Tips_Users_user_id_fk references Users, --
tip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0
business_id INTEGER constraint Tips_Business_business_id_fk references Business, --
constraint Tips_pk primary key (business_id, user_id),
);
CREATE TABLE Reviews
(
business_id INTEGER constraint Reviews_Business_business_id_fk references Business, --
review_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0
constraint Reviews_pk primary key (business_id, user_id),
review_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
user_id INTEGER constraint Reviews_Users_user_id_fk references Users, --
review_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
);
CREATE TABLE Checkins
(
label_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
day_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0
label_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
business_id INTEGER constraint Checkins_Business_business_id_fk references Business, --
constraint Checkins_pk primary key (business_id, day_id),
label_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
);
CREATE TABLE Days
(
day_id INTEGER constraint Days_pk primary key,
day_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
);
CREATE TABLE Years
(
actual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0
year_id INTEGER constraint Years_pk primary key,
);
CREATE TABLE Business
(
business_id INTEGER constraint Business_pk primary key,
state TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0
city TEXT, --
active TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0
stars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0
review_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0
);
CREATE TABLE Business_Attributes
(
business_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, --
attribute_value TEXT, --
constraint Business_Attributes_pk primary key (attribute_id, business_id),
attribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, --
);
CREATE TABLE Users_Compliments
(
user_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, --
constraint Users_Compliments_pk primary key (compliment_id, user_id),
number_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0
compliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0
);
CREATE TABLE Compliments
(
compliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0
compliment_id INTEGER constraint Compliments_pk primary key,
);
CREATE TABLE Users
(
user_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0
user_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0
user_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0
user_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_id INTEGER constraint Users_pk primary key,
user_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
); |
book_publishing_company | What is the average quantity of each order for the book "Life Without Fear"? | qty is abbreviation for quantity; average quantity order = AVG(qty) | SELECT CAST(SUM(T2.qty) AS REAL) / COUNT(T1.title_id) FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id WHERE T1.title = 'Life Without Fear' | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | Please name three communities that experience the fraud incident. | communities refers to community_area_name; 'Fraud Incident' is the title of crime | SELECT T3.community_area_name FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.title = 'Criminal Sexual Assault' LIMIT 3 | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | What is the life expectancy of residents in the most crowded city? | most crowded city refers to MAX(Population); | SELECT T2.LifeExpectancy FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T1.Population DESC LIMIT 1 | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
sales | Give the full name of the employee who has sold the most quantity. | full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity); | SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID ORDER BY T2.Quantity DESC LIMIT 1 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER not null, --
foreign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,
Quantity INTEGER not null, --
ProductID INTEGER not null, --
foreign key (ProductID) references Products (ProductID) on update cascade on delete cascade,
);
CREATE TABLE Customers
(
MiddleInitial TEXT null, --
FirstName TEXT not null, --
LastName TEXT not null, --
CustomerID INTEGER not null primary key,
);
CREATE TABLE Products
(
Price REAL null, --
ProductID INTEGER not null primary key,
Name TEXT not null, --
);
CREATE TABLE Employees
(
EmployeeID INTEGER not null primary key,
LastName TEXT not null, --
FirstName TEXT not null, --
MiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0
); |
olympics | What is the name of the game in which the oldest Olympian has ever participated? | the oldest Olympian refers to id where MAX(age); name of the game refers to games_name; | SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id ORDER BY T2.age LIMIT 1 | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | Give the name of the director of the movie in which Verna Felton was the voice actor for its character "Aunt Sarah". | FALSE; | SELECT T1.director FROM director AS T1 INNER JOIN `voice-actors` AS T2 ON T2.movie = T1.name WHERE T2.character = 'Aunt Sarah' AND T2.`voice-actor` = 'Verna Felton' | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
public_review_platform | What is the category of businesses with highest star rating? | category refers to category_name; highest star rating refers to max(stars) | SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id ORDER BY T1.stars DESC LIMIT 1 | CREATE TABLE Attributes
(
attribute_name TEXT, --
attribute_id INTEGER constraint Attributes_pk primary key,
);
CREATE TABLE Elite
(
year_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0
constraint Elite_pk primary key (user_id, year_id),
user_id INTEGER constraint Elite_Users_user_id_fk references Users, --
);
CREATE TABLE Business_Hours
(
closing_time TEXT, --
business_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, --
day_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0
opening_time TEXT, --
constraint Business_Hours_pk primary key (business_id, day_id),
);
CREATE TABLE Categories
(
category_id INTEGER constraint Categories_pk primary key,
category_name TEXT, --
);
CREATE TABLE Business_Categories
(
business_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, --
category_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, --
constraint Business_Categories_pk primary key (business_id, category_id),
);
CREATE TABLE Tips
(
likes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0
user_id INTEGER constraint Tips_Users_user_id_fk references Users, --
tip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0
business_id INTEGER constraint Tips_Business_business_id_fk references Business, --
constraint Tips_pk primary key (business_id, user_id),
);
CREATE TABLE Reviews
(
business_id INTEGER constraint Reviews_Business_business_id_fk references Business, --
review_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0
constraint Reviews_pk primary key (business_id, user_id),
review_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
user_id INTEGER constraint Reviews_Users_user_id_fk references Users, --
review_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
);
CREATE TABLE Checkins
(
label_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
day_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0
label_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
business_id INTEGER constraint Checkins_Business_business_id_fk references Business, --
constraint Checkins_pk primary key (business_id, day_id),
label_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
);
CREATE TABLE Days
(
day_id INTEGER constraint Days_pk primary key,
day_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
);
CREATE TABLE Years
(
actual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0
year_id INTEGER constraint Years_pk primary key,
);
CREATE TABLE Business
(
business_id INTEGER constraint Business_pk primary key,
state TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0
city TEXT, --
active TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0
stars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0
review_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0
);
CREATE TABLE Business_Attributes
(
business_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, --
attribute_value TEXT, --
constraint Business_Attributes_pk primary key (attribute_id, business_id),
attribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, --
);
CREATE TABLE Users_Compliments
(
user_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, --
constraint Users_Compliments_pk primary key (compliment_id, user_id),
number_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0
compliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0
);
CREATE TABLE Compliments
(
compliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0
compliment_id INTEGER constraint Compliments_pk primary key,
);
CREATE TABLE Users
(
user_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0
user_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0
user_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0
user_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_id INTEGER constraint Users_pk primary key,
user_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
); |
chicago_crime | What is the general description for case number JB106010? | general description refers to primary_description | SELECT T1.primary_description FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.case_number = 'JB106010' | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | Which country has the most crowded city in the world? | most crowded city refers to MAX(Population); | SELECT T1.Name FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T2.Population DESC LIMIT 1 | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
sales | List the full names of customers who have purchased products in quantity over 600. | full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600; | SELECT T1.FirstName, T1.LastName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Quantity > 600 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER not null, --
foreign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,
Quantity INTEGER not null, --
ProductID INTEGER not null, --
foreign key (ProductID) references Products (ProductID) on update cascade on delete cascade,
);
CREATE TABLE Customers
(
MiddleInitial TEXT null, --
FirstName TEXT not null, --
LastName TEXT not null, --
CustomerID INTEGER not null primary key,
);
CREATE TABLE Products
(
Price REAL null, --
ProductID INTEGER not null primary key,
Name TEXT not null, --
);
CREATE TABLE Employees
(
EmployeeID INTEGER not null primary key,
LastName TEXT not null, --
FirstName TEXT not null, --
MiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0
); |
olympics | In the Winter and Summer Olympics of 1988, which game has the most number of competitors? Find the difference of the number of competitors between the two games. | the most number of competitors refer to MAX(COUNT(person_id)); SUBTRACT(COUNT(person_id where games_name = '1988 Summer'), COUNT(person_id where games_name = '1988 Winter')); | SELECT P1 , ( SELECT MAX(P2) - MIN(P2) FROM ( SELECT COUNT(T2.person_id) AS P2 FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name IN ('1988 Winter', '1988 Summer') GROUP BY T1.season ) ORDER BY P2 DESC LIMIT 1 ) FROM ( SELECT T1.season AS P1, COUNT(T2.person_id) AS P2 FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name IN ('1988 Winter', '1988 Summer') GROUP BY T1.season ) ORDER BY P2 DESC LIMIT 1 | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | Wolfgang Reitherman has directed several Disney movies, which one has the highest grossing after accounting for inflation? | Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the highest grossing after accounting for inflation refers to MAX(inflation_adjusted_gross); | SELECT T1.movie_title FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Wolfgang Reitherman' ORDER BY CAST(REPLACE(SUBSTR(inflation_adjusted_gross, 2), ',', '') AS REAL) DESC LIMIT 1 | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
public_review_platform | What is the opening time of the active businesses in Surprise that has a low review count. | active business refers to active = 'true'; 'Surprise' is the name of city; low review count refers to review_count = 'Low' | SELECT T2.opening_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Surprise' AND T1.active LIKE 'TRUE' AND T1.review_count LIKE 'Low' GROUP BY T2.opening_time | CREATE TABLE Attributes
(
attribute_name TEXT, --
attribute_id INTEGER constraint Attributes_pk primary key,
);
CREATE TABLE Elite
(
year_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0
constraint Elite_pk primary key (user_id, year_id),
user_id INTEGER constraint Elite_Users_user_id_fk references Users, --
);
CREATE TABLE Business_Hours
(
closing_time TEXT, --
business_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, --
day_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0
opening_time TEXT, --
constraint Business_Hours_pk primary key (business_id, day_id),
);
CREATE TABLE Categories
(
category_id INTEGER constraint Categories_pk primary key,
category_name TEXT, --
);
CREATE TABLE Business_Categories
(
business_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, --
category_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, --
constraint Business_Categories_pk primary key (business_id, category_id),
);
CREATE TABLE Tips
(
likes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0
user_id INTEGER constraint Tips_Users_user_id_fk references Users, --
tip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0
business_id INTEGER constraint Tips_Business_business_id_fk references Business, --
constraint Tips_pk primary key (business_id, user_id),
);
CREATE TABLE Reviews
(
business_id INTEGER constraint Reviews_Business_business_id_fk references Business, --
review_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0
constraint Reviews_pk primary key (business_id, user_id),
review_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
user_id INTEGER constraint Reviews_Users_user_id_fk references Users, --
review_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
);
CREATE TABLE Checkins
(
label_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
day_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0
label_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
business_id INTEGER constraint Checkins_Business_business_id_fk references Business, --
constraint Checkins_pk primary key (business_id, day_id),
label_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
);
CREATE TABLE Days
(
day_id INTEGER constraint Days_pk primary key,
day_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
);
CREATE TABLE Years
(
actual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0
year_id INTEGER constraint Years_pk primary key,
);
CREATE TABLE Business
(
business_id INTEGER constraint Business_pk primary key,
state TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0
city TEXT, --
active TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0
stars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0
review_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0
);
CREATE TABLE Business_Attributes
(
business_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, --
attribute_value TEXT, --
constraint Business_Attributes_pk primary key (attribute_id, business_id),
attribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, --
);
CREATE TABLE Users_Compliments
(
user_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, --
constraint Users_Compliments_pk primary key (compliment_id, user_id),
number_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0
compliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0
);
CREATE TABLE Compliments
(
compliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0
compliment_id INTEGER constraint Compliments_pk primary key,
);
CREATE TABLE Users
(
user_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0
user_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0
user_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0
user_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_id INTEGER constraint Users_pk primary key,
user_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
); |
book_publishing_company | Which one is the cheapest business book? | business books refers to type = 'business'; cheapest book refers to MIN(price) | SELECT title FROM titles WHERE type = 'business' ORDER BY price LIMIT 1 | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | Please state the district name where incident number JB106545 took place. | incident number JB106545 refers to case_number = 'JB106545' | SELECT T1.case_number FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T2.title = 'Criminal Sexual Assault' AND T2.crime_against = 'Persons' AND T1.arrest = 'TRUE' LIMIT 3 | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | List down languages used in Malaysia. | Malaysia is a name of country; | SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Malaysia' | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
sales | List the first names of employees with trading quantity for more than 500. | trading quantity for more than 500 refers to Quantity > 500; | SELECT DISTINCT T1.FirstName FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID WHERE T2.Quantity > 500 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER not null, --
foreign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,
Quantity INTEGER not null, --
ProductID INTEGER not null, --
foreign key (ProductID) references Products (ProductID) on update cascade on delete cascade,
);
CREATE TABLE Customers
(
MiddleInitial TEXT null, --
FirstName TEXT not null, --
LastName TEXT not null, --
CustomerID INTEGER not null primary key,
);
CREATE TABLE Products
(
Price REAL null, --
ProductID INTEGER not null primary key,
Name TEXT not null, --
);
CREATE TABLE Employees
(
EmployeeID INTEGER not null primary key,
LastName TEXT not null, --
FirstName TEXT not null, --
MiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0
); |
olympics | Among all the Olympic competitors from Finland, how many of them are female? | competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F'; | SELECT COUNT(T3.id) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Finland' AND T3.gender = 'F' | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | The song "Once Upon a Dream" is associated with the movie directed by whom? | directed by whom refers to director; movie refers to movie_title; | SELECT T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.song = 'Once Upon a Dream' | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
public_review_platform | List the active business ID and its stars of the businesses fall under the category of Fashion. | active business refers to active = 'true'; category of Fashion refers to category = 'Fashion' | SELECT T1.business_id, T1.stars FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.active LIKE 'TRUE' AND T3.category_name LIKE 'Fashion' | CREATE TABLE Attributes
(
attribute_name TEXT, --
attribute_id INTEGER constraint Attributes_pk primary key,
);
CREATE TABLE Elite
(
year_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0
constraint Elite_pk primary key (user_id, year_id),
user_id INTEGER constraint Elite_Users_user_id_fk references Users, --
);
CREATE TABLE Business_Hours
(
closing_time TEXT, --
business_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, --
day_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0
opening_time TEXT, --
constraint Business_Hours_pk primary key (business_id, day_id),
);
CREATE TABLE Categories
(
category_id INTEGER constraint Categories_pk primary key,
category_name TEXT, --
);
CREATE TABLE Business_Categories
(
business_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, --
category_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, --
constraint Business_Categories_pk primary key (business_id, category_id),
);
CREATE TABLE Tips
(
likes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0
user_id INTEGER constraint Tips_Users_user_id_fk references Users, --
tip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0
business_id INTEGER constraint Tips_Business_business_id_fk references Business, --
constraint Tips_pk primary key (business_id, user_id),
);
CREATE TABLE Reviews
(
business_id INTEGER constraint Reviews_Business_business_id_fk references Business, --
review_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0
constraint Reviews_pk primary key (business_id, user_id),
review_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
user_id INTEGER constraint Reviews_Users_user_id_fk references Users, --
review_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
);
CREATE TABLE Checkins
(
label_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
day_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0
label_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
business_id INTEGER constraint Checkins_Business_business_id_fk references Business, --
constraint Checkins_pk primary key (business_id, day_id),
label_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
);
CREATE TABLE Days
(
day_id INTEGER constraint Days_pk primary key,
day_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
);
CREATE TABLE Years
(
actual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0
year_id INTEGER constraint Years_pk primary key,
);
CREATE TABLE Business
(
business_id INTEGER constraint Business_pk primary key,
state TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0
city TEXT, --
active TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0
stars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0
review_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0
);
CREATE TABLE Business_Attributes
(
business_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, --
attribute_value TEXT, --
constraint Business_Attributes_pk primary key (attribute_id, business_id),
attribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, --
);
CREATE TABLE Users_Compliments
(
user_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, --
constraint Users_Compliments_pk primary key (compliment_id, user_id),
number_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0
compliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0
);
CREATE TABLE Compliments
(
compliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0
compliment_id INTEGER constraint Compliments_pk primary key,
);
CREATE TABLE Users
(
user_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0
user_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0
user_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0
user_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_id INTEGER constraint Users_pk primary key,
user_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
); |
book_publishing_company | How many books on business have the bookstores in Massachusetts ordered? | Massachusetts is a state; business books refers to type = 'business' | SELECT SUM(T1.qty) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id INNER JOIN titles AS T3 ON T1.title_id = T3.title_id WHERE T2.state = 'Massachusetts' AND T3.type = 'business' | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | Please list any three criminal sexual assault cases against persons where the criminals have been arrested. | "Criminal Sexual Assault" is the title of crime; against person refers to crime_against = 'Persons'; criminals have been arrested refers to arrest = 'TRUE'; cases refers to case_number | SELECT T2.case_number FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T1.title = 'Criminal Sexual Assault' AND T2.arrest = 'TRUE' AND T1.crime_against = 'Persons' LIMIT 3 | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | What is the percentage of English used in Australia? | English refers to Language = 'English'; Australia is a name of country; | SELECT T2.Percentage FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Australia' AND T2.Language = 'English' | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
olympics | What age of the competitors is the most numerous? | age is the most numerous refers to age where MAX(COUNT(person_id)); | SELECT age FROM games_competitor GROUP BY age ORDER BY COUNT(person_id) DESC LIMIT 1 | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | The character Donald Duck has appeared in two Disney movies, which one has more grossing? | Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; which one has more grossing refers to movie_title where MAX(total_gross); | SELECT T1.movie_title FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T2.hero = 'Donald Duck' ORDER BY CAST(REPLACE(SUBSTR(total_gross, 2), ',', '') AS REAL) DESC LIMIT 1 | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
book_publishing_company | What's the royalty for the bestseller book? | qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty) | SELECT royalty FROM titles ORDER BY ytd_sales DESC LIMIT 1 | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | How many crime cases have been classified as "Weapons Violation" by the FBI? | "Weapons Violation" is the title of crime; crime cases refers to report_no; | SELECT SUM(CASE WHEN T2.title = 'Weapons Violation' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | List down the official language of the countries which declared independence after 1990, | official lanaguage refers to IsOfficial = 'T'; declared independence after 1990 refers to IndepYear > 1990; | SELECT T1.Name, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.IndepYear > 1990 AND T2.IsOfficial = 'T' | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
olympics | The Olympic competitor John Aalberg is from which region? | from which region refers to region_name; | SELECT T1.region_name FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.full_name = 'John Aalberg' | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | How many restricted horror movies were released between 1/1/1990 to 12/31/2015? | Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015); | SELECT COUNT(movie_title) FROM movies_total_gross WHERE MPAA_rating = 'R' AND genre = 'Horror' AND CAST(SUBSTR(release_date, INSTR(release_date, ', ') + 1) AS int) BETWEEN 1990 AND 2015 | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
public_review_platform | What is the attribute value of an inactive business with a medium review count and 3.5 stars which is located at Phoenix, AZ? | inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5 | SELECT T2.attribute_value FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.state LIKE 'AZ' AND T1.review_count LIKE 'Medium' AND T1.active LIKE 'FALSE' AND T1.city LIKE 'Phoenix' AND T1.stars = 3.5 | CREATE TABLE Attributes
(
attribute_name TEXT, --
attribute_id INTEGER constraint Attributes_pk primary key,
);
CREATE TABLE Elite
(
year_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0
constraint Elite_pk primary key (user_id, year_id),
user_id INTEGER constraint Elite_Users_user_id_fk references Users, --
);
CREATE TABLE Business_Hours
(
closing_time TEXT, --
business_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, --
day_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0
opening_time TEXT, --
constraint Business_Hours_pk primary key (business_id, day_id),
);
CREATE TABLE Categories
(
category_id INTEGER constraint Categories_pk primary key,
category_name TEXT, --
);
CREATE TABLE Business_Categories
(
business_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, --
category_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, --
constraint Business_Categories_pk primary key (business_id, category_id),
);
CREATE TABLE Tips
(
likes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0
user_id INTEGER constraint Tips_Users_user_id_fk references Users, --
tip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0
business_id INTEGER constraint Tips_Business_business_id_fk references Business, --
constraint Tips_pk primary key (business_id, user_id),
);
CREATE TABLE Reviews
(
business_id INTEGER constraint Reviews_Business_business_id_fk references Business, --
review_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0
constraint Reviews_pk primary key (business_id, user_id),
review_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
user_id INTEGER constraint Reviews_Users_user_id_fk references Users, --
review_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
);
CREATE TABLE Checkins
(
label_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
day_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0
label_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
business_id INTEGER constraint Checkins_Business_business_id_fk references Business, --
constraint Checkins_pk primary key (business_id, day_id),
label_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
);
CREATE TABLE Days
(
day_id INTEGER constraint Days_pk primary key,
day_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
);
CREATE TABLE Years
(
actual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0
year_id INTEGER constraint Years_pk primary key,
);
CREATE TABLE Business
(
business_id INTEGER constraint Business_pk primary key,
state TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0
city TEXT, --
active TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0
stars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0
review_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0
);
CREATE TABLE Business_Attributes
(
business_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, --
attribute_value TEXT, --
constraint Business_Attributes_pk primary key (attribute_id, business_id),
attribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, --
);
CREATE TABLE Users_Compliments
(
user_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, --
constraint Users_Compliments_pk primary key (compliment_id, user_id),
number_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0
compliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0
);
CREATE TABLE Compliments
(
compliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0
compliment_id INTEGER constraint Compliments_pk primary key,
);
CREATE TABLE Users
(
user_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0
user_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0
user_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0
user_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_id INTEGER constraint Users_pk primary key,
user_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
); |
book_publishing_company | What is the average level employees working as Managing Editor are at? How many levels are there between the average level and the highest level? | Managing Editor is a job description which refers to job_desc; job level refers to job_lvl; highest level job refers to max_lvl; levels between the average level and the highest level = SUBTRACT(max_lvl; AVG(job_lvl)) | SELECT AVG(T2.job_lvl), T1.max_lvl - AVG(T2.job_lvl) FROM jobs AS T1 INNER JOIN employee AS T2 ON T1.job_id = T2.job_id WHERE T1.job_desc = 'Managing Editor' GROUP BY T2.job_id, T1.max_lvl | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | What is the total population of the neighborhoods Avondale Gardens, Irving Park, Kilbourn Park, Merchant Park, Old Irving Park, and The Villa? | "Avoladale Gardens", "Irving Park", "Kilbourn Park", "Merchant Park", "Old Irving Park", "The Villa" are neighborhood_name; total population refers to Sum(Population) | SELECT SUM(T2.population) AS sum FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.neighborhood_name = 'Avondale Gardens' OR T1.neighborhood_name = 'Irving Park' OR T1.neighborhood_name = 'Kilbourn Park' OR T1.neighborhood_name = 'Merchant Park' OR T1.neighborhood_name = 'Old Irving Park' OR T1.neighborhood_name = 'The Villa' | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | List down the name of countries whereby English is their official language. | English is the official language refers to Language = 'English' AND IsOfficial = 'T'; | SELECT T1.Name FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
sales | Identify customer IDs who bought products priced from 1000 to 2000. | priced from 1000 to 2000 refers to Price BETWEEN 1000 AND 2000; | SELECT DISTINCT T2.CustomerID FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Price BETWEEN 1000 AND 2000 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER not null, --
foreign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,
Quantity INTEGER not null, --
ProductID INTEGER not null, --
foreign key (ProductID) references Products (ProductID) on update cascade on delete cascade,
);
CREATE TABLE Customers
(
MiddleInitial TEXT null, --
FirstName TEXT not null, --
LastName TEXT not null, --
CustomerID INTEGER not null primary key,
);
CREATE TABLE Products
(
Price REAL null, --
ProductID INTEGER not null primary key,
Name TEXT not null, --
);
CREATE TABLE Employees
(
EmployeeID INTEGER not null primary key,
LastName TEXT not null, --
FirstName TEXT not null, --
MiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0
); |
olympics | Among the competitors of the 1994 Winter Olympic Game, what is the percentage of those from Finland? | DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter'; | SELECT CAST(COUNT(CASE WHEN T5.region_name = 'Finland' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T3.id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id INNER JOIN person_region AS T4 ON T3.id = T4.person_id INNER JOIN noc_region AS T5 ON T4.region_id = T5.id WHERE T1.games_name = '1994 Winter' | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
public_review_platform | How many businesses ID sell beer and wine? | attribute_value = 'beer_and_wine' | SELECT COUNT(business_id) FROM Business_Attributes WHERE attribute_id = 1 AND attribute_value = 'beer_and_wine' | CREATE TABLE Attributes
(
attribute_name TEXT, --
attribute_id INTEGER constraint Attributes_pk primary key,
);
CREATE TABLE Elite
(
year_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0
constraint Elite_pk primary key (user_id, year_id),
user_id INTEGER constraint Elite_Users_user_id_fk references Users, --
);
CREATE TABLE Business_Hours
(
closing_time TEXT, --
business_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, --
day_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0
opening_time TEXT, --
constraint Business_Hours_pk primary key (business_id, day_id),
);
CREATE TABLE Categories
(
category_id INTEGER constraint Categories_pk primary key,
category_name TEXT, --
);
CREATE TABLE Business_Categories
(
business_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, --
category_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, --
constraint Business_Categories_pk primary key (business_id, category_id),
);
CREATE TABLE Tips
(
likes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0
user_id INTEGER constraint Tips_Users_user_id_fk references Users, --
tip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0
business_id INTEGER constraint Tips_Business_business_id_fk references Business, --
constraint Tips_pk primary key (business_id, user_id),
);
CREATE TABLE Reviews
(
business_id INTEGER constraint Reviews_Business_business_id_fk references Business, --
review_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0
constraint Reviews_pk primary key (business_id, user_id),
review_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
user_id INTEGER constraint Reviews_Users_user_id_fk references Users, --
review_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
);
CREATE TABLE Checkins
(
label_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
day_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0
label_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
business_id INTEGER constraint Checkins_Business_business_id_fk references Business, --
constraint Checkins_pk primary key (business_id, day_id),
label_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
);
CREATE TABLE Days
(
day_id INTEGER constraint Days_pk primary key,
day_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
);
CREATE TABLE Years
(
actual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0
year_id INTEGER constraint Years_pk primary key,
);
CREATE TABLE Business
(
business_id INTEGER constraint Business_pk primary key,
state TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0
city TEXT, --
active TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0
stars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0
review_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0
);
CREATE TABLE Business_Attributes
(
business_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, --
attribute_value TEXT, --
constraint Business_Attributes_pk primary key (attribute_id, business_id),
attribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, --
);
CREATE TABLE Users_Compliments
(
user_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, --
constraint Users_Compliments_pk primary key (compliment_id, user_id),
number_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0
compliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0
);
CREATE TABLE Compliments
(
compliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0
compliment_id INTEGER constraint Compliments_pk primary key,
);
CREATE TABLE Users
(
user_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0
user_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0
user_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0
user_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_id INTEGER constraint Users_pk primary key,
user_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
); |
book_publishing_company | Which type of book had the most pre-paid amount? | most pre-paid amount refers to MAX(advance) | SELECT type FROM titles ORDER BY advance DESC LIMIT 1 | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | How many neighborhoods can be found in the Forest Glen community area? | "Forest Glen" is the community_area_name; neighborhoods refers to neighborhood_name | SELECT SUM(CASE WHEN T2.community_area_name = 'Forest Glen' THEN 1 ELSE 0 END) FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | What is the language of the smallest population country? | smallest population refers to MIN(Population); | SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode ORDER BY T1.Population ASC LIMIT 1 | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
olympics | In which year did London hold its earliest Olympic game? | In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year); | SELECT T3.games_year FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'London' ORDER BY T3.games_year LIMIT 1 | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | For the movie in which Tress MacNeille was the voice actor for its character "Hyacinth Hippo", what was the release date of that movie? | FALSE; | SELECT T1.release_date FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T2.movie = T1.movie_title WHERE T2.character = 'Hyacinth Hippo' AND T2.`voice-actor` = 'Tress MacNeille' | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
book_publishing_company | Show me the employ id of the highest employee who doesn't have a middle name. | highest employee refers to employee with the highest job level; MAX(job_lvl) | SELECT emp_id FROM employee WHERE minit = '' ORDER BY job_lvl DESC LIMIT 1 | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | What are the neighborhoods that are located in the North Center community area? | "North Center" is the community_area_name; neighborhoods refers to neighborhood_name | SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.community_area_name = 'North Center' | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | Write down the name of the largest population country. | largest population refers to MAX(Population); | SELECT Name FROM Country ORDER BY Population DESC LIMIT 1 | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
sales | Calculate the total trading quantity of Abraham sold to Aaron Alexander. | total trading quantity = SUM(Quantity WHERE Employees.FirstName = 'Abraham' AND Customers.FirstName = 'Aaron' AND Customers.LastName = 'Alexander'); | SELECT SUM(T2.Quantity) FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID WHERE T2.SalesPersonID = 1 AND T1.FirstName = 'Aaron' AND T1.LastName = 'Alexander' AND T3.FirstName = 'Abraham' | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER not null, --
foreign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,
Quantity INTEGER not null, --
ProductID INTEGER not null, --
foreign key (ProductID) references Products (ProductID) on update cascade on delete cascade,
);
CREATE TABLE Customers
(
MiddleInitial TEXT null, --
FirstName TEXT not null, --
LastName TEXT not null, --
CustomerID INTEGER not null primary key,
);
CREATE TABLE Products
(
Price REAL null, --
ProductID INTEGER not null primary key,
Name TEXT not null, --
);
CREATE TABLE Employees
(
EmployeeID INTEGER not null primary key,
LastName TEXT not null, --
FirstName TEXT not null, --
MiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0
); |
olympics | In which cities were the 1976 winter and summer games held? | cities refer to city_name; 1976 winter and summer games refer to games_name IN ('1976 Winter', '1976 Summer'); | SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_name IN ('1976 Summer', '1976 Winter') | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
public_review_platform | List the closing time and day of week of active businesses in Scottsdale with stars greater than the 60% of average age of star rating. | active business refers to active = 'true'; 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars > avg(stars) * 60% | SELECT T2.closing_time, T3.day_of_week FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Scottsdale' AND T1.active LIKE 'TRUE' AND T1.stars > 0.6 * ( SELECT AVG(T1.stars) FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Scottsdale' AND T1.active LIKE 'TRUE' ) | CREATE TABLE Attributes
(
attribute_name TEXT, --
attribute_id INTEGER constraint Attributes_pk primary key,
);
CREATE TABLE Elite
(
year_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0
constraint Elite_pk primary key (user_id, year_id),
user_id INTEGER constraint Elite_Users_user_id_fk references Users, --
);
CREATE TABLE Business_Hours
(
closing_time TEXT, --
business_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, --
day_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0
opening_time TEXT, --
constraint Business_Hours_pk primary key (business_id, day_id),
);
CREATE TABLE Categories
(
category_id INTEGER constraint Categories_pk primary key,
category_name TEXT, --
);
CREATE TABLE Business_Categories
(
business_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, --
category_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, --
constraint Business_Categories_pk primary key (business_id, category_id),
);
CREATE TABLE Tips
(
likes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0
user_id INTEGER constraint Tips_Users_user_id_fk references Users, --
tip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0
business_id INTEGER constraint Tips_Business_business_id_fk references Business, --
constraint Tips_pk primary key (business_id, user_id),
);
CREATE TABLE Reviews
(
business_id INTEGER constraint Reviews_Business_business_id_fk references Business, --
review_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0
constraint Reviews_pk primary key (business_id, user_id),
review_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
user_id INTEGER constraint Reviews_Users_user_id_fk references Users, --
review_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
);
CREATE TABLE Checkins
(
label_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
day_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0
label_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
business_id INTEGER constraint Checkins_Business_business_id_fk references Business, --
constraint Checkins_pk primary key (business_id, day_id),
label_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
);
CREATE TABLE Days
(
day_id INTEGER constraint Days_pk primary key,
day_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
);
CREATE TABLE Years
(
actual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0
year_id INTEGER constraint Years_pk primary key,
);
CREATE TABLE Business
(
business_id INTEGER constraint Business_pk primary key,
state TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0
city TEXT, --
active TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0
stars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0
review_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0
);
CREATE TABLE Business_Attributes
(
business_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, --
attribute_value TEXT, --
constraint Business_Attributes_pk primary key (attribute_id, business_id),
attribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, --
);
CREATE TABLE Users_Compliments
(
user_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, --
constraint Users_Compliments_pk primary key (compliment_id, user_id),
number_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0
compliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0
);
CREATE TABLE Compliments
(
compliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0
compliment_id INTEGER constraint Compliments_pk primary key,
);
CREATE TABLE Users
(
user_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0
user_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0
user_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0
user_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_id INTEGER constraint Users_pk primary key,
user_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
); |
chicago_crime | What is the percentage of severe cases that are related to sexual assault? | related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100 | SELECT CAST(SUM(CASE WHEN primary_description = 'CRIM SEXUAL ASSAULT' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM IUCR WHERE index_code = 'I' | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | Which country has the smallest surface area? | smallest surface area refers to MIN(smallest surface area); | SELECT Name FROM Country ORDER BY SurfaceArea ASC LIMIT 1 | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
sales | Please provide sales ID for products named Hex Nut with a price greater than 100. | price greater than 100 refers to price > 100; | SELECT T2.SalesID FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name LIKE 'Hex Nut%' AND T1.Price > 100 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER not null, --
foreign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,
Quantity INTEGER not null, --
ProductID INTEGER not null, --
foreign key (ProductID) references Products (ProductID) on update cascade on delete cascade,
);
CREATE TABLE Customers
(
MiddleInitial TEXT null, --
FirstName TEXT not null, --
LastName TEXT not null, --
CustomerID INTEGER not null primary key,
);
CREATE TABLE Products
(
Price REAL null, --
ProductID INTEGER not null primary key,
Name TEXT not null, --
);
CREATE TABLE Employees
(
EmployeeID INTEGER not null primary key,
LastName TEXT not null, --
FirstName TEXT not null, --
MiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0
); |
olympics | Please list the names of all the Olympic competitors from Finland. | names of competitors refer to full_name; from Finland refers to region_name = 'Finland'; | SELECT T3.full_name FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Finland' | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | Who is the director of the movie Pinocchio? | Pinocchio is the name of the movie; | SELECT director FROM director WHERE name = 'Pinocchio' | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
book_publishing_company | Which publisher had the highest job level? Give his/her full name. | highest job level refers to MAX(job_lvl) | SELECT T1.fname, T1.minit, T1.lname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id ORDER BY T1.job_lvl DESC LIMIT 1 | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | What is the general and specific description of incident 275? | incident 275 refers to iucr_no = 275; general description refers to primary_description; specific description refers to secondary_description | SELECT primary_description, secondary_description FROM IUCR WHERE iucr_no = 275 | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | Calculate the percentage of the surface area of all countries that uses Chinese as one of their languages. | percentage = DIVIDE(MULTIPLY(SUM(SurfaceArea WHERE Language = 'Chinese'), SUM(SurfaceArea)), 1.0); Chinese as one of the languages refers to Language = 'Chinese'; | SELECT CAST(SUM(IIF(T2.Language = 'Chinese', T1.SurfaceArea, 0)) AS REAL) * 100 / SUM(T1.SurfaceArea) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
sales | Calculate the quantity percentage of the gift products in the total trading quantity. | percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0; | SELECT CAST(SUM(IIF(T1.Price = 0, T2.Quantity, 0)) AS REAL) * 100 / SUM(T2.Quantity)FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER not null, --
foreign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,
Quantity INTEGER not null, --
ProductID INTEGER not null, --
foreign key (ProductID) references Products (ProductID) on update cascade on delete cascade,
);
CREATE TABLE Customers
(
MiddleInitial TEXT null, --
FirstName TEXT not null, --
LastName TEXT not null, --
CustomerID INTEGER not null primary key,
);
CREATE TABLE Products
(
Price REAL null, --
ProductID INTEGER not null primary key,
Name TEXT not null, --
);
CREATE TABLE Employees
(
EmployeeID INTEGER not null primary key,
LastName TEXT not null, --
FirstName TEXT not null, --
MiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0
); |
olympics | Where was the first Olympic game held? | Where it was held refers to city_name; the first Olympic game refers to id where MIN(games_year); | SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id ORDER BY T3.games_year LIMIT 1 | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
public_review_platform | List the closing time and day of week of active businesses in Tempe with stars greater than the 70% of average age of star rating. | active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70% | SELECT T2.closing_time, T3.day_of_week FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Tempe' AND T1.active LIKE 'TRUE' AND T1.stars > 0.7 * ( SELECT AVG(T1.stars) FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Tempe' AND T1.active LIKE 'TRUE' ) | CREATE TABLE Attributes
(
attribute_name TEXT, --
attribute_id INTEGER constraint Attributes_pk primary key,
);
CREATE TABLE Elite
(
year_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0
constraint Elite_pk primary key (user_id, year_id),
user_id INTEGER constraint Elite_Users_user_id_fk references Users, --
);
CREATE TABLE Business_Hours
(
closing_time TEXT, --
business_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, --
day_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0
opening_time TEXT, --
constraint Business_Hours_pk primary key (business_id, day_id),
);
CREATE TABLE Categories
(
category_id INTEGER constraint Categories_pk primary key,
category_name TEXT, --
);
CREATE TABLE Business_Categories
(
business_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, --
category_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, --
constraint Business_Categories_pk primary key (business_id, category_id),
);
CREATE TABLE Tips
(
likes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0
user_id INTEGER constraint Tips_Users_user_id_fk references Users, --
tip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0
business_id INTEGER constraint Tips_Business_business_id_fk references Business, --
constraint Tips_pk primary key (business_id, user_id),
);
CREATE TABLE Reviews
(
business_id INTEGER constraint Reviews_Business_business_id_fk references Business, --
review_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0
constraint Reviews_pk primary key (business_id, user_id),
review_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
user_id INTEGER constraint Reviews_Users_user_id_fk references Users, --
review_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
);
CREATE TABLE Checkins
(
label_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
day_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0
label_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
business_id INTEGER constraint Checkins_Business_business_id_fk references Business, --
constraint Checkins_pk primary key (business_id, day_id),
label_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
);
CREATE TABLE Days
(
day_id INTEGER constraint Days_pk primary key,
day_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
);
CREATE TABLE Years
(
actual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0
year_id INTEGER constraint Years_pk primary key,
);
CREATE TABLE Business
(
business_id INTEGER constraint Business_pk primary key,
state TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0
city TEXT, --
active TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0
stars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0
review_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0
);
CREATE TABLE Business_Attributes
(
business_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, --
attribute_value TEXT, --
constraint Business_Attributes_pk primary key (attribute_id, business_id),
attribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, --
);
CREATE TABLE Users_Compliments
(
user_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, --
constraint Users_Compliments_pk primary key (compliment_id, user_id),
number_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0
compliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0
);
CREATE TABLE Compliments
(
compliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0
compliment_id INTEGER constraint Compliments_pk primary key,
);
CREATE TABLE Users
(
user_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0
user_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0
user_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0
user_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_id INTEGER constraint Users_pk primary key,
user_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
); |
book_publishing_company | Which job level is O'Rourke at? | job level refers to job_lvl | SELECT job_lvl FROM employee WHERE lname = 'O''Rourke' | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | Who is responsible for crime cases in district Lincoln? | "Lincoln" is the district_name; responsible for crime case refers to commander | SELECT commander FROM District WHERE district_name = 'Lincoln' | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | Calculate the average GNP of all countries that use Arabic language. | average GNP = AVG(GNP); use Arabic language refers to Language = 'Arabic'; | SELECT AVG(T1.GNP) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Arabic' | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
sales | Among the customers whose first name is Cameron, who bought the product in the most quantity? | most quantity refers to MAX(Quantity); who refers to FirstName, LastName; | SELECT T1.FirstName, T1.LastName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.FirstName = 'Cameron' ORDER BY T2.Quantity DESC LIMIT 1 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER not null, --
foreign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,
Quantity INTEGER not null, --
ProductID INTEGER not null, --
foreign key (ProductID) references Products (ProductID) on update cascade on delete cascade,
);
CREATE TABLE Customers
(
MiddleInitial TEXT null, --
FirstName TEXT not null, --
LastName TEXT not null, --
CustomerID INTEGER not null primary key,
);
CREATE TABLE Products
(
Price REAL null, --
ProductID INTEGER not null primary key,
Name TEXT not null, --
);
CREATE TABLE Employees
(
EmployeeID INTEGER not null primary key,
LastName TEXT not null, --
FirstName TEXT not null, --
MiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0
); |
olympics | In which city was the 1992 Summer Olympic Games held? | In which city refers to city_name; 1992 Summer Olympic Games refer to games_name = '1992 Summer'; | SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_name = '1992 Summer' | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | Who is the most productive director? | Most productive director refers to director where MAX(COUNT(name)); | SELECT director FROM director GROUP BY director ORDER BY COUNT(name) DESC LIMIT 1 | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
public_review_platform | Among the businesses with a category of Local Services, what is the percentage of the business with less than 3 stars? | "Local Services" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100 | SELECT CAST(SUM(CASE WHEN T1.stars < 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.stars) AS "percentage" FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T3.category_name LIKE 'Local Services' | CREATE TABLE Attributes
(
attribute_name TEXT, --
attribute_id INTEGER constraint Attributes_pk primary key,
);
CREATE TABLE Elite
(
year_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0
constraint Elite_pk primary key (user_id, year_id),
user_id INTEGER constraint Elite_Users_user_id_fk references Users, --
);
CREATE TABLE Business_Hours
(
closing_time TEXT, --
business_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, --
day_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0
opening_time TEXT, --
constraint Business_Hours_pk primary key (business_id, day_id),
);
CREATE TABLE Categories
(
category_id INTEGER constraint Categories_pk primary key,
category_name TEXT, --
);
CREATE TABLE Business_Categories
(
business_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, --
category_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, --
constraint Business_Categories_pk primary key (business_id, category_id),
);
CREATE TABLE Tips
(
likes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0
user_id INTEGER constraint Tips_Users_user_id_fk references Users, --
tip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0
business_id INTEGER constraint Tips_Business_business_id_fk references Business, --
constraint Tips_pk primary key (business_id, user_id),
);
CREATE TABLE Reviews
(
business_id INTEGER constraint Reviews_Business_business_id_fk references Business, --
review_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0
constraint Reviews_pk primary key (business_id, user_id),
review_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
user_id INTEGER constraint Reviews_Users_user_id_fk references Users, --
review_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
);
CREATE TABLE Checkins
(
label_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
day_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0
label_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
business_id INTEGER constraint Checkins_Business_business_id_fk references Business, --
constraint Checkins_pk primary key (business_id, day_id),
label_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
);
CREATE TABLE Days
(
day_id INTEGER constraint Days_pk primary key,
day_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
);
CREATE TABLE Years
(
actual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0
year_id INTEGER constraint Years_pk primary key,
);
CREATE TABLE Business
(
business_id INTEGER constraint Business_pk primary key,
state TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0
city TEXT, --
active TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0
stars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0
review_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0
);
CREATE TABLE Business_Attributes
(
business_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, --
attribute_value TEXT, --
constraint Business_Attributes_pk primary key (attribute_id, business_id),
attribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, --
);
CREATE TABLE Users_Compliments
(
user_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, --
constraint Users_Compliments_pk primary key (compliment_id, user_id),
number_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0
compliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0
);
CREATE TABLE Compliments
(
compliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0
compliment_id INTEGER constraint Compliments_pk primary key,
);
CREATE TABLE Users
(
user_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0
user_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0
user_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0
user_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_id INTEGER constraint Users_pk primary key,
user_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
); |
book_publishing_company | Is the author of "Sushi, Anyone?" on the contract? | contract = 1 means on contract; contract = 0 means not on contract | SELECT T1.contract FROM authors AS T1 INNER JOIN titleauthor AS T2 ON T1.au_id = T2.au_id INNER JOIN titles AS T3 ON T2.title_id = T3.title_id WHERE T3.title = 'Sushi, Anyone?' | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | Please list all of the contact information for the police district Near West. | "Near West" is the district_name; all contact information refers to phone, fax, tty, twitter | SELECT phone, fax, tty, twitter FROM District WHERE district_name = 'Near West' | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | List all the countries in the continent of Asia that use English as their unofficial language. | use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F'; | SELECT T1.Name FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' AND T2.IsOfficial = 'F' GROUP BY T1.Name | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
sales | Calculate the total quantity of products that are gifts. | total quantity = SUM(Quantity); gifts refers to Price = 0; | SELECT SUM(T2.Quantity) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Price = 0 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER not null, --
foreign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,
Quantity INTEGER not null, --
ProductID INTEGER not null, --
foreign key (ProductID) references Products (ProductID) on update cascade on delete cascade,
);
CREATE TABLE Customers
(
MiddleInitial TEXT null, --
FirstName TEXT not null, --
LastName TEXT not null, --
CustomerID INTEGER not null primary key,
);
CREATE TABLE Products
(
Price REAL null, --
ProductID INTEGER not null primary key,
Name TEXT not null, --
);
CREATE TABLE Employees
(
EmployeeID INTEGER not null primary key,
LastName TEXT not null, --
FirstName TEXT not null, --
MiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0
); |
olympics | How many athletes competed in the 1992 Summer Olympics? | 1992 Summer Olympics refer to games_name = '1928 Summer'; | SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '1928 Summer' | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
public_review_platform | How many businesses are with high review count? | high review count refers to review_count = 'High' | SELECT COUNT(business_id) FROM Business WHERE review_count LIKE 'High' | CREATE TABLE Attributes
(
attribute_name TEXT, --
attribute_id INTEGER constraint Attributes_pk primary key,
);
CREATE TABLE Elite
(
year_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0
constraint Elite_pk primary key (user_id, year_id),
user_id INTEGER constraint Elite_Users_user_id_fk references Users, --
);
CREATE TABLE Business_Hours
(
closing_time TEXT, --
business_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, --
day_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0
opening_time TEXT, --
constraint Business_Hours_pk primary key (business_id, day_id),
);
CREATE TABLE Categories
(
category_id INTEGER constraint Categories_pk primary key,
category_name TEXT, --
);
CREATE TABLE Business_Categories
(
business_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, --
category_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, --
constraint Business_Categories_pk primary key (business_id, category_id),
);
CREATE TABLE Tips
(
likes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0
user_id INTEGER constraint Tips_Users_user_id_fk references Users, --
tip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0
business_id INTEGER constraint Tips_Business_business_id_fk references Business, --
constraint Tips_pk primary key (business_id, user_id),
);
CREATE TABLE Reviews
(
business_id INTEGER constraint Reviews_Business_business_id_fk references Business, --
review_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0
constraint Reviews_pk primary key (business_id, user_id),
review_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
user_id INTEGER constraint Reviews_Users_user_id_fk references Users, --
review_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
);
CREATE TABLE Checkins
(
label_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
day_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0
label_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
business_id INTEGER constraint Checkins_Business_business_id_fk references Business, --
constraint Checkins_pk primary key (business_id, day_id),
label_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
);
CREATE TABLE Days
(
day_id INTEGER constraint Days_pk primary key,
day_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
);
CREATE TABLE Years
(
actual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0
year_id INTEGER constraint Years_pk primary key,
);
CREATE TABLE Business
(
business_id INTEGER constraint Business_pk primary key,
state TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0
city TEXT, --
active TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0
stars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0
review_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0
);
CREATE TABLE Business_Attributes
(
business_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, --
attribute_value TEXT, --
constraint Business_Attributes_pk primary key (attribute_id, business_id),
attribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, --
);
CREATE TABLE Users_Compliments
(
user_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, --
constraint Users_Compliments_pk primary key (compliment_id, user_id),
number_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0
compliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0
);
CREATE TABLE Compliments
(
compliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0
compliment_id INTEGER constraint Compliments_pk primary key,
);
CREATE TABLE Users
(
user_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0
user_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0
user_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0
user_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_id INTEGER constraint Users_pk primary key,
user_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
); |
book_publishing_company | How many levels are there left for Diego W Roel to reach if he/she could go to the max level for his/her position? | max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl) | SELECT T2.max_lvl - T1.job_lvl FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.fname = 'Diego' AND T1.minit = 'W' AND T1.lname = 'Roel' | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | What is the difference between the number of communities that are located on the north and south sides with a population of more than 30,000? | population of more than 30000 refers to Population > 30000; 'North' and 'South' both are the side; different number of community refers to Subtract(Count(Community_area_no where side = 'South'), Count(Community_area_no where side = 'North')) | SELECT SUM(CASE WHEN side = 'South ' THEN 1 ELSE 0 END) - SUM(CASE WHEN side = 'North' THEN 1 ELSE 0 END) AS DIFF FROM Community_Area WHERE population > 300000 | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | What is the capital city of the country with largest population? | capital city refers to Capital; largest population refers to MAX(Population); | SELECT T1.Capital FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T1.Population DESC LIMIT 1 | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
sales | Calculate the percentage of sold blades in the total number of transactions. | percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product; | SELECT CAST(SUM(IIF(T1.Name = 'Blade', T2.Quantity, 0)) AS REAL) * 100 / SUM(T2.Quantity) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER not null, --
foreign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,
Quantity INTEGER not null, --
ProductID INTEGER not null, --
foreign key (ProductID) references Products (ProductID) on update cascade on delete cascade,
);
CREATE TABLE Customers
(
MiddleInitial TEXT null, --
FirstName TEXT not null, --
LastName TEXT not null, --
CustomerID INTEGER not null primary key,
);
CREATE TABLE Products
(
Price REAL null, --
ProductID INTEGER not null primary key,
Name TEXT not null, --
);
CREATE TABLE Employees
(
EmployeeID INTEGER not null primary key,
LastName TEXT not null, --
FirstName TEXT not null, --
MiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0
); |
olympics | How many Olympic events did Michael Phelps II join in total? Find the percentage of the events where he won a gold medal. | DIVIDE(COUNT(event_id where medal_name = 'Gold'), COUNT(event_id)) as percentage where full_name = 'Michael Fred Phelps, II'; | SELECT COUNT(T3.event_id) , CAST(COUNT(CASE WHEN T4.id = '1' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T4.id) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN medal AS T4 ON T3.medal_id = T4.id WHERE T1.full_name = 'Michael Fred Phelps, II' | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | Who is the hero character of the adventure movie which was released on 2016/3/4? | released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ; | SELECT T1.hero FROM characters AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.movie_title WHERE T2.genre = 'Adventure' AND T1.release_date = '4-Mar-16' | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
chicago_crime | What are the communities that are grouped together on the central side? | central side refers to side = 'Central'; community refers to community_area_name | SELECT community_area_name FROM Community_Area WHERE side = 'Central' | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | List all the official and unofficial languages used by the country that declared its independence in 1830. | official language refers to IsOfficial = 'T'; unofficial language refers to IsOfficial = 'F'; declared independence in 1830 refers to IndepYear = 1830; | SELECT T2.Language, T2.IsOfficial FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.IndepYear = 1830 GROUP BY T2.Language, T2.IsOfficial | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
beer_factory | What did the customer say in his or her review of Bulldog root beer on 7/26/2013? | Bulldog refers to BrandName = 'Bulldog'; on 7/26/2013 refers to ReviewDate = '2013-07-26'; | SELECT T2.Review FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.BrandName = 'Bulldog' AND T2.ReviewDate = '2013-07-26' | CREATE TABLE rootbeerbrand
(
Website TEXT, --
State TEXT, -- Example Values: `CA`, `MA`, `LA`, `WA`, `QLD` | Value Statics: Total count 23 - Distinct count 14 - Null count 1
Twitter TEXT, -- Example Values: `https://twitter.com/ilovedads`, `https://twitter.com/1919rootbeer` | Value Statics: Total count 2 - Distinct count 2 - Null count 22
Honey TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0
Alcoholic TEXT, -- Example Values: `FALSE` | Value Statics: Total count 24 - Distinct count 1 - Null count 0
City TEXT, --
Country TEXT, -- Example Values: `United States`, `Australia` | Value Statics: Total count 24 - Distinct count 2 - Null count 0
Caffeinated TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0
AvailableInCans TEXT, -- Example Values: `TRUE`, `FALSE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0
BreweryName TEXT, --
FacebookPage TEXT, -- Example Values: `https://www.facebook.com/Dads-Old-Fashioned-Root-Beer-and-Cream-Soda-117159998301204/`, `https://www.facebook.com/Dog-N-Suds-Bottled-Root-Beer-117372294947833/`, `https://www.facebook.com/fitzsrootbeer`, `https://www.facebook.com/Gales-Root-Beer-207365072632626/`, `https://www.facebook.com/MugRootBeer/` | Value Statics: Total count 6 - Distinct count 6 - Null count 18
FirstBrewedYear INTEGER, -- Example Values: `1919`, `1926`, `1986`, `1898`, `1984` | Value Statics: Total count 24 - Distinct count 19 - Null count 0
BrandID INTEGER primary key,
CurrentRetailPrice REAL, -- Example Values: `1.0`, `3.0`, `44.0` | Value Statics: Total count 24 - Distinct count 3 - Null count 0
ArtificialSweetener TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0
BrandName TEXT, --
CornSyrup TEXT, -- Example Values: `TRUE`, `FALSE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0
AvailableInBottles TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0
AvailableInKegs TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0
WholesaleCost REAL, -- Example Values: `0.42`, `0.98`, `1.13`, `0.4`, `1.1` | Value Statics: Total count 24 - Distinct count 17 - Null count 0
Description TEXT, --
CaneSugar TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0
);
CREATE TABLE rootbeerreview
(
CustomerID INTEGER, --
foreign key (CustomerID) references customers(CustomerID),
ReviewDate DATE, --
BrandID INTEGER, --
Review TEXT, -- Example Values: `You could have done better Sactown.`, `Too much bite, not enough barq.`, `The drink is fine, but the crest on the label is pretentious.`, `Fantastic!`, `Love stopping by Fitz's in St. Louis.` | Value Statics: Total count 16 - Distinct count 16 - Null count 697
foreign key (BrandID) references rootbeerbrand(BrandID),
foreign key (BrandID) references rootbeerbrand(BrandID),
StarRating INTEGER, -- Example Values: `5`, `1`, `3`, `2`, `4` | Value Statics: Total count 713 - Distinct count 5 - Null count 0
primary key (CustomerID, BrandID),
);
CREATE TABLE customers
(
StreetAddress TEXT, --
Email TEXT, --
FirstPurchaseDate DATE, --
CustomerID INTEGER primary key,
State TEXT, -- Example Values: `CA` | Value Statics: Total count 554 - Distinct count 1 - Null count 0
SubscribedToEmailList TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 554 - Distinct count 2 - Null count 0
City TEXT, --
Gender TEXT, -- Example Values: `M`, `F` | Value Statics: Total count 554 - Distinct count 2 - Null count 0
Last TEXT, --
PhoneNumber TEXT, --
First TEXT, --
ZipCode INTEGER, --
);
CREATE TABLE location
(
LocationID INTEGER primary key,
LocationName TEXT, -- Example Values: `LOST`, `Sac State American River Courtyard`, `Sac State Union` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
foreign key (LocationID) references geolocation(LocationID),
foreign key (LocationID) references geolocation(LocationID),
ZipCode INTEGER, -- Example Values: `95819` | Value Statics: Total count 2 - Distinct count 1 - Null count 1
StreetAddress TEXT, -- Example Values: `6000 J St` | Value Statics: Total count 2 - Distinct count 1 - Null count 1
City TEXT, -- Example Values: `Sacramento` | Value Statics: Total count 2 - Distinct count 1 - Null count 1
State TEXT, -- Example Values: `CA` | Value Statics: Total count 2 - Distinct count 1 - Null count 1
);
CREATE TABLE geolocation
(
Longitude REAL, -- Example Values: `0.0`, `-121.426432`, `-121.42243` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
foreign key (LocationID) references location(LocationID),
LocationID INTEGER primary key,
Latitude REAL, -- Example Values: `0.0`, `38.566129`, `38.559615` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE rootbeer
(
foreign key (BrandID) references rootbeerbrand(BrandID),
foreign key (BrandID) references rootbeerbrand(BrandID),
RootBeerID INTEGER primary key,
foreign key (LocationID) references location(LocationID),
PurchaseDate DATE, --
ContainerType TEXT, -- Example Values: `Bottle`, `Can` | Value Statics: Total count 6430 - Distinct count 2 - Null count 0
foreign key (LocationID) references geolocation(LocationID),
foreign key (LocationID) references geolocation(LocationID),
LocationID INTEGER, -- Example Values: `1`, `2` | Value Statics: Total count 6430 - Distinct count 2 - Null count 0
BrandID INTEGER, --
);
CREATE TABLE transaction
(
CreditCardType TEXT, -- Example Values: `Discover`, `Visa`, `MasterCard`, `American Express` | Value Statics: Total count 6312 - Distinct count 4 - Null count 0
CreditCardNumber INTEGER, --
foreign key (CustomerID) references customers(CustomerID),
LocationID INTEGER, -- Example Values: `2`, `1` | Value Statics: Total count 6312 - Distinct count 2 - Null count 0
foreign key (RootBeerID) references rootbeer(RootBeerID),
TransactionID INTEGER primary key,
CustomerID INTEGER, --
RootBeerID INTEGER, --
TransactionDate DATE, --
foreign key (LocationID) references location(LocationID),
PurchasePrice REAL, -- Example Values: `3.0`, `1.0` | Value Statics: Total count 6312 - Distinct count 2 - Null count 0
); |
olympics | Which cities hosted at least 3 Olympic games? | cities refer to city_name; hosted at least 3 Olympic games refers to COUNT(games_id) > = 3; | SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id GROUP BY T2.id HAVING COUNT(T1.games_id) >= 3 | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | What are the names of the characters voiced by Frank Welker? | Frank Welker refers to voice-actor = 'Frank Welker'; | SELECT character FROM `voice-actors` WHERE 'voice-actor' = 'Frank Welker' | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
public_review_platform | How many users have no followers in 2014? | in 2004 refers to user_yelping_since_year = 2004; no follower refers to user_fans = 'None' | SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year = 2004 AND user_fans LIKE 'None' | CREATE TABLE Attributes
(
attribute_name TEXT, --
attribute_id INTEGER constraint Attributes_pk primary key,
);
CREATE TABLE Elite
(
year_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0
constraint Elite_pk primary key (user_id, year_id),
user_id INTEGER constraint Elite_Users_user_id_fk references Users, --
);
CREATE TABLE Business_Hours
(
closing_time TEXT, --
business_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, --
day_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0
opening_time TEXT, --
constraint Business_Hours_pk primary key (business_id, day_id),
);
CREATE TABLE Categories
(
category_id INTEGER constraint Categories_pk primary key,
category_name TEXT, --
);
CREATE TABLE Business_Categories
(
business_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, --
category_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, --
constraint Business_Categories_pk primary key (business_id, category_id),
);
CREATE TABLE Tips
(
likes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0
user_id INTEGER constraint Tips_Users_user_id_fk references Users, --
tip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0
business_id INTEGER constraint Tips_Business_business_id_fk references Business, --
constraint Tips_pk primary key (business_id, user_id),
);
CREATE TABLE Reviews
(
business_id INTEGER constraint Reviews_Business_business_id_fk references Business, --
review_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0
constraint Reviews_pk primary key (business_id, user_id),
review_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
review_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
user_id INTEGER constraint Reviews_Users_user_id_fk references Users, --
review_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0
);
CREATE TABLE Checkins
(
label_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
day_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0
label_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0
label_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
business_id INTEGER constraint Checkins_Business_business_id_fk references Business, --
constraint Checkins_pk primary key (business_id, day_id),
label_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
label_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0
label_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0
);
CREATE TABLE Days
(
day_id INTEGER constraint Days_pk primary key,
day_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
);
CREATE TABLE Years
(
actual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0
year_id INTEGER constraint Years_pk primary key,
);
CREATE TABLE Business
(
business_id INTEGER constraint Business_pk primary key,
state TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0
city TEXT, --
active TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0
stars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0
review_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0
);
CREATE TABLE Business_Attributes
(
business_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, --
attribute_value TEXT, --
constraint Business_Attributes_pk primary key (attribute_id, business_id),
attribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, --
);
CREATE TABLE Users_Compliments
(
user_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, --
constraint Users_Compliments_pk primary key (compliment_id, user_id),
number_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0
compliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0
);
CREATE TABLE Compliments
(
compliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0
compliment_id INTEGER constraint Compliments_pk primary key,
);
CREATE TABLE Users
(
user_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0
user_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0
user_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0
user_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_id INTEGER constraint Users_pk primary key,
user_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
user_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0
); |
book_publishing_company | What's on the notes for the order happened on 1994/9/14? | order happened on refers to ord_date | SELECT T1.notes FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id WHERE STRFTIME('%Y-%m-%d', T2.ord_date) = '1994-09-14' | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
chicago_crime | Please list any three community areas with a population of more than 50,000. | population of more than 50000 refers to Population > 50000; community area refers to community_area_name | SELECT community_area_name FROM Community_Area WHERE population > 50000 LIMIT 3 | CREATE TABLE District
(
district_no INTEGER primary key,
email TEXT, --
phone TEXT, --
address TEXT, --
fax TEXT, --
district_name TEXT, --
tty TEXT, --
commander TEXT, --
zip_code INTEGER, --
twitter TEXT, --
);
CREATE TABLE Community_Area
(
population TEXT, --
side TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0
community_area_no INTEGER primary key,
community_area_name TEXT, --
);
CREATE TABLE Ward
(
ward_office_address TEXT, --
ward_office_zip TEXT, --
city_hall_office_phone TEXT, --
alderman_first_name TEXT, --
ward_no INTEGER primary key,
ward_email TEXT, --
ward_office_fax TEXT, --
alderman_last_name TEXT, --
Population INTEGER, --
alderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45
ward_office_phone TEXT, --
city_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0
city_hall_office_fax TEXT, --
);
CREATE TABLE IUCR
(
iucr_no TEXT primary key,
index_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0
primary_description TEXT, --
secondary_description TEXT, --
);
CREATE TABLE FBI_Code
(
description TEXT, --
fbi_code_no TEXT primary key,
crime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0
title TEXT, --
);
CREATE TABLE Neighborhood
(
foreign key (community_area_no) references Community_Area(community_area_no),
community_area_no INTEGER, --
neighborhood_name TEXT primary key,
);
CREATE TABLE Crime
(
case_number TEXT, --
longitude TEXT, --
foreign key (fbi_code_no) references FBI_Code(fbi_code_no),
fbi_code_no TEXT, --
date TEXT, --
arrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (community_area_no) references Community_Area(community_area_no),
location_description TEXT, --
latitude TEXT, --
block TEXT, --
ward_no INTEGER, --
domestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
district_no INTEGER, --
report_no INTEGER primary key,
iucr_no TEXT, --
foreign key (ward_no) references Ward(ward_no),
community_area_no INTEGER, --
foreign key (district_no) references District(district_no),
foreign key (iucr_no) references IUCR(iucr_no),
beat INTEGER, --
); |
world | List all the cities in the country where there is high life expectancy at birth. | high life expectancy at birth refers to MAX(LifeExpectancy); | SELECT T2.Name FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T1.LifeExpectancy DESC LIMIT 1 | CREATE TABLE Country
(
`Name` TEXT NOT NULL DEFAULT '', --
`SurfaceArea` REAL NOT NULL DEFAULT 0.00, --
`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0
`Population` INTEGER NOT NULL DEFAULT 0, --
`Code` TEXT NOT NULL DEFAULT '', --
`GNP` REAL DEFAULT NULL, --
`HeadOfState` TEXT DEFAULT NULL, --
`IndepYear` INTEGER DEFAULT NULL, --
`Capital` INTEGER DEFAULT NULL, --
`LifeExpectancy` REAL DEFAULT NULL, --
`Code2` TEXT NOT NULL DEFAULT '', --
PRIMARY KEY (`Code`),
`LocalName` TEXT NOT NULL DEFAULT '', --
`GovernmentForm` TEXT NOT NULL DEFAULT '', --
`Region` TEXT NOT NULL DEFAULT '', --
`GNPOld` REAL DEFAULT NULL, --
);
CREATE TABLE City
(
`Population` INTEGER NOT NULL DEFAULT 0, --
`District` TEXT NOT NULL DEFAULT '', --
`Name` TEXT NOT NULL DEFAULT '', --
`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`CountryCode` TEXT NOT NULL DEFAULT '', --
);
CREATE TABLE CountryLanguage
(
PRIMARY KEY (`CountryCode`,`Language`),
`Percentage` REAL NOT NULL DEFAULT 0.0, --
`Language` TEXT NOT NULL DEFAULT '', --
FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),
`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0
`CountryCode` TEXT NOT NULL DEFAULT '', --
); |
olympics | What is the NOC code of the region where the tallest male Olympic competitor is from? | NOC code of the region refers to noc; male refers to gender = 'M'; the tallest refers to MAX(height); | SELECT T1.noc FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.gender = 'M' ORDER BY T3.height DESC LIMIT 1 | CREATE TABLE event
(
event_name TEXT default NULL, --
sport_id INTEGER default NULL, --
foreign key (sport_id) references sport(id),
id INTEGER not null primary key,
);
CREATE TABLE sport
(
id INTEGER not null primary key,
sport_name TEXT default NULL, --
);
CREATE TABLE city
(
city_name TEXT default NULL, --
id INTEGER not null primary key,
);
CREATE TABLE games_city
(
city_id INTEGER default NULL, --
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
foreign key (city_id) references city(id),
);
CREATE TABLE competitor_event
(
foreign key (event_id) references event(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (competitor_id) references games_competitor(id),
foreign key (medal_id) references medal(id),
medal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0
event_id INTEGER default NULL, --
competitor_id INTEGER default NULL, --
);
CREATE TABLE person
(
weight INTEGER default NULL, --
height INTEGER default NULL, --
id INTEGER not null primary key,
full_name TEXT default NULL, --
gender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
);
CREATE TABLE noc_region
(
region_name TEXT default NULL, --
id INTEGER not null primary key,
noc TEXT default NULL, --
);
CREATE TABLE medal
(
id INTEGER not null primary key,
medal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0
);
CREATE TABLE person_region
(
foreign key (region_id) references noc_region(id),
region_id INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
);
CREATE TABLE games
(
season TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0
id INTEGER not null primary key,
games_name TEXT default NULL, --
games_year INTEGER default NULL, --
);
CREATE TABLE games_competitor
(
id INTEGER not null primary key,
foreign key (games_id) references games(id),
games_id INTEGER default NULL, --
age INTEGER default NULL, --
foreign key (person_id) references person(id),
person_id INTEGER default NULL, --
); |
disney | How many movies did Wolfgang Reitherman direct? | Wolfgang Reitherman refers director = 'Wolfgang Reitherman'; | SELECT COUNT(name) FROM director WHERE director = 'Wolfgang Reitherman' | CREATE TABLE movies_total_gross
(
MPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0
release_date TEXT, --
total_gross TEXT, --
foreign key (movie_title) references characters(movie_title),
movie_title TEXT, --
genre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0
inflation_adjusted_gross TEXT, --
primary key (movie_title, release_date),
);
CREATE TABLE voice-actors
(
movie TEXT, --
foreign key (movie) references characters(movie_title),
character TEXT primary key,
"voice-actor" TEXT, --
);
CREATE TABLE director
(
director TEXT, --
name TEXT primary key,
foreign key (name) references characters(movie_title),
);
CREATE TABLE characters
(
villian TEXT, --
hero TEXT, --
foreign key (hero) references "voice-actors"(character),
release_date TEXT, --
song TEXT, --
movie_title TEXT primary key,
);
CREATE TABLE revenue
(
Year INTEGER primary key,
"Disney Consumer Products[NI 2]" REAL, --
Total INTEGER, --
"Studio Entertainment[NI 1]" REAL, --
"Disney Media Networks" TEXT, --
"Walt Disney Parks and Resorts" REAL, --
"Disney Interactive[NI 3][Rev 1]" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14
); |
book_publishing_company | What's Pedro S Afonso's job title? | job title means job description which refers to job_desc | SELECT T2.job_desc FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.fname = 'Pedro' AND T1.minit = 'S' AND T1.lname = 'Afonso' | CREATE TABLE jobs
(
max_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0
job_desc TEXT not null, -- Example Values: `New Hire - Job not specified`, `Chief Executive Officer`, `Business Operations Manager`, `Chief Financial Officier`, `Publisher` | Value Statics: Total count 14 - Distinct count 14 - Null count 0
min_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0
job_id INTEGER primary key,
);
CREATE TABLE titles
(
title_id TEXT primary key,
advance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2
pubdate DATETIME not null, -- Example Values: `1991-06-12 00:00:00.0`, `1991-06-09 00:00:00.0`, `1991-06-30 00:00:00.0`, `1991-06-22 00:00:00.0`, `1991-06-18 00:00:00.0` | Value Statics: Total count 18 - Distinct count 10 - Null count 0
ytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2
price REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2
notes TEXT, -- Example Values: `An overview of available database systems with emphasis on common business applications. Illustrated.`, `Helpful hints on how to use your electronic resources to the best advantage.`, `The latest medical and psychological techniques for living with the electronic office. Easy-to-understand explanations.`, `Annotated analysis of what computers can do for you: a no-hype guide for the critical user.`, `Favorite recipes for quick, easy, and elegant meals.` | Value Statics: Total count 17 - Distinct count 17 - Null count 1
title TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Sheets`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0
royalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2
type TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0
pub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
);
CREATE TABLE employee
(
job_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0
minit TEXT, --
job_lvl INTEGER, --
foreign key (job_id) references jobs(job_id) on update cascade on delete cascade,
emp_id TEXT primary key,
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0
lname TEXT not null, --
fname TEXT not null, --
hire_date DATETIME not null, --
);
CREATE TABLE publishers
(
country TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0
state TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2
city TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_name TEXT, -- Example Values: `New Moon Books`, `Binnet & Hardley`, `Algodata Infosystems`, `Five Lakes Publishing`, `Ramona Publishers` | Value Statics: Total count 8 - Distinct count 8 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE pub_info
(
logo BLOB, -- Example Values: `0x4749463839618B002F00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E66DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F666A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15CC58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D28DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC31D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CEDEE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B018800003B`, `0x474946383961C2001D00B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35CFA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B7566B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E211081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C2683368349D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D478C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787119390AB5806C74E1100003B`, `0x474946383961F5003400B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000F50034004004FFF0C949ABBD38EBCDBBFF60288E64D90166AA016CEBBEB02ACF746D67E82DC2ACEEFFC0A02997B31027C521EF25698D8E42230E049D3E8AD8537385BC4179DB6B574C26637BE58BF38A1EB393DF2CE55CA52731F77918BE9FAFCD6180817F697F5F6E6C7A836D62876A817A79898A7E31524D708E7299159C9456929F9044777C6575A563A68E827D9D4C8D334BB3B051B6B7B83A8490B91EB4B3BDC1C251A1C24BC3C8C9C8C5C4BFCCCAD0D135ACC36B2E3BBCB655AD1CDB8F6921DEB8D48AA9ADA46046D7E0DC829B9D98E9988878D9AAE5AEF875BC6DEFF7E7A35C9943F18CCA3175C0A4295C48625F3B8610234A0C17D159C289189515CC7531A3C7891BFF9B59FA4812634820F24AAA94882EA50D8BBB3E8813598B8A3D7C0D6F12CB8710E5BA7536D9ED3C458F8B509CF17CE94CEA658F254D944889528306E83C245089629DDA4F8BD65885049ACBB7ADAB2A5364AFDAF344902752409A6085FA39105EBB3C2DAB2E52FA8611B7ACFA060956CB1370598176DB3E74FB956CCCA77207BB6B8CAAAADEA3FFBE01A48CD871D65569C37E25A458C5C9572E57AADE59F7F40A98B456CB36560F730967B3737B74ADBBB7EFDABF830BE70B11F6C8E1C82F31345E33B9F3A5C698FB7D4E9D779083D4B313D7985ABB77E0C9B07F1F0F3EFA71F2E8ED56EB98BEBD7559306FC72C6995EA7499F3B5DDA403FF17538AB6FD20C9FF7D463D531681971888E0104E45069D7C742D58DB7B29B45454811B381420635135B5D838D6E487612F876D98D984B73D2820877DFD871523F5E161D97DD7FCB4C82E31BEC8176856D9D8487D95E1E5D711401AE2448EF11074E47E9D69359382E8A8871391880C28E5861636399950FEFCA55E315D8279255C2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E410E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E367999656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688CCC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B40875D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F351100003B`, `0x474946383961E3002500B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C00000000E30025004004FFF0C949ABBD38EBCDBBFF60288E240858E705A4D2EA4E6E0CC7324DD1EB9CDBBAFCE1AC878DE7ABBD84476452C963369F2F288E933A595B404DB27834E67A5FEC37ACEC517D4EB24E5C8D069966361A5E8ED3C3DCA5AA54B9B2AE2D423082817F848286898386858754887B8A8D939094947E918B7D8780959E9D817C18986FA2A6A75A7B22A59B378E1DACAEB18F1940B6A8B8A853727AB5BD4E76676A37BFB9AF2A564D6BC0776E635BCE6DCFD2C3C873716879D4746C6053DA76E0DAB3A133D6D5B290929F9CEAEDEB6FA0C435EF9E97F59896EC28EEFA9DFF69A21C1BB4CA1E3E63084DB42B970FD6407D05C9E59298B0A2C58B18337AA0E88DA3468DC3FFD0692187A7982F5F2271B152162DE54795CEB0F0DAF8EBDA2A932F1FF203B38C484B6ED07674194ACD639679424B4EDB36279B4D3852FE1095266743955138C5209ADA6D5CB26DCDFC644DD351EACF804BCD32421A562DB6965F25AADD11B056BD7BA436C903E82A1D4A3D024769BAE777B0BB7887F51A0E022E9589BCFCE0DD6527597223C4917502ACBCF8D5E6C49F0B6FA60751A7C2748A3EE7DD6B70B5628F9A5873C6DB5936E57EB843C726043B95EBDE394F3584EC7096ED8DA60D86001EBCB9F3E72F99439F0E7DEC7297BA84D9924EFDB11A65566B8EFB510C7CC258DBB7779F7834A9756E6C97D114F95E5429F13CE5F7F9AAF51C996928604710FF544AFDC79717C10CD85157C6EDD75F7EB49C81D45C5EA9674E5BBBA065941BFB45F3D62D5E99E11488516568A15D1292255F635E8045E0520F3E15A0798DB5C5A08105EE52E3884C05255778E6F5C4A287CCB4D84D1D41CE08CD913C56656482EAEDE8E38D71B974553C199EC324573C3669237C585588E52D1ACE049F85521648659556CD83445D27C9F4D68501CE580E31748ED4948C0E3E88959B257C87E39D0A8EC5D812559234996A9EE5B6E864FE31BA5262971DE40FA5B75D9A487A9A79975C6AB5DD06EA6CCA9DB94FA6A1568AD8A4C33DBA6A5995EE5450AC0AA24A9C6DBAE9F6883CB48976D0ABA8D90AA9A88D6246C2ABA3FE8A1B43CA229B9C58AFC11E071AB1D1BE366DB5C9AE85DCA48595466B83AC95C61DA60D1146EEB3BB817ADA40A08CFBDBB2EB9972EB6EDB66D26D71768D5B2B1FEFC65B11AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B`, `0x4749463839615D002200B30F00000000800000008000808000000080800080008080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F9040100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C249895A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA4245A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC4772526748F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3A789004400003B` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
foreign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,
pr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C. This is sample text data for Binnet & Hardley, publisher 0877 in the pubs database. Binnet & Hardley is located in Washington, D.C.`, `This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California. This is sample text data for Algodata Infosystems, publisher 1389 in the pubs database. Algodata Infosystems is located in Berkeley, California.`, `This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois. This is sample text data for Five Lakes Publishing, publisher 1622 in the pubs database. Five Lakes Publishing is located in Chicago, Illinois.`, `This is sample text data for Ramona Publishers, publisher 1756 in the pubs database. Ramona Publishers is located in Dallas, Texas.`, `This is sample text data for GGG&G, publisher 9901 in the pubs database. GGG&G is located in München, Germany.` | Value Statics: Total count 7 - Distinct count 7 - Null count 0
pub_id TEXT primary key,
);
CREATE TABLE titleauthor
(
foreign key (au_id) references authors(au_id) on update cascade on delete cascade,
primary key (au_id, title_id),
foreign key (title_id) references titles (title_id) on update cascade on delete cascade,
au_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0
royaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0
au_id TEXT not null, -- Example Values: `172-32-1176`, `213-46-8915`, `238-95-7766`, `267-41-2394`, `274-80-9391` | Value Statics: Total count 25 - Distinct count 19 - Null count 0
title_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0
);
CREATE TABLE stores
(
city TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_name TEXT, -- Example Values: `Eric the Read Books`, `Barnum's`, `News & Brews`, `Doc-U-Mat: Quality Laundry and Books`, `Fricative Bookshop` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
stor_address TEXT, -- Example Values: `788 Catamaugus Ave.`, `567 Pasadena Ave.`, `577 First St.`, `24-A Avogadro Way`, `89 Madison St.` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
zip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0
state TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0
stor_id TEXT primary key,
);
CREATE TABLE authors
(
address TEXT, --
city TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0
au_fname TEXT not null, --
state TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0
phone TEXT not null, --
contract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0
au_lname TEXT not null, --
au_id TEXT primary key,
zip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0
);
CREATE TABLE roysched
(
title_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0
hirange INTEGER, --
royalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0
lorange INTEGER, --
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
);
CREATE TABLE discounts
(
highqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
discounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
stor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
lowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
discount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE sales
(
ord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
payterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0
ord_date DATETIME not null, -- Example Values: `1994-09-14 00:00:00.0`, `1994-09-13 00:00:00.0`, `1993-05-24 00:00:00.0`, `1992-06-15 00:00:00.0`, `1993-05-29 00:00:00.0` | Value Statics: Total count 21 - Distinct count 10 - Null count 0
stor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0
primary key (stor_id, ord_num, title_id),
foreign key (stor_id) references stores(stor_id) on update cascade on delete cascade,
title_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0
qty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0
foreign key (title_id) references titles(title_id) on update cascade on delete cascade,
); |
movie_platform | How many more movie lists were created by the user who created the movie list "250 Favourite Films"? | 250 Favourite Films refers to list_title; | SELECT COUNT(list_id) FROM lists_users WHERE user_id = ( SELECT user_id FROM lists WHERE list_title = '250 Favourite Films' ) | CREATE TABLE ratings_users
(
user_cover_image_url TEXT, --
user_avatar_image_url TEXT, --
rating_date_utc TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_id INTEGER references lists_users (user_id), --
);
CREATE TABLE movies
(
director_name TEXT, --
movie_title TEXT, --
director_id TEXT, --
movie_image_url TEXT, --
movie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0
director_url TEXT, --
movie_popularity INTEGER, --
movie_url TEXT, --
movie_release_year INTEGER, --
movie_id INTEGER not null primary key,
);
CREATE TABLE lists
(
list_creation_timestamp_utc TEXT, --
list_third_image_url TEXT, --
list_cover_image_url TEXT, --
list_description TEXT, --
list_movie_number INTEGER, --
list_first_image_url TEXT, --
user_id INTEGER references lists_users (user_id), --
list_title TEXT, --
list_comments INTEGER, --
list_second_image_url TEXT, --
list_update_timestamp_utc TEXT, --
list_id INTEGER not null primary key,
list_url TEXT, --
list_followers INTEGER, --
);
CREATE TABLE lists_users
(
list_update_date_utc TEXT, --
user_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
foreign key (list_id) references lists(list_id),
foreign key (user_id) references lists(user_id),
user_avatar_image_url TEXT, --
user_cover_image_url TEXT, --
primary key (user_id, list_id),
user_id INTEGER not null, --
user_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
list_id INTEGER not null, --
list_creation_date_utc TEXT, --
);
CREATE TABLE ratings
(
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
movie_id INTEGER, --
rating_url TEXT, --
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (rating_id) references ratings(rating_id),
critic TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (movie_id) references movies(movie_id),
foreign key (user_id) references lists_users(user_id),
foreign key (user_id) references lists_users(user_id),
rating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269
critic_likes INTEGER, --
foreign key (user_id) references ratings_users(user_id),
foreign key (user_id) references ratings_users(user_id),
rating_id INTEGER, --
rating_timestamp_utc TEXT, --
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
critic_comments INTEGER, --
user_id INTEGER, --
); |
movie_platform | What's of rating on the movie "Innocence Unprotected" by the user who created the movie list "250 Favourite Films"? | Innocence Unprotected' is movie_title; '250 Favourite Films' is list_title; rating refers to rating_score; | SELECT T1.rating_score FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T2.movie_title = 'Innocence Unprotected' AND T3.list_title = '250 Favourite Films' | CREATE TABLE ratings_users
(
user_cover_image_url TEXT, --
user_avatar_image_url TEXT, --
rating_date_utc TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_id INTEGER references lists_users (user_id), --
);
CREATE TABLE movies
(
director_name TEXT, --
movie_title TEXT, --
director_id TEXT, --
movie_image_url TEXT, --
movie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0
director_url TEXT, --
movie_popularity INTEGER, --
movie_url TEXT, --
movie_release_year INTEGER, --
movie_id INTEGER not null primary key,
);
CREATE TABLE lists
(
list_creation_timestamp_utc TEXT, --
list_third_image_url TEXT, --
list_cover_image_url TEXT, --
list_description TEXT, --
list_movie_number INTEGER, --
list_first_image_url TEXT, --
user_id INTEGER references lists_users (user_id), --
list_title TEXT, --
list_comments INTEGER, --
list_second_image_url TEXT, --
list_update_timestamp_utc TEXT, --
list_id INTEGER not null primary key,
list_url TEXT, --
list_followers INTEGER, --
);
CREATE TABLE lists_users
(
list_update_date_utc TEXT, --
user_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
foreign key (list_id) references lists(list_id),
foreign key (user_id) references lists(user_id),
user_avatar_image_url TEXT, --
user_cover_image_url TEXT, --
primary key (user_id, list_id),
user_id INTEGER not null, --
user_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
list_id INTEGER not null, --
list_creation_date_utc TEXT, --
);
CREATE TABLE ratings
(
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
movie_id INTEGER, --
rating_url TEXT, --
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (rating_id) references ratings(rating_id),
critic TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (movie_id) references movies(movie_id),
foreign key (user_id) references lists_users(user_id),
foreign key (user_id) references lists_users(user_id),
rating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269
critic_likes INTEGER, --
foreign key (user_id) references ratings_users(user_id),
foreign key (user_id) references ratings_users(user_id),
rating_id INTEGER, --
rating_timestamp_utc TEXT, --
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
critic_comments INTEGER, --
user_id INTEGER, --
); |
movie_platform | What's the average rating score of the movie "A Way of Life"? | A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id)); | SELECT AVG(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' | CREATE TABLE ratings_users
(
user_cover_image_url TEXT, --
user_avatar_image_url TEXT, --
rating_date_utc TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_id INTEGER references lists_users (user_id), --
);
CREATE TABLE movies
(
director_name TEXT, --
movie_title TEXT, --
director_id TEXT, --
movie_image_url TEXT, --
movie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0
director_url TEXT, --
movie_popularity INTEGER, --
movie_url TEXT, --
movie_release_year INTEGER, --
movie_id INTEGER not null primary key,
);
CREATE TABLE lists
(
list_creation_timestamp_utc TEXT, --
list_third_image_url TEXT, --
list_cover_image_url TEXT, --
list_description TEXT, --
list_movie_number INTEGER, --
list_first_image_url TEXT, --
user_id INTEGER references lists_users (user_id), --
list_title TEXT, --
list_comments INTEGER, --
list_second_image_url TEXT, --
list_update_timestamp_utc TEXT, --
list_id INTEGER not null primary key,
list_url TEXT, --
list_followers INTEGER, --
);
CREATE TABLE lists_users
(
list_update_date_utc TEXT, --
user_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
foreign key (list_id) references lists(list_id),
foreign key (user_id) references lists(user_id),
user_avatar_image_url TEXT, --
user_cover_image_url TEXT, --
primary key (user_id, list_id),
user_id INTEGER not null, --
user_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
list_id INTEGER not null, --
list_creation_date_utc TEXT, --
);
CREATE TABLE ratings
(
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
movie_id INTEGER, --
rating_url TEXT, --
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (rating_id) references ratings(rating_id),
critic TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (movie_id) references movies(movie_id),
foreign key (user_id) references lists_users(user_id),
foreign key (user_id) references lists_users(user_id),
rating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269
critic_likes INTEGER, --
foreign key (user_id) references ratings_users(user_id),
foreign key (user_id) references ratings_users(user_id),
rating_id INTEGER, --
rating_timestamp_utc TEXT, --
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
critic_comments INTEGER, --
user_id INTEGER, --
); |
movie_platform | How much higher is the average rating score of the movie "Innocence Unprotected" than the movie "When Will I Be Loved"? | Innocence Unprotected' and 'When Will I Be Loved' are movie_title; Average rating score = Divide(Sum(rating_score), Count(rating_id)); | SELECT SUM(CASE WHEN T2.movie_title = 'Innocence Unprotected' THEN T1.rating_score ELSE 0 END) / SUM(CASE WHEN T2.movie_title = 'Innocence Unprotected' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.movie_title = 'When Will I Be Loved' THEN T1.rating_score ELSE 0 END) / SUM(CASE WHEN T2.movie_title = 'When Will I Be Loved' THEN 1 ELSE 0 END) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id | CREATE TABLE ratings_users
(
user_cover_image_url TEXT, --
user_avatar_image_url TEXT, --
rating_date_utc TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_id INTEGER references lists_users (user_id), --
);
CREATE TABLE movies
(
director_name TEXT, --
movie_title TEXT, --
director_id TEXT, --
movie_image_url TEXT, --
movie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0
director_url TEXT, --
movie_popularity INTEGER, --
movie_url TEXT, --
movie_release_year INTEGER, --
movie_id INTEGER not null primary key,
);
CREATE TABLE lists
(
list_creation_timestamp_utc TEXT, --
list_third_image_url TEXT, --
list_cover_image_url TEXT, --
list_description TEXT, --
list_movie_number INTEGER, --
list_first_image_url TEXT, --
user_id INTEGER references lists_users (user_id), --
list_title TEXT, --
list_comments INTEGER, --
list_second_image_url TEXT, --
list_update_timestamp_utc TEXT, --
list_id INTEGER not null primary key,
list_url TEXT, --
list_followers INTEGER, --
);
CREATE TABLE lists_users
(
list_update_date_utc TEXT, --
user_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
foreign key (list_id) references lists(list_id),
foreign key (user_id) references lists(user_id),
user_avatar_image_url TEXT, --
user_cover_image_url TEXT, --
primary key (user_id, list_id),
user_id INTEGER not null, --
user_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
list_id INTEGER not null, --
list_creation_date_utc TEXT, --
);
CREATE TABLE ratings
(
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
movie_id INTEGER, --
rating_url TEXT, --
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (rating_id) references ratings(rating_id),
critic TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (movie_id) references movies(movie_id),
foreign key (user_id) references lists_users(user_id),
foreign key (user_id) references lists_users(user_id),
rating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269
critic_likes INTEGER, --
foreign key (user_id) references ratings_users(user_id),
foreign key (user_id) references ratings_users(user_id),
rating_id INTEGER, --
rating_timestamp_utc TEXT, --
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
critic_comments INTEGER, --
user_id INTEGER, --
); |
movie_platform | Please list the movies rated by the user who created the movie list "250 Favourite Films". | 250 Favourite Films' is list_title; movies refers to movie_title; | SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T3.list_title = '250 Favourite Films' | CREATE TABLE ratings_users
(
user_cover_image_url TEXT, --
user_avatar_image_url TEXT, --
rating_date_utc TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_id INTEGER references lists_users (user_id), --
);
CREATE TABLE movies
(
director_name TEXT, --
movie_title TEXT, --
director_id TEXT, --
movie_image_url TEXT, --
movie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0
director_url TEXT, --
movie_popularity INTEGER, --
movie_url TEXT, --
movie_release_year INTEGER, --
movie_id INTEGER not null primary key,
);
CREATE TABLE lists
(
list_creation_timestamp_utc TEXT, --
list_third_image_url TEXT, --
list_cover_image_url TEXT, --
list_description TEXT, --
list_movie_number INTEGER, --
list_first_image_url TEXT, --
user_id INTEGER references lists_users (user_id), --
list_title TEXT, --
list_comments INTEGER, --
list_second_image_url TEXT, --
list_update_timestamp_utc TEXT, --
list_id INTEGER not null primary key,
list_url TEXT, --
list_followers INTEGER, --
);
CREATE TABLE lists_users
(
list_update_date_utc TEXT, --
user_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
foreign key (list_id) references lists(list_id),
foreign key (user_id) references lists(user_id),
user_avatar_image_url TEXT, --
user_cover_image_url TEXT, --
primary key (user_id, list_id),
user_id INTEGER not null, --
user_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
list_id INTEGER not null, --
list_creation_date_utc TEXT, --
);
CREATE TABLE ratings
(
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
movie_id INTEGER, --
rating_url TEXT, --
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (rating_id) references ratings(rating_id),
critic TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (movie_id) references movies(movie_id),
foreign key (user_id) references lists_users(user_id),
foreign key (user_id) references lists_users(user_id),
rating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269
critic_likes INTEGER, --
foreign key (user_id) references ratings_users(user_id),
foreign key (user_id) references ratings_users(user_id),
rating_id INTEGER, --
rating_timestamp_utc TEXT, --
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
critic_comments INTEGER, --
user_id INTEGER, --
); |
movie_platform | What's the percentage of the users who have rated "1" on the movie "When Will I Be Loved"? | When Will I Be Loved' is movie_title; rated 1 refers to rating_score = 1; percentage = Divide(Count(rating_id where rating_score = 1),Count(rating_id)) *100; | SELECT CAST(SUM(CASE WHEN T1.rating_score = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' | CREATE TABLE ratings_users
(
user_cover_image_url TEXT, --
user_avatar_image_url TEXT, --
rating_date_utc TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
user_id INTEGER references lists_users (user_id), --
);
CREATE TABLE movies
(
director_name TEXT, --
movie_title TEXT, --
director_id TEXT, --
movie_image_url TEXT, --
movie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0
director_url TEXT, --
movie_popularity INTEGER, --
movie_url TEXT, --
movie_release_year INTEGER, --
movie_id INTEGER not null primary key,
);
CREATE TABLE lists
(
list_creation_timestamp_utc TEXT, --
list_third_image_url TEXT, --
list_cover_image_url TEXT, --
list_description TEXT, --
list_movie_number INTEGER, --
list_first_image_url TEXT, --
user_id INTEGER references lists_users (user_id), --
list_title TEXT, --
list_comments INTEGER, --
list_second_image_url TEXT, --
list_update_timestamp_utc TEXT, --
list_id INTEGER not null primary key,
list_url TEXT, --
list_followers INTEGER, --
);
CREATE TABLE lists_users
(
list_update_date_utc TEXT, --
user_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
user_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
foreign key (list_id) references lists(list_id),
foreign key (user_id) references lists(user_id),
user_avatar_image_url TEXT, --
user_cover_image_url TEXT, --
primary key (user_id, list_id),
user_id INTEGER not null, --
user_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0
list_id INTEGER not null, --
list_creation_date_utc TEXT, --
);
CREATE TABLE ratings
(
user_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
movie_id INTEGER, --
rating_url TEXT, --
user_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (rating_id) references ratings(rating_id),
critic TEXT, --
user_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
foreign key (movie_id) references movies(movie_id),
foreign key (user_id) references lists_users(user_id),
foreign key (user_id) references lists_users(user_id),
rating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269
critic_likes INTEGER, --
foreign key (user_id) references ratings_users(user_id),
foreign key (user_id) references ratings_users(user_id),
rating_id INTEGER, --
rating_timestamp_utc TEXT, --
user_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0
critic_comments INTEGER, --
user_id INTEGER, --
); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.