Dataset Viewer
context_id
stringlengths 4
28
| reflection_prompt_info
dict |
|---|---|
movie_platform
|
{
"db_schema": "CREATE TABLE lists\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(88260493,)`, `(45204418,)`, `(48905025,)` | Value Statics: Total count 79565 - Distinct count 22925 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null primary key,\n\tlist_title TEXT, -- Example Values: `('Films that made your kid sister cry',)`, `('Headscratchers',)`, `('Sexy Time Movies',)` | Value Statics: Total count 79565 - Distinct count 58898 - Null count 0 | Column Description: Name of the list \n\tlist_movie_number INTEGER, -- Example Values: `(5,)`, `(3,)`, `(7,)` | Value Statics: Total count 79565 - Distinct count 907 - Null count 0 | Column Description: Number of movies added to the list \n\tlist_update_timestamp_utc TEXT, -- Example Values: `('2019-01-24 19:16:18',)`, `('2018-12-03 15:12:20',)`, `('2019-05-30 03:00:07',)` | Value Statics: Total count 79565 - Distinct count 69576 - Null count 0 | Column Description: Last update timestamp for the list \n\tlist_creation_timestamp_utc TEXT, -- Example Values: `('2009-11-11 00:02:21',)`, `('2009-11-11 00:05:11',)`, `('2009-11-11 00:20:00',)` | Value Statics: Total count 79565 - Distinct count 79499 - Null count 0 | Column Description: Creation timestamp for the list \n\tlist_followers INTEGER, -- Example Values: `(5,)`, `(1,)`, `(6,)` | Value Statics: Total count 79565 - Distinct count 400 - Null count 0 | Column Description: Number of followers on the list \n\tlist_url TEXT, -- | Column Description: URL to the list page on Mubi \n\tlist_comments INTEGER, -- Example Values: `(3,)`, `(2,)`, `(5,)` | Value Statics: Total count 79565 - Distinct count 76 - Null count 0 | Column Description: Number of comments on the list \n\tlist_description TEXT, -- | Column Description: List description made by the user \n\tlist_cover_image_url TEXT, -- \n\tlist_first_image_url TEXT, -- \n\tlist_second_image_url TEXT, -- \n\tlist_third_image_url TEXT, -- \n);\n\nCREATE TABLE movies\n(\n\tmovie_id INTEGER not null primary key,\n\tmovie_title TEXT, -- Example Values: `('La Antena',)`, `('Elementary Particles',)`, `(\"It's Winter\",)` | Value Statics: Total count 100000 - Distinct count 91630 - Null count 0 | Column Description: Name of the movie \n\tmovie_release_year INTEGER, -- Example Values: `(2007,)`, `(2006,)`, `(2005,)` | Value Statics: Total count 99998 - Distinct count 135 - Null count 2 | Column Description: Release year of the movie \n\tmovie_url TEXT, -- Example Values: `('http://mubi.com/films/la-antena',)`, `('http://mubi.com/films/elementary-particles',)`, `('http://mubi.com/films/its-winter',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: URL to the movie page on Mubi \n\tmovie_title_language TEXT, -- Example Values: `en` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Description: By default, the title is in English. | Value Description: Only contains one value which is 'en'\n\tmovie_popularity INTEGER, -- Example Values: `(105,)`, `(23,)`, `(21,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Description: Number of Mubi users who love this movie \n\tmovie_image_url TEXT, -- | Column Description: Image URL to the movie on Mubi \n\tdirector_id TEXT, -- Example Values: `('131',)`, `('73',)`, `('82',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: ID related to the movie director on Mubi \n\tdirector_name TEXT, -- Example Values: `('Esteban Sapir',)`, `('Oskar Roehler',)`, `('Rafi Pitts',)` | Value Statics: Total count 99997 - Distinct count 40150 - Null count 3 | Column Description: Full Name of the movie director \n\tdirector_url TEXT, -- Example Values: `('http://mubi.com/cast/esteban-sapir',)`, `('http://mubi.com/cast/oskar-roehler',)`, `('http://mubi.com/cast/rafi-pitts',)` | Value Statics: Total count 100000 - Distinct count 40206 - Null count 0 | Column Description: URL to the movie director page on Mubi \n);\n\nCREATE TABLE ratings_users\n(\n\tuser_id INTEGER references lists_users (user_id), -- Example Values: `(41579158,)`, `(68654088,)`, `(84114365,)` | Value Statics: Total count 100000 - Distinct count 44084 - Null count 0 | Column Description: ID related to the user rating the movie \n\trating_date_utc TEXT, -- Example Values: `('2017-06-10',)`, `('2012-10-02',)`, `('2010-12-25',)` | Value Statics: Total count 100000 - Distinct count 4143 - Null count 0 | Column Description: Rating date for the movie rating. | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a trialist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he rated the movie | Value Description: 1 = the user was a subscriber when he rated the movie 0 = the user was not a subscriber when he rated the movie\n\tuser_avatar_image_url TEXT, -- | Column Description: URL to the user profile image on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: URL to the user profile cover image on Mubi \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he rated the movie | Value Description: 1 = the user was eligible for trial when he rated the movie 0 = the user was not eligible for trial when he rated the movie\n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he rated the movie | Value Description: 1 = the user was a paying subscriber when he rated the movie 0 = the user was not a paying subscriber when he rated\n);\n\nCREATE TABLE lists_users\n(\n\tuser_id INTEGER not null, -- Example Values: `(2385,)`, `(15264,)`, `(15344,)` | Value Statics: Total count 80311 - Distinct count 23118 - Null count 0 | Column Description: ID related to the user who created the list. \n\tlist_id INTEGER not null, -- Example Values: `(192287,)`, `(192313,)`, `(192318,)` | Value Statics: Total count 80311 - Distinct count 80311 - Null count 0 | Column Description: ID of the list on Mubi \n\tlist_update_date_utc TEXT, -- Example Values: `('2019-11-26',)`, `('2020-05-01',)`, `('2020-04-12',)` | Value Statics: Total count 80311 - Distinct count 3801 - Null count 0 | Column Description: Last update date for the list | Value Description: YYYY-MM-DD\n\tlist_creation_date_utc TEXT, -- Example Values: `('2009-12-18',)`, `('2010-01-30',)`, `('2010-03-31',)` | Value Statics: Total count 80311 - Distinct count 3798 - Null count 0 | Column Description: Creation date for the list | Value Description: YYYY-MM-DD\n\tuser_trialist INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a tralist when he created the list | Value Description: 1 = the user was a trialist when he created the list 0 = the user was not a trialist when he created the list\n\tuser_subscriber INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a subscriber when he created the list | Value Description: 1 = the user was a subscriber when he created the list 0 = the user was not a subscriber when he created the list\n\tuser_avatar_image_url TEXT, -- | Column Description: User profile image URL on Mubi \n\tuser_cover_image_url TEXT, -- | Column Description: User profile cover image URL on Mubi \n\tuser_eligible_for_trial TEXT, -- Example Values: `0`, `1` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was eligible for trial when he created the list | Value Description: 1 = the user was eligible for trial when he created the list 0 = the user was not eligible for trial when he created the list\n\tuser_has_payment_method TEXT, -- Example Values: `1`, `0` | Value Statics: Total count 80311 - Distinct count 2 - Null count 0 | Column Description: whether the user was a paying subscriber when he created the list | Value Description: 1 = the user was a paying subscriber when he created the list 0 = the user was not a paying subscriber when he created the list\n\tprimary key (user_id, list_id),\n\tforeign key (list_id) references lists(list_id),\n\tforeign key (user_id) references lists(user_id),\n);\n\nCREATE TABLE ratings\n(\n\tmovie_id INTEGER, -- Example Values: `(1066,)`, `(1067,)`, `(1068,)` | Value Statics: Total count 100000 - Distinct count 371 - Null count 0 | Column Description: Movie ID related to the rating \n\trating_id INTEGER, -- Example Values: `(15610495,)`, `(10704606,)`, `(10177114,)` | Value Statics: Total count 100000 - Distinct count 99999 - Null count 0 | Column Description: Rating ID on Mubi \n\trating_url TEXT, -- | Column Description: URL to the rating on Mubi \n\trating_score INTEGER, -- Example Values: `3`, `2`, `4`, `5`, `1` | Value Statics: Total count 99731 - Distinct count 5 - Null count 269 | Column Description: Rating score ranging from 1 (lowest) to 5 (highest) | Value Description: The score is proportional to the user's liking. The higher the score is, the more the user likes the movie\n\trating_timestamp_utc TEXT, -- Example Values: `('2017-06-10 12:38:33',)`, `('2014-08-15 23:42:31',)`, `('2014-01-30 13:21:57',)` | Value Statics: Total count 100000 - Distinct count 99962 - Null count 0 | Column Description: Timestamp for the movie rating made by the user on Mubi \n\tcritic TEXT, -- | Column Description: Critic made by the user rating the movie. | Value Description: If value = \"None\", the user did not write a critic when rating the movie.\n\tcritic_likes INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Description: Number of likes related to the critic made by the user rating the movie \n\tcritic_comments INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 15 - Null count 0 | Column Description: Number of comments related to the critic made by the user rating the movie \n\tuser_id INTEGER, -- Example Values: `(41579158,)`, `(85981819,)`, `(4208563,)` | Value Statics: Total count 100000 - Distinct count 34674 - Null count 0 | Column Description: ID related to the user rating the movie \n\tuser_trialist INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: whether user was a tralist when he rated the movie | Value Description: 1 = the user was a trialist when he rated the movie 0 = the user was not a trialist when he rated the movie\n\tuser_subscriber INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_eligible_for_trial INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tuser_has_payment_method INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tforeign key (movie_id) references movies(movie_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (user_id) references lists_users(user_id),\n\tforeign key (rating_id) references ratings(rating_id),\n\tforeign key (user_id) references ratings_users(user_id),\n\tforeign key (user_id) references ratings_users(user_id),\n);"
}
|
book_publishing_company
|
{
"db_schema": "CREATE TABLE authors\n(\n\tau_id TEXT primary key,\n\tau_lname TEXT not null, -- Example Values: `('White',)`, `('Green',)`, `('Carson',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Name Meaning: author last name | Column Description: author last name \n\tau_fname TEXT not null, -- Example Values: `('Johnson',)`, `('Marjorie',)`, `('Cheryl',)` | Value Statics: Total count 23 - Distinct count 23 - Null count 0 | Column Name Meaning: author first name | Column Description: author first name \n\tphone TEXT not null, -- Example Values: `('408 496-7223',)`, `('415 986-7020',)`, `('415 548-7723',)` | Value Statics: Total count 23 - Distinct count 21 - Null count 0 | Column Description: phone number \n\taddress TEXT, -- Example Values: `('10932 Bigge Rd.',)`, `('309 63rd St. #411',)`, `('589 Darwin Ln.',)` | Value Statics: Total count 23 - Distinct count 21 - Null count 0 | Column Description: address \n\tcity TEXT, -- Example Values: `Menlo Park`, `Oakland`, `Berkeley`, `San Jose`, `Lawrence` | Value Statics: Total count 23 - Distinct count 16 - Null count 0 | Column Description: city \n\tstate TEXT, -- Example Values: `CA`, `KS`, `TN`, `OR`, `MI` | Value Statics: Total count 23 - Distinct count 8 - Null count 0 | Column Description: state \n\tzip TEXT, -- Example Values: `94025`, `94618`, `94705`, `95128`, `94609` | Value Statics: Total count 23 - Distinct count 18 - Null count 0 | Column Description: zip code \n\tcontract TEXT not null, -- Example Values: `0` | Value Statics: Total count 23 - Distinct count 1 - Null count 0 | Column Description: contract status | Value Description: 0: not on the contract 1: on the contract\n);\n\nCREATE TABLE jobs\n(\n\tjob_id INTEGER primary key,\n\tjob_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 | Column Name Meaning: job description | Column Description: job description | Value Description: staff should be mentioned\n\tmin_lvl INTEGER not null, -- Example Values: `10`, `200`, `175`, `150`, `140` | Value Statics: Total count 14 - Distinct count 9 - Null count 0 | Column Name Meaning: min level | Column Description: min job level \n\tmax_lvl INTEGER not null, -- Example Values: `10`, `250`, `225`, `200`, `175` | Value Statics: Total count 14 - Distinct count 8 - Null count 0 | Column Name Meaning: max level | Column Description: max job level | Value Description: level range for jobs mentioned in job_desc is (min_lvl, max_lvl)\n);\n\nCREATE TABLE publishers\n(\n\tpub_id TEXT primary key,\n\tpub_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 | Column Name Meaning: publisher name | Column Description: publisher name \n\tcity TEXT, -- Example Values: `Boston`, `Washington`, `Berkeley`, `Chicago`, `Dallas` | Value Statics: Total count 8 - Distinct count 8 - Null count 0 | Column Description: city \n\tstate TEXT, -- Example Values: `MA`, `DC`, `CA`, `IL`, `TX` | Value Statics: Total count 6 - Distinct count 6 - Null count 2 | Column Description: state \n\tcountry TEXT, -- Example Values: `USA`, `Germany`, `France` | Value Statics: Total count 8 - Distinct count 3 - Null count 0 | Column Description: country \n);\n\nCREATE TABLE employee\n(\n\temp_id TEXT primary key,\n\tfname TEXT not null, -- Example Values: `('Aria',)`, `('Annette',)`, `('Ann',)` | Value Statics: Total count 43 - Distinct count 42 - Null count 0 | Column Name Meaning: first name | Column Description: first name of employees \n\tminit TEXT, -- Example Values: `('',)`, `('M',)`, `('R',)` | Value Statics: Total count 43 - Distinct count 20 - Null count 0 | Column Description: middle name \n\tlname TEXT not null, -- Example Values: `('Cruz',)`, `('Roulet',)`, `('Devon',)` | Value Statics: Total count 43 - Distinct count 43 - Null count 0 | Column Name Meaning: last name | Column Description: last name \n\tjob_id INTEGER not null, -- Example Values: `10`, `6`, `3`, `8`, `5` | Value Statics: Total count 43 - Distinct count 13 - Null count 0 | Column Name Meaning: job id | Column Description: number identifying jobs \n\tjob_lvl INTEGER, -- Example Values: `(87,)`, `(152,)`, `(200,)` | Value Statics: Total count 43 - Distinct count 31 - Null count 0 | Column Name Meaning: job level | Column Description: job level | Value Description: higher value means job level is higher\n\tpub_id TEXT not null, -- Example Values: `1389`, `9999`, `9952`, `0877`, `0736` | Value Statics: Total count 43 - Distinct count 8 - Null count 0 | Column Name Meaning: publisher id | Column Description: id number identifying publishers \n\thire_date DATETIME not null, -- Example Values: `('1991-10-26 00:00:00.0',)`, `('1990-02-21 00:00:00.0',)`, `('1991-07-16 00:00:00.0',)` | Value Statics: Total count 43 - Distinct count 43 - Null count 0 | Column Description: hire date \n\tforeign key (job_id) references jobs(job_id) on update cascade on delete cascade,\n\tforeign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,\n);\n\nCREATE TABLE pub_info\n(\n\tpub_id TEXT primary key,\n\tlogo BLOB, -- Example Values: `0x4749463839618B002F00B30F000000008000000080008080`, `0x474946383961C2001D00B30F000000008000000080008080`, `0x474946383961F5003400B30F000000008000000080008080`, `0x474946383961E3002500B30F000000008000000080008080`, `0x4749463839615D002200B30F000000008000000080008080` | Value Statics: Total count 7 - Distinct count 7 - Null count 0 | Column Description: logo of publications \n\tpr_info TEXT, -- Example Values: `This is sample text data for Binnet & Hardley, pub`, `This is sample text data for Algodata Infosystems,`, `This is sample text data for Five Lakes Publishing`, `This is sample text data for Ramona Publishers, pu`, `This is sample text data for GGG&G, publisher 9901` | Value Statics: Total count 7 - Distinct count 7 - Null count 0 | Column Name Meaning: publisher's information | Column Description: publisher's information \n\tforeign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,\n);\n\nCREATE TABLE stores\n(\n\tstor_id TEXT primary key,\n\tstor_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 | Column Name Meaning: store name \n\tstor_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 | Column Name Meaning: store address \n\tcity TEXT, -- Example Values: `Seattle`, `Tustin`, `Los Gatos`, `Remulade`, `Fremont` | Value Statics: Total count 6 - Distinct count 6 - Null count 0 | Column Description: city name \n\tstate TEXT, -- Example Values: `WA`, `CA`, `OR` | Value Statics: Total count 6 - Distinct count 3 - Null count 0 | Column Description: state code \n\tzip TEXT, -- Example Values: `98056`, `92789`, `96745`, `98014`, `90019` | Value Statics: Total count 6 - Distinct count 6 - Null count 0 | Column Description: zip code \n);\n\nCREATE TABLE discounts\n(\n\tdiscounttype TEXT not null, -- Example Values: `Initial Customer`, `Volume Discount`, `Customer Discount` | Value Statics: Total count 3 - Distinct count 3 - Null count 0 | Column Name Meaning: discount type | Column Description: discount type \n\tstor_id TEXT, -- Example Values: `8042` | Value Statics: Total count 1 - Distinct count 1 - Null count 2 | Column Name Meaning: store id | Column Description: store id \n\tlowqty INTEGER, -- Example Values: `100` | Value Statics: Total count 1 - Distinct count 1 - Null count 2 | Column Name Meaning: low quantity | Column Description: low quantity (quantity floor) | Value Description: The minimum quantity to enjoy the discount\n\thighqty INTEGER, -- Example Values: `1000` | Value Statics: Total count 1 - Distinct count 1 - Null count 2 | Column Name Meaning: high quantity | Column Description: high quantity (max quantity) | Value Description: The maximum quantity to enjoy the discount\n\tdiscount REAL not null, -- Example Values: `10.5`, `6.7`, `5.0` | Value Statics: Total count 3 - Distinct count 3 - Null count 0 | Column Description: discount \n\tforeign key (stor_id) references stores(stor_id) on update cascade on delete cascade,\n);\n\nCREATE TABLE titles\n(\n\ttitle_id TEXT primary key,\n\ttitle TEXT not null, -- Example Values: `The Busy Executive's Database Guide`, `Cooking with Computers: Surreptitious Balance Shee`, `You Can Combat Computer Stress!`, `Straight Talk About Computers`, `Silicon Valley Gastronomic Treats` | Value Statics: Total count 18 - Distinct count 18 - Null count 0 | Column Description: title \n\ttype TEXT not null, -- Example Values: `business`, `mod_cook`, `UNDECIDED`, `popular_comp`, `psychology` | Value Statics: Total count 18 - Distinct count 6 - Null count 0 | Column Description: type of titles \n\tpub_id TEXT, -- Example Values: `1389`, `0736`, `0877` | Value Statics: Total count 18 - Distinct count 3 - Null count 0 | Column Name Meaning: publisher id | Column Description: publisher id \n\tprice REAL, -- Example Values: `19.99`, `11.95`, `2.99`, `22.95`, `20.0` | Value Statics: Total count 16 - Distinct count 11 - Null count 2 | Column Description: price \n\tadvance REAL, -- Example Values: `5000.0`, `10125.0`, `0.0`, `15000.0`, `7000.0` | Value Statics: Total count 16 - Distinct count 10 - Null count 2 | Column Description: pre-paid amount \n\troyalty INTEGER, -- Example Values: `10`, `24`, `12`, `16`, `14` | Value Statics: Total count 16 - Distinct count 5 - Null count 2 | Column Description: royalty \n\tytd_sales INTEGER, -- Example Values: `4095`, `3876`, `18722`, `2032`, `22246` | Value Statics: Total count 16 - Distinct count 12 - Null count 2 | Column Name Meaning: year to date sales | Column Description: year to date sales \n\tnotes TEXT, -- Example Values: `An overview of available database systems with emp`, `Helpful hints on how to use your electronic resour`, `The latest medical and psychological techniques fo`, `Annotated analysis of what computers can do for yo`, `Favorite recipes for quick, easy, and elegant meal` | Value Statics: Total count 17 - Distinct count 17 - Null count 1 | Column Description: notes if any | Value Description: had better understand notes contents and put some of them into questions if any\n\tpubdate 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',)` | Value Statics: Total count 18 - Distinct count 10 - Null count 0 | Column Name Meaning: publication date | Column Description: publication date \n\tforeign key (pub_id) references publishers(pub_id) on update cascade on delete cascade,\n);\n\nCREATE TABLE roysched\n(\n\ttitle_id TEXT not null, -- Example Values: `BU1032`, `PC1035`, `BU2075`, `PS2091`, `PS2106` | Value Statics: Total count 86 - Distinct count 16 - Null count 0 | Column Description: unique id number identifying title \n\tlorange INTEGER, -- Example Values: `(0,)`, `(5001,)`, `(2001,)` | Value Statics: Total count 86 - Distinct count 22 - Null count 0 | Column Name Meaning: low range | Column Description: low range \n\thirange INTEGER, -- Example Values: `(5000,)`, `(50000,)`, `(2000,)` | Value Statics: Total count 86 - Distinct count 22 - Null count 0 | Column Name Meaning: high range | Column Description: high range \n\troyalty INTEGER, -- Example Values: `10`, `12`, `14`, `16`, `18` | Value Statics: Total count 86 - Distinct count 8 - Null count 0 | Column Description: royalty \n\tforeign key (title_id) references titles(title_id) on update cascade on delete cascade,\n);\n\nCREATE TABLE sales\n(\n\tstor_id TEXT not null, -- Example Values: `6380`, `7066`, `7067`, `7131`, `7896` | Value Statics: Total count 21 - Distinct count 6 - Null count 0 | Column Name Meaning: store id | Column Description: id number identifying stores \n\tord_num TEXT not null, -- Example Values: `6871`, `722a`, `A2976`, `QA7442.3`, `D4482` | Value Statics: Total count 21 - Distinct count 16 - Null count 0 | Column Name Meaning: order number | Column Description: id number identifying the orders \n\tord_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',)` | Value Statics: Total count 21 - Distinct count 10 - Null count 0 | Column Name Meaning: order date | Column Description: the date of the order \n\tqty INTEGER not null, -- Example Values: `5`, `3`, `50`, `75`, `10` | Value Statics: Total count 21 - Distinct count 11 - Null count 0 | Column Name Meaning: quantity | Column Description: quantity of sales \n\tpayterms TEXT not null, -- Example Values: `Net 60`, `Net 30`, `ON invoice` | Value Statics: Total count 21 - Distinct count 3 - Null count 0 | Column Description: payments \n\ttitle_id TEXT not null, -- Example Values: `BU1032`, `PS2091`, `PC8888`, `TC3218`, `TC4203` | Value Statics: Total count 21 - Distinct count 16 - Null count 0 | Column Name Meaning: title id | Column Description: id number identifying titles \n\tprimary key (stor_id, ord_num, title_id),\n\tforeign key (stor_id) references stores(stor_id) on update cascade on delete cascade,\n\tforeign key (title_id) references titles(title_id) on update cascade on delete cascade,\n);\n\nCREATE TABLE titleauthor\n(\n\tau_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 | Column Name Meaning: author id | Column Description: author id \n\ttitle_id TEXT not null, -- Example Values: `PS3333`, `BU1032`, `BU2075`, `PC1035`, `BU1111` | Value Statics: Total count 25 - Distinct count 17 - Null count 0 | Column Name Meaning: title id | Column Description: title id \n\tau_ord INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 25 - Distinct count 3 - Null count 0 | Column Name Meaning: author ordering | Column Description: author ordering \n\troyaltyper INTEGER, -- Example Values: `100`, `40`, `30`, `60`, `50` | Value Statics: Total count 25 - Distinct count 7 - Null count 0 | Column Description: royaltyper \n\tprimary key (au_id, title_id),\n\tforeign key (au_id) references authors(au_id) on update cascade on delete cascade,\n\tforeign key (title_id) references titles (title_id) on update cascade on delete cascade,\n);"
}
|
retail_complains
|
{
"db_schema": "CREATE TABLE state\n(\n\tStateCode TEXT constraint state_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | Value Statics: Total count 48 - Distinct count 4 - Null count 0 \n);\n\nCREATE TABLE callcenterlogs\n(\n\t\"Date received\" DATE, -- Example Values: `('2017-03-27',)`, `('2017-03-23',)`, `('2017-03-22',)` | Value Statics: Total count 3999 - Distinct count 1842 - Null count 0 | Column Description: complaint date \n\t\"Complaint ID\" TEXT, -- Example Values: `('CR0000072',)`, `('CR0000084',)`, `('CR0000175',)` | Value Statics: Total count 2504 - Distinct count 2504 - Null count 1495 | Column Description: unique id number representing each complaint \n\t\"rand client\" TEXT, -- Example Values: `('C00004587',)`, `('C00003328',)`, `('C00001685',)` | Value Statics: Total count 2504 - Distinct count 2019 - Null count 1495 | Column Description: client id \n\tphonefinal TEXT, -- Example Values: `('977-806-9726',)`, `('322-598-7152',)`, `('508-311-5237',)` | Value Statics: Total count 3999 - Distinct count 2744 - Null count 0 | Column Name Meaning: phone final | Column Description: final phone number \n\t\"vru+line\" TEXT, -- Example Values: `('AA0103',)`, `('AA0205',)`, `('AA0110',)` | Value Statics: Total count 3015 - Distinct count 27 - Null count 984 | Column Name Meaning: voice response unit line | Column Description: voice response unit line \n\tcall_id INTEGER, -- Example Values: `(34536,)`, `(34537,)`, `(34538,)` | Value Statics: Total count 3015 - Distinct count 3015 - Null count 984 | Column Name Meaning: call id | Column Description: id number identifying the call \n\tpriority INTEGER, -- Example Values: `0`, `2`, `1` | Value Statics: Total count 3015 - Distinct count 3 - Null count 984 | Column Description: priority of the complaint | Value Description: 0, 1, 2, null: not available, higher: -> higher priority, -> more serious/urgent complaint\n\ttype TEXT, -- Example Values: `NW`, `PS`, `NE`, `TT`, `IN` | Value Statics: Total count 3015 - Distinct count 6 - Null count 984 | Column Description: type of complaint \n\toutcome TEXT, -- Example Values: `AGENT`, `HANG`, `PHANTOM` | Value Statics: Total count 3015 - Distinct count 3 - Null count 984 | Column Description: the outcome of processing of complaints \n\tserver TEXT, -- Example Values: `('MICHAL',)`, `('TOVA',)`, `('YIFAT',)` | Value Statics: Total count 3015 - Distinct count 25 - Null count 984 | Column Description: server \n\tser_start TEXT, -- Example Values: `('13:34:11',)`, `('10:58:22',)`, `('13:00:54',)` | Value Statics: Total count 3999 - Distinct count 3733 - Null count 0 | Column Name Meaning: server start | Column Description: server start time | Value Description: HH:MM:SS\n\tser_exit TEXT, -- Example Values: `('13:40:23',)`, `('11:16:10',)`, `('13:13:31',)` | Value Statics: Total count 3999 - Distinct count 3738 - Null count 0 | Column Name Meaning: server exit | Column Description: server exit time \n\tser_time TEXT, -- Example Values: `('00:06:12',)`, `('00:17:48',)`, `('00:12:37',)` | Value Statics: Total count 3999 - Distinct count 1303 - Null count 0 | Column Name Meaning: server time | Column Description: server time | Value Description: longer server time referring to more verbose/longer complaint\n\tprimary key (\"Complaint ID\"),\n\tforeign key (\"rand client\") references client(client_id),\n);\n\nCREATE TABLE client\n(\n\tclient_id TEXT primary key,\n\tsex TEXT, -- Example Values: `Female`, `Male` | Value Statics: Total count 5369 - Distinct count 2 - Null count 0 | Column Description: sex of client \n\tday INTEGER, -- Example Values: `(13,)`, `(4,)`, `(9,)` | Value Statics: Total count 5369 - Distinct count 31 - Null count 0 | Column Description: day of the birthday \n\tmonth INTEGER, -- Example Values: `12`, `2`, `10`, `7`, `9` | Value Statics: Total count 5369 - Distinct count 12 - Null count 0 | Column Description: month of the birthday \n\tyear INTEGER, -- Example Values: `(1990,)`, `(1965,)`, `(1960,)` | Value Statics: Total count 5369 - Distinct count 77 - Null count 0 | Column Description: year when is born \n\tage INTEGER, -- Example Values: `(29,)`, `(54,)`, `(59,)` | Value Statics: Total count 5369 - Distinct count 77 - Null count 0 | Column Description: age | Value Description: teenager: 13-19 adult: 19-65 elder: > 65\n\tsocial TEXT, -- Example Values: `('926-93-2157',)`, `('806-94-5725',)`, `('614-70-9100',)` | Value Statics: Total count 5369 - Distinct count 5369 - Null count 0 | Column Description: social number | Value Description: ssn: us id number for each person\n\tfirst TEXT, -- Example Values: `('Emma',)`, `('Noah',)`, `('Olivia',)` | Value Statics: Total count 5369 - Distinct count 2885 - Null count 0 | Column Description: first name \n\tmiddle TEXT, -- Example Values: `('Avaya',)`, `('Everest',)`, `('Brooklynne',)` | Value Statics: Total count 5369 - Distinct count 3925 - Null count 0 | Column Description: middle name \n\tlast TEXT, -- Example Values: `('Smith',)`, `('Thompson',)`, `('Johnson',)` | Value Statics: Total count 5369 - Distinct count 1769 - Null count 0 | Column Description: last name \n\tphone TEXT, -- Example Values: `('367-171-6840',)`, `('212-423-7734',)`, `('212-425-6932',)` | Value Statics: Total count 5369 - Distinct count 5369 - Null count 0 | Column Description: phone number \n\temail TEXT, -- Example Values: `('[email protected]',)`, `('[email protected]',)`, `('[email protected]',)` | Value Statics: Total count 5369 - Distinct count 5369 - Null count 0 | Column Description: email | Value Description: google email / account: @gamil.com microsoft email / account: [email protected]\n\taddress_1 TEXT, -- Example Values: `('387 Wellington Ave.',)`, `('75 W. Berkshire St.',)`, `('36 Second St.',)` | Value Statics: Total count 5369 - Distinct count 5365 - Null count 0 | Column Description: address 1 \n\taddress_2 TEXT, -- Example Values: `('Unit 1',)`, `('Unit 6',)`, `('Unit 80',)` | Value Statics: Total count 83 - Distinct count 24 - Null count 5286 | Column Description: address 2 | Value Description: entire address = (address_1, address_2)\n\tcity TEXT, -- Example Values: `('Albuquerque',)`, `('New York City',)`, `('Indianapolis',)` | Value Statics: Total count 5369 - Distinct count 75 - Null count 0 | Column Description: city \n\tstate TEXT, -- Example Values: `('NM',)`, `('NY',)`, `('IN',)` | Value Statics: Total count 5369 - Distinct count 51 - Null count 0 | Column Description: state code \n\tzipcode INTEGER, -- Example Values: `(47246,)`, `(10040,)`, `(10162,)` | Value Statics: Total count 5369 - Distinct count 3512 - Null count 0 | Column Description: zipcode \n\tdistrict_id INTEGER, -- Example Values: `(18,)`, `(1,)`, `(5,)` | Value Statics: Total count 5369 - Distinct count 77 - Null count 0 | Column Name Meaning: district id | Column Description: district id number \n\tforeign key (district_id) references district(district_id),\n);\n\nCREATE TABLE district\n(\n\tdistrict_id INTEGER primary key,\n\tcity TEXT, -- Example Values: `('New York City',)`, `('Jacksonville',)`, `('Columbus',)` | Value Statics: Total count 77 - Distinct count 75 - Null count 0 | Column Description: city \n\tstate_abbrev TEXT, -- Example Values: `('NY',)`, `('FL',)`, `('OH',)` | Value Statics: Total count 77 - Distinct count 51 - Null count 0 | Column Description: state abbreviated code \n\tdivision TEXT, -- Example Values: `Middle Atlantic`, `South Atlantic`, `East North Central`, `Pacific`, `Mountain` | Value Statics: Total count 77 - Distinct count 9 - Null count 0 | Column Description: division \n\tforeign key (state_abbrev) references state(StateCode),\n);\n\nCREATE TABLE events\n(\n\t\"Date received\" DATE, -- Example Values: `('2014-07-03',)`, `('2012-04-12',)`, `('2012-04-03',)` | Value Statics: Total count 23419 - Distinct count 1908 - Null count 0 | Column Description: Date received \n\tProduct TEXT, -- Example Values: `Bank account or service`, `Credit card` | Value Statics: Total count 23419 - Distinct count 2 - Null count 0 | Column Description: complaining about which product \n\t\"Sub-product\" TEXT, -- Example Values: `Checking account`, `Savings account`, `Other bank product/service`, `(CD) Certificate of deposit`, `Cashing a check without an account` | Value Statics: Total count 14091 - Distinct count 5 - Null count 9328 | Column Description: sub product if exists | Value Description: detailed product\n\tIssue TEXT, -- Example Values: `('Deposits and withdrawals',)`, `('Account opening, closing, or management',)`, `('Billing disputes',)` | Value Statics: Total count 23419 - Distinct count 38 - Null count 0 | Column Description: problems leading to this complaints \n\t\"Sub-issue\" TEXT, -- | Column Description: sub problems leading to this complaints if exists | Value Description: more detailed issue\n\t\"Consumer complaint narrative\" TEXT, -- | Column Description: Consumer complaint narrative \n\tTags TEXT, -- Example Values: `Older American`, `Older American, Servicemember`, `Servicemember` | Value Statics: Total count 3276 - Distinct count 3 - Null count 20143 | Column Description: tags of client \n\t\"Consumer consent provided?\" TEXT, -- Example Values: `N/A`, `Consent not provided`, `Consent provided`, `Other` | Value Statics: Total count 23323 - Distinct count 4 - Null count 96 | Column Name Meaning: Tags Consumer consent provided? | Column Description: whether the tags labeled under permission of the clients | Value Description: null, 'N/A' or empty value: indicating that the company didn't get the permission of consent. if the value is not empty: customers provide the consent for this tag.\n\t\"Submitted via\" TEXT, -- Example Values: `Email`, `Fax`, `Postal mail`, `Referral`, `Web` | Value Statics: Total count 23419 - Distinct count 6 - Null count 0 | Column Description: Submitted via \n\t\"Date sent to company\" TEXT, -- Example Values: `('2014-07-09',)`, `('2012-04-13',)`, `('2012-04-03',)` | Value Statics: Total count 23419 - Distinct count 1778 - Null count 0 | Column Description: Date sent to company | Value Description: delay of the complaints = 'Date sent to company'\n\t\"Company response to consumer\" TEXT, -- Example Values: `Closed with explanation`, `Closed with relief`, `Closed without relief`, `Closed with non-monetary relief`, `In progress` | Value Statics: Total count 23419 - Distinct count 8 - Null count 0 | Column Description: Company response to consumer \n\t\"Timely response?\" TEXT, -- Example Values: `Yes`, `No` | Value Statics: Total count 23419 - Distinct count 2 - Null count 0 | Column Description: whether the response of the company is timely \n\t\"Consumer disputed?\" TEXT, -- Example Values: `No`, `Yes` | Value Statics: Total count 22417 - Distinct count 2 - Null count 1002 | Column Description: whether the consumer dispute about the response from the company. \n\t\"Complaint ID\" TEXT, -- Example Values: `('CR0000072',)`, `('CR0000084',)`, `('CR0000140',)` | Value Statics: Total count 23419 - Distinct count 23419 - Null count 0 | Column Description: id number indicating which complaint \n\tClient_ID TEXT, -- Example Values: `('C00003714',)`, `('C00001366',)`, `('C00002330',)` | Value Statics: Total count 23419 - Distinct count 5284 - Null count 0 | Column Name Meaning: Client ID | Column Description: id number indicating which client \n\tprimary key (\"Complaint ID\", Client_ID),\n\tforeign key (\"Complaint ID\") references callcenterlogs(\"Complaint ID\"),\n\tforeign key (Client_ID) references client(client_id),\n);\n\nCREATE TABLE reviews\n(\n\t\"Date\" DATE primary key,\n\tStars INTEGER, -- Example Values: `5`, `1`, `2` | Value Statics: Total count 377 - Distinct count 3 - Null count 0 \n\tReviews TEXT, -- \n\tProduct TEXT, -- Example Values: `Eagle National Mortgage`, `Eagle National Bank`, `Eagle Capital` | Value Statics: Total count 377 - Distinct count 3 - Null count 0 \n\tdistrict_id INTEGER, -- Example Values: `(65,)`, `(66,)`, `(23,)` | Value Statics: Total count 377 - Distinct count 77 - Null count 0 \n\tforeign key (district_id) references district(district_id),\n);"
}
|
movies_4
|
{
"db_schema": "CREATE TABLE country\n(\n\tcountry_id INTEGER not null primary key,\n\tcountry_iso_code TEXT default NULL, -- Example Values: `('AE',)`, `('AF',)`, `('AO',)` | Value Statics: Total count 88 - Distinct count 88 - Null count 0 | Column Name Meaning: country iso code | Column Description: the ISO code | Value Description: ISO codes are typically used to identify countries and their subdivisions, and there are different types of ISO codes depending on the specific application. Here we use ISO 3166 code to identify countries.\n\tcountry_name TEXT default NULL, -- Example Values: `('United Arab Emirates',)`, `('Afghanistan',)`, `('Angola',)` | Value Statics: Total count 88 - Distinct count 88 - Null count 0 | Column Name Meaning: country name | Column Description: the name of the country \n);\n\nCREATE TABLE department\n(\n\tdepartment_id INTEGER not null primary key,\n\tdepartment_name TEXT default NULL, -- Example Values: `Camera`, `Directing`, `Production`, `Writing`, `Editing` | Value Statics: Total count 12 - Distinct count 12 - Null count 0 | Column Name Meaning: department name | Column Description: the name of the department \n);\n\nCREATE TABLE gender\n(\n\tgender_id INTEGER not null primary key,\n\tgender TEXT default NULL, -- Example Values: `Unspecified`, `Female`, `Male` | Value Statics: Total count 3 - Distinct count 3 - Null count 0 | Column Description: the gender | Value Description: female/ male/ unspecified\n);\n\nCREATE TABLE genre\n(\n\tgenre_id INTEGER not null primary key,\n\tgenre_name TEXT default NULL, -- Example Values: `('Adventure',)`, `('Fantasy',)`, `('Animation',)` | Value Statics: Total count 20 - Distinct count 20 - Null count 0 | Column Description: the genre \n);\n\nCREATE TABLE keyword\n(\n\tkeyword_id INTEGER not null primary key,\n\tkeyword_name TEXT default NULL, -- Example Values: `('individual',)`, `('holiday',)`, `('germany',)` | Value Statics: Total count 9794 - Distinct count 9794 - Null count 0 | Column Name Meaning: keyword name | Column Description: the keyword \n);\n\nCREATE TABLE language\n(\n\tlanguage_id INTEGER not null primary key,\n\tlanguage_code TEXT default NULL, -- Example Values: `('en',)`, `('sv',)`, `('de',)` | Value Statics: Total count 88 - Distinct count 88 - Null count 0 | Column Name Meaning: language code | Column Description: the code of the language | Value Description: Here we use ISO 639 codes to identify the language.\n\tlanguage_name TEXT default NULL, -- Example Values: `('English',)`, `('svenska',)`, `('Deutsch',)` | Value Statics: Total count 88 - Distinct count 63 - Null count 0 | Column Name Meaning: language name | Column Description: the language name \n);\n\nCREATE TABLE language_role\n(\n\trole_id INTEGER not null primary key,\n\tlanguage_role TEXT default NULL, -- Example Values: `Original`, `Spoken` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Name Meaning: language role | Column Description: the language role | Value Description: In the context of language roles in a movie or other audio-visual production, \"original\" and \"spoken\" refer to the languages in which the movie was originally produced, and the languages spoken by the characters in the movie, respectively.\n);\n\nCREATE TABLE movie\n(\n\tmovie_id INTEGER not null primary key,\n\ttitle TEXT default NULL, -- Example Values: `('Four Rooms',)`, `('Star Wars',)`, `('Finding Nemo',)` | Value Statics: Total count 4627 - Distinct count 4625 - Null count 0 | Column Description: the title of the movie \n\tbudget INTEGER default NULL, -- Example Values: `(4000000,)`, `(11000000,)`, `(94000000,)` | Value Statics: Total count 4627 - Distinct count 427 - Null count 0 | Column Description: the budget for the movie | Value Description: If a movie has higher popularity, it means that it is well-liked by a large number of people. This can be determined by looking at the movie's ratings and reviews, as well as the box office performance and overall buzz surrounding the film. Higher popularity often translates to more success for the movie, both financially and critically.\n\thomepage TEXT default NULL, -- Example Values: `('',)`, `('http://www.starwars.com/films/star-wars-episode-`, `('http://movies.disney.com/finding-nemo',)` | Value Statics: Total count 4627 - Distinct count 1623 - Null count 0 | Column Description: the homepage of the movie \n\toverview TEXT default NULL, -- | Column Description: the overview of the movie \n\tpopularity REAL default NULL, -- Example Values: `(22.87623,)`, `(126.393695,)`, `(85.688789,)` | Value Statics: Total count 4627 - Distinct count 4626 - Null count 0 | Column Description: the popularity of the movie | Value Description: If a movie has higher popularity, it means that it is well-liked by a large number of people. This can be determined by looking at the movie's ratings and reviews, as well as the box office performance and overall buzz surrounding the film. Higher popularity often translates to more success for the movie, both financially and critically.\n\trelease_date DATE default NULL, -- Example Values: `('1995-12-09',)`, `('1977-05-25',)`, `('2003-05-30',)` | Value Statics: Total count 4627 - Distinct count 3196 - Null count 0 | Column Name Meaning: release date | Column Description: the release date of the movie \n\trevenue INTEGER default NULL, -- Example Values: `(4300000,)`, `(775398007,)`, `(940335536,)` | Value Statics: Total count 4627 - Distinct count 3244 - Null count 0 | Column Description: the revenue of the movie | Value Description: A higher vote average indicates that a greater proportion of people who have seen the movie have given it positive ratings.\n\truntime INTEGER default NULL, -- Example Values: `(98,)`, `(121,)`, `(100,)` | Value Statics: Total count 4627 - Distinct count 156 - Null count 0 | Column Description: the runtime of the movie \n\tmovie_status TEXT default NULL, -- Example Values: `Released`, `Rumored`, `Post Production` | Value Statics: Total count 4627 - Distinct count 3 - Null count 0 | Column Description: the status of the movie The only value of this column is 'Released'. \n\ttagline TEXT default NULL, -- | Column Description: the tagline of the movie \n\tvote_average REAL default NULL, -- Example Values: `(6.5,)`, `(8.1,)`, `(7.6,)` | Value Statics: Total count 4627 - Distinct count 69 - Null count 0 | Column Name Meaning: vote average | Column Description: the average vote for the movie | Value Description: A higher vote average indicates that a greater proportion of people who have seen the movie have given it positive ratings.\n\tvote_count INTEGER default NULL, -- Example Values: `(530,)`, `(6624,)`, `(6122,)` | Value Statics: Total count 4627 - Distinct count 1595 - Null count 0 | Column Name Meaning: vote count | Column Description: the vote count for the movie | Value Description: If a movie has a higher vote average and vote count, it means that it has been well-received by audiences and critics. A higher vote count means that more people have rated the movie, which can indicate a greater level of interest in the film.\n);\n\nCREATE TABLE movie_genres\n(\n\tmovie_id INTEGER default NULL, -- Example Values: `(5,)`, `(11,)`, `(12,)` | Value Statics: Total count 12160 - Distinct count 4775 - Null count 0 | Column Name Meaning: movie id | Column Description: the id of the movie Maps to movie(movie_id) \n\tgenre_id INTEGER default NULL, -- Example Values: `(35,)`, `(80,)`, `(12,)` | Value Statics: Total count 12160 - Distinct count 20 - Null count 0 | Column Name Meaning: genre id | Column Description: the id of the movie genre Maps to genre(genre_id) \n\tforeign key (genre_id) references genre(genre_id),\n\tforeign key (movie_id) references movie(movie_id),\n);\n\nCREATE TABLE movie_languages\n(\n\tmovie_id INTEGER default NULL, -- Example Values: `(5,)`, `(11,)`, `(12,)` | Value Statics: Total count 11740 - Distinct count 4803 - Null count 0 | Column Name Meaning: movie id | Column Description: the id of the movie Maps to movie(movie_id) \n\tlanguage_id INTEGER default NULL, -- Example Values: `(24574,)`, `(24575,)`, `(24576,)` | Value Statics: Total count 11740 - Distinct count 88 - Null count 0 | Column Name Meaning: language id | Column Description: the id of the movie language Maps to language(language_id) \n\tlanguage_role_id INTEGER default NULL, -- Example Values: `2`, `1` | Value Statics: Total count 11740 - Distinct count 2 - Null count 0 | Column Name Meaning: language role id | Column Description: the id of the role's language \n\tforeign key (language_id) references language(language_id),\n\tforeign key (movie_id) references movie(movie_id),\n\tforeign key (language_role_id) references language_role(role_id),\n\tforeign key (language_role_id) references language_role(role_id),\n);\n\nCREATE TABLE person\n(\n\tperson_id INTEGER not null primary key,\n\tperson_name TEXT default NULL, -- Example Values: `('George Lucas',)`, `('Mark Hamill',)`, `('Harrison Ford',)` | Value Statics: Total count 100000 - Distinct count 98472 - Null count 0 | Column Name Meaning: person name | Column Description: the name of the person \n);\n\nCREATE TABLE movie_crew\n(\n\tmovie_id INTEGER default NULL, -- Example Values: `(285,)`, `(559,)`, `(767,)` | Value Statics: Total count 100000 - Distinct count 3329 - Null count 0 | Column Name Meaning: movie id | Column Description: the id of the movie that the crew worked for Maps to movie(movie_id) \n\tperson_id INTEGER default NULL, -- Example Values: `(120,)`, `(1704,)`, `(770,)` | Value Statics: Total count 100000 - Distinct count 42294 - Null count 0 | Column Name Meaning: person id | Column Description: the id of the crew Maps to person(person_id) \n\tdepartment_id INTEGER default NULL, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 100000 - Distinct count 12 - Null count 0 | Column Name Meaning: department id | Column Description: the id of the crew's department Maps to department(department_id) \n\tjob TEXT default NULL, -- Example Values: `('Director of Photography',)`, `('Director',)`, `('Producer',)` | Value Statics: Total count 100000 - Distinct count 415 - Null count 0 | Column Description: the job of the crew | Value Description: A movie may involve several crews with the same job title.\n\tforeign key (department_id) references department(department_id),\n\tforeign key (movie_id) references movie(movie_id),\n\tforeign key (person_id) references person(person_id),\n);\n\nCREATE TABLE production_company\n(\n\tcompany_id INTEGER not null primary key,\n\tcompany_name TEXT default NULL, -- Example Values: `('Lucasfilm',)`, `('Walt Disney Pictures',)`, `('Pixar Animation Studios',)` | Value Statics: Total count 5047 - Distinct count 5017 - Null count 0 | Column Name Meaning: company name | Column Description: the name of the company \n);\n\nCREATE TABLE production_country\n(\n\tmovie_id INTEGER default NULL, -- Example Values: `(5,)`, `(11,)`, `(12,)` | Value Statics: Total count 6436 - Distinct count 4629 - Null count 0 | Column Name Meaning: mivie id | Column Description: the unique identifier of the movie \n\tcountry_id INTEGER default NULL, -- Example Values: `(214,)`, `(131,)`, `(152,)` | Value Statics: Total count 6436 - Distinct count 88 - Null count 0 | Column Name Meaning: country id | Column Description: the id of the country \n\tforeign key (country_id) references country(country_id),\n\tforeign key (movie_id) references movie(movie_id),\n);\n\nCREATE TABLE movie_cast\n(\n\tmovie_id INTEGER default NULL, -- Example Values: `(285,)`, `(559,)`, `(767,)` | Value Statics: Total count 59083 - Distinct count 2443 - Null count 0 | Column Name Meaning: movie id | Column Description: the id of the movie Maps to movie(movie_id) \n\tperson_id INTEGER default NULL, -- Example Values: `(85,)`, `(114,)`, `(116,)` | Value Statics: Total count 59083 - Distinct count 32697 - Null count 0 | Column Name Meaning: person id | Column Description: the id of the person Maps to person(person_id) \n\tcharacter_name TEXT default NULL, -- Example Values: `('Captain Jack Sparrow',)`, `('Will Turner',)`, `('Elizabeth Swann',)` | Value Statics: Total count 59083 - Distinct count 42994 - Null count 0 | Column Name Meaning: character name | Column Description: the character name \n\tgender_id INTEGER default NULL, -- Example Values: `2`, `1`, `0` | Value Statics: Total count 59083 - Distinct count 3 - Null count 0 | Column Name Meaning: gender id | Column Description: the id of the cast's gender Maps to gender(gender_id) \n\tcast_order INTEGER default NULL, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 59083 - Distinct count 213 - Null count 0 | Column Name Meaning: cast order | Column Description: the cast order of the cast | Value Description: The cast order of a movie or television show refers to the sequence in which the actors and actresses are listed in the credits. This order is typically determined by the relative importance of each actor's role in the production, with the main actors and actresses appearing first, followed by the supporting cast and extras.\n\tforeign key (gender_id) references gender(gender_id),\n\tforeign key (movie_id) references movie(movie_id),\n\tforeign key (person_id) references person(person_id),\n);\n\nCREATE TABLE movie_keywords\n(\n\tmovie_id INTEGER default NULL references movie, -- Example Values: `(5,)`, `(11,)`, `(12,)` | Value Statics: Total count 36162 - Distinct count 4391 - Null count 0 | Column Name Meaning: movie id | Column Description: the id of the movie Maps to movie(movie_id) \n\tkeyword_id INTEGER default NULL references keyword, -- Example Values: `(612,)`, `(613,)`, `(616,)` | Value Statics: Total count 36162 - Distinct count 9794 - Null count 0 | Column Name Meaning: keyword id | Column Description: the id of the movie keyword Maps to keyword(keyword_id) | Value Description: A movie may have many keywords. Audience could get the genre of the movie according to the movie keywords.\n);\n\nCREATE TABLE movie_company\n(\n\tmovie_id INTEGER default NULL references movie, -- Example Values: `(5,)`, `(11,)`, `(12,)` | Value Statics: Total count 13677 - Distinct count 4452 - Null count 0 | Column Name Meaning: movie id | Column Description: the id of the movie Maps to movie(movie_id) \n\tcompany_id INTEGER default NULL references production_company, -- Example Values: `(14,)`, `(59,)`, `(1,)` | Value Statics: Total count 13677 - Distinct count 5047 - Null count 0 | Column Name Meaning: company id | Column Description: the id of the company that produced the movie Maps to production_company(company_id) | Value Description: If movies with different movie_id have the same company_id, it means these movies were made by the same company.\n);"
}
|
codebase_comments
|
{
"db_schema": "CREATE TABLE Method\n(\n\tId INTEGER not null primary key autoincrement,\n\tName TEXT, -- Example Values: `('HtmlSharp.HtmlParser.Feed',)`, `('HtmlSharp.HtmlParser.ParseDoctypeElement',)`, `('IQ.Data.DbQueryProvider.GetQueryText',)` | Value Statics: Total count 100000 - Distinct count 83803 - Null count 0 | Column Description: name of methods | Value Description: the second part is the task of this method\r delimited by \".\"\n\tFullComment TEXT, -- Example Values: `('Feeds data into the parser',)`, `(' interneral -- scan past <!ELEMENT declarations'`, `(' <summary>\\n /// Converts the query expre` | Value Statics: Total count 100000 - Distinct count 68340 - Null count 0 | Column Name Meaning: Full Comment | Column Description: full comment of this method \n\tSummary TEXT, -- | Column Description: summary of the method \n\tApiCalls TEXT, --| Column Name Meaning: Api Calls | Column Description: linearized sequenced of API calls \n\tCommentIsXml INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: CommentIs Xml | Column Description: whether the comment is XML format or not | Value Description: 0: the comment for this method is not XML format.\r 1: the comment for this method is XML format.\n\tSampledAt INTEGER, -- Example Values: `(636430963695654788,)`, `(636430963695709898,)`, `(636430963721734366,)` | Value Statics: Total count 100000 - Distinct count 2297 - Null count 0 | Column Name Meaning: Sampled At | Column Description: the time of sampling \n\tSolutionId INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 1262 - Null count 0 | Column Name Meaning: Solution Id | Column Description: id number of solutions \n\tLang TEXT, -- Example Values: `('en',)`, `('fr',)`, `('fi',)` | Value Statics: Total count 87803 - Distinct count 38 - Null count 12197 | Column Name Meaning: Language | Column Description: language code of method \n\tNameTokenized TEXT, -- Example Values: `('html parser feed',)`, `('html parser parse doctype element',)`, `('db query provider get query text',)` | Value Statics: Total count 100000 - Distinct count 77009 - Null count 0 | Column Name Meaning: Name Tokenized | Column Description: tokenized name \n);\n\nCREATE TABLE MethodParameter\n(\n\tId INTEGER not null primary key autoincrement,\n\tMethodId TEXT, -- Example Values: `('1',)`, `('2',)`, `('3',)` | Value Statics: Total count 100000 - Distinct count 49492 - Null count 0 | Column Name Meaning: Method Id \n\tType TEXT, -- Example Values: `('System.String',)`, `('System.Int32',)`, `('System.Linq.Expressions.Expression',)` | Value Statics: Total count 100000 - Distinct count 6125 - Null count 0 | Column Description: type of the method \n\tName TEXT, -- Example Values: `('data',)`, `('i',)`, `('declstartpos',)` | Value Statics: Total count 100000 - Distinct count 9933 - Null count 0 | Column Description: name of the method | Value Description: if the name is not a word like \"H\", \"z\", it means this method is not well-discriminative.\n);\n\nCREATE TABLE Repo\n(\n\tId INTEGER not null primary key autoincrement,\n\tUrl TEXT, -- Example Values: `('https://github.com/wallerdev/htmlsharp.git',)`, `('https://github.com/unclebob/nslim.git',)`, `('https://github.com/maravillas/linq-to-delicious.` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: github address of repository \n\tStars INTEGER, -- Example Values: `(14,)`, `(6,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 784 - Null count 0 | Column Description: stars this repository has received \n\tForks INTEGER, -- Example Values: `(2,)`, `(3,)`, `(0,)` | Value Statics: Total count 100000 - Distinct count 455 - Null count 0 | Column Description: forks that the repository has received \n\tWatchers INTEGER, -- Example Values: `(14,)`, `(6,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 784 - Null count 0 | Column Description: how many watchers of this repository \n\tProcessedTime INTEGER, -- Example Values: `(636430963247108053,)`, `(636472436323838240,)`, `(636430963280029575,)` | Value Statics: Total count 100000 - Distinct count 99967 - Null count 0 | Column Name Meaning: Processed Time | Column Description: how much processed time of downloading this repository \n);\n\nCREATE TABLE Solution\n(\n\tId INTEGER not null primary key autoincrement,\n\tRepoId INTEGER, -- Example Values: `(1,)`, `(3,)`, `(4,)` | Value Statics: Total count 100000 - Distinct count 49433 - Null count 0 | Column Name Meaning: Repository Id | Column Description: id of repository \n\tPath TEXT, -- Example Values: `('wallerdev_htmlsharp\\\\HtmlSharp.sln',)`, `('maravillas_linq-to-delicious\\\\tasty.sln',)`, `('mauriciodeamorim_tdd.encontro2\\\\Tdd.Encontro2.sl` | Value Statics: Total count 100000 - Distinct count 99987 - Null count 0 | Column Description: path of this solution \n\tProcessedTime INTEGER, -- Example Values: `(636430963695642191,)`, `(636430963721734366,)`, `(636430963735704849,)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Name Meaning: Processed Time | Column Description: processed time \n\tWasCompiled INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: Was Compiled | Column Description: whether this solution needs to be compiled or not | Value Description: 0: this solution needs to be compiled if user wants to implement it. 1: this solution can be implemented without needs of compilation\n);"
}
|
trains
|
{
"db_schema": "CREATE TABLE cars\n(\n\t`id` INTEGER NOT NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 63 - Distinct count 63 - Null count 0 | Column Description: the unique id number representing the cars \n\t`train_id` INTEGER DEFAULT NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 63 - Distinct count 20 - Null count 0 | Column Name Meaning: train id | Column Description: the counterpart id for trains that the cars belong to \n\t`position` INTEGER DEFAULT NULL, -- Example Values: `1`, `2`, `3`, `4` | Value Statics: Total count 63 - Distinct count 4 - Null count 0 | Column Description: postion id of cars in the trains | Value Description: 1-4: 1: head car 4: tail car\n\t`shape` TEXT DEFAULT NULL, -- Example Values: `rectangle`, `bucket`, `u_shaped`, `hexagon`, `ellipse` | Value Statics: Total count 63 - Distinct count 5 - Null count 0 | Column Description: shape of the cars | Value Description: ⢠rectangle ⢠bucket ⢠u_shaped ⢠hexagon ⢠elipse regular shape: rectangle, u_shaped, hexagon\n\t`len`TEXT DEFAULT NULL, -- Example Values: `short`, `long` | Value Statics: Total count 63 - Distinct count 2 - Null count 0 | Column Name Meaning: length | Column Description: length of the cars | Value Description: ⢠short ⢠long\n\t`sides` TEXT DEFAULT NULL, -- Example Values: `not_double`, `double` | Value Statics: Total count 63 - Distinct count 2 - Null count 0 | Column Description: sides of the cars | Value Description: ⢠not_double ⢠double\n\t`roof` TEXT DEFAULT NULL, -- Example Values: `none`, `peaked`, `flat`, `arc`, `jagged` | Value Statics: Total count 63 - Distinct count 5 - Null count 0 | Column Description: roof of the cars | Value Description: ⢠none: the roof is open ⢠peaked ⢠flat ⢠arc ⢠jagged\n\t`wheels` INTEGER DEFAULT NULL, -- Example Values: `2`, `3` | Value Statics: Total count 63 - Distinct count 2 - Null count 0 | Column Description: wheels of the cars | Value Description: ⢠2: ⢠3:\n\t`load_shape` TEXT DEFAULT NULL, -- Example Values: `circle`, `hexagon`, `triangle`, `rectangle`, `diamond` | Value Statics: Total count 63 - Distinct count 5 - Null count 0 | Column Description: load shape | Value Description: ⢠circle ⢠hexagon ⢠triangle ⢠rectangle ⢠diamond\n\t`load_num` INTEGER DEFAULT NULL, -- Example Values: `1`, `3`, `2`, `0` | Value Statics: Total count 63 - Distinct count 4 - Null count 0 | Column Name Meaning: load number | Column Description: load number | Value Description: 0-3: ⢠0: empty load ⢠3: full load\n\tPRIMARY KEY (`id`),\n\tFOREIGN KEY (`train_id`) REFERENCES `trains` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,\n);\n\nCREATE TABLE trains\n(\n\t`id` INTEGER NOT NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 20 - Distinct count 20 - Null count 0 | Column Description: the unique id representing the trains \n\t`direction` TEXT DEFAULT NULL, -- Example Values: `east`, `west` | Value Statics: Total count 20 - Distinct count 2 - Null count 0 | Column Description: the direction of trains that are running | Value Description: ⢠east; ⢠west;\n\tPRIMARY KEY (`id`),\n);"
}
|
movie
|
{
"db_schema": "CREATE TABLE actor\n(\n\tActorID INTEGER constraint actor_pk primary key,\n\tName TEXT, -- Example Values: `('John Travolta',)`, `('Kirstie Alley',)`, `('Olympia Dukakis',)` | Value Statics: Total count 2600 - Distinct count 2598 - Null count 113 | Column Description: actor's name \n\t\"Date of Birth\" DATE, -- Example Values: `('1954-02-18',)`, `('1951-01-12',)`, `('1931-06-20',)` | Value Statics: Total count 2319 - Distinct count 2173 - Null count 394 | Column Description: actor's birth date \n\t\"Birth City\" TEXT, -- Example Values: `('Englewood',)`, `('Wichita',)`, `('Lowell',)` | Value Statics: Total count 2317 - Distinct count 1043 - Null count 396 | Column Description: actor's birth city \n\t\"Birth Country\" TEXT, -- Example Values: `('USA',)`, `('West Germany',)`, `('UK',)` | Value Statics: Total count 2301 - Distinct count 79 - Null count 412 | Column Description: actor's birth country \n\t\"Height (Inches)\" INTEGER, -- Example Values: `(74,)`, `(67,)`, `(63,)` | Value Statics: Total count 2057 - Distinct count 34 - Null count 656 | Column Name Meaning: height inches | Column Description: actor's height | Value Description: the unit is inch\n\tBiography TEXT, -- | Column Description: actor's biography \n\tGender TEXT, -- Example Values: `Male`, `Female` | Value Statics: Total count 1172 - Distinct count 2 - Null count 1541 | Column Description: actor's gender \n\tEthnicity TEXT, -- Example Values: `White`, `African American`, `Lebanese`, `Armenian`, `Asian` | Value Statics: Total count 567 - Distinct count 17 - Null count 2146 | Column Description: actor's ethnicity \n\tNetWorth TEXT, -- Example Values: `('$250,000,000.00',)`, `('$40,000,000.00',)`, `('$6,000,000.00',)` | Value Statics: Total count 1348 - Distinct count 80 - Null count 1365 | Column Description: actor's networth | Value Description: The actor with more networth is richer.\n);\n\nCREATE TABLE movie\n(\n\tMovieID INTEGER constraint movie_pk primary key,\n\tTitle TEXT, -- Example Values: `(\"Look Who's Talking\",)`, `('Driving Miss Daisy',)`, `('Turner & Hooch',)` | Value Statics: Total count 634 - Distinct count 626 - Null count 0 | Column Description: the title of the movie \n\t\"MPAA Rating\" TEXT, -- Example Values: `PG-13`, `PG`, `R`, `G` | Value Statics: Total count 634 - Distinct count 4 - Null count 0 | Column Name Meaning: motion picture association of america rating | Column Description: MPAA rating of the movie | Value Description: MPAA rating is the movie rating for parents to use as a guide to determine the appropriateness of a film's content for children and teenagers. rated G: General audiences All ages admitted rated PG: Parental guidance suggested Some material may not be suitable for pre-teenagers rated R: Restricted Under 17 requires accompanying parent or adult guardian rated X: No one under 17 admitted\n\tBudget INTEGER, -- Example Values: `(7500000,)`, `(13000000,)`, `(14000000,)` | Value Statics: Total count 634 - Distinct count 149 - Null count 0 | Column Description: the budget of the movie | Value Description: the unit is dollar\n\tGross INTEGER, -- Example Values: `(296000000,)`, `(145793296,)`, `(71079915,)` | Value Statics: Total count 633 - Distinct count 630 - Null count 1 | Column Description: the gross of the movie \n\t\"Release Date\" TEXT, -- Example Values: `('1989-10-12',)`, `('1989-12-13',)`, `('1989-07-28',)` | Value Statics: Total count 634 - Distinct count 612 - Null count 0 | Column Description: release date | Value Description: yyyy-mm-dd\n\tGenre TEXT, -- Example Values: `Romance`, `Comedy`, `Crime`, `War`, `Drama` | Value Statics: Total count 634 - Distinct count 17 - Null count 0 | Column Description: the genre of the movie \n\tRuntime INTEGER, -- Example Values: `(93,)`, `(99,)`, `(100,)` | Value Statics: Total count 634 - Distinct count 96 - Null count 0 | Column Description: the runtime of the movie \n\tRating REAL, -- Example Values: `(5.9,)`, `(7.4,)`, `(7.2,)` | Value Statics: Total count 633 - Distinct count 48 - Null count 1 | Column Description: the rating of the movie | Value Description: 0.0 - 10.0 Higher ratings mean higher quality and better response.\n\t\"Rating Count\" INTEGER, -- Example Values: `(73638,)`, `(91075,)`, `(91415,)` | Value Statics: Total count 624 - Distinct count 595 - Null count 10 | Column Description: the number of the ratings \n\tSummary TEXT, -- | Column Description: the summary of the movie \n);\n\nCREATE TABLE characters\n(\n\tMovieID INTEGER, -- Example Values: `(1,)`, `(2,)`, `(4,)` | Value Statics: Total count 4312 - Distinct count 480 - Null count 0 | Column Name Meaning: movie id | Column Description: the unique id for the movie \n\tActorID INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 4312 - Distinct count 2600 - Null count 0 | Column Name Meaning: actor id | Column Description: the unique id for the actor \n\t\"Character Name\" TEXT, -- Example Values: `('James',)`, `('Mollie',)`, `('Rosie',)` | Value Statics: Total count 4312 - Distinct count 3643 - Null count 0 | Column Description: the name of the character \n\tcreditOrder INTEGER, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 4312 - Distinct count 9 - Null count 0 | Column Name Meaning: credit order | Column Description: order of the character in the credit list \n\tpay TEXT, -- Example Values: `$5,000,000.00`, `$60,000,000.00`, `$29,000,000.00`, `$65,000,000.00`, `$50,000,000.00` | Value Statics: Total count 10 - Distinct count 10 - Null count 4302 | Column Description: the salary of the character \n\tscreentime TEXT, -- Example Values: `0:32:30`, `0:32:15`, `0:29:00`, `0:08:45`, `0:04:30` | Value Statics: Total count 8 - Distinct count 8 - Null count 4304 | Column Description: the screentime of the character | Value Description: Screentime is directly proportional to the importance of the characters.\n\tprimary key (MovieID, ActorID),\n\tforeign key (ActorID) references actor(ActorID),\n\tforeign key (MovieID) references movie(MovieID),\n);"
}
|
social_media
|
{
"db_schema": "CREATE TABLE location\n(\n\tLocationID INTEGER constraint location_pk primary key,\n\tCountry TEXT, -- Example Values: `('Albania',)`, `('Algeria',)`, `('Andorra',)` | Value Statics: Total count 6210 - Distinct count 174 - Null count 1 | Column Description: the country \n\tState TEXT, -- Example Values: `('Elbasan',)`, `('Tirane',)`, `('Souk Ahras',)` | Value Statics: Total count 6096 - Distinct count 1216 - Null count 115 | Column Description: the state \n\tStateCode TEXT, -- Example Values: `('AL',)`, `('DZ',)`, `('AD',)` | Value Statics: Total count 6103 - Distinct count 386 - Null count 108 | Column Name Meaning: state code | Column Description: state code \n\tCity TEXT, -- Example Values: `('Elbasan',)`, `('Tirana',)`, `('Souk Ahras',)` | Value Statics: Total count 6054 - Distinct count 5444 - Null count 157 | Column Description: the city \n);\n\nCREATE TABLE user\n(\n\tUserID TEXT constraint user_pk primary key,\n\tGender TEXT, -- Example Values: `Unknown`, `Male`, `Unisex`, `Female` | Value Statics: Total count 99260 - Distinct count 4 - Null count 0 | Column Description: user's gender | Value Description: Male / Female / Unknown\n);\n\nCREATE TABLE twitter\n(\n\tTweetID TEXT primary key,\n\tWeekday TEXT, -- Example Values: `Thursday`, `Friday`, `Saturday`, `Sunday`, `Monday` | Value Statics: Total count 99900 - Distinct count 7 - Null count 1 | Column Description: the weekday that the tweet has been posted \n\tHour INTEGER, -- Example Values: `(17,)`, `(18,)`, `(19,)` | Value Statics: Total count 99900 - Distinct count 24 - Null count 1 | Column Description: the hour that the tweet has been posted \n\tDay INTEGER, -- Example Values: `(31,)`, `(1,)`, `(2,)` | Value Statics: Total count 99900 - Distinct count 31 - Null count 1 | Column Description: the day that the tweet has been posted \n\tLang TEXT, -- Example Values: `('en',)`, `('_u',)`, `('es',)` | Value Statics: Total count 99900 - Distinct count 36 - Null count 1 | Column Name Meaning: language | Column Description: the language of the tweet \n\tIsReshare TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 99900 - Distinct count 2 - Null count 1 | Column Name Meaning: is reshare | Column Description: whether the tweet is reshared | Value Description: A reshared tweet is when someone reshares or forwards a post to their own Twitter \r \ttrue: the tweet is reshared\r \tfalse: the tweet isn't reshared\n\tReach INTEGER, -- Example Values: `(44,)`, `(1810,)`, `(282,)` | Value Statics: Total count 99900 - Distinct count 12457 - Null count 1 | Column Description: the reach of the tweet | Value Description: reach counts the number of unique users who have seen your tweet\n\tRetweetCount INTEGER, -- Example Values: `(0,)`, `(5,)`, `(4,)` | Value Statics: Total count 99900 - Distinct count 478 - Null count 1 | Column Name Meaning: retweet count | Column Description: the retweet count \n\tLikes INTEGER, -- Example Values: `(0,)`, `(131,)`, `(40,)` | Value Statics: Total count 99900 - Distinct count 87 - Null count 1 | Column Description: the number of likes \n\tKlout INTEGER, -- Example Values: `(35,)`, `(53,)`, `(47,)` | Value Statics: Total count 99900 - Distinct count 84 - Null count 1 | Column Description: the klout of the tweet \n\tSentiment REAL, -- Example Values: `(0.0,)`, `(2.0,)`, `(-1.0,)` | Value Statics: Total count 99900 - Distinct count 318 - Null count 1 | Column Description: the sentiment of the tweet | Value Description: \t>0: the sentiment of the tweet is positive. \r \t=0: the sentiment of the tweet is neutral.\r \t<0: the sentiment of the tweet is negative.\n\t\"text\" TEXT, -- | Column Description: the text of the tweet \n\tLocationID INTEGER, -- Example Values: `(3751,)`, `(3989,)`, `(3741,)` | Value Statics: Total count 99900 - Distinct count 4307 - Null count 1 | Column Name Meaning: location id | Column Description: the location id of the poster \n\tUserID TEXT, -- Example Values: `('tw-40932430',)`, `('tw-3179389829',)`, `('tw-4624808414',)` | Value Statics: Total count 99900 - Distinct count 33185 - Null count 1 | Column Name Meaning: user id | Column Description: the user id of the poster \n\tforeign key (LocationID) references location(LocationID),\n\tforeign key (UserID) references user(UserID),\n);"
}
|
cs_semester
|
{
"db_schema": "CREATE TABLE course\n(\n\tcourse_id INTEGER constraint course_pk primary key,\n\tname TEXT, -- Example Values: `Machine Learning Theory`, `Intro to Database 1`, `Intro to Database 2`, `Natural Language Processing`, `Intro to BlockChain` | Value Statics: Total count 13 - Distinct count 13 - Null count 0 | Column Description: name of the course \n\tcredit INTEGER, -- Example Values: `3`, `2` | Value Statics: Total count 13 - Distinct count 2 - Null count 0 | Column Description: credit of the course | Value Description: higher means more important\n\tdiff INTEGER, -- Example Values: `3`, `4`, `1`, `5`, `2` | Value Statics: Total count 13 - Distinct count 5 - Null count 0 | Column Name Meaning: difficulty | Column Description: difficulty of the course | Value Description: higher --> more difficult\r smaller --> less difficult\n);\n\nCREATE TABLE prof\n(\n\tprof_id INTEGER constraint prof_pk primary key,\n\tgender TEXT, -- Example Values: `Male`, `Female` | Value Statics: Total count 10 - Distinct count 2 - Null count 0 | Column Description: gender of the professor \n\tfirst_name TEXT, -- Example Values: `Nathaniel`, `Zhihua`, `Ogdon`, `Merwyn`, `Bernhard` | Value Statics: Total count 10 - Distinct count 10 - Null count 0 | Column Name Meaning: first name | Column Description: the first name of the professor \n\tlast_name TEXT, -- Example Values: `Pigford`, `Zhou`, `Zywicki`, `Conkay`, `Molen` | Value Statics: Total count 10 - Distinct count 10 - Null count 0 | Column Name Meaning: last name | Column Description: the last name of the professor | Value Description: full name: first name, last name\n\temail TEXT, -- Example Values: `[email protected]`, `[email protected]`, `[email protected]`, `[email protected]`, `[email protected]` | Value Statics: Total count 10 - Distinct count 10 - Null count 0 | Column Description: email of the professor \n\tpopularity INTEGER, -- Example Values: `3`, `2` | Value Statics: Total count 10 - Distinct count 2 - Null count 0 | Column Description: popularity of the professor | Value Description: higher --> more popular\n\tteachingability INTEGER, -- Example Values: `5`, `1`, `2`, `3`, `4` | Value Statics: Total count 10 - Distinct count 5 - Null count 0 | Column Name Meaning: teaching ability | Column Description: the teaching ability of the professor | Value Description: higher --> more teaching ability, his / her lectures may have better quality\n\tgraduate_from TEXT, -- Example Values: `University of Washington`, `Beijing Polytechnic University`, `University of Boston`, `Carnegie Mellon University`, `Princeton University` | Value Statics: Total count 10 - Distinct count 10 - Null count 0 | Column Name Meaning: graduate from | Column Description: the school where the professor graduated from \n);\n\nCREATE TABLE RA\n(\n\tstudent_id INTEGER, -- Example Values: `(2,)`, `(5,)`, `(6,)` | Value Statics: Total count 35 - Distinct count 21 - Null count 0 | Column Name Meaning: student id | Column Description: the id numbe representing each student \n\tcapability INTEGER, -- Example Values: `2`, `5`, `4`, `3` | Value Statics: Total count 35 - Distinct count 4 - Null count 0 | Column Description: the capability of student on research (Evaluated by the professor) | Value Description: higher --> higher research ability / capability\n\tprof_id INTEGER, -- Example Values: `7`, `10`, `13`, `9`, `2` | Value Statics: Total count 35 - Distinct count 13 - Null count 0 | Column Name Meaning: professor id | Column Description: professor who advises this student | Value Description: this value may be repetitive since one professor may advise many students in this semester if a professor advise > 2 students in this semester, it means this professor's research work is heavy or: this professor's popularity on research is higher\n\tsalary TEXT, -- Example Values: `med`, `high`, `low`, `free` | Value Statics: Total count 35 - Distinct count 4 - Null count 0 | Column Description: the salary of this student. | Value Description: med: average salary high: higher salary than others low: lower salary free: unpaid RA\n\tprimary key (student_id, prof_id),\n\tforeign key (prof_id) references prof(prof_id),\n\tforeign key (student_id) references student(student_id),\n);\n\nCREATE TABLE registration\n(\n\tcourse_id INTEGER, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 101 - Distinct count 13 - Null count 0 | Column Name Meaning: course id | Column Description: the id of courses \n\tstudent_id INTEGER, -- Example Values: `(2,)`, `(3,)`, `(4,)` | Value Statics: Total count 101 - Distinct count 36 - Null count 0 | Column Name Meaning: student id | Column Description: the id of students \n\tgrade TEXT, -- Example Values: `A`, `B`, `C`, `D` | Value Statics: Total count 96 - Distinct count 4 - Null count 5 | Column Description: the grades that the students acquire in this course | Value Description: A: excellent -- 4 B: good -- 3 C: fair -- 2 D: poorly pass -- 1 null or empty: this student fails to pass this course gpa of students for this semester = sum (credits x grade) / sum (credits)\n\tsat INTEGER, -- Example Values: `5`, `4`, `3`, `2`, `1` | Value Statics: Total count 101 - Distinct count 5 - Null count 0 | Column Name Meaning: satisfying degree | Column Description: student satisfaction with the course \n\tprimary key (course_id, student_id),\n\tforeign key (course_id) references course(course_id),\n\tforeign key (student_id) references student(student_id),\n);\n\nCREATE TABLE student\n(\n\tstudent_id INTEGER primary key,\n\tf_name TEXT, -- Example Values: `('Kerry',)`, `('Chrysa',)`, `('Elsy',)` | Value Statics: Total count 38 - Distinct count 38 - Null count 0 | Column Name Meaning: first name | Column Description: the first name of the student \n\tl_name TEXT, -- Example Values: `('Pryor',)`, `('Dine-Hart',)`, `('Shiril',)` | Value Statics: Total count 38 - Distinct count 37 - Null count 0 | Column Name Meaning: last name | Column Description: the last name of the student | Value Description: full name: f_name, l_name\n\tphone_number TEXT, -- Example Values: `('(243) 6836472',)`, `('(672) 9245255',)`, `('(521) 7680522',)` | Value Statics: Total count 38 - Distinct count 38 - Null count 0 | Column Name Meaning: phone number | Column Description: phone number \n\temail TEXT, -- Example Values: `('[email protected]',)`, `('[email protected]',)`, `('[email protected]',)` | Value Statics: Total count 38 - Distinct count 38 - Null count 0 | Column Description: email \n\tintelligence INTEGER, -- Example Values: `5`, `2`, `1`, `3`, `4` | Value Statics: Total count 38 - Distinct count 5 - Null count 0 | Column Description: intelligence of the student | Value Description: higher --> more intelligent\n\tgpa REAL, -- Example Values: `2.4`, `2.7`, `3.5`, `2.8`, `3.9` | Value Statics: Total count 38 - Distinct count 16 - Null count 0 | Column Name Meaning: graduate point average | Column Description: gpa \n\ttype TEXT, -- Example Values: `RPG`, `TPG`, `UG` | Value Statics: Total count 38 - Distinct count 3 - Null count 0 | Column Description: type of the student | Value Description: TPG: taught postgraduate student(master) RPG: research postgraduate student (master) UG: undergraduate student(bachelor) both TPG and RPG are students pursuing a masters degree; UG are students pursuing the bachelor degree\n);"
}
|
computer_student
|
{
"db_schema": "CREATE TABLE course\n(\n\tcourse_id INTEGER constraint course_pk primary key,\n\tcourseLevel TEXT, -- Example Values: `Level_500`, `Level_300`, `Level_400` | Value Statics: Total count 132 - Distinct count 3 - Null count 0 | Column Name Meaning: course level | Column Description: course level | Value Description: Level_300: basic or medium undergraduate courses. Level_400: high-level or harder undergraduate course. Level_500: professional or master/graduate courses\n);\n\nCREATE TABLE person\n(\n\tp_id INTEGER constraint person_pk primary key,\n\tprofessor INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 278 - Distinct count 2 - Null count 0 | Column Description: whether the person is a professor | Value Description: 0: professor 1: student\n\tstudent INTEGER, -- Example Values: `1`, `0` | Value Statics: Total count 278 - Distinct count 2 - Null count 0 | Column Description: whether the person is a student | Value Description: 0: professor 1: student\n\thasPosition TEXT, -- Example Values: `0`, `Faculty`, `Faculty_adj`, `Faculty_eme`, `Faculty_aff` | Value Statics: Total count 278 - Distinct count 5 - Null count 0 | Column Name Meaning: has position | Column Description: whether the person has a position in the faculty | Value Description: 0: the person is not a faculty member Common Sense evidence: faculty_aff: affiliated faculty faculty_eme: faculty employee\n\tinPhase TEXT, -- Example Values: `0`, `Post_Quals`, `Post_Generals`, `Pre_Quals` | Value Statics: Total count 278 - Distinct count 4 - Null count 0 | Column Name Meaning: in phase | Column Description: the phase of qualification the person is undergoing | Value Description: 0: the person is not undergoing the phase of qualification\n\tyearsInProgram TEXT, -- Example Values: `0`, `Year_2`, `Year_5`, `Year_7`, `Year_10` | Value Statics: Total count 278 - Distinct count 12 - Null count 0 | Column Name Meaning: years in program | Column Description: the year of the program the person is at | Value Description: 0: the person is not in any programs Common Sense evidence: yearX means the person is on the Xth year of the program\n);\n\nCREATE TABLE advisedBy\n(\n\tp_id INTEGER, -- Example Values: `(6,)`, `(9,)`, `(13,)` | Value Statics: Total count 113 - Distinct count 91 - Null count 0 | Column Name Meaning: person id | Column Description: id number identifying each person \n\tp_id_dummy INTEGER, -- Example Values: `(5,)`, `(7,)`, `(29,)` | Value Statics: Total count 113 - Distinct count 39 - Null count 0 | Column Name Meaning: person id dummy | Column Description: the id number identifying the advisor \n\tconstraint advisedBy_pk primary key (p_id, p_id_dummy),\n\tconstraint advisedBy_person_p_id_p_id_fk foreign key (p_id, p_id_dummy) references person (p_id, p_id),\n\tconstraint advisedBy_person_p_id_p_id_fk foreign key (p_id, p_id_dummy) references person (p_id, p_id),\n);\n\nCREATE TABLE taughtBy\n(\n\tcourse_id INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 189 - Distinct count 113 - Null count 0 | Column Name Meaning: course ID | Column Description: the identification number identifying each course \n\tp_id INTEGER, -- Example Values: `(40,)`, `(180,)`, `(279,)` | Value Statics: Total count 189 - Distinct count 64 - Null count 0 | Column Name Meaning: person ID | Column Description: the identification number identifying each person \n\tprimary key (course_id, p_id),\n\tforeign key (p_id) references person(p_id),\n\tforeign key (course_id) references course(course_id),\n);"
}
|
talkingdata
|
{
"db_schema": "CREATE TABLE app_all\n(\n\t`app_id` INTEGER NOT NULL, -- Example Values: `(-9223281467940916832,)`, `(-9222877069545393219,)`, `(-9222785464897897681,)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 \n\tPRIMARY KEY (`app_id`),\n);\n\nCREATE TABLE app_events\n(\n\t`event_id` INTEGER NOT NULL, -- Example Values: `(2,)`, `(6,)`, `(7,)` | Value Statics: Total count 100000 - Distinct count 3553 - Null count 0 | Column Name Meaning: event id | Column Description: the id of events \n\t`app_id` INTEGER NOT NULL, -- Example Values: `(-8942695423876075857,)`, `(-8022267440849930066,)`, `(-5720078949152207372,)` | Value Statics: Total count 100000 - Distinct count 5504 - Null count 0 | Column Name Meaning: app id | Column Description: the id of app users | Value Description: each app_id represents for an user\n\t`is_installed` INTEGER NOT NULL, -- Example Values: `1` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Name Meaning: is installed | Column Description: whether this app is installed or not | Value Description: 0: no 1: yes: installed\n\t`is_active` INTEGER NOT NULL, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: is active | Column Description: whether this user is active or not \n\tPRIMARY KEY (`event_id`,`app_id`),\n\tFOREIGN KEY (`event_id`) REFERENCES `events` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n);\n\nCREATE TABLE app_events_relevant\n(\n\t`event_id` INTEGER NOT NULL, -- Example Values: `(2,)`, `(6,)`, `(7,)` | Value Statics: Total count 100000 - Distinct count 3518 - Null count 0 \n\t`app_id` INTEGER NOT NULL, -- Example Values: `(-8942695423876075857,)`, `(-8022267440849930066,)`, `(-5720078949152207372,)` | Value Statics: Total count 100000 - Distinct count 5483 - Null count 0 \n\t`is_installed` INTEGER DEFAULT NULL, -- Example Values: `1` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 \n\t`is_active` INTEGER DEFAULT NULL, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tPRIMARY KEY (`event_id`,`app_id`),\n\tFOREIGN KEY (`event_id`) REFERENCES `events_relevant` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n\tFOREIGN KEY (`event_id`) REFERENCES `events_relevant` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n\tFOREIGN KEY (`app_id`) REFERENCES `app_all` (`app_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n);\n\nCREATE TABLE app_labels\n(\n\t`app_id` INTEGER NOT NULL, -- Example Values: `(7324884708820027918,)`, `(-4494216993218550286,)`, `(6058196446775239644,)` | Value Statics: Total count 100000 - Distinct count 49118 - Null count 0 | Column Name Meaning: app id | Column Description: id of the app user \n\t`label_id` INTEGER NOT NULL, -- Example Values: `(251,)`, `(406,)`, `(407,)` | Value Statics: Total count 100000 - Distinct count 53 - Null count 0 | Column Name Meaning: label id | Column Description: id of labels represents which behavior category that each user belongs to \n\tFOREIGN KEY (`label_id`) REFERENCES `label_categories` (`label_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n\tFOREIGN KEY (`app_id`) REFERENCES `app_all` (`app_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n);\n\nCREATE TABLE events\n(\n\t`event_id` INTEGER NOT NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Name Meaning: event id | Column Description: unique id number referring to the event \n\t`device_id` INTEGER DEFAULT NULL, -- Example Values: `(29182687948017175,)`, `(-6401643145415154744,)`, `(-4833982096941402721,)` | Value Statics: Total count 100000 - Distinct count 27310 - Null count 0 | Column Name Meaning: device id | Column Description: id number referring the device \n\t`timestamp` DATETIME DEFAULT NULL, -- Example Values: `('2016-05-01 00:55:25.0',)`, `('2016-05-01 00:54:12.0',)`, `('2016-05-01 00:08:05.0',)` | Value Statics: Total count 100000 - Distinct count 91246 - Null count 0 | Column Description: the time of the event \n\t`longitude` REAL DEFAULT NULL, -- Example Values: `(121.0,)`, `(104.0,)`, `(107.0,)` | Value Statics: Total count 100000 - Distinct count 75 - Null count 0 | Column Description: longitude | Value Description: the location / coordinate = (longitude, latitude)\n\t`latitude` REAL DEFAULT NULL, -- Example Values: `(31.0,)`, `(30.0,)`, `(23.0,)` | Value Statics: Total count 100000 - Distinct count 53 - Null count 0 | Column Description: latitude \n\tPRIMARY KEY (`event_id`),\n);\n\nCREATE TABLE events_relevant\n(\n\t`event_id` INTEGER NOT NULL, -- Example Values: `(2,)`, `(6,)`, `(7,)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 \n\t`device_id` INTEGER DEFAULT NULL, -- \n\t`timestamp` DATETIME NOT NULL, -- Example Values: `(-8942695423876075857,)`, `(-8764672938472212518,)`, `(-9050100410106163077,)` | Value Statics: Total count 100000 - Distinct count 2195 - Null count 0 \n\t`longitude` REAL NOT NULL, -- Example Values: `1.0` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 \n\t`latitude` REAL NOT NULL, -- Example Values: `0.0`, `1.0` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tPRIMARY KEY (`event_id`),\n\tFOREIGN KEY (`device_id`) REFERENCES `gender_age` (`device_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n);\n\nCREATE TABLE gender_age\n(\n\t`device_id` INTEGER NOT NULL, -- Example Values: `(-9221086586254644858,)`, `(-9221079146476055829,)`, `(-9221066489596332354,)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Name Meaning: device id | Column Description: unique number of devices \n\t`gender` TEXT DEFAULT NULL, -- Example Values: `M`, `F` | Value Statics: Total count 39923 - Distinct count 2 - Null count 60077 | Column Description: gender of the user who uses this device \n\t`age` INTEGER DEFAULT NULL, -- Example Values: `(29,)`, `(31,)`, `(38,)` | Value Statics: Total count 39923 - Distinct count 81 - Null count 60077 | Column Description: age of the user who uses this device | Value Description: M: male; F: female\n\t`group` TEXT DEFAULT NULL, -- Example Values: `M29-31`, `M32-38`, `F29-32`, `M22-`, `M39+` | Value Statics: Total count 39923 - Distinct count 12 - Null count 60077 | Column Description: group of the ages \n\tPRIMARY KEY (`device_id`),\n\tFOREIGN KEY (`device_id`) REFERENCES `phone_brand_device_model2` (`device_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n);\n\nCREATE TABLE gender_age_test\n(\n\t`device_id` INTEGER NOT NULL, -- Example Values: `(-9223321966609553846,)`, `(-9223042152723782980,)`, `(-9222896629442493034,)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 \n\tPRIMARY KEY (`device_id`),\n);\n\nCREATE TABLE gender_age_train\n(\n\t`device_id` INTEGER NOT NULL, -- Example Values: `(-9223067244542181226,)`, `(-9222956879900151005,)`, `(-9222754701995937853,)` | Value Statics: Total count 74645 - Distinct count 74645 - Null count 0 \n\t`gender` TEXT DEFAULT NULL, -- Example Values: `M`, `F` | Value Statics: Total count 74645 - Distinct count 2 - Null count 0 \n\t`age` INTEGER DEFAULT NULL, -- Example Values: `(24,)`, `(36,)`, `(29,)` | Value Statics: Total count 74645 - Distinct count 85 - Null count 0 \n\t`group` TEXT DEFAULT NULL, -- Example Values: `M23-26`, `M32-38`, `M29-31`, `F43+`, `F27-28` | Value Statics: Total count 74645 - Distinct count 12 - Null count 0 \n\tPRIMARY KEY (`device_id`),\n);\n\nCREATE TABLE label_categories\n(\n\t`label_id` INTEGER NOT NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 930 - Distinct count 930 - Null count 0 | Column Name Meaning: label id | Column Description: unique id of label \n\t`category` TEXT DEFAULT NULL, -- Example Values: `('game-game type',)`, `('game-Game themes',)`, `('game-Art Style',)` | Value Statics: Total count 927 - Distinct count 833 - Null count 3 | Column Description: category of the label \n\tPRIMARY KEY (`label_id`),\n);\n\nCREATE TABLE phone_brand_device_model2\n(\n\t`device_id` INTEGER NOT NULL, -- Example Values: `(-9223321966609553846,)`, `(-9223067244542181226,)`, `(-9223042152723782980,)` | Value Statics: Total count 89200 - Distinct count 89195 - Null count 0 | Column Name Meaning: device id | Column Description: the id number of the device \n\t`phone_brand` TEXT NOT NULL, -- Example Values: `('小米',)`, `('vivo',)`, `('三星',)` | Value Statics: Total count 89200 - Distinct count 122 - Null count 0 | Column Name Meaning: phone brand | Column Description: phone brand | Value Description: phone_brand has duplicated values since some device models belong to the same brand\n\t`device_model` TEXT NOT NULL, -- Example Values: `('红米note',)`, `('Y19T',)`, `('MI 3',)` | Value Statics: Total count 89200 - Distinct count 1490 - Null count 0 | Column Name Meaning: device model | Column Description: device model | Value Description: phone_brand has duplicated values since some device models belong to the same brand\n\tPRIMARY KEY (`device_id`,`phone_brand`,`device_model`),\n);\n\nCREATE TABLE sample_submission\n(\n\t`device_id` INTEGER NOT NULL, -- Example Values: `(-9223321966609553846,)`, `(-9223042152723782980,)`, `(-9222896629442493034,)` | Value Statics: Total count 13700 - Distinct count 13700 - Null count 0 \n\t`F23-` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\t`F24-26` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\t`F27-28` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\t`F29-32` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\t`F33-42` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\t`F43+` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\t`M22-` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\t`M23-26` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\t`M27-28` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\t`M29-31` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\t`M32-38` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\t`M39+` REAL DEFAULT NULL, -- Example Values: `0.0833` | Value Statics: Total count 13700 - Distinct count 1 - Null count 0 \n\tPRIMARY KEY (`device_id`),\n);"
}
|
law_episode
|
{
"db_schema": "CREATE TABLE Episode\n(\n\tepisode_id TEXT primary key,\n\tseries TEXT, -- Example Values: `Law and Order` | Value Statics: Total count 24 - Distinct count 1 - Null count 0 | Column Description: the name of the series \n\tseason INTEGER, -- Example Values: `9` | Value Statics: Total count 24 - Distinct count 1 - Null count 0 | Column Description: a number indicating the season of the episode \n\tepisode INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 24 - Distinct count 24 - Null count 0 | Column Description: the sequential number of the episode within a specific season \n\tnumber_in_series INTEGER, -- Example Values: `(182,)`, `(183,)`, `(184,)` | Value Statics: Total count 24 - Distinct count 24 - Null count 0 | Column Name Meaning: number in series | Column Description: the overall sequence number of episode in the entire series \n\ttitle TEXT, -- Example Values: `('Cherished',)`, `('DWB',)`, `('Bait',)` | Value Statics: Total count 24 - Distinct count 24 - Null count 0 | Column Description: the title of the episode \n\tsummary TEXT, -- | Column Description: a brief description of what happens in the episode \n\tair_date DATE, -- Example Values: `('1998-09-23',)`, `('1998-10-07',)`, `('1998-10-14',)` | Value Statics: Total count 24 - Distinct count 22 - Null count 0 | Column Name Meaning: air date | Column Description: the date the episode was initially broadcast in the United States \n\tepisode_image TEXT, --| Column Name Meaning: episode image | Column Description: a link to an image from the episode \n\trating REAL, -- Example Values: `7.9`, `7.6`, `8.2`, `7.7`, `7.8` | Value Statics: Total count 24 - Distinct count 11 - Null count 0 | Column Description: the weighted average of the votes received for the episode | Value Description: The higher rating means the episode has more positive viewer comments.\n\tvotes INTEGER, -- Example Values: `(203,)`, `(177,)`, `(159,)` | Value Statics: Total count 24 - Distinct count 22 - Null count 0 | Column Description: the total number of rating votes for the episode \n);\n\nCREATE TABLE Keyword\n(\n\tepisode_id TEXT, -- Example Values: `tt0629239`, `tt0629397`, `tt0629420` | Value Statics: Total count 33 - Distinct count 3 - Null count 0 | Column Name Meaning: episode id | Column Description: the id of the episode \n\tkeyword TEXT, -- Example Values: `('nun',)`, `('priest',)`, `('police officer',)` | Value Statics: Total count 33 - Distinct count 33 - Null count 0 | Column Description: the keyword that is relevant for the episode \n\tprimary key (episode_id, keyword),\n\tforeign key (episode_id) references Episode(episode_id),\n);\n\nCREATE TABLE Person\n(\n\tperson_id TEXT primary key,\n\tname TEXT, -- Example Values: `('Julia Roberts',)`, `('Rene Balcer',)`, `('Billy Fox',)` | Value Statics: Total count 800 - Distinct count 800 - Null count 0 | Column Description: the name of the person \n\tbirthdate DATE, -- Example Values: `('1967-10-28',)`, `('1954-02-09',)`, `('1930-01-15',)` | Value Statics: Total count 357 - Distinct count 355 - Null count 443 | Column Name Meaning: birth date | Column Description: the date the person was born | Value Description: if null, it means this birthdate of the person is not available\n\tbirth_name TEXT, -- Example Values: `('Julia Fiona Roberts',)`, `('Rene Chenevert Balcer',)`, `('William M. Nicholson',)` | Value Statics: Total count 173 - Distinct count 173 - Null count 627 | Column Name Meaning: birth name | Column Description: the name parents gave to the person shortly after birth \n\tbirth_place TEXT, -- Example Values: `('Smyrna',)`, `('Montreal',)`, `('Harrisburg',)` | Value Statics: Total count 336 - Distinct count 178 - Null count 464 | Column Name Meaning: birth place | Column Description: the place where a person was born. | Value Description: the birth place info is integrate if birth_name, birth_place, birth_region don't contain null value the full birth place = birth_country +birth_region +birth_place\n\tbirth_region TEXT, -- Example Values: `('Georgia',)`, `('Quebec',)`, `('Pennsylvania',)` | Value Statics: Total count 337 - Distinct count 47 - Null count 463 | Column Name Meaning: birth region | Column Description: the geographical area describing where a person was born that is larger than the birth place \n\tbirth_country TEXT, -- Example Values: `USA`, `Canada`, `England`, `USSR`, `Italy` | Value Statics: Total count 353 - Distinct count 16 - Null count 447 | Column Name Meaning: birth country | Column Description: the name of the country where the person was born | Value Description: can ask questions about its corresponding continent: e.g.: USA --> North America\n\theight_meters REAL, -- Example Values: `(1.73,)`, `(1.88,)`, `(1.93,)` | Value Statics: Total count 158 - Distinct count 29 - Null count 642 | Column Name Meaning: height meters | Column Description: how tall the person is in meters \n\tnickname TEXT, -- Example Values: `('Jules',)`, `('Gus',)`, `('Ed',)` | Value Statics: Total count 34 - Distinct count 34 - Null count 766 | Column Description: the nickname the person goes by \n);\n\nCREATE TABLE Award\n(\n\taward_id INTEGER primary key,\n\torganization TEXT, -- Example Values: `International Monitor Awards`, `Primetime Emmy Awards`, `American Bar Association Silver Gavel Awards for M`, `Edgar Allan Poe Awards` | Value Statics: Total count 22 - Distinct count 4 - Null count 0 | Column Description: the name of the organization that grants the award \n\tyear INTEGER, -- Example Values: `1999`, `2000` | Value Statics: Total count 22 - Distinct count 2 - Null count 0 | Column Description: the year of the nomination for the award \n\taward_category TEXT, -- Example Values: `Monitor`, `Primetime Emmy`, `Silver Gavel Award`, `Edgar` | Value Statics: Total count 22 - Distinct count 4 - Null count 0 | Column Name Meaning: award category | Column Description: the class of the award \n\taward TEXT, -- Example Values: `Film Originated Television Series - Best Achieveme`, `Outstanding Costume Design for a Series`, `Outstanding Directing for a Drama Series`, `Outstanding Guest Actress in a Drama Series`, `Outstanding Sound Mixing for a Drama Series` | Value Statics: Total count 22 - Distinct count 7 - Null count 0 | Column Description: the specific award \n\tseries TEXT, -- Example Values: `Law and Order` | Value Statics: Total count 22 - Distinct count 1 - Null count 0 | Column Description: the name of the Law & Order series that has been nominated \n\tepisode_id TEXT, -- Example Values: `tt0629149`, `tt0629398`, `tt0629248`, `tt0629422`, `tt0629228` | Value Statics: Total count 22 - Distinct count 7 - Null count 0 | Column Name Meaning: episode id | Column Description: the id of the episode that has been nominated \n\tperson_id TEXT, -- Example Values: `nm0937725`, `nm0792309`, `nm0049569`, `nm0371065`, `nm0288886` | Value Statics: Total count 22 - Distinct count 13 - Null count 0 | Column Description: the id of the person that has been nominated \n\trole TEXT, -- Example Values: `Katrina Ludlow`, `production mixer`, `re-recording mixer`, `writer`, `director` | Value Statics: Total count 12 - Distinct count 8 - Null count 10 | Column Description: the role that has been nominated \n\tresult TEXT, -- Example Values: `Winner`, `Nominee` | Value Statics: Total count 22 - Distinct count 2 - Null count 0 | Column Description: the nomination result | Value Description: Nominee / Winner 'Winner' means that the award was actually received.\n\tforeign key (episode_id) references Episode(episode_id),\n\tforeign key (person_id) references Person(person_id),\n);\n\nCREATE TABLE Credit\n(\n\tepisode_id TEXT, -- Example Values: `('tt0629146',)`, `('tt0629149',)`, `('tt0629153',)` | Value Statics: Total count 2231 - Distinct count 24 - Null count 0 | Column Name Meaning: episode id | Column Description: the id of the episode to which the credit information pertains \n\tperson_id TEXT, -- Example Values: `('nm0000973',)`, `('nm0001583',)`, `('nm0001832',)` | Value Statics: Total count 2231 - Distinct count 798 - Null count 0 | Column Name Meaning: person id | Column Description: the id of the person to which the credit information pertains \n\tcategory TEXT, -- Example Values: `('Additional Crew',)`, `('Art Department',)`, `('Camera and Electrical Department',)` | Value Statics: Total count 2231 - Distinct count 20 - Null count 0 | Column Description: the kind of credit being recognized \n\trole TEXT, -- Example Values: `('technical advisor',)`, `('production accountant',)`, `('president of NBC West Coast',)` | Value Statics: Total count 2231 - Distinct count 752 - Null count 0 | Column Description: the role for which the person is being recognized | Value Description: If the credit is for an actor, this is the name of the character he or she portrayed (Dan Florek plays Donald Craven). Otherwise, this is the production role (producer, sound editor).\n\tcredited TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 2231 - Distinct count 2 - Null count 0 | Column Description: whether the credit was displayed in the credits at the end of the episode | Value Description: A person may fill a role in an episode, but not show up in the on-screen credits. In this case, the work is said to be \"uncredited.\"\n\tprimary key (episode_id, person_id),\n\tforeign key (episode_id) references Episode(episode_id),\n\tforeign key (person_id) references Person(person_id),\n);\n\nCREATE TABLE Vote\n(\n\tepisode_id TEXT, -- Example Values: `('tt0629204',)`, `('tt0629228',)`, `('tt0629170',)` | Value Statics: Total count 240 - Distinct count 24 - Null count 0 | Column Name Meaning: episode id | Column Description: the id of the episode \n\tstars INTEGER, -- Example Values: `10`, `9`, `8`, `7`, `6` | Value Statics: Total count 240 - Distinct count 10 - Null count 0 | Column Description: a number between 1 and 10 indicating how much the viewer enjoyed the episode | Value Description: The higher the number, the more the episode was enjoyed\n\tvotes INTEGER, -- Example Values: `(36,)`, `(39,)`, `(64,)` | Value Statics: Total count 240 - Distinct count 58 - Null count 0 | Column Description: The total number of viewers that gave the specific episode the number of stars indicated in the \"stars\" column \n\tpercent REAL, -- Example Values: `(17.7,)`, `(19.2,)`, `(31.5,)` | Value Statics: Total count 240 - Distinct count 135 - Null count 0 | Column Description: The percent of viewers that gave the specific episode the number of stars indicated in the \"stars\" column \n\tforeign key (episode_id) references Episode(episode_id),\n);"
}
|
synthea
|
{
"db_schema": "CREATE TABLE all_prevalences\n(\n\tITEM TEXT primary key,\n\t\"POPULATION TYPE\" TEXT, -- Example Values: `LIVING` | Value Statics: Total count 244 - Distinct count 1 - Null count 0 | Column Description: the population type - LIVING \n\tOCCURRENCES INTEGER, -- Example Values: `(868,)`, `(487,)`, `(117,)` | Value Statics: Total count 244 - Distinct count 110 - Null count 0 | Column Description: the number of occurrences \n\t\"POPULATION COUNT\" INTEGER, -- Example Values: `1000` | Value Statics: Total count 244 - Distinct count 1 - Null count 0 | Column Description: the number of the counted populations \n\t\"PREVALENCE RATE\" REAL, -- Example Values: `(0.868,)`, `(0.487,)`, `(0.117,)` | Value Statics: Total count 244 - Distinct count 110 - Null count 0 | Column Description: the prevalence rate | Value Description: prevalence rate = occurrences / population_count\n\t\"PREVALENCE PERCENTAGE\" REAL, -- Example Values: `(86.8,)`, `(48.7,)`, `(11.7,)` | Value Statics: Total count 244 - Distinct count 110 - Null count 0 | Column Description: the prevalence percentage | Value Description: prevalence rate = occurrences / population_count * 100\n);\n\nCREATE TABLE patients\n(\n\tpatient TEXT primary key,\n\tbirthdate DATE, -- Example Values: `('1929-04-08',)`, `('2016-12-15',)`, `('1943-11-28',)` | Value Statics: Total count 1462 - Distinct count 1431 - Null count 0 | Column Name Meaning: birth date | Column Description: the birth date of the patient \n\tdeathdate DATE, -- Example Values: `('2029-11-11',)`, `('2020-02-19',)`, `('2017-10-22',)` | Value Statics: Total count 457 - Distinct count 448 - Null count 1005 | Column Name Meaning: death date | Column Description: the death date of the patient | Value Description: the age of the patient = death year - birth year if null, it means this patient is still alive\n\tssn TEXT, -- Example Values: `('999-78-5976',)`, `('999-59-9186',)`, `('999-43-3780',)` | Value Statics: Total count 1462 - Distinct count 1460 - Null count 0 | Column Name Meaning: social security number | Column Description: the social security number of the patient \n\tdrivers TEXT, -- Example Values: `('S99992928',)`, `('S99975961',)`, `('S99997003',)` | Value Statics: Total count 1196 - Distinct count 1189 - Null count 266 | Column Description: the driver number of the patient | Value Description: if not, this patient doesn't have driving license\n\tpassport TEXT, -- Example Values: `('FALSE',)`, `('X98167138X',)`, `('X65866752X',)` | Value Statics: Total count 1123 - Distinct count 560 - Null count 339 | Column Description: the passport number | Value Description: if not, this patient cannot go abroad, vice versa\n\tprefix TEXT, -- Example Values: `Mr.`, `Mrs.`, `Ms.` | Value Statics: Total count 1166 - Distinct count 3 - Null count 296 | Column Description: the prefix \n\tfirst TEXT, -- Example Values: `('Rosamaria',)`, `('Loan',)`, `('Angelo',)` | Value Statics: Total count 1462 - Distinct count 1202 - Null count 0 | Column Description: the first name \n\tlast TEXT, -- Example Values: `('Pfannerstill',)`, `('Bashirian',)`, `('Buckridge',)` | Value Statics: Total count 1462 - Distinct count 453 - Null count 0 | Column Description: the last name | Value Description: full name = first + last\n\tsuffix TEXT, -- Example Values: `PhD`, `JD`, `MD` | Value Statics: Total count 45 - Distinct count 3 - Null count 1417 | Column Description: the suffix of the patient | Value Description: if suffix = PhD, JD, MD, it means this patient has doctoral degree. Otherwise, this patient is not.\n\tmaiden TEXT, -- Example Values: `('Schuster',)`, `('Schaden',)`, `('Brekke',)` | Value Statics: Total count 403 - Distinct count 271 - Null count 1059 | Column Description: the maiden name of the patient | Value Description: Only married women have the maiden name\n\tmarital TEXT, -- Example Values: `S`, `M` | Value Statics: Total count 1033 - Distinct count 2 - Null count 429 | Column Description: the marital status of the patient | Value Description: M: married S: single\n\trace TEXT, -- Example Values: `black`, `white`, `hispanic`, `asian` | Value Statics: Total count 1462 - Distinct count 4 - Null count 0 | Column Description: the race of the patient \n\tethnicity TEXT, -- Example Values: `('dominican',)`, `('american',)`, `('african',)` | Value Statics: Total count 1462 - Distinct count 20 - Null count 0 | Column Description: the ethnicity of the patient \n\tgender TEXT, -- Example Values: `F`, `M` | Value Statics: Total count 1462 - Distinct count 2 - Null count 0 | Column Description: the gender of the patient \n\tbirthplace TEXT, -- Example Values: `('Pittsfield MA US',)`, `('Medford MA US',)`, `('Framingham MA US',)` | Value Statics: Total count 1462 - Distinct count 265 - Null count 0 | Column Name Meaning: birth place | Column Description: the birth place \n\taddress TEXT, -- | Column Description: the specific address \n);\n\nCREATE TABLE encounters\n(\n\tID TEXT primary key,\n\tDATE DATE, -- Example Values: `('2008-03-11',)`, `('2009-01-11',)`, `('2009-04-07',)` | Value Statics: Total count 20524 - Distinct count 3953 - Null count 0 | Column Description: the date of the encounter | Value Description: yyyy-mm-dd\n\tPATIENT TEXT, -- Example Values: `('71949668-1c2e-43ae-ab0a-64654608defb',)`, `('c2caaace-9119-4b2d-a2c3-4040f5a9cf32',)`, `('96b24072-e1fe-49cd-a22a-6dfb92c3994c',)` | Value Statics: Total count 20524 - Distinct count 1461 - Null count 0 | Column Description: the patient id \n\tCODE INTEGER, -- Example Values: `(185349003,)`, `(185345009,)`, `(698314001,)` | Value Statics: Total count 20524 - Distinct count 28 - Null count 0 | Column Description: the code of the care plan \n\tDESCRIPTION TEXT, -- Example Values: `('Outpatient Encounter',)`, `('Encounter for symptom',)`, `('Consultation for treatment',)` | Value Statics: Total count 20524 - Distinct count 28 - Null count 0 | Column Description: the description of the care plan \n\tREASONCODE INTEGER, -- Example Values: `(10509002,)`, `(38822007,)`, `(72892002,)` | Value Statics: Total count 5788 - Distinct count 67 - Null count 14736 | Column Description: the reason code \n\tREASONDESCRIPTION TEXT, -- Example Values: `('Acute bronchitis (disorder)',)`, `('Cystitis',)`, `('Normal pregnancy',)` | Value Statics: Total count 5788 - Distinct count 67 - Null count 14736 | Column Name Meaning: reason description | Column Description: the description of the reason why the patient needs the care plan \n\tforeign key (PATIENT) references patients(patient),\n);\n\nCREATE TABLE allergies\n(\n\tSTART TEXT, -- Example Values: `('3/11/95',)`, `('6/15/58',)`, `('11/14/12',)` | Value Statics: Total count 572 - Distinct count 157 - Null count 0 | Column Description: the start date of the allergy | Value Description: mm/dd/yy\n\tSTOP TEXT, -- Example Values: `12/22/14`, `4/21/10`, `10/15/11`, `3/17/10`, `5/26/08` | Value Statics: Total count 16 - Distinct count 11 - Null count 556 | Column Description: the stop date of the allergy | Value Description: mm/dd/yy\r allergy period = stop - start\n\tPATIENT TEXT, -- Example Values: `('00341a88-1cc1-4b39-b0f9-05b0531991a0',)`, `('01347a8e-3a92-4f1e-99c9-5d6df0db2331',)`, `('0207a4c4-4d49-47bf-93c6-4133376784a2',)` | Value Statics: Total count 572 - Distinct count 157 - Null count 0 | Column Description: the patient id \n\tENCOUNTER TEXT, -- Example Values: `('ddc8a625-07e6-4a02-a616-e0ce07b5f305',)`, `('84714823-ee2b-42ba-b79b-6043270cfdc7',)`, `('b70b95bd-5d4d-47fe-87a1-775172fb5564',)` | Value Statics: Total count 572 - Distinct count 157 - Null count 0 | Column Description: the medical encounter id \n\tCODE INTEGER, -- Example Values: `232347008`, `300916003`, `419474003`, `424213003`, `300913006` | Value Statics: Total count 572 - Distinct count 15 - Null count 0 | Column Description: the code of the allergy \n\tDESCRIPTION TEXT, -- Example Values: `Allergy to dairy product`, `Allergy to tree pollen`, `Allergy to grass pollen`, `Dander (animal) allergy`, `House dust mite allergy` | Value Statics: Total count 572 - Distinct count 15 - Null count 0 | Column Description: the description of the allergy \n\tprimary key (PATIENT, ENCOUNTER, CODE),\n\tforeign key (ENCOUNTER) references encounters(ID),\n\tforeign key (PATIENT) references patients(patient),\n);\n\nCREATE TABLE careplans\n(\n\tID TEXT, -- Example Values: `('e031962d-d13d-4ede-a449-040417d5e4fb',)`, `('26b879b7-0066-4bd6-b59c-099909720155',)`, `('1f581c09-aab1-46dc-94cc-4b4295514d2b',)` | Value Statics: Total count 12125 - Distinct count 3673 - Null count 0 | Column Description: the unique id of the care plan \n\tSTART DATE, -- Example Values: `('2009-01-11',)`, `('2010-10-16',)`, `('2013-02-09',)` | Value Statics: Total count 12125 - Distinct count 3186 - Null count 0 | Column Description: the start date of the care plan | Value Description: yyyy-mm-dd\n\tSTOP DATE, -- Example Values: `('2009-04-07',)`, `('2010-10-23',)`, `('2015-05-03',)` | Value Statics: Total count 6553 - Distinct count 1664 - Null count 5572 | Column Description: the stop date of the care plan | Value Description: yyyy-mm-dd care plan period: stop - start\n\tPATIENT TEXT, -- Example Values: `('71949668-1c2e-43ae-ab0a-64654608defb',)`, `('c2caaace-9119-4b2d-a2c3-4040f5a9cf32',)`, `('96b24072-e1fe-49cd-a22a-6dfb92c3994c',)` | Value Statics: Total count 12125 - Distinct count 1222 - Null count 0 | Column Description: the patient id \n\tENCOUNTER TEXT, -- Example Values: `('4d451e22-a354-40c9-8b33-b6126158666d',)`, `('bed7ecff-b41c-422b-beac-ea00c8b02837',)`, `('6f2e3935-b203-493e-a9c0-f23e847b9798',)` | Value Statics: Total count 12125 - Distinct count 2475 - Null count 0 | Column Description: the medical encounter id \n\tCODE REAL, -- Example Values: `(53950000.0,)`, `(304510005.0,)`, `(371605008.0,)` | Value Statics: Total count 12125 - Distinct count 75 - Null count 0 | Column Description: the code of the care plan \n\tDESCRIPTION TEXT, -- Example Values: `('Respiratory therapy',)`, `('Recommendation to avoid exercise',)`, `('Deep breathing and coughing exercises',)` | Value Statics: Total count 12125 - Distinct count 76 - Null count 0 | Column Description: the description of the care plan \n\tREASONCODE INTEGER, -- Example Values: `(10509002,)`, `(38822007,)`, `(72892002,)` | Value Statics: Total count 11015 - Distinct count 58 - Null count 1110 | Column Description: the reason code \n\tREASONDESCRIPTION TEXT, -- Example Values: `('Acute bronchitis (disorder)',)`, `('Cystitis',)`, `('Normal pregnancy',)` | Value Statics: Total count 11015 - Distinct count 58 - Null count 1110 | Column Name Meaning: reason description | Column Description: the description of the reason why the patient needs the care plan \n\tforeign key (ENCOUNTER) references encounters(ID),\n\tforeign key (PATIENT) references patients(patient),\n);\n\nCREATE TABLE conditions\n(\n\tSTART DATE, -- Example Values: `('2009-01-08',)`, `('2010-10-16',)`, `('2013-02-07',)` | Value Statics: Total count 7040 - Distinct count 4710 - Null count 0 | Column Description: the start date of the allergy | Value Description: mm/dd/yy\n\tSTOP DATE, -- Example Values: `('2009-01-21',)`, `('2010-10-23',)`, `('2013-02-27',)` | Value Statics: Total count 3959 - Distinct count 2449 - Null count 3081 | Column Description: the stop date of the allergy | Value Description: mm/dd/yy\n\tPATIENT TEXT, -- Example Values: `('71949668-1c2e-43ae-ab0a-64654608defb',)`, `('c2caaace-9119-4b2d-a2c3-4040f5a9cf32',)`, `('96b24072-e1fe-49cd-a22a-6dfb92c3994c',)` | Value Statics: Total count 7040 - Distinct count 1404 - Null count 0 | Column Description: the patient id \n\tENCOUNTER TEXT, -- Example Values: `('4d451e22-a354-40c9-8b33-b6126158666d',)`, `('bed7ecff-b41c-422b-beac-ea00c8b02837',)`, `('6f2e3935-b203-493e-a9c0-f23e847b9798',)` | Value Statics: Total count 7040 - Distinct count 4993 - Null count 0 | Column Description: the medical encounter id \n\tCODE INTEGER, -- Example Values: `(10509002,)`, `(38822007,)`, `(72892002,)` | Value Statics: Total count 7040 - Distinct count 118 - Null count 0 | Column Description: the code of the condition \n\tDESCRIPTION TEXT, -- Example Values: `('Acute bronchitis (disorder)',)`, `('Cystitis',)`, `('Normal pregnancy',)` | Value Statics: Total count 7040 - Distinct count 118 - Null count 0 | Column Description: the description of the patient condition \n\tforeign key (ENCOUNTER) references encounters(ID),\n\tforeign key (PATIENT) references patients(patient),\n\tforeign key (DESCRIPTION) references all_prevalences(ITEM),\n);\n\nCREATE TABLE immunizations\n(\n\tDATE DATE, -- Example Values: `('2007-11-02',)`, `('2007-11-03',)`, `('2007-11-04',)` | Value Statics: Total count 13189 - Distinct count 3291 - Null count 0 | Column Description: the date of the immunization | Value Description: yyyy-mm-dd\n\tPATIENT TEXT, -- Example Values: `('70cbc79e-dd9d-4e3b-8158-a92d85951f94',)`, `('87828e93-e09b-435b-be8e-657361f1c68a',)`, `('0b763e21-2a8f-4f04-86d2-f7e8f9cebb21',)` | Value Statics: Total count 13189 - Distinct count 1140 - Null count 0 | Column Description: the patient id \n\tENCOUNTER TEXT, -- Example Values: `('898ab2de-8a71-4fb3-b239-b768b915284a',)`, `('fc8e3271-cc7c-4169-8c99-d46635a86478',)`, `('e59b50ba-3721-4ad0-bb64-173fcdc4fc91',)` | Value Statics: Total count 13189 - Distinct count 8213 - Null count 0 | Column Description: the medical encounter id \n\tCODE INTEGER, -- Example Values: `8`, `62`, `140`, `113`, `83` | Value Statics: Total count 13189 - Distinct count 16 - Null count 0 | Column Description: the code of the immunization \n\tDESCRIPTION TEXT, -- Example Values: `Influenza seasonal injectable preservative free`, `Td (adult) preservative free`, `meningococcal MCV4P`, `Tdap`, `HPV quadrivalent` | Value Statics: Total count 13189 - Distinct count 16 - Null count 0 | Column Description: the description of the immunization \n\tprimary key (DATE, PATIENT, ENCOUNTER, CODE),\n\tforeign key (ENCOUNTER) references encounters(ID),\n\tforeign key (PATIENT) references patients(patient),\n);\n\nCREATE TABLE medications\n(\n\tSTART DATE, -- Example Values: `('1918-04-17',)`, `('1919-06-28',)`, `('1920-05-17',)` | Value Statics: Total count 6048 - Distinct count 3967 - Null count 0 | Column Description: the start date of the care plan | Value Description: yyyy-mm-dd\n\tSTOP DATE, -- Example Values: `('2008-06-04',)`, `('2009-01-21',)`, `('2011-06-04',)` | Value Statics: Total count 3362 - Distinct count 2053 - Null count 2686 | Column Description: the stop date of the care plan | Value Description: yyyy-mm-dd Time of taking medicine\n\tPATIENT TEXT, -- Example Values: `('ce11bcba-c83c-43ae-802d-b20ee8715afe',)`, `('a9c61b1f-3ad5-47e0-9aae-1613640a8187',)`, `('ab31bac7-6165-4bb3-9d11-935d56ee331b',)` | Value Statics: Total count 6048 - Distinct count 1318 - Null count 0 | Column Description: the patient id \n\tENCOUNTER TEXT, -- Example Values: `('6334071d-e6b0-42c1-a082-2a08e123de4e',)`, `('23ab74d3-044b-465b-ad85-394acfda0ef7',)`, `('75a37827-15c9-4931-bcae-1d4f2b734edb',)` | Value Statics: Total count 6048 - Distinct count 3716 - Null count 0 | Column Description: the medical encounter id \n\tCODE INTEGER, -- Example Values: `(834060,)`, `(745679,)`, `(895994,)` | Value Statics: Total count 6048 - Distinct count 96 - Null count 0 | Column Description: the code of the medication \n\tDESCRIPTION TEXT, -- Example Values: `('Penicillin V Potassium 250 MG',)`, `('NuvaRing 0.12/0.015 MG per 24HR 21 Day Vaginal R`, `('Acetaminophen 160 MG',)` | Value Statics: Total count 6048 - Distinct count 97 - Null count 0 | Column Description: the description of the medication \n\tREASONCODE INTEGER, -- Example Values: `(43878008,)`, `(10509002,)`, `(38822007,)` | Value Statics: Total count 3592 - Distinct count 36 - Null count 2456 | Column Description: the reason code \n\tREASONDESCRIPTION TEXT, -- Example Values: `('Streptococcal sore throat (disorder)',)`, `('Acute bronchitis (disorder)',)`, `('Cystitis',)` | Value Statics: Total count 3592 - Distinct count 36 - Null count 2456 | Column Name Meaning: reason description | Column Description: the description of the reason why the patient take the medication \n\tprimary key (START, PATIENT, ENCOUNTER, CODE),\n\tforeign key (ENCOUNTER) references encounters(ID),\n\tforeign key (PATIENT) references patients(patient),\n);\n\nCREATE TABLE observations\n(\n\tDATE DATE, -- Example Values: `('2008-03-11',)`, `('2009-04-07',)`, `('2012-07-02',)` | Value Statics: Total count 78899 - Distinct count 3710 - Null count 0 | Column Description: the date of the observation | Value Description: yyyy-mm-dd\n\tPATIENT TEXT, -- Example Values: `('71949668-1c2e-43ae-ab0a-64654608defb',)`, `('c2caaace-9119-4b2d-a2c3-4040f5a9cf32',)`, `('96b24072-e1fe-49cd-a22a-6dfb92c3994c',)` | Value Statics: Total count 78899 - Distinct count 1462 - Null count 0 | Column Description: the patient id \n\tENCOUNTER TEXT, -- Example Values: `('5114a5b4-64b8-47b2-82a6-0ce24aae0943',)`, `('bdb926b8-5b6d-4366-bbe9-76fe3f3fbc4f',)`, `('36796523-2672-4680-84c5-2d9a2b080ddb',)` | Value Statics: Total count 75975 - Distinct count 9908 - Null count 2924 | Column Description: the medical encounter id \n\tCODE TEXT, -- Example Values: `('8302-2',)`, `('29463-7',)`, `('39156-5',)` | Value Statics: Total count 78899 - Distinct count 68 - Null count 0 | Column Description: the code of the observation type \n\tDESCRIPTION TEXT, -- Example Values: `('Body Height',)`, `('Body Weight',)`, `('Body Mass Index',)` | Value Statics: Total count 78899 - Distinct count 68 - Null count 0 | Column Description: the description of the observation \n\tVALUE REAL, -- Example Values: `(166.03,)`, `(54.42,)`, `(19.74,)` | Value Statics: Total count 78444 - Distinct count 12674 - Null count 455 | Column Description: the observation value \n\tUNITS TEXT, -- Example Values: `cm`, `kg`, `kg/m2`, `mmHg`, `Cel` | Value Statics: Total count 78444 - Distinct count 17 - Null count 455 | Column Description: the units of the observation value | Value Description: DESCRIPTION + VALUE + UNITS could be a fact: e.g.: body height of patient xxx is 166.03 cm: body height is in DESCRIPTION 166.03 is in VALUE cm is in UNITS\n\tforeign key (ENCOUNTER) references encounters(ID),\n\tforeign key (PATIENT) references patients(patient),\n);\n\nCREATE TABLE procedures\n(\n\tDATE DATE, -- Example Values: `('2013-02-09',)`, `('2013-10-19',)`, `('2014-05-17',)` | Value Statics: Total count 10184 - Distinct count 3371 - Null count 0 | Column Description: the date of the procedure | Value Description: yyyy-mm-dd\n\tPATIENT TEXT, -- Example Values: `('71949668-1c2e-43ae-ab0a-64654608defb',)`, `('96b24072-e1fe-49cd-a22a-6dfb92c3994c',)`, `('79266ca2-b4e3-45e5-af65-7914bd4511a0',)` | Value Statics: Total count 10184 - Distinct count 1122 - Null count 0 | Column Description: the patient id \n\tENCOUNTER TEXT, -- Example Values: `('6f2e3935-b203-493e-a9c0-f23e847b9798',)`, `('da4fd626-e74e-4930-91be-7fb3da7ea098',)`, `('988f02a3-bf7e-485a-8d26-3378ddc9524c',)` | Value Statics: Total count 10184 - Distinct count 9195 - Null count 0 | Column Description: the medical encounter id \n\tCODE INTEGER, -- Example Values: `(23426006,)`, `(252160004,)`, `(237001001,)` | Value Statics: Total count 10184 - Distinct count 65 - Null count 0 | Column Description: the code of the procedure \n\tDESCRIPTION TEXT, -- | Column Description: the description of the procedure \n\tREASONCODE INTEGER, -- Example Values: `(10509002,)`, `(72892002,)`, `(33737001,)` | Value Statics: Total count 2556 - Distinct count 39 - Null count 7628 | Column Name Meaning: reason code | Column Description: the code of the reason \n\tREASONDESCRIPTION TEXT, -- Example Values: `('Acute bronchitis (disorder)',)`, `('Normal pregnancy',)`, `('Fracture of rib',)` | Value Statics: Total count 2556 - Distinct count 39 - Null count 7628 | Column Name Meaning: reason description | Column Description: the description of the reason why the patient take the procedure \n\tforeign key (ENCOUNTER) references encounters(ID),\n\tforeign key (PATIENT) references patients(patient),\n);\n\nCREATE TABLE claims\n(\n\tID TEXT primary key,\n\tPATIENT TEXT references patients, -- Example Values: `('71949668-1c2e-43ae-ab0a-64654608defb',)`, `('c2caaace-9119-4b2d-a2c3-4040f5a9cf32',)`, `('96b24072-e1fe-49cd-a22a-6dfb92c3994c',)` | Value Statics: Total count 20523 - Distinct count 1461 - Null count 0 | Column Description: the patient id \n\tBILLABLEPERIOD DATE, -- Example Values: `('2008-03-11',)`, `('2009-01-11',)`, `('2009-04-07',)` | Value Statics: Total count 20523 - Distinct count 3953 - Null count 0 | Column Name Meaning: billable period | Column Description: the start date of the billable | Value Description: yyyy-mm-dd\n\tORGANIZATION TEXT, -- Example Values: `temp organization` | Value Statics: Total count 20523 - Distinct count 1 - Null count 0 | Column Description: the claim organization \n\tENCOUNTER TEXT references encounters, -- Example Values: `('71949668-1c2e-43ae-ab0a-64654608defb',)`, `('c2caaace-9119-4b2d-a2c3-4040f5a9cf32',)`, `('96b24072-e1fe-49cd-a22a-6dfb92c3994c',)` | Value Statics: Total count 20523 - Distinct count 1461 - Null count 0 | Column Description: the medical encounter id \n\tDIAGNOSIS TEXT, -- | Column Description: the diagnosis \n\tTOTAL INTEGER, -- Example Values: `100` | Value Statics: Total count 20523 - Distinct count 1 - Null count 0 | Column Description: the length of the billable period \n);"
}
|
car_retails
|
{
"db_schema": "CREATE TABLE offices\n(\n\tofficeCode TEXT not null primary key,\n\tcity TEXT not null, -- Example Values: `San Francisco`, `Boston`, `NYC`, `Paris`, `Tokyo` | Value Statics: Total count 7 - Distinct count 7 - Null count 0 \n\tphone TEXT not null, -- Example Values: `+1 650 219 4782`, `+1 215 837 0825`, `+1 212 555 3000`, `+33 14 723 4404`, `+81 33 224 5000` | Value Statics: Total count 7 - Distinct count 7 - Null count 0 | Column Description: phone number \n\taddressLine1 TEXT not null, -- Example Values: `100 Market Street`, `1550 Court Place`, `523 East 53rd Street`, `43 Rue Jouffroy D'abbans`, `4-1 Kioicho` | Value Statics: Total count 7 - Distinct count 7 - Null count 0 | Column Description: addressLine1 \n\taddressLine2 TEXT, -- Example Values: `Suite 300`, `Suite 102`, `apt. 5A`, `Floor #2`, `Level 7` | Value Statics: Total count 5 - Distinct count 5 - Null count 2 | Column Description: addressLine2 | Value Description: addressLine1 + addressLine2 = entire address\n\tstate TEXT, -- Example Values: `CA`, `MA`, `NY`, `Chiyoda-Ku` | Value Statics: Total count 4 - Distinct count 4 - Null count 3 \n\tcountry TEXT not null, -- Example Values: `USA`, `France`, `Japan`, `Australia`, `UK` | Value Statics: Total count 7 - Distinct count 5 - Null count 0 | Column Description: country \n\tpostalCode TEXT not null, -- Example Values: `94080`, `02107`, `10022`, `75017`, `102-8578` | Value Statics: Total count 7 - Distinct count 7 - Null count 0 | Column Description: postalCode \n\tterritory TEXT not null, -- Example Values: `NA`, `EMEA`, `Japan`, `APAC` | Value Statics: Total count 7 - Distinct count 4 - Null count 0 | Column Description: territory \n);\n\nCREATE TABLE employees\n(\n\temployeeNumber INTEGER not null primary key,\n\tlastName TEXT not null, -- Example Values: `Murphy`, `Patterson`, `Firrelli`, `Bondur`, `Bow` | Value Statics: Total count 23 - Distinct count 19 - Null count 0 | Column Name Meaning: last name | Column Description: last name of employees \n\tfirstName TEXT not null, -- Example Values: `('Diane',)`, `('Mary',)`, `('Jeff',)` | Value Statics: Total count 23 - Distinct count 21 - Null count 0 | Column Name Meaning: first name | Column Description: first name of employees \n\textension TEXT not null, -- Example Values: `('x5800',)`, `('x4611',)`, `('x9273',)` | Value Statics: Total count 23 - Distinct count 20 - Null count 0 | Column Description: extension number \n\temail TEXT not null, -- Example Values: `('[email protected]',)`, `('[email protected]',)`, `('[email protected]',)` | Value Statics: Total count 23 - Distinct count 22 - Null count 0 | Column Description: email \n\tofficeCode TEXT not null, -- Example Values: `1`, `6`, `4`, `2`, `3` | Value Statics: Total count 23 - Distinct count 7 - Null count 0 | Column Name Meaning: office code | Column Description: office code of the employees \n\treportsTo INTEGER, -- Example Values: `1002`, `1056`, `1143`, `1102`, `1088` | Value Statics: Total count 22 - Distinct count 6 - Null count 1 | Column Name Meaning: reports to | Column Description: represents for organization structure such as who reports to whom | Value Description: \"reportsTO\" is the leader of the \"employeeNumber\"\n\tjobTitle TEXT not null, -- Example Values: `President`, `VP Sales`, `VP Marketing`, `Sales Manager (APAC)`, `Sale Manager (EMEA)` | Value Statics: Total count 23 - Distinct count 7 - Null count 0 | Column Name Meaning: job title | Column Description: job title \n\tforeign key (officeCode) references offices(officeCode),\n\tforeign key (reportsTo) references employees(employeeNumber),\n);\n\nCREATE TABLE customers\n(\n\tcustomerNumber INTEGER not null primary key,\n\tcustomerName TEXT not null, -- Example Values: `('Atelier graphique',)`, `('Signal Gift Stores',)`, `('Australian Collectors, Co.',)` | Value Statics: Total count 122 - Distinct count 122 - Null count 0 | Column Name Meaning: customer name | Column Description: the name when the customer registered \n\tcontactLastName TEXT not null, -- Example Values: `('Schmitt',)`, `('King',)`, `('Ferguson',)` | Value Statics: Total count 122 - Distinct count 108 - Null count 0 | Column Name Meaning: contact last name | Column Description: contact last name \n\tcontactFirstName TEXT not null, -- Example Values: `('Carine ',)`, `('Jean',)`, `('Peter',)` | Value Statics: Total count 122 - Distinct count 111 - Null count 0 | Column Name Meaning: contact first name | Column Description: contact first name \n\tphone TEXT not null, -- Example Values: `('40.32.2555',)`, `('7025551838',)`, `('03 9520 4555',)` | Value Statics: Total count 122 - Distinct count 121 - Null count 0 | Column Description: phone \n\taddressLine1 TEXT not null, -- Example Values: `('54, rue Royale',)`, `('8489 Strong St.',)`, `('636 St Kilda Road',)` | Value Statics: Total count 122 - Distinct count 122 - Null count 0 | Column Description: addressLine1 \n\taddressLine2 TEXT, -- Example Values: `('Level 3',)`, `('Bronz Apt. 3/6 Tesvikiye',)`, `('Suite 400',)` | Value Statics: Total count 22 - Distinct count 21 - Null count 100 | Column Description: addressLine2 | Value Description: addressLine1 + addressLine2 = entire address\n\tcity TEXT not null, -- Example Values: `('Nantes',)`, `('Las Vegas',)`, `('Melbourne',)` | Value Statics: Total count 122 - Distinct count 96 - Null count 0 | Column Description: city \n\tstate TEXT, -- Example Values: `NV`, `Victoria`, `CA`, `NY`, `PA` | Value Statics: Total count 49 - Distinct count 18 - Null count 73 | Column Description: state \n\tpostalCode TEXT, -- Example Values: `('44000',)`, `('83030',)`, `('3004',)` | Value Statics: Total count 115 - Distinct count 94 - Null count 7 | Column Description: postalCode \n\tcountry TEXT not null, -- Example Values: `('France',)`, `('USA',)`, `('Australia',)` | Value Statics: Total count 122 - Distinct count 28 - Null count 0 | Column Description: country \n\tsalesRepEmployeeNumber INTEGER, -- Example Values: `1370`, `1166`, `1611`, `1504`, `1165` | Value Statics: Total count 100 - Distinct count 15 - Null count 22 | Column Name Meaning: sales representative employee number | Column Description: sales representative employee number \n\tcreditLimit REAL, -- Example Values: `(21000.0,)`, `(71800.0,)`, `(117300.0,)` | Value Statics: Total count 122 - Distinct count 93 - Null count 0 | Column Name Meaning: credit limit | Column Description: credit limit \n\tforeign key (salesRepEmployeeNumber) references employees(employeeNumber),\n);\n\nCREATE TABLE orders\n(\n\torderNumber INTEGER not null primary key,\n\torderDate DATE not null, -- Example Values: `('2003-01-06',)`, `('2003-01-09',)`, `('2003-01-10',)` | Value Statics: Total count 326 - Distinct count 265 - Null count 0 | Column Name Meaning: order date | Column Description: order date \n\trequiredDate DATE not null, -- Example Values: `('2003-01-13',)`, `('2003-01-18',)`, `('2003-02-07',)` | Value Statics: Total count 326 - Distinct count 264 - Null count 0 | Column Name Meaning: required Date | Column Description: required Date \n\tshippedDate DATE, -- Example Values: `('2003-01-10',)`, `('2003-01-11',)`, `('2003-01-14',)` | Value Statics: Total count 312 - Distinct count 247 - Null count 14 | Column Name Meaning: shipped date | Column Description: shipped Date \n\tstatus TEXT not null, -- Example Values: `Shipped`, `Resolved`, `Cancelled`, `On Hold`, `Disputed` | Value Statics: Total count 326 - Distinct count 6 - Null count 0 | Column Description: status \n\tcomments TEXT, -- Example Values: `('Check on availability.',)`, `('Difficult to negotiate with customer. We need mo`, `('Customer requested that FedEx Ground is used for` | Value Statics: Total count 80 - Distinct count 37 - Null count 246 | Column Description: comments \n\tcustomerNumber INTEGER not null, -- Example Values: `(363,)`, `(128,)`, `(181,)` | Value Statics: Total count 326 - Distinct count 98 - Null count 0 | Column Name Meaning: customer number | Column Description: customer number \n\tforeign key (customerNumber) references customers(customerNumber),\n);\n\nCREATE TABLE payments\n(\n\tcustomerNumber INTEGER not null, -- Example Values: `(103,)`, `(112,)`, `(114,)` | Value Statics: Total count 273 - Distinct count 98 - Null count 0 | Column Name Meaning: customer number | Column Description: customer number \n\tcheckNumber TEXT not null, -- Example Values: `('HQ336336',)`, `('JM555205',)`, `('OM314933',)` | Value Statics: Total count 273 - Distinct count 273 - Null count 0 | Column Name Meaning: check Number | Column Description: check Number \n\tpaymentDate DATE not null, -- Example Values: `('2004-10-19',)`, `('2003-06-05',)`, `('2004-12-18',)` | Value Statics: Total count 273 - Distinct count 232 - Null count 0 | Column Name Meaning: payment Date | Column Description: payment Date \n\tamount REAL not null, -- Example Values: `(6066.78,)`, `(14571.44,)`, `(1676.14,)` | Value Statics: Total count 273 - Distinct count 273 - Null count 0 | Column Description: amount \n\tprimary key (customerNumber, checkNumber),\n\tforeign key (customerNumber) references customers(customerNumber),\n);\n\nCREATE TABLE productlines\n(\n\tproductLine TEXT not null primary key,\n\ttextDescription TEXT, -- Example Values: `Attention car enthusiasts: Make your wildest car o`, `Our motorcycles are state of the art replicas of c`, `Unique, diecast airplane and helicopter replicas s`, `The perfect holiday or anniversary gift for execut`, `Model trains are a rewarding hobby for enthusiasts` | Value Statics: Total count 7 - Distinct count 7 - Null count 0 | Column Name Meaning: text description | Column Description: text description \n\thtmlDescription TEXT, --| Column Name Meaning: html description | Column Description: html description \n\timage BLOB, -- | Column Description: image \n);\n\nCREATE TABLE products\n(\n\tproductCode TEXT not null primary key,\n\tproductName TEXT not null, -- Example Values: `('1969 Harley Davidson Ultimate Chopper',)`, `('1952 Alpine Renault 1300',)`, `('1996 Moto Guzzi 1100i',)` | Value Statics: Total count 110 - Distinct count 110 - Null count 0 | Column Name Meaning: product name | Column Description: product name \n\tproductLine TEXT not null, -- Example Values: `Motorcycles`, `Classic Cars`, `Trucks and Buses`, `Vintage Cars`, `Planes` | Value Statics: Total count 110 - Distinct count 7 - Null count 0 | Column Name Meaning: product line | Column Description: product line name \n\tproductScale TEXT not null, -- Example Values: `1:10`, `1:12`, `1:18`, `1:72`, `1:24` | Value Statics: Total count 110 - Distinct count 8 - Null count 0 | Column Name Meaning: product scale | Column Description: product scale \n\tproductVendor TEXT not null, -- Example Values: `Min Lin Diecast`, `Classic Metal Creations`, `Highway 66 Mini Classics`, `Red Start Diecast`, `Motor City Art Classics` | Value Statics: Total count 110 - Distinct count 13 - Null count 0 | Column Name Meaning: product vendor | Column Description: product vendor \n\tproductDescription TEXT not null, --| Column Name Meaning: product description | Column Description: product description \n\tquantityInStock INTEGER not null, -- Example Values: `(7933,)`, `(7305,)`, `(6625,)` | Value Statics: Total count 110 - Distinct count 110 - Null count 0 | Column Name Meaning: quantity in stock | Column Description: quantity in stock \n\tbuyPrice REAL not null, -- Example Values: `(48.81,)`, `(98.58,)`, `(68.99,)` | Value Statics: Total count 110 - Distinct count 108 - Null count 0 | Column Name Meaning: buy price | Column Description: buy price from vendors \n\tMSRP REAL not null, -- Example Values: `(95.7,)`, `(214.3,)`, `(118.94,)` | Value Statics: Total count 110 - Distinct count 108 - Null count 0 | Column Name Meaning: Manufacturer Suggested Retail Price | Column Description: Manufacturer Suggested Retail Price | Value Description: expected profits: msrp - buyPrice\n\tforeign key (productLine) references productlines(productLine),\n);\n\nCREATE TABLE orderdetails\n(\n\torderNumber INTEGER not null references orders, -- Example Values: `(10100,)`, `(10101,)`, `(10102,)` | Value Statics: Total count 2996 - Distinct count 326 - Null count 0 | Column Name Meaning: order number | Column Description: order number \n\tproductCode TEXT not null references products, -- Example Values: `('S18_1749',)`, `('S18_2248',)`, `('S18_4409',)` | Value Statics: Total count 2996 - Distinct count 109 - Null count 0 | Column Name Meaning: product code | Column Description: product code \n\tquantityOrdered INTEGER not null, -- Example Values: `(30,)`, `(50,)`, `(22,)` | Value Statics: Total count 2996 - Distinct count 61 - Null count 0 | Column Name Meaning: quantity ordered | Column Description: quantity ordered \n\tpriceEach REAL not null, -- Example Values: `(136.0,)`, `(55.09,)`, `(75.46,)` | Value Statics: Total count 2996 - Distinct count 1573 - Null count 0 | Column Name Meaning: price for each | Column Description: price for each | Value Description: total price = quantityOrdered x priceEach\n\torderLineNumber INTEGER not null, -- Example Values: `3`, `2`, `4`, `1`, `11` | Value Statics: Total count 2996 - Distinct count 18 - Null count 0 | Column Name Meaning: order Line Number | Column Description: order Line Number \n\tprimary key (orderNumber, productCode),\n);"
}
|
restaurant
|
{
"db_schema": "CREATE TABLE geographic\n(\n\tcity TEXT not null primary key,\n\tcounty TEXT null, -- Example Values: `('alameda county',)`, `('contra costa county',)`, `('santa clara county',)` | Value Statics: Total count 168 - Distinct count 20 - Null count 0 | Column Name Meaning: country | Column Description: the country the city belongs to \n\tregion TEXT null, -- Example Values: `bay area`, `napa valley`, `unknown`, `monterey`, `los angeles area` | Value Statics: Total count 168 - Distinct count 9 - Null count 0 | Column Description: corresponding regions \n);\n\nCREATE TABLE generalinfo\n(\n\tid_restaurant INTEGER not null primary key,\n\tlabel TEXT null, -- Example Values: `(\"sparky's diner\",)`, `('kabul afghan cuisine',)`, `('helmand restaurant',)` | Value Statics: Total count 9590 - Distinct count 7606 - Null count 0 | Column Description: the label of the restaurant \n\tfood_type TEXT null, -- Example Values: `('24 hour diner',)`, `('afghani',)`, `('african',)` | Value Statics: Total count 9590 - Distinct count 145 - Null count 0 | Column Name Meaning: food type | Column Description: the food type \n\tcity TEXT null, -- Example Values: `('san francisco',)`, `('san carlos',)`, `('sunnyvale',)` | Value Statics: Total count 9590 - Distinct count 167 - Null count 0 | Column Description: the city where the restaurant is located in \n\treview REAL null, -- Example Values: `(2.3,)`, `(3.8,)`, `(4.0,)` | Value Statics: Total count 9590 - Distinct count 33 - Null count 0 | Column Description: the review of the restaurant | Value Description: the review rating is from 0.0 to 5.0 The high review rating is positively correlated with the overall level of the restaurant. The restaurant with higher review rating is usually more popular among diners.\n\tforeign key (city) references geographic(city) on update cascade on delete cascade,\n);\n\nCREATE TABLE location\n(\n\tid_restaurant INTEGER not null primary key,\n\tstreet_num INTEGER null, -- Example Values: `(242,)`, `(135,)`, `(430,)` | Value Statics: Total count 9082 - Distinct count 3966 - Null count 457 | Column Name Meaning: street number | Column Description: the street number of the restaurant \n\tstreet_name TEXT null, -- Example Values: `('church st',)`, `('el camino real',)`, `('broadway',)` | Value Statics: Total count 9295 - Distinct count 3675 - Null count 244 | Column Name Meaning: street name | Column Description: the street name of the restaurant \n\tcity TEXT null, -- Example Values: `('san francisco',)`, `('san carlos',)`, `('sunnyvale',)` | Value Statics: Total count 9314 - Distinct count 165 - Null count 225 | Column Description: the city where the restaurant is located in \n\tforeign key (city) references geographic (city) on update cascade on delete cascade,\n\tforeign key (id_restaurant) references generalinfo (id_restaurant) on update cascade on delete cascade,\n);"
}
|
soccer_2016
|
{
"db_schema": "CREATE TABLE Batting_Style\n(\n\tBatting_Id INTEGER primary key,\n\tBatting_hand TEXT, -- Example Values: `Left-hand bat`, `Right-hand bat` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Name Meaning: batting hand | Column Description: the batting hand: left or right \n);\n\nCREATE TABLE Bowling_Style\n(\n\tBowling_Id INTEGER primary key,\n\tBowling_skill TEXT, -- Example Values: `Right-arm medium`, `Right-arm offbreak`, `Right-arm fast-medium`, `Legbreak googly`, `Right-arm medium-fast` | Value Statics: Total count 14 - Distinct count 14 - Null count 0 | Column Name Meaning: bowling skill | Column Description: the bowling skill \n);\n\nCREATE TABLE City\n(\n\tCity_Id INTEGER primary key,\n\tCity_Name TEXT, -- Example Values: `('Bangalore',)`, `('Chandigarh',)`, `('Delhi',)` | Value Statics: Total count 29 - Distinct count 29 - Null count 0 | Column Name Meaning: city name | Column Description: city name \n\tCountry_id INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 29 - Distinct count 3 - Null count 0 | Column Name Meaning: country id | Column Description: id of country \n);\n\nCREATE TABLE Country\n(\n\tCountry_Id INTEGER primary key,\n\tCountry_Name TEXT, -- Example Values: `India`, `South Africa`, `U.A.E`, `New Zealand`, `Australia` | Value Statics: Total count 12 - Distinct count 12 - Null count 0 | Column Name Meaning: country name | Column Description: country name \n\tforeign key (Country_Id) references Country(Country_Id),\n);\n\nCREATE TABLE Extra_Type\n(\n\tExtra_Id INTEGER primary key,\n\tExtra_Name TEXT, -- Example Values: `legbyes`, `wides`, `byes`, `noballs`, `penalty` | Value Statics: Total count 5 - Distinct count 5 - Null count 0 | Column Name Meaning: extra name | Column Description: extra type name \n);\n\nCREATE TABLE Extra_Runs\n(\n\tMatch_Id INTEGER, -- Example Values: `(335987,)`, `(335988,)`, `(335989,)` | Value Statics: Total count 7469 - Distinct count 577 - Null count 0 | Column Name Meaning: match id | Column Description: Unique Number Which Identifies a match \n\tOver_Id INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 7469 - Distinct count 20 - Null count 0 | Column Name Meaning: over id | Column Description: Unique Number which Identifies an over in an Innings \n\tBall_Id INTEGER, -- Example Values: `1`, `2`, `3`, `7`, `5` | Value Statics: Total count 7469 - Distinct count 9 - Null count 0 | Column Name Meaning: ball id | Column Description: Unique Number which Identifies a ball in an over \n\tExtra_Type_Id INTEGER, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 7469 - Distinct count 5 - Null count 0 | Column Name Meaning: extra type id | Column Description: Unique Number which Identifies extra type \n\tExtra_Runs INTEGER, -- Example Values: `1`, `4`, `5`, `2`, `3` | Value Statics: Total count 7469 - Distinct count 5 - Null count 0 | Column Name Meaning: extra runs | Column Description: Number of extra runs \n\tInnings_No INTEGER, -- Example Values: `1`, `2`, `3`, `4` | Value Statics: Total count 7469 - Distinct count 4 - Null count 0 | Column Name Meaning: innings number | Column Description: Unique Number which Identifies an innings in a match \n\tprimary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n\tforeign key (Extra_Type_Id) references Extra_Type(Extra_Id),\n);\n\nCREATE TABLE Out_Type\n(\n\tOut_Id INTEGER primary key,\n\tOut_Name TEXT, -- Example Values: `caught`, `bowled`, `run out`, `lbw`, `retired hurt` | Value Statics: Total count 9 - Distinct count 9 - Null count 0 | Column Name Meaning: out name | Column Description: out type name \n);\n\nCREATE TABLE Outcome\n(\n\tOutcome_Id INTEGER primary key,\n\tOutcome_Type TEXT, -- Example Values: `Result`, `No Result`, `Superover` | Value Statics: Total count 3 - Distinct count 3 - Null count 0 | Column Name Meaning: outcome type | Column Description: type of the outcome \n);\n\nCREATE TABLE Player\n(\n\tPlayer_Id INTEGER primary key,\n\tPlayer_Name TEXT, -- Example Values: `('SC Ganguly',)`, `('BB McCullum',)`, `('RT Ponting',)` | Value Statics: Total count 469 - Distinct count 469 - Null count 0 | Column Name Meaning: player name | Column Description: the name of the player \n\tDOB DATE, -- Example Values: `('1972-07-08',)`, `('1981-09-27',)`, `('1974-12-19',)` | Value Statics: Total count 469 - Distinct count 455 - Null count 0 | Column Name Meaning: date of birth | Column Description: player's birthday | Value Description: yyyy-mm-dd\n\tBatting_hand INTEGER, -- Example Values: `1`, `2` | Value Statics: Total count 469 - Distinct count 2 - Null count 0 | Column Name Meaning: batting hand | Column Description: the id of the batting hand \n\tBowling_skill INTEGER, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 426 - Distinct count 14 - Null count 43 | Column Name Meaning: bowling skill | Column Description: the id of the bowling skill \n\tCountry_Name INTEGER, -- Example Values: `1`, `4`, `5`, `6`, `2` | Value Statics: Total count 469 - Distinct count 11 - Null count 0 | Column Name Meaning: country name | Column Description: the name of the country where the player is from \n\tforeign key (Batting_hand) references Batting_Style(Batting_Id),\n\tforeign key (Bowling_skill) references Bowling_Style(Bowling_Id),\n\tforeign key (Country_Name) references Country(Country_Id),\n);\n\nCREATE TABLE Rolee\n(\n\tRole_Id INTEGER primary key,\n\tRole_Desc TEXT, -- Example Values: `Captain`, `Keeper`, `Player`, `CaptainKeeper` | Value Statics: Total count 4 - Distinct count 4 - Null count 0 | Column Name Meaning: role description | Column Description: the role description \n);\n\nCREATE TABLE Season\n(\n\tSeason_Id INTEGER primary key,\n\tMan_of_the_Series INTEGER, -- Example Values: `32`, `53`, `133`, `162`, `315` | Value Statics: Total count 9 - Distinct count 8 - Null count 0 | Column Name Meaning: man of the series | Column Description: the player id of man of the series | Value Description: In team sport, a player of the series or man (or woman) of the series award is often given to the outstanding player in a particular series.\n\tOrange_Cap INTEGER, -- Example Values: `100`, `18`, `133`, `162`, `19` | Value Statics: Total count 9 - Distinct count 8 - Null count 0 | Column Name Meaning: orange cap | Column Description: the player id who wins the orange cap | Value Description: The Orange Cap is a coveted award for a batter who is participating in the Indian Premier League (IPL)\n\tPurple_Cap INTEGER, -- Example Values: `102`, `61`, `131`, `194`, `190` | Value Statics: Total count 9 - Distinct count 8 - Null count 0 | Column Name Meaning: purple cap | Column Description: the player id who wins the purple cap | Value Description: The Purple Cap is awarded to the bowler who has emerged as the leading wicket-taker in a particular edition of the high-profile Indian Premier League (IPL)\n\tSeason_Year INTEGER, -- Example Values: `2008`, `2009`, `2010`, `2011`, `2012` | Value Statics: Total count 9 - Distinct count 9 - Null count 0 | Column Name Meaning: season year | Column Description: the year of the season \n);\n\nCREATE TABLE Team\n(\n\tTeam_Id INTEGER primary key,\n\tTeam_Name TEXT, -- Example Values: `Kolkata Knight Riders`, `Royal Challengers Bangalore`, `Chennai Super Kings`, `Kings XI Punjab`, `Rajasthan Royals` | Value Statics: Total count 13 - Distinct count 13 - Null count 0 | Column Name Meaning: team name | Column Description: the team name \n);\n\nCREATE TABLE Toss_Decision\n(\n\tToss_Id INTEGER primary key,\n\tToss_Name TEXT, -- Example Values: `field`, `bat` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Name Meaning: toss name | Column Description: the toss decision name \n);\n\nCREATE TABLE Umpire\n(\n\tUmpire_Id INTEGER primary key,\n\tUmpire_Name TEXT, -- Example Values: `('Asad Rauf',)`, `('MR Benson',)`, `('Aleem Dar',)` | Value Statics: Total count 52 - Distinct count 52 - Null count 0 | Column Name Meaning: umpire name | Column Description: umpire's name \n\tUmpire_Country INTEGER, -- Example Values: `6`, `10`, `4`, `2`, `5` | Value Statics: Total count 52 - Distinct count 9 - Null count 0 | Column Name Meaning: umpire country | Column Description: the id of the country where the umpire are from \n\tforeign key (Umpire_Country) references Country(Country_Id),\n\tforeign key (Umpire_Country) references Country(Country_Id),\n);\n\nCREATE TABLE Venue\n(\n\tVenue_Id INTEGER primary key,\n\tVenue_Name TEXT, -- Example Values: `('M Chinnaswamy Stadium',)`, `('Punjab Cricket Association Stadium',)`, `('Feroz Shah Kotla',)` | Value Statics: Total count 35 - Distinct count 35 - Null count 0 | Column Name Meaning: venue name | Column Description: the name of the venue \n\tCity_Id INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 35 - Distinct count 29 - Null count 0 | Column Name Meaning: city id | Column Description: the city id where the venue is located in \n\tforeign key (City_Id) references City(City_Id),\n);\n\nCREATE TABLE Win_By\n(\n\tWin_Id INTEGER primary key,\n\tWin_Type TEXT, -- Example Values: `runs`, `wickets`, `NO Result`, `Tie` | Value Statics: Total count 4 - Distinct count 4 - Null count 0 | Column Name Meaning: winning type | Column Description: the winning type \n);\n\nCREATE TABLE Match\n(\n\tMatch_Id INTEGER primary key,\n\tTeam_1 INTEGER, -- Example Values: `2`, `4`, `6`, `7`, `1` | Value Statics: Total count 577 - Distinct count 13 - Null count 0 | Column Name Meaning: team 1 | Column Description: the team id of the first team \n\tTeam_2 INTEGER, -- Example Values: `1`, `3`, `5`, `2`, `8` | Value Statics: Total count 577 - Distinct count 13 - Null count 0 | Column Name Meaning: team 2 | Column Description: the team id for the second team \n\tMatch_Date DATE, -- Example Values: `('2008-04-18',)`, `('2008-04-19',)`, `('2008-04-20',)` | Value Statics: Total count 577 - Distinct count 407 - Null count 0 | Column Name Meaning: match date | Column Description: the date of the match | Value Description: yyyy-mm-dd\n\tSeason_Id INTEGER, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 577 - Distinct count 9 - Null count 0 | Column Name Meaning: season id | Column Description: the id of the season \n\tVenue_Id INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 577 - Distinct count 35 - Null count 0 | Column Name Meaning: venue id | Column Description: the id of the venue where the match held \n\tToss_Winner INTEGER, -- Example Values: `2`, `3`, `5`, `7`, `8` | Value Statics: Total count 577 - Distinct count 13 - Null count 0 | Column Name Meaning: toss winner | Column Description: the id of the toss winner | Value Description: The toss winner is a term used in cricket and is the team that wins the heads or tails toss of coin at the beginning of a match which then enables the team captain to decide whether to bat or bowl first on the pitch.\n\tToss_Decide INTEGER, -- Example Values: `1`, `2` | Value Statics: Total count 577 - Distinct count 2 - Null count 0 | Column Name Meaning: toss decide | Column Description: the decision (batting or bowling) made after winning the toss | Value Description: ⢠field \r ⢠bat\n\tWin_Type INTEGER, -- Example Values: `1`, `2`, `4`, `3` | Value Statics: Total count 577 - Distinct count 4 - Null count 0 | Column Name Meaning: winning type | Column Description: the id of the winning type \n\tWin_Margin INTEGER, -- Example Values: `(140,)`, `(33,)`, `(9,)` | Value Statics: Total count 568 - Distinct count 82 - Null count 9 | Column Name Meaning: winning margin | Column Description: the points of the winning margin | Value Description: A winning margin bet is a wager on the final result of a game, within a certain range of points.\n\tOutcome_type INTEGER, -- Example Values: `1`, `3`, `2` | Value Statics: Total count 577 - Distinct count 3 - Null count 0 | Column Name Meaning: outcome type | Column Description: the id of the outcome type \n\tMatch_Winner INTEGER, -- Example Values: `1`, `3`, `6`, `2`, `5` | Value Statics: Total count 574 - Distinct count 13 - Null count 3 | Column Name Meaning: match winner | Column Description: the team id of the match winner \n\tMan_of_the_Match INTEGER, -- Example Values: `(2,)`, `(19,)`, `(90,)` | Value Statics: Total count 574 - Distinct count 187 - Null count 3 | Column Name Meaning: man of the match | Column Description: the id of the man of the match | Value Description: In team sport, a player of the match or man (or woman) of the match award is often given to the outstanding player in a particular match.\n\tforeign key (Team_1) references Team(Team_Id),\n\tforeign key (Team_2) references Team(Team_Id),\n\tforeign key (Season_Id) references Season(Season_Id),\n\tforeign key (Venue_Id) references Venue(Venue_Id),\n\tforeign key (Toss_Winner) references Team(Team_Id),\n\tforeign key (Toss_Decide) references Toss_Decision(Toss_Id),\n\tforeign key (Win_Type) references Win_By(Win_Id),\n\tforeign key (Outcome_type) references Out_Type(Out_Id),\n\tforeign key (Outcome_type) references Out_Type(Out_Id),\n\tforeign key (Match_Winner) references Team(Team_Id),\n\tforeign key (Match_Winner) references Team(Team_Id),\n\tforeign key (Man_of_the_Match) references Player(Player_Id),\n\tforeign key (Man_of_the_Match) references Player(Player_Id),\n);\n\nCREATE TABLE Ball_by_Ball\n(\n\tMatch_Id INTEGER, -- Example Values: `(335987,)`, `(335988,)`, `(335989,)` | Value Statics: Total count 100000 - Distinct count 422 - Null count 0 | Column Name Meaning: match id | Column Description: Unique Number Which Identifies a match \n\tOver_Id INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 20 - Null count 0 | Column Name Meaning: over id | Column Description: Unique Number which Identifies an over in an Innings | Value Description: The match is made up of two innings and each team takes a turn at batting and bowling. An innings is made up of 50 overs. An over involves six deliveries from the bowler.\n\tBall_Id INTEGER, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 100000 - Distinct count 9 - Null count 0 | Column Name Meaning: ball id | Column Description: Unique Number which Identifies a ball in an over \n\tInnings_No INTEGER, -- Example Values: `1`, `2`, `3`, `4` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0 | Column Name Meaning: innings number | Column Description: Unique Number which Identifies an innings in a match \n\tTeam_Batting INTEGER, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 100000 - Distinct count 11 - Null count 0 | Column Name Meaning: team batting | Column Description: Unique Number which Identifies Batting team in a match \n\tTeam_Bowling INTEGER, -- Example Values: `2`, `1`, `4`, `3`, `6` | Value Statics: Total count 100000 - Distinct count 11 - Null count 0 | Column Name Meaning: team bowling | Column Description: Unique Number which Identifies Bowling team in a match \n\tStriker_Batting_Position INTEGER, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 100000 - Distinct count 11 - Null count 0 | Column Name Meaning: striker batting position | Column Description: Unique Number which Identifies the position in which player came into bat \n\tStriker INTEGER, -- Example Values: `(1,)`, `(6,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 379 - Null count 0 | Column Description: Unique Number which Identifies the player who is on strike for that particular ball \n\tNon_Striker INTEGER, -- Example Values: `(2,)`, `(7,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 378 - Null count 0 | Column Name Meaning: non striker | Column Description: Unique Number which Identifies the player who is Non-striker for that particular ball \n\tBowler INTEGER, -- Example Values: `(14,)`, `(106,)`, `(15,)` | Value Statics: Total count 100000 - Distinct count 283 - Null count 0 | Column Description: Unique Number which Identifies the player who is Bowling that particular ball \n\tprimary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n\tforeign key (Match_Id) references Match(Match_Id),\n);\n\nCREATE TABLE Batsman_Scored\n(\n\tMatch_Id INTEGER, -- Example Values: `(335987,)`, `(335988,)`, `(335989,)` | Value Statics: Total count 100000 - Distinct count 432 - Null count 0 | Column Name Meaning: match id | Column Description: Unique Number Which Identifies a match \n\tOver_Id INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 20 - Null count 0 | Column Name Meaning: over id | Column Description: Unique Number which Identifies an over in an Innings \n\tBall_Id INTEGER, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 100000 - Distinct count 9 - Null count 0 | Column Name Meaning: ball id | Column Description: Unique Number which Identifies a ball in an over \n\tRuns_Scored INTEGER, -- Example Values: `0`, `1`, `4`, `6`, `2` | Value Statics: Total count 100000 - Distinct count 7 - Null count 0 | Column Name Meaning: runs scored | Column Description: Number of Runs scored by the batsman \n\tInnings_No INTEGER, -- Example Values: `1`, `2`, `3`, `4` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0 | Column Name Meaning: innings number | Column Description: Unique Number which Identifies an innings in a match \n\tprimary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n\tforeign key (Match_Id) references Match(Match_Id),\n);\n\nCREATE TABLE Player_Match\n(\n\tMatch_Id INTEGER, -- Example Values: `(335987,)`, `(335988,)`, `(335989,)` | Value Statics: Total count 12694 - Distinct count 577 - Null count 0 | Column Name Meaning: match id | Column Description: unique id for match \n\tPlayer_Id INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 12694 - Distinct count 469 - Null count 0 | Column Name Meaning: player id | Column Description: the id of the player \n\tRole_Id INTEGER, -- Example Values: `1`, `3`, `2`, `4` | Value Statics: Total count 12694 - Distinct count 4 - Null count 0 | Column Name Meaning: role id | Column Description: the id of the play's role in the match | Value Description: if a player has multiple roles in a match, it means this player is versatile\n\tTeam_Id INTEGER, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 12694 - Distinct count 13 - Null count 0 | Column Name Meaning: team id | Column Description: the id of player's team \n\tprimary key (Match_Id, Player_Id, Role_Id),\n\tforeign key (Match_Id) references Match(Match_Id),\n\tforeign key (Player_Id) references Player(Player_Id),\n\tforeign key (Team_Id) references Team(Team_Id),\n\tforeign key (Role_Id) references Rolee(Role_Id),\n);\n\nCREATE TABLE Wicket_Taken\n(\n\tMatch_Id INTEGER, -- Example Values: `(335987,)`, `(335988,)`, `(335989,)` | Value Statics: Total count 6727 - Distinct count 577 - Null count 0 | Column Name Meaning: match id | Column Description: the id of the match \n\tOver_Id INTEGER, -- Example Values: `(2,)`, `(3,)`, `(5,)` | Value Statics: Total count 6727 - Distinct count 20 - Null count 0 | Column Name Meaning: over id | Column Description: the id of the over in an inning \n\tBall_Id INTEGER, -- Example Values: `1`, `2`, `5`, `8`, `6` | Value Statics: Total count 6727 - Distinct count 9 - Null count 0 | Column Name Meaning: ball id | Column Description: the id of the ball in an over \n\tPlayer_Out INTEGER, -- Example Values: `(6,)`, `(8,)`, `(9,)` | Value Statics: Total count 6727 - Distinct count 411 - Null count 0 | Column Name Meaning: player out | Column Description: the player id who got an out \n\tKind_Out INTEGER, -- Example Values: `2`, `1`, `3`, `4`, `5` | Value Statics: Total count 6727 - Distinct count 9 - Null count 0 | Column Name Meaning: kind out | Column Description: the id that represents the out type \n\tFielders INTEGER, -- Example Values: `(83,)`, `(9,)`, `(3,)` | Value Statics: Total count 4867 - Distinct count 377 - Null count 1860 | Column Description: the id of fielders \n\tInnings_No INTEGER, -- Example Values: `2`, `1`, `3`, `4` | Value Statics: Total count 6727 - Distinct count 4 - Null count 0 | Column Name Meaning: innings number | Column Description: number which identifies an innings in a match \n\tprimary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n\tforeign key (Match_Id) references Match(Match_Id),\n\tforeign key (Player_Out) references Player(Player_Id),\n\tforeign key (Kind_Out) references Out_Type(Out_Id),\n\tforeign key (Fielders) references Player(Player_Id),\n);"
}
|
music_tracker
|
{
"db_schema": "CREATE TABLE torrents\n(\n\tgroupName TEXT, -- Example Values: `('superappin'',)`, `('spiderap / a corona jam',)`, `('rapper's delight',)` | Value Statics: Total count 75719 - Distinct count 69692 - Null count 0 | Column Description: release title \n\ttotalSnatched INTEGER, -- Example Values: `(239,)`, `(156,)`, `(480,)` | Value Statics: Total count 75719 - Distinct count 2816 - Null count 0 | Column Description: number of times the release has been downloaded \n\tartist TEXT, -- Example Values: `('grandmaster flash & the furious five',)`, `('ron hunt & ronnie g & the sm crew',)`, `('sugarhill gang',)` | Value Statics: Total count 75719 - Distinct count 31287 - Null count 0 | Column Description: artist / group name \n\tgroupYear INTEGER, -- Example Values: `(1979,)`, `(1980,)`, `(1981,)` | Value Statics: Total count 75719 - Distinct count 38 - Null count 0 | Column Description: release year \n\treleaseType TEXT, -- Example Values: `single`, `album`, `live album`, `ep`, `unknown` | Value Statics: Total count 75719 - Distinct count 15 - Null count 0 | Column Description: release type (e.g., album, single, mixtape) \n\tgroupId INTEGER, -- Example Values: `(720949,)`, `(728752,)`, `(18513,)` | Value Statics: Total count 75719 - Distinct count 75719 - Null count 0 | Column Description: Unique release identifier from What.CD. Used to ensure no releases are duplicates. \n\tid INTEGER constraint torrents_pk primary key,\n);\n\nCREATE TABLE tags\n(\n\t\"index\" INTEGER constraint tags_pk primary key,\n\tid INTEGER constraint tags_torrents_id_fk references torrents, -- Example Values: `(0,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 37804 - Null count 0 | Column Description: release identifier which can be matched with id field in the torrents table \n\ttag TEXT, -- Example Values: `('1970s',)`, `('funk',)`, `('disco',)` | Value Statics: Total count 100000 - Distinct count 2855 - Null count 0 | Column Description: tag \n);"
}
|
world_development_indicators
|
{
"db_schema": "CREATE TABLE Country\n(\n\tCountryCode TEXT not null primary key,\n\tShortName TEXT, -- Example Values: `('Afghanistan',)`, `('Albania',)`, `('Algeria',)` | Value Statics: Total count 247 - Distinct count 247 - Null count 0 | Column Name Meaning: Short Name | Column Description: Short names of countries \n\tTableName TEXT, -- Example Values: `('Afghanistan',)`, `('Albania',)`, `('Algeria',)` | Value Statics: Total count 247 - Distinct count 247 - Null count 0 | Column Name Meaning: Table Name | Column Description: table names of countries \n\tLongName TEXT, -- Example Values: `('Islamic State of Afghanistan',)`, `('Republic of Albania',)`, `(\"People's Democratic Republic of Algeria\",)` | Value Statics: Total count 247 - Distinct count 247 - Null count 0 | Column Name Meaning: Long Name | Column Description: long or full name of countries \n\tAlpha2Code TEXT, -- Example Values: `('AF',)`, `('AL',)`, `('DZ',)` | Value Statics: Total count 247 - Distinct count 245 - Null count 0 | Column Name Meaning: Alpha to Code | Column Description: 2 digit code of countries \n\tCurrencyUnit TEXT, -- Example Values: `('Afghan afghani',)`, `('Albanian lek',)`, `('Algerian dinar',)` | Value Statics: Total count 247 - Distinct count 150 - Null count 0 | Column Name Meaning: Currency Unit | Column Description: Currency Unit used in this country \n\tSpecialNotes TEXT, --| Column Name Meaning: Special Notes | Column Description: Special Notes \n\tRegion TEXT, -- Example Values: `South Asia`, `Europe & Central Asia`, `Middle East & North Africa`, `East Asia & Pacific`, `Sub-Saharan Africa` | Value Statics: Total count 247 - Distinct count 8 - Null count 0 | Column Description: region that country belongs to \n\tIncomeGroup TEXT, -- Example Values: `Low income`, `Upper middle income`, `High income: nonOECD`, ``, `Lower middle income` | Value Statics: Total count 247 - Distinct count 6 - Null count 0 | Column Name Meaning: Income Group | Column Description: income level of countries \n\tWb2Code TEXT, -- Example Values: `('AF',)`, `('AL',)`, `('DZ',)` | Value Statics: Total count 247 - Distinct count 247 - Null count 0 | Column Name Meaning: world bank to code | Column Description: world bank to code \n\tNationalAccountsBaseYear TEXT, -- Example Values: `('2002/03',)`, `('Original chained constant price data are rescale`, `('1980',)` | Value Statics: Total count 247 - Distinct count 42 - Null count 0 | Column Name Meaning: National Accounts Base Year | Column Description: the year used as the base period for constant price calculations in the country's national accounts \n\tNationalAccountsReferenceYear TEXT, -- Example Values: ``, `1996`, `2013/14`, `2010`, `2000` | Value Statics: Total count 247 - Distinct count 11 - Null count 0 | Column Name Meaning: National Accounts Reference Year | Column Description: National Accounts Reference Year \n\tSnaPriceValuation TEXT, -- Example Values: `Value added at basic prices (VAB)`, ``, `Value added at producer prices (VAP)` | Value Statics: Total count 247 - Distinct count 3 - Null count 0 | Column Name Meaning: SNA Price Valuation | Column Description: SNA Price Valuation \n\tLendingCategory TEXT, -- Example Values: `IDA`, `IBRD`, ``, `Blend` | Value Statics: Total count 247 - Distinct count 4 - Null count 0 | Column Name Meaning: Lending Category | Column Description: Lending category | Value Description: • IDA: International Development Associations: (IDA) is the part of the World Bank that helps the world's poorest countries. • IBRD: The International Bank for Reconstruction and Development (IBRD) is a global development cooperative owned by 189 member countries. • Blend: Blend is the cloud banking infrastructure powering billions of dollars in financial transactions every day.\n\tOtherGroups TEXT, -- Example Values: `HIPC`, ``, `Euro area` | Value Statics: Total count 247 - Distinct count 3 - Null count 0 | Column Name Meaning: Other groups | Column Description: other groups | Value Description: • HIPC: Heavily Indebted Poor Countries • Euro Area: The euro area consists of those Member States of the European Union that have adopted the euro as their currency.\n\tSystemOfNationalAccounts TEXT, -- Example Values: `Country uses the 1993 System of National Accounts `, `Country uses the 1968 System of National Accounts `, ``, `Country uses the 2008 System of National Accounts ` | Value Statics: Total count 247 - Distinct count 4 - Null count 0 | Column Name Meaning: System Of National Accounts | Column Description: System Of National Accounts \n\tAlternativeConversionFactor TEXT, -- Example Values: `('',)`, `('1991\\x9696',)`, `('1971\\x9684',)` | Value Statics: Total count 247 - Distinct count 33 - Null count 0 | Column Name Meaning: Alternative Conversion Factor | Column Description: Alternative conversion factor is the underlying annual exchange rate used for the World Bank Atlas method \n\tPppSurveyYear TEXT, -- Example Values: ``, `Rolling`, `2011`, `2011 (household consumption only).` | Value Statics: Total count 247 - Distinct count 4 - Null count 0 | Column Name Meaning: purchasing power parity survey year | Column Description: purchasing power parity survey year \n\tBalanceOfPaymentsManualInUse TEXT, -- Example Values: ``, `IMF Balance of Payments Manual, 6th edition.` | Value Statics: Total count 247 - Distinct count 2 - Null count 0 | Column Name Meaning: Balance Of Payments Manual In Use | Column Description: Balance Of Payments Manual In Use \n\tExternalDebtReportingStatus TEXT, -- Example Values: `Actual`, ``, `Preliminary`, `Estimate` | Value Statics: Total count 247 - Distinct count 4 - Null count 0 | Column Name Meaning: External Debt Reporting Status | Column Description: External Debt Reporting Status | Value Description: • Actual • Preliminary • Estimate commonsense reasoning: If ExternalDebtReportingStatus='Actual', it means this external debt reporting is real and actual, and finished if 'Estimate', it means external debt reporting is finished by estimation. if 'preliminary', it means this external debt reporting is not finished\n\tSystemOfTrade TEXT, -- Example Values: `General trade system`, `Special trade system`, `` | Value Statics: Total count 247 - Distinct count 3 - Null count 0 | Column Name Meaning: System Of Trade | Column Description: System Of Trade \n\tGovernmentAccountingConcept TEXT, -- Example Values: `Consolidated central government`, `Budgetary central government`, `` | Value Statics: Total count 247 - Distinct count 3 - Null count 0 | Column Name Meaning: Government Accounting Concept | Column Description: Government Accounting Concept \n\tImfDataDisseminationStandard TEXT, -- Example Values: `General Data Dissemination System (GDDS)`, ``, `Special Data Dissemination Standard (SDDS)` | Value Statics: Total count 247 - Distinct count 3 - Null count 0 | Column Name Meaning: International Monetory Fund Data Dissemination Standard | Column Description: IMF Standards for Data Dissemination \n\tLatestPopulationCensus TEXT, -- Example Values: `('1979',)`, `('2011',)`, `('2008',)` | Value Statics: Total count 247 - Distinct count 26 - Null count 0 | Column Name Meaning: Latest Population Census | Column Description: Latest Population Census \n\tLatestHouseholdSurvey TEXT, --| Column Name Meaning: Latest Household Survey \n\tSourceOfMostRecentIncomeAndExpenditureData TEXT, -- Example Values: `('Integrated household survey (IHS), 2008',)`, `('Living Standards Measurement Study Survey (LSMS)`, `('Integrated household survey (IHS), 1995',)` | Value Statics: Total count 247 - Distinct count 65 - Null count 0 | Column Name Meaning: Source Of Most Recent Income And Expenditure Data | Column Description: Source Of Most Recent Income And Expenditure Data \n\tVitalRegistrationComplete TEXT, -- Example Values: ``, `Yes`, `Yes. Vital registration for Guernsey and Jersey.` | Value Statics: Total count 247 - Distinct count 3 - Null count 0 | Column Name Meaning: Vital Registration Complete | Column Description: Vital Registration Complete \n\tLatestAgriculturalCensus TEXT, -- Example Values: `('2013/14',)`, `('2012',)`, `('',)` | Value Statics: Total count 247 - Distinct count 36 - Null count 0 | Column Name Meaning: Latest Agricultural Census | Column Description: Latest Agricultural Census \n\tLatestIndustrialData INTEGER, -- Example Values: `2011`, `2010`, `2002`, `2008`, `2007` | Value Statics: Total count 113 - Distinct count 11 - Null count 134 | Column Name Meaning: Latest Industrial Data | Column Description: Latest Industrial Data \n\tLatestTradeData INTEGER, -- Example Values: `2013`, `2006`, `2012`, `2011`, `2007` | Value Statics: Total count 186 - Distinct count 14 - Null count 61 | Column Name Meaning: Latest Trade Data | Column Description: Latest Trade Data \n\tLatestWaterWithdrawalData INTEGER, -- Example Values: `(2000,)`, `(2006,)`, `(2001,)` | Value Statics: Total count 180 - Distinct count 21 - Null count 67 | Column Name Meaning: Latest Water Withdrawal Data | Column Description: Latest Water Withdrawal Data \n);\n\nCREATE TABLE Series\n(\n\tSeriesCode TEXT not null primary key,\n\tTopic TEXT, -- | Column Description: topic of series \n\tIndicatorName TEXT, --| Column Name Meaning: Indicator Name | Column Description: Indicator Name \n\tShortDefinition TEXT, -- Example Values: `('',)`, `('Total external debt is debt owed to nonresidents`, `('Debt service is the sum of principle repayments ` | Value Statics: Total count 1345 - Distinct count 99 - Null count 0 | Column Name Meaning: Short Definition | Column Description: Short Definition of series \n\tLongDefinition TEXT, --| Column Name Meaning: Long Definition | Column Description: Long Definition of series \n\tUnitOfMeasure TEXT, -- Example Values: ``, ```, `%`, `2005 PPP $`, `2011 PPP $` | Value Statics: Total count 1345 - Distinct count 5 - Null count 0 | Column Name Meaning: Unit Of Measure | Column Description: Unit Of Measure \n\tPeriodicity TEXT, -- Example Values: `Annual` | Value Statics: Total count 1345 - Distinct count 1 - Null count 0 | Column Description: Periodicity \n\tBasePeriod TEXT, -- Example Values: ``, `2005`, `varies by country`, `2011`, `2004-06` | Value Statics: Total count 1345 - Distinct count 8 - Null count 0 | Column Name Meaning: Base Period | Column Description: a period of business or economic activity used as a basis or reference point especially for indexing, calculating, estimating, or adjudicating prices, taxes, compensation, income, and production \n\tOtherNotes INTEGER, --| Column Name Meaning: Other Notes | Column Description: Other Notes \n\tAggregationMethod TEXT, -- Example Values: ``, `Weighted average`, `Sum`, `Gap-filled total`, `Median` | Value Statics: Total count 1345 - Distinct count 7 - Null count 0 | Column Name Meaning: Aggregation Method | Column Description: Aggregation Method \n\tLimitationsAndExceptions TEXT, -- Example Values: `('',)`, `('FDI data do not give a complete picture of inter`, `('Portfolio investors typically have less of a rol` | Value Statics: Total count 1345 - Distinct count 187 - Null count 0 | Column Name Meaning: Limitations And Exceptions | Column Description: Limitations And Exceptions \n\tNotesFromOriginalSource TEXT, -- Example Values: ``, `Estimates are presented with uncertainty intervals`, `In some cases, the sum of public and private expen`, `All the indicators refer to expenditures by financ`, `PPP series resulting from the 2005 International c` | Value Statics: Total count 1345 - Distinct count 11 - Null count 0 | Column Name Meaning: Notes From Original Source | Column Description: Notes From Original Source \n\tGeneralComments TEXT, --| Column Name Meaning: General Comments | Column Description: General Comments \n\tSource TEXT, -- | Column Description: source of this data \n\tStatisticalConceptAndMethodology TEXT, -- Example Values: `('',)`, `('Data on equity flows are based on balance of pay`, `('Data on equity flows are based on balance of pay` | Value Statics: Total count 1345 - Distinct count 303 - Null count 0 | Column Name Meaning: Statistical Concept And Methodology | Column Description: Statistical Concept And Methodology \n\tDevelopmentRelevance TEXT, -- Example Values: `('',)`, `('Private financial flows - equity and debt - acco`, `('The balance of payments records an economy\\x92s ` | Value Statics: Total count 1345 - Distinct count 165 - Null count 0 | Column Name Meaning: Development Relevance | Column Description: Development Relevance \n\tRelatedSourceLinks TEXT, -- Example Values: ``, `World Bank, PovcalNet: an online poverty analysis ` | Value Statics: Total count 1345 - Distinct count 2 - Null count 0 | Column Name Meaning: Related Source Links | Column Description: Related Source Links \n\tOtherWebLinks INTEGER, --| Column Name Meaning: Other Web Links | Column Description: Other Web Links \n\tRelatedIndicators INTEGER, --| Column Name Meaning: Related Indicators | Column Description: Related Indicators \n\tLicenseType TEXT, -- Example Values: `Open`, `Restricted` | Value Statics: Total count 1345 - Distinct count 2 - Null count 0 | Column Name Meaning: License Type | Column Description: License Type \n);\n\nCREATE TABLE CountryNotes\n(\n\tCountrycode TEXT NOT NULL, -- Example Values: `('ABW',)`, `('ADO',)`, `('AFG',)` | Value Statics: Total count 4857 - Distinct count 215 - Null count 0 | Column Name Meaning: Country code | Column Description: code identifying unique countries \n\tSeriescode TEXT NOT NULL, -- Example Values: `('EG.EGY.PRIM.PP.KD',)`, `('EG.ELC.RNEW.ZS',)`, `('EG.FEC.RNEW.ZS',)` | Value Statics: Total count 4857 - Distinct count 259 - Null count 0 | Column Name Meaning: Series code | Column Description: Series code of countries \n\tDescription TEXT, -- | Column Description: description \n\tprimary key (Countrycode, Seriescode),\n\tFOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n\tFOREIGN KEY (Countrycode) REFERENCES Country(CountryCode),\n);\n\nCREATE TABLE Footnotes\n(\n\tCountrycode TEXT NOT NULL, -- Example Values: `('ABW',)`, `('ADO',)`, `('AFG',)` | Value Statics: Total count 100000 - Distinct count 50 - Null count 0 | Column Name Meaning: Country code | Column Description: code identifying unique countries \n\tSeriescode TEXT NOT NULL, -- Example Values: `('AG.LND.FRST.K2',)`, `('BX.KLT.DINV.CD.WD',)`, `('DC.DAC.AUSL.CD',)` | Value Statics: Total count 100000 - Distinct count 452 - Null count 0 | Column Name Meaning: Series code | Column Description: Series code of countries \n\tYear TEXT, -- Example Values: `('YR1990',)`, `('YR2000',)`, `('YR2005',)` | Value Statics: Total count 100000 - Distinct count 69 - Null count 0 | Column Description: Year \n\tDescription TEXT, -- Example Values: `('Not specified',)`, `('Source: United Nations Conference on Trade and D`, `('Data are classified as official aid.',)` | Value Statics: Total count 100000 - Distinct count 19875 - Null count 0 | Column Description: Description of country footnotes \n\tprimary key (Countrycode, Seriescode, Year),\n\tFOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n\tFOREIGN KEY (Countrycode) REFERENCES Country(CountryCode),\n);\n\nCREATE TABLE Indicators\n(\n\tCountryName TEXT, -- Example Values: `('Arab World',)`, `('Caribbean small states',)`, `('Central Europe and the Baltics',)` | Value Statics: Total count 100000 - Distinct count 247 - Null count 0 | Column Name Meaning: Country code | Column Description: code identifying unique countries \n\tCountryCode TEXT NOT NULL, -- Example Values: `('ABW',)`, `('ADO',)`, `('AFG',)` | Value Statics: Total count 100000 - Distinct count 7 - Null count 0 | Column Name Meaning: Series code | Column Description: Series code of countries \n\tIndicatorName TEXT, --| Column Name Meaning: Indicator Name | Column Description: indicator name \n\tIndicatorCode TEXT NOT NULL, -- Example Values: `('AG.LND.AGRI.K2',)`, `('AG.LND.AGRI.ZS',)`, `('AG.LND.ARBL.HA',)` | Value Statics: Total count 100000 - Distinct count 1335 - Null count 0 | Column Name Meaning: Indicator Code | Column Description: indicator code \n\tYear INTEGER NOT NULL, -- Example Values: `(1961,)`, `(1962,)`, `(1963,)` | Value Statics: Total count 100000 - Distinct count 56 - Null count 0 | Column Description: year \n\tValue INTEGER, -- Example Values: `(133,)`, `(87,)`, `(6,)` | Value Statics: Total count 100000 - Distinct count 33445 - Null count 0 | Column Description: value \n\tprimary key (CountryCode, IndicatorCode, Year),\n\tFOREIGN KEY (CountryCode) REFERENCES Country(CountryCode),\n);\n\nCREATE TABLE SeriesNotes\n(\n\tSeriescode TEXT not null, -- Example Values: `('DT.DOD.PVLX.CD',)`, `('IC.CUS.DURS.EX',)`, `('IC.FRM.BNKS.ZS',)` | Value Statics: Total count 369 - Distinct count 25 - Null count 0 | Column Name Meaning: Series code | Column Description: code identifying the series \n\tYear TEXT not null, -- Example Values: `('YR2014',)`, `('YR2002',)`, `('YR2003',)` | Value Statics: Total count 369 - Distinct count 55 - Null count 0 | Column Description: year \n\tDescription TEXT, -- Example Values: `('Interpolated using data for 1957 and 1962.',)`, `('Interpolated using data for 1957 and 1962, if th`, `('The data refer to 1960-1965.',)` | Value Statics: Total count 369 - Distinct count 68 - Null count 0 | Column Description: Description of series \n\tprimary key (Seriescode, Year),\n\tforeign key (Seriescode) references Series(SeriesCode),\n);"
}
|
movielens
|
{
"db_schema": "CREATE TABLE users\n(\n\tuserid INTEGER default 0 not null primary key,\n\tage TEXT not null, -- Example Values: `1`, `56`, `25`, `45`, `50` | Value Statics: Total count 6039 - Distinct count 7 - Null count 0 | Column Description: age | Value Description: 1: 1-18 years old; 18: 18-25 years old; 25: 25-35 years old; 35: 35-45 years old; 45: 45-50 years old; 50: 50-56 years old; 56: over 56 years old\n\tu_gender TEXT not null, -- Example Values: `F`, `M` | Value Statics: Total count 6039 - Distinct count 2 - Null count 0 | Column Name Meaning: user gender | Column Description: user gender | Value Description: M / F: Male / Female\n\toccupation TEXT not null, -- Example Values: `2`, `3`, `4`, `1`, `5` | Value Statics: Total count 6039 - Distinct count 5 - Null count 0 | Column Description: occupation \n);\n\nCREATE TABLE directors\n(\n\tdirectorid INTEGER not null primary key,\n\td_quality INTEGER not null, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 2201 - Distinct count 6 - Null count 0 | Column Name Meaning: director quality | Column Description: director quality | Value Description: higher value is better, lower is the worse\n\tavg_revenue INTEGER not null, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 2201 - Distinct count 5 - Null count 0 | Column Name Meaning: average revenue | Column Description: average revenue | Value Description: higher value is the higher, lower is the lower\n);\n\nCREATE TABLE actors\n(\n\tactorid INTEGER not null primary key,\n\ta_gender TEXT not null, -- Example Values: `M`, `F` | Value Statics: Total count 98690 - Distinct count 2 - Null count 0 | Column Name Meaning: actor gender | Column Description: actor gender | Value Description: M: male;\r F: female\n\ta_quality INTEGER not null, -- Example Values: `4`, `0`, `3`, `2`, `5` | Value Statics: Total count 98690 - Distinct count 6 - Null count 0 | Column Name Meaning: actor quality | Column Description: actor quality | Value Description: higher is better, lower is the worse\n);\n\nCREATE TABLE movies\n(\n\tmovieid INTEGER default 0 not null primary key,\n\tyear INTEGER not null, -- Example Values: `3`, `4`, `1`, `2` | Value Statics: Total count 3832 - Distinct count 4 - Null count 0 | Column Description: year | Value Description: 4: newest; 1: oldest higher value means newer published date\n\tisEnglish TEXT not null, -- Example Values: `T`, `F` | Value Statics: Total count 3832 - Distinct count 2 - Null count 0 | Column Name Meaning: is English | Column Description: is English \n\tcountry TEXT not null, -- Example Values: `other`, `USA`, `France`, `UK` | Value Statics: Total count 3832 - Distinct count 4 - Null count 0 | Column Description: country \n\trunningtime INTEGER not null, -- Example Values: `2`, `3`, `0`, `1` | Value Statics: Total count 3832 - Distinct count 4 - Null count 0 \n);\n\nCREATE TABLE movies2actors\n(\n\tmovieid INTEGER not null references movies on update cascade on delete cascade, -- Example Values: `(1672052,)`, `(1672111,)`, `(1672580,)` | Value Statics: Total count 100000 - Distinct count 2682 - Null count 0 | Column Name Meaning: movie id | Column Description: identifier number of movies \n\tactorid INTEGER not null references actors on update cascade on delete cascade, -- Example Values: `(88796,)`, `(88848,)`, `(121878,)` | Value Statics: Total count 100000 - Distinct count 66778 - Null count 0 \n\tcast_num INTEGER not null, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0 \n\tprimary key (movieid, actorid),\n);\n\nCREATE TABLE movies2directors\n(\n\tmovieid INTEGER not null references movies on update cascade on delete cascade, -- Example Values: `(1672052,)`, `(1672111,)`, `(1672580,)` | Value Statics: Total count 4141 - Distinct count 3814 - Null count 0 | Column Name Meaning: movie id | Column Description: identifier number of movies \n\tdirectorid INTEGER not null references directors on update cascade on delete cascade, -- Example Values: `(22397,)`, `(54934,)`, `(297253,)` | Value Statics: Total count 4141 - Distinct count 2201 - Null count 0 | Column Name Meaning: director id | Column Description: identifier number of directors \n\tgenre TEXT not null, -- Example Values: `Action`, `Adventure`, `Animation`, `Comedy`, `Crime` | Value Statics: Total count 4141 - Distinct count 9 - Null count 0 | Column Description: genre of movies \n\tprimary key (movieid, directorid),\n);\n\nCREATE TABLE u2base\n(\n\tuserid INTEGER default 0 not null references users on update cascade on delete cascade, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 669 - Null count 0 | Column Name Meaning: user id | Column Description: identifier number of users \n\tmovieid INTEGER not null references movies on update cascade on delete cascade, -- Example Values: `(1684486,)`, `(1685309,)`, `(1685493,)` | Value Statics: Total count 100000 - Distinct count 3230 - Null count 0 | Column Name Meaning: movie id | Column Description: identifier number of movie \n\trating TEXT not null, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: ratings of movies | Value Description: higher value refers to higher satisfactory, each value is the rating of movies left by users.\n\tprimary key (userid, movieid),\n);"
}
|
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 127