db_id stringclasses 66 values | question stringlengths 24 325 | evidence stringlengths 1 673 ⌀ | gold_query stringlengths 23 804 | db_schema stringclasses 66 values |
|---|---|---|---|---|
olympics | In which Olympic Games have the largest number of women participation? | the largest number of women participation refers to MAX(COUNT(gender = 'F')); In which Olympic Games refer to games_year; | SELECT T1.games_name 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 WHERE T3.gender = 'F' GROUP BY T1.games_name ORDER BY COUNT(T2.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 | Among the movies directed by Wolfgang Reitherman, how many of them were released in December? | Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec'; | SELECT COUNT(movie_title) FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE SUBSTR(release_date, INSTR(release_date, '-') + 1, 3) = 'Dec' AND T2.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 is the publisher's information of New Moon Books? | publisher name refers to pub_name; New Moon Books is a publisher name | SELECT T1.pr_info FROM pub_info AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.pub_name = 'New Moon Books' | 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 incidents are considered "severe" in the IUCR classification? | severe refers to index_code = 'I'; incidents refers to iucr_no | SELECT 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 | What are the districts that belong to the country with the largest surface area? | largest surface area refers to MAX(SurfaceArea); | SELECT T1.District FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Name = ( SELECT Name FROM Country ORDER BY SurfaceArea 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 '', --
); |
public_review_platform | List the active business ID and its stars of the businesses fall under the category of Pets. | active business refers to active = 'true'; 'Pets' is the category_name | 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 'Pets' | 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 | Name all the authors for 'Sushi, Anyone?'. | most year to date sales refers to MAX(ytd_sales); on contract refers to contract = 1; name of author = au_fname, au_lname | SELECT T3.au_fname, T3.au_lname FROM titles AS T1 INNER JOIN titleauthor AS T2 ON T1.title_id = T2.title_id INNER JOIN authors AS T3 ON T2.au_id = T3.au_id WHERE T1.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 | How many incidents have the general description of "ASSAULT" in the IUCR classification? | general description refers to primary_description; 'ASSAULT' is the primary_description; incidents refers to iucr_no | SELECT COUNT(*) FROM IUCR WHERE primary_description = 'ASSAULT' | 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 | How many languages are there in the country where Tocantins district belongs? | null | SELECT COUNT(DISTINCT T2.Language) FROM City AS T1 INNER JOIN CountryLanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.District = 'Tocantins' | 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 | How many sales people managed to sell Headlights - Weatherproof? | Headlights - Weatherproof' is name of product | SELECT COUNT(T2.SalesPersonID) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Headlights - Weatherproof' | 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 males from Belgium have participated in an Olympic Games? | males refer to gender = 'M'; Belgium refers to region_name = 'Belgium'; | SELECT COUNT(T2.person_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 = 'Belgium' 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 | What is the genre of the movie whose villain is Commander Rourke? | FALSE; | SELECT T2.genre FROM characters AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.movie_title WHERE T1.villian = 'Commander Rourke' | 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 Yelp_Business in Anthem are under the category of "Food"? | in Anthem refers to city = 'Anthem'; the category of "Food" refers to category_name = 'Food' | SELECT COUNT(T3.business_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name LIKE 'Food' AND T3.city LIKE 'Anthem' | 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 publishers are in the USA? | null | SELECT COUNT(pub_id) FROM publishers WHERE country = 'USA' | 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 ward ID of the most crowded ward? | most crowded ward refers to Max(Population) | SELECT ward_no FROM Ward ORDER BY Population DESC LIMIT 1 | 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 average surface area of all countries? | average surface area = AVG(SurfaceArea); | SELECT AVG(SurfaceArea) FROM Country | 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 the name of the sales person with employee ID 7. | name of the sales person = FirstName, MiddleInitial, LastName; | SELECT FirstName, MiddleInitial, LastName FROM Employees WHERE EmployeeID = 7 | 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 competitor who has won the most medals? | name of the competitor refers to full_name; won the most medals refer to MAX(COUNT(medal_id)); | SELECT T1.full_name 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 T4.id != 4 GROUP BY T1.full_name ORDER BY COUNT(T4.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 | Please list the movies directed by Wolfgang Reitherman that can be watched by the general audience. | directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; movies refer to movie_title; general audience refers to MPAA_rating = 'G'; | SELECT T1.movie_title FROM `movies_total_gross` AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.MPAA_rating = 'G' AND T2.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
); |
public_review_platform | Count the active businesses that has an attribute of Wi-Fi with medium review count. | active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium' | SELECT COUNT(T1.business_id) 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 T3.attribute_name LIKE 'Wi-Fi' AND T1.active LIKE 'TRUE' AND T1.review_count LIKE 'Medium' | 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 highest level of job to get to for the employee who got hired the earliest? | highest job level refers to MAX(job_lvl); hired the earliest refers to MIN(hire_date) | SELECT T2.max_lvl FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id ORDER BY T1.hire_date 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 full name of the alderman of ward no.21? | full name of alderman refers to alderman_first_name, alderman_last_name, alderman_name_suffix | SELECT alderman_first_name, alderman_last_name, alderman_name_suffix FROM Ward WHERE ward_no = 21 | 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 | How many countries have no GNP? | no GNP refers to GNP = 0; | SELECT COUNT(*) FROM Country WHERE GNP = 0 | 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 | How many sales transactions were given by the customer named Joe L. Lopez? | sales transactions refers to SalesID; | SELECT COUNT(T1.SalesID) FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.FirstName = 'Joe' AND T2.MiddleInitial = 'L' AND T2.LastName = 'Lopez' | 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 | Which sport does the event "Shooting Women's Trap" belong to? | sport refers to sport_name; event "Shooting Women's Trap" refers to event_name = 'Shooting Women''s Trap'; | SELECT T1.sport_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T2.event_name LIKE 'Shooting Women%s Trap' | 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 movie which the song "I Thought I Lost You" is associated with. | name of the movie refers to movie_title; | SELECT movie_title FROM characters WHERE song = 'I Thought I Lost You' | 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 | In users yelping since 2011 to 2013, how many of them have high count of fans? | In users yelping since 2011 to 2013 refers to user_yelping_since_year > = 2011 AND user_yelping_since_year < 2014 | SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year BETWEEN 2011 AND 2013 AND user_fans 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 | List all titles which have year to date sales higher than the average order by pubisher name. | year to date sales refers to ytd_sales; average order = AVG(ytd_sales) | SELECT T1.title FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.ytd_sales > ( SELECT AVG(ytd_sales) FROM titles ) | 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 | Among the crimes happened in the neighborhood called "Avalon Park", what is the percentage of crimes that happened inside the house? | "Avalon Park" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100 | SELECT CAST(SUM(CASE WHEN T2.location_description = 'HOUSE' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.location_description) AS persent FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN Neighborhood AS T3 ON T2.community_area_no = T3.community_area_no WHERE T3.neighborhood_name = 'Avalon Park' | 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 year of independence of Brunei? | year of independence refers to IndepYear; Brunei is a name of country; | SELECT IndepYear FROM Country WHERE Name = 'Brunei' | 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 | How many sales people are handling all the customers? | null | SELECT COUNT(EmployeeID) FROM Employees | 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 was the medal that Coleen Dufresne got? | What medal refers to medal_name; | SELECT T4.medal_name 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 = 'Coleen Dufresne (-Stewner)' | 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, --
); |
book_publishing_company | Please list the first names of the employees who work as Managing Editor. | Managing Editor is a job description which refers to job_desc | SELECT T1.fname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T2.job_desc = 'Managing Editor' | 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 | List down the report number of crimes associated with the district commander named Jill M. Stevens. | report number refers report_no; 'Jill M. Stevens" is the commander | SELECT SUM(CASE WHEN T1.commander = 'Jill M. Stevens' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_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 country has the largest surface area? | largest surface area refers to MAX(SurfaceArea); | SELECT Name FROM Country ORDER BY SurfaceArea 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 | For how many times has London held the Olympic games? | London refers to city_name = 'London'; how many times refer to COUNT(games_id); | SELECT COUNT(T1.games_id) FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T2.city_name = 'London' | 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 villain of the movie "Beauty and the Beast"? | Beauty and the Beast refers to movie_title = 'Beauty and the Beast'; | SELECT villian FROM characters WHERE movie_title = 'Beauty and the Beast' | 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 the business with short review length and highest review stars within business ID from 5 t0 10? | short review length refers to review_length = 'Short'; highest review stars refers to Max(review_stars); business ID from 5 to 10 refers to business_id BETWEEN 5 AND 10; category of business refers to category_name | SELECT T4.category_name FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T1.review_length LIKE 'Short' AND T2.business_id BETWEEN 5 AND 10 ORDER BY T1.review_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
); |
book_publishing_company | What is the price of the book that sells the best? | qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty) | SELECT T2.price FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id ORDER BY T1.qty 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 FBI description of the crime for report number 23778? | "23778" is the report_no; FBI description refers to description | SELECT T1.description FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T2.report_no = 23843 | 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 | Provide the district of the city with a population of 201843. | null | SELECT District FROM City WHERE population = 201843 | 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 | List out the root beers bought by Tim Ocel and Dawn Childress. | FALSE; | SELECT T2.RootBeerID FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T2.CustomerID = T1.CustomerID WHERE (T1.First = 'Tim' AND T1.Last = 'Ocel') OR (T1.First = 'Dawn' AND T1.Last = 'Childress') | 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 | Tell the number of swimming related events. | swimming refers to sport_name = 'Swimming'; | SELECT COUNT(T2.event_name) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Swimming' | 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 | Please list the villains of all the movies directed by Wolfgang Reitherman. | Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; | SELECT T2.villian FROM director AS T1 INNER JOIN characters AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Wolfgang Reitherman' AND T2.villian IS NOT NULL | 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 active businesses are located at Phoenix, Arizona? | active business refers to active = 'true'; 'Phoenix' is the city | SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Phoenix' AND 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 | Name the neighborhood of the community area in crime with report number 23843? | neighborhood refers to neighborhood_name; '23778' is the report_no | SELECT T3.neighborhood_name FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN Neighborhood AS T3 ON T2.community_area_no = T3.community_area_no WHERE T2.report_no = 23778 | 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 city has the highest population? | highest population refers to MAX(Population); | SELECT Name FROM City 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 | Among all the customers who have purchased ML Bottom Bracket, identify the percentage of sales by Albert I. Ringer? | ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0); | SELECT CAST(SUM(IIF(T3.FirstName = 'Albert' AND T3.MiddleInitial = 'I' AND T3.LastName = 'Ringer', 1, 0)) AS REAL) * 100 / COUNT(T2.CustomerID) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID WHERE T1.Name = 'ML Bottom Bracket' | 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 | For Peter Kohnke, show the name of his/her region. | name of his/her 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 = 'Peter Kohnke' | 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 | Among the active businesses located at Mesa, AZ, list the category and attributes of business with a low review count. | active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name | 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 WHERE T1.review_count = 'Low' AND T1.city = 'Mesa' AND T1.active = 'true' AND T1.state = '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 | Among the stores that have ordered the book "Life Without Fear", how many of them are located in Massachusetts? | Massachusetts is a state | SELECT COUNT(T1.stor_id) 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' | 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 neighborhood name in the community area of Lake View? | "Lake View" is the community_area_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 = 'Lake View' | 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 district of Zaanstad? | Zaanstad is a name of city; | SELECT District FROM City WHERE name = 'Zaanstad' | 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 | Find the number of customers handled by each of the sales people. | null | SELECT COUNT(CustomerID) FROM Sales GROUP BY SalesPersonID | 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 persons in total have participated in 12 meter Mixed Sailing competitions? | 12 meter Mixed Sailing competitions refer to event_name = 'Sailing Mixed 12 metres'; | SELECT COUNT(T1.competitor_id) FROM competitor_event AS T1 INNER JOIN event AS T2 ON T1.event_id = T2.id INNER JOIN sport AS T3 ON T2.sport_id = T3.id WHERE T2.event_name = 'Sailing Mixed 12 metres' | 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 | Which song is associated with the most popular Disney movie in 1970s? | the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979); | SELECT T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE CAST(SUBSTR(T1.release_date, INSTR(T1.release_date, ', ') + 1) AS int) BETWEEN 1970 AND 1979 ORDER BY CAST(REPLACE(SUBSTR(T1.total_gross, 2), ',', '') AS float) 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 | In businesses with a category of mexican, how many of them has a star rating below 4? | category of mexican refers to category_name = 'Mexican'; star rating below 4 refers to stars < 4 | SELECT COUNT(T1.business_id) 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.stars < 4 AND T3.category_name LIKE 'Mexican' | 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 | In which city is the store with the highest total sales quantity located? | qty is abbreviation for quantity; highest sales quantity refers to MAX(qty) | SELECT T2.city FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id GROUP BY T2.city ORDER BY SUM(T1.qty) 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 | List down the district's commander associated with the crime that happened at the yard and has a beat of 532. | beat of 532 refers to beat = 532; happened in the Yard refers to location_description = 'YARD'; district commander refers to commander | SELECT T2.address, T2.commander FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.location_description = 'YARD' AND T1.beat = 532 | 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 GNP growth rate by the country of Shanghai? | GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city; | SELECT CAST((T1.GNP - T1.GNPOld) AS REAL) / T1.GNPOld FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Shanghai' | 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 | Indicate the quantity of Blade products sold. | Blade' is name of product; | SELECT DISTINCT T2.Quantity FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Blade' | 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 all the sports Chin Eei Hui has competed in? | name of the sport refers to sport_name; | SELECT DISTINCT T1.sport_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id INNER JOIN competitor_event AS T3 ON T2.id = T3.event_id INNER JOIN games_competitor AS T4 ON T3.competitor_id = T4.id INNER JOIN person AS T5 ON T4.person_id = T5.id WHERE T5.full_name = 'Chin Eei Hui' | 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 | Which character is the villain of the most popular movie? | the most popular movie refers to movie_title where MAX(total_gross); | SELECT T2.villian FROM `movies_total_gross` AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title ORDER BY T1.total_gross 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 | Please list the stores that ordered the book "Life Without Fear". | store name refers to stor_name | SELECT T2.stor_name 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 T3.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 | Provide at least 5 ward office addresses associated with the crimes that happened in the community of Montclare. | "Montclare" is the community_area_name | SELECT T3.ward_office_address FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN Ward AS T3 ON T2.ward_no = T3.ward_no WHERE T1.community_area_name = 'Montclare' GROUP BY T3.ward_office_address LIMIT 5 | 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 average life expentancy of countries that speak Arabic? | average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic'; | SELECT AVG(T1.LifeExpectancy) 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 | Name the most expensive and the least expensive products available, excluding free gifts. | most expensive product refers to MAX(Price); least expensive product refers to MIN(Price); excluding free gifts refers to not including Price = 0; | SELECT Name FROM Products WHERE Price IN (( SELECT MAX(Price) FROM Products ), ( SELECT MIN(Price) FROM Products )) | 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
); |
disney | Who is the voice actor of the hero character from the movie The Little Mermaid? | The Little Mermaid refers to movie_title = 'The Little Mermaid'; | SELECT T2.`voice-actor` FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T2.movie = T1.movie_title WHERE T1.movie_title = 'The Little Mermaid' AND T2.character = T1.hero | 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 closing and opening time of businesses located at Gilbert with highest star rating? | "Gilbert" is the name of city; highest star rating refers to Max(stars) | SELECT T2.closing_time, T2.opening_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Gilbert' 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
); |
book_publishing_company | What is the publisher that has published the most expensive book? | most expensive book refers to MAX(price) | SELECT T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id ORDER BY T1.price 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 | Give the FBI code for the crime described by "The killing of one human being by another." | "The killing of one human being by another" is the description; FBI code refers to fbi_code_no | SELECT fbi_code_no FROM FBI_Code WHERE description = 'The killing of one human being by another.' | 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 are the cities for country called "´Uman" in local name. | null | SELECT T1.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.LocalName = '´Uman' | 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 | What is the name of the product that is most sold by sale person id 20? | most sold refers to MAX(Quantity); | SELECT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T2.SalesPersonID = 20 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 oldest person who participated in the Olympic Games? | the oldest person refers to person_id where MAX(age); name refers to full_name; | SELECT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id ORDER BY T2.age 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, --
); |
public_review_platform | Among the businesses in Chandler, list the attribute of the business with a low review count. | in Chandler refers to city = 'Chandler'; attribute refers to attribute_name | SELECT DISTINCT T3.attribute_id, T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.attribute_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.review_count = 'Low' AND T1.city = 'Chandler' | 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 beat and location description of the case JB112212? | case JB112212 refers to case_number = 'JB112212' | SELECT beat, location_description FROM Crime WHERE case_number = 'JB112212' | 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 all cities of China. | China is a name of country; | SELECT T1.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Name = 'China' | 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 | How many customers have the first name Abigail? | null | SELECT COUNT(CustomerID) FROM Customers WHERE FirstName = 'Abigail' | 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 | Which city was the host of 1936 Winter Olympic Games? | Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter'; | 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 = '1936 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, --
); |
disney | Who is the voice actor of the character "Binkie Muddlefoot"? | FALSE; | SELECT `voice-actor` FROM `voice-actors` WHERE character = 'Binkie Muddlefoot' | 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 | Find the location of businesses that has business hours from 9 am to 9 pm every Saturday. | 9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city | SELECT T1.city 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 T2.closing_time LIKE '9PM' AND T2.opening_time LIKE '9AM' AND T3.day_of_week LIKE 'Saturday' GROUP BY T1.city | 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 | Please give more detailed information about the first three books that sell the best. | qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty) | SELECT T1.notes FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id ORDER BY T2.qty DESC LIMIT 3 | 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 | Provide the ward number with the highest population. | highest population refers to Max(Population); ward number refers to ward_no | SELECT ward_no FROM Ward ORDER BY Population DESC LIMIT 1 | 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 | How many countries have a life expectancy of 75.1? | null | SELECT COUNT(*) FROM Country WHERE LifeExpectancy = 75.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 name of the customer who purchased the most quantity of products. | full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity); | SELECT T1.FirstName, T1.LastName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID 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 cities beginning with the letter M have the Olympic Games been held? | cities beginning with the letter M refer to city_name LIKE 'M%'; | SELECT city_name FROM city WHERE city_name LIKE '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 director of the adventure movie which was released on 2007/3/30? | released on 2007/3/30 refers to release_date = 'Mar 30, 2007'; adventure movie refers to genre = 'Adventure' ; | SELECT T1.director FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.name WHERE T2.genre = 'Adventure' AND T2.release_date = 'Mar 30, 2007' | 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 | In which country is the publisher of the book "Life Without Fear" located? | Life Without Fear is book title | SELECT T2.country FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_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 | What is the percentage of crime cases that have been classified as "drug abuse" by the FBI and happened on the street? | "Drug Abuse" is the title of crime; happened on the street refers to location_description = 'STREET'; percentage = Divide (Count(fbi_code_no where location_description = 'STREET'), Count(fbi_code_no)) * 100 | SELECT CAST(SUM(CASE WHEN T2.title = 'Drug Abuse' AND T1.location_description = 'STREET' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.fbi_code_no) 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 | Which country has the smallest surface area and the most crowded city? | smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population); | SELECT T2.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T1.Population DESC, T2.SurfaceArea 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 '', --
); |
beer_factory | What is the credit card type used by Kenneth Walton? | FALSE; | SELECT DISTINCT T2.CreditCardType FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Kenneth' AND T1.Last = 'Walton' | 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 | Please list the names of the Olympic games that were held in London. | held in London refers to city_name = 'London'; | SELECT T3.games_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 T2.city_name = 'London' | 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 movie whose total gross was $222,527,828? | FALSE; | SELECT T1.hero FROM characters AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.movie_title WHERE T2.total_gross = '$222,527,828' | 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 Yelp_Businesses do not provide alcohol? | do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'
| SELECT COUNT(T1.attribute_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name LIKE 'Alcohol' AND T2.attribute_value 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 | Among the publishers in the USA, how many of them have published books that are over $15? | are over $15 refers to price>15 | SELECT COUNT(DISTINCT T1.pub_id) FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.country = 'USA' AND T1.price > 15 | 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 | At which district did the multiple homicide case number JB120039 occurred? | multiple homicide refers to Count(case_number) > 1; district refers to district_name | SELECT T1.district_no, T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.case_number = 'JB120039' GROUP BY T1.district_no, T1.district_name | 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 | Within the 5 most crowded cities in the world, which country has the most languages used? | most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language)); | SELECT Name FROM ( SELECT T1.Name, T2.Language FROM City AS T1 INNER JOIN CountryLanguage AS T2 ON T1.CountryCode = T2.CountryCode GROUP BY T1.Name, T1.Population, T2.Language ORDER BY T1.Population DESC ) AS T3 GROUP BY t3.Name ORDER BY COUNT(Language) 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 '', --
); |
beer_factory | What is the best seller root beer brand and what is the average star rating for this root beer? | best seller root beer refers to MAX(COUNT(BrandID)); average star rating = AVG(StarRating); | SELECT T1.BrandID, AVG(T1.StarRating) FROM rootbeerreview AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID GROUP BY T3.BrandID ORDER BY COUNT(T1.BrandID) DESC LIMIT 1 | 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
); |
chicago_crime | What was the major type of crime that happened in the Rogers Park community area? | "Rogers Park" is the community_area_name; major type of crime refers to title | SELECT T1.fbi_code_no, T1.title 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 T3.community_area_name = 'Rogers Park' GROUP BY T1.fbi_code_no, T1.title | 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 GNP of the least crowded city in the world? | least crowded city refers to MIN(Population); | SELECT T2.GNP FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code 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 '', --
); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.