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: `('emma.smith@gmail.com',)`, `('noah.thompson@gmail.com',)`, `('olivia.johnson@outlook.com',)` | Value Statics: Total count 5369 - Distinct count 5369 - Null count 0 | Column Description: email | Value Description: google email / account: @gamil.com microsoft email / account: xxx@outlook.com\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: `npigford0@hku.hk`, `zzhihua@hku.hk`, `ozywicki2@hku.hk`, `mconkay3@ucla.edu`, `bmolen4@hku.hk` | 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: `('kpryor0@hku.hk',)`, `('cdinehart1@hku.hk',)`, `('eshiril2@hku.hk',)` | 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 master’s 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: `('dmurphy@classicmodelcars.com',)`, `('mpatterso@classicmodelcars.com',)`, `('jfirrelli@classicmodelcars.com',)` | 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&#39;',)`, `('spiderap / a corona jam',)`, `('rapper&#39;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);" }
superstore
{ "db_schema": "CREATE TABLE people\n(\n\t\"Customer ID\" TEXT, -- Example Values: `('AA-10315',)`, `('AA-10375',)`, `('AA-10480',)` | Value Statics: Total count 2501 - Distinct count 793 - Null count 0 | Column Description: the id of the customers \n\t\"Customer Name\" TEXT, -- Example Values: `('Alex Avila',)`, `('Allen Armold',)`, `('Andrew Allen',)` | Value Statics: Total count 2501 - Distinct count 793 - Null count 0 | Column Description: the name of the customers \n\tSegment TEXT, -- Example Values: `Consumer`, `Home Office`, `Corporate` | Value Statics: Total count 2501 - Distinct count 3 - Null count 0 | Column Description: the segment that the customers belong to | Value Description: • consumer • home office: synonym: headquarter. • corporate\n\tCountry TEXT, -- Example Values: `United States` | Value Statics: Total count 2501 - Distinct count 1 - Null count 0 | Column Description: the country of people \n\tCity TEXT, -- Example Values: `('Round Rock',)`, `('Omaha',)`, `('Springfield',)` | Value Statics: Total count 2501 - Distinct count 434 - Null count 0 | Column Description: the city of people \n\tState TEXT, -- Example Values: `('Texas',)`, `('Nebraska',)`, `('Missouri',)` | Value Statics: Total count 2501 - Distinct count 45 - Null count 0 | Column Description: the state of people | Value Description: please mention its full name in the question, by referring to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971 e.g., New York --> NY\n\t\"Postal Code\" INTEGER, -- Example Values: `(78664,)`, `(68104,)`, `(65807,)` | Value Statics: Total count 2501 - Distinct count 523 - Null count 0 | Column Description: the postal code \n\tRegion TEXT, -- Example Values: `Central`, `East`, `West`, `South` | Value Statics: Total count 2501 - Distinct count 4 - Null count 0 | Column Description: the region of people | Value Description: • Central: • East: • West: • South:\n\tprimary key (\"Customer ID\", Region),\n);\n\nCREATE TABLE product\n(\n\t\"Product ID\" TEXT, -- Example Values: `('FUR-BO-10000112',)`, `('FUR-BO-10000330',)`, `('FUR-BO-10000362',)` | Value Statics: Total count 5298 - Distinct count 1862 - Null count 0 | Column Description: the id of products \n\t\"Product Name\" TEXT, -- | Column Description: the name of products \n\tCategory TEXT, -- Example Values: `Furniture`, `Office Supplies`, `Technology` | Value Statics: Total count 5298 - Distinct count 3 - Null count 0 | Column Description: the categories of products | Value Description: • Furniture • Office Supplies • Technology\n\t\"Sub-Category\" TEXT, -- Example Values: `Bookcases`, `Chairs`, `Furnishings`, `Tables`, `Appliances` | Value Statics: Total count 5298 - Distinct count 17 - Null count 0 | Column Description: the sub-categories of products | Value Description: • Bookcases • Chairs • Furnishings • Tables • Appliances • Art • Binders • Envelopes • Fasteners • Labels • Paper • Storage • Supplies • Accessories • Copiers • Machines • Phones\n\tRegion TEXT, -- Example Values: `Central`, `South`, `West`, `East` | Value Statics: Total count 5298 - Distinct count 4 - Null count 0 | Column Description: the region of products | Value Description: • Central: • East: • West: • South:\n\tprimary key (\"Product ID\", Region),\n);\n\nCREATE TABLE central_superstore\n(\n\t\"Row ID\" INTEGER primary key,\n\t\"Order ID\" TEXT, -- Example Values: `('CA-2011-103800',)`, `('CA-2011-112326',)`, `('CA-2011-105417',)` | Value Statics: Total count 4646 - Distinct count 2350 - Null count 0 | Column Description: the unique identifier for the order \n\t\"Order Date\" DATE, -- Example Values: `('2013-01-03',)`, `('2013-01-04',)`, `('2013-01-07',)` | Value Statics: Total count 4646 - Distinct count 1264 - Null count 0 | Column Description: the date of the order | Value Description: yyyy-mm-dd\n\t\"Ship Date\" DATE, -- Example Values: `('2013-01-07',)`, `('2013-01-08',)`, `('2013-01-12',)` | Value Statics: Total count 4646 - Distinct count 1298 - Null count 0 | Column Description: the date of the shipment | Value Description: yyyy-mm-dd 'shipment time' refers to the time interval between order_date and ship_date.\n\t\"Ship Mode\" TEXT, -- Example Values: `Standard Class`, `First Class`, `Second Class`, `Same Day` | Value Statics: Total count 4646 - Distinct count 4 - Null count 0 | Column Description: the ship mode of the order | Value Description: First Class / Second Class / Standard Class Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n\t\"Customer ID\" TEXT, -- Example Values: `('DP-13000',)`, `('PO-19195',)`, `('VS-21820',)` | Value Statics: Total count 4646 - Distinct count 629 - Null count 0 | Column Description: the id of the customer \n\tRegion TEXT, -- Example Values: `Central` | Value Statics: Total count 4646 - Distinct count 1 - Null count 0 | Column Description: region of the customer's address \n\t\"Product ID\" TEXT, -- Example Values: `('OFF-PA-10000174',)`, `('OFF-LA-10003223',)`, `('OFF-ST-10002743',)` | Value Statics: Total count 4646 - Distinct count 1310 - Null count 0 | Column Description: the id of the product \n\tSales REAL, -- Example Values: `(16.448,)`, `(11.784,)`, `(272.736,)` | Value Statics: Total count 4646 - Distinct count 1917 - Null count 0 | Column Description: the sales of the product \n\tQuantity INTEGER, -- Example Values: `2`, `3`, `7`, `1`, `5` | Value Statics: Total count 4646 - Distinct count 14 - Null count 0 | Column Description: the quantity of the product \n\tDiscount REAL, -- Example Values: `0.2`, `0.8`, `0.6`, `0.0`, `0.1` | Value Statics: Total count 4646 - Distinct count 9 - Null count 0 | Column Description: the discount of the product | Value Description: original price = sales / (1- discount)\n\tProfit REAL, -- Example Values: `(5.5512,)`, `(4.2717,)`, `(-64.7748,)` | Value Statics: Total count 4646 - Distinct count 2074 - Null count 0 | Column Description: the profit that the company got by selling the product | Value Description: total cost of products = sales / (1- discount) * quantity - profit deficiency: if the value is negative\n\tforeign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n\tforeign key (\"Product ID\", Region) references product(\"Product ID\",Region),\n);\n\nCREATE TABLE east_superstore\n(\n\t\"Row ID\" INTEGER primary key,\n\t\"Order ID\" TEXT, -- Example Values: `('CA-2011-141817',)`, `('CA-2011-130092',)`, `('CA-2011-118192',)` | Value Statics: Total count 5696 - Distinct count 2802 - Null count 0 | Column Description: the unique identifier for the order \n\t\"Order Date\" DATE, -- Example Values: `('2013-01-05',)`, `('2013-01-11',)`, `('2013-01-13',)` | Value Statics: Total count 5696 - Distinct count 1354 - Null count 0 | Column Description: the date of the order | Value Description: yyyy-mm-dd\n\t\"Ship Date\" DATE, -- Example Values: `('2013-01-12',)`, `('2013-01-14',)`, `('2013-01-18',)` | Value Statics: Total count 5696 - Distinct count 1412 - Null count 0 | Column Description: the date of the shipment | Value Description: yyyy-mm-dd 'shipment time' refers to the time interval between order_date and ship_date.\n\t\"Ship Mode\" TEXT, -- Example Values: `Standard Class`, `First Class`, `Second Class`, `Same Day` | Value Statics: Total count 5696 - Distinct count 4 - Null count 0 | Column Description: the ship mode of the order | Value Description: First Class / Second Class / Standard Class Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n\t\"Customer ID\" TEXT, -- Example Values: `('MB-18085',)`, `('SV-20365',)`, `('MM-17920',)` | Value Statics: Total count 5696 - Distinct count 674 - Null count 0 | Column Description: the id of the customer \n\tRegion TEXT, -- Example Values: `East` | Value Statics: Total count 5696 - Distinct count 1 - Null count 0 | Column Description: region of the customer's address \n\t\"Product ID\" TEXT, -- Example Values: `('OFF-AR-10003478',)`, `('FUR-FU-10000010',)`, `('OFF-PA-10002947',)` | Value Statics: Total count 5696 - Distinct count 1422 - Null count 0 | Column Description: the id of the product \n\tSales REAL, -- Example Values: `(19.536,)`, `(9.94,)`, `(37.408,)` | Value Statics: Total count 5696 - Distinct count 2257 - Null count 0 | Column Description: the sales of the product \n\tQuantity INTEGER, -- Example Values: `3`, `2`, `7`, `4`, `6` | Value Statics: Total count 5696 - Distinct count 14 - Null count 0 | Column Description: the quantity of the product \n\tDiscount REAL, -- Example Values: `0.2`, `0.0`, `0.7`, `0.5`, `0.4` | Value Statics: Total count 5696 - Distinct count 7 - Null count 0 | Column Description: the discount of the product | Value Description: original price = sales / (1- discount)\n\tProfit REAL, -- Example Values: `(4.884,)`, `(3.0814,)`, `(13.0928,)` | Value Statics: Total count 5696 - Distinct count 2494 - Null count 0 | Column Description: the profit that the company got by selling the product | Value Description: total cost of products = sales / (1- discount) * quantity - profit deficiency: if the value is negative\n\tforeign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n\tforeign key (\"Product ID\", Region) references product(\"Product ID\",Region),\n);\n\nCREATE TABLE south_superstore\n(\n\t\"Row ID\" INTEGER primary key,\n\t\"Order ID\" TEXT, -- Example Values: `('CA-2011-106054',)`, `('CA-2011-167199',)`, `('CA-2011-149020',)` | Value Statics: Total count 3240 - Distinct count 1644 - Null count 0 | Column Description: the unique identifier for the order \n\t\"Order Date\" DATE, -- Example Values: `('2013-01-06',)`, `('2013-01-10',)`, `('2013-01-13',)` | Value Statics: Total count 3240 - Distinct count 1078 - Null count 0 | Column Description: the date of the order | Value Description: yyyy-mm-dd\n\t\"Ship Date\" DATE, -- Example Values: `('2013-01-07',)`, `('2013-01-10',)`, `('2013-01-15',)` | Value Statics: Total count 3240 - Distinct count 1058 - Null count 0 | Column Description: the date of the shipment | Value Description: yyyy-mm-dd 'shipment time' refers to the time interval between order_date and ship_date.\n\t\"Ship Mode\" TEXT, -- Example Values: `First Class`, `Standard Class`, `Second Class`, `Same Day` | Value Statics: Total count 3240 - Distinct count 4 - Null count 0 | Column Description: the ship mode of the order | Value Description: First Class / Second Class / Standard Class Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n\t\"Customer ID\" TEXT, -- Example Values: `('JO-15145',)`, `('ME-17320',)`, `('AJ-10780',)` | Value Statics: Total count 3240 - Distinct count 512 - Null count 0 | Column Description: the id of the customer \n\tRegion TEXT, -- Example Values: `South` | Value Statics: Total count 3240 - Distinct count 1 - Null count 0 | Column Description: region of the customer's address \n\t\"Product ID\" TEXT, -- Example Values: `('OFF-AR-10002399',)`, `('FUR-CH-10004063',)`, `('OFF-BI-10004632',)` | Value Statics: Total count 3240 - Distinct count 1057 - Null count 0 | Column Description: the id of the product \n\tSales REAL, -- Example Values: `(12.78,)`, `(2573.82,)`, `(609.98,)` | Value Statics: Total count 3240 - Distinct count 1375 - Null count 0 | Column Description: the sales of the product \n\tQuantity INTEGER, -- Example Values: `3`, `9`, `2`, `4`, `1` | Value Statics: Total count 3240 - Distinct count 14 - Null count 0 | Column Description: the quantity of the product \n\tDiscount REAL, -- Example Values: `0.0`, `0.7`, `0.2`, `0.5`, `0.45` | Value Statics: Total count 3240 - Distinct count 6 - Null count 0 | Column Description: the discount of the product | Value Description: original price = sales / (1- discount)\n\tProfit REAL, -- Example Values: `(5.2398,)`, `(746.4078,)`, `(274.491,)` | Value Statics: Total count 3240 - Distinct count 1469 - Null count 0 | Column Description: the profit that the company got by selling the product | Value Description: total cost of products = sales / (1- discount) * quantity - profit deficiency: if the value is negative\n\tforeign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n\tforeign key (\"Product ID\", Region) references product(\"Product ID\",Region),\n);\n\nCREATE TABLE west_superstore\n(\n\t\"Row ID\" INTEGER primary key,\n\t\"Order ID\" TEXT, -- Example Values: `('CA-2011-130813',)`, `('CA-2011-157147',)`, `('CA-2011-123477',)` | Value Statics: Total count 6406 - Distinct count 3222 - Null count 0 | Column Description: the unique identifier for the order \n\t\"Order Date\" DATE, -- Example Values: `('2013-01-06',)`, `('2013-01-13',)`, `('2013-01-18',)` | Value Statics: Total count 6406 - Distinct count 1448 - Null count 0 | Column Description: the date of the order | Value Description: yyyy-mm-dd\n\t\"Ship Date\" DATE, -- Example Values: `('2013-01-08',)`, `('2013-01-18',)`, `('2013-01-21',)` | Value Statics: Total count 6406 - Distinct count 1519 - Null count 0 | Column Description: the date of the shipment | Value Description: yyyy-mm-dd 'shipment time' refers to the time interval between order_date and ship_date.\n\t\"Ship Mode\" TEXT, -- Example Values: `Second Class`, `Standard Class`, `First Class`, `Same Day` | Value Statics: Total count 6406 - Distinct count 4 - Null count 0 | Column Description: the ship mode of the order | Value Description: First Class / Second Class / Standard Class Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n\t\"Customer ID\" TEXT, -- Example Values: `('LS-17230',)`, `('BD-11605',)`, `('DW-13195',)` | Value Statics: Total count 6406 - Distinct count 686 - Null count 0 | Column Description: the id of the customer \n\tRegion TEXT, -- Example Values: `West` | Value Statics: Total count 6406 - Distinct count 1 - Null count 0 | Column Description: region of the customer's address \n\t\"Product ID\" TEXT, -- Example Values: `('OFF-PA-10002005',)`, `('OFF-ST-10000078',)`, `('FUR-BO-10003034',)` | Value Statics: Total count 6406 - Distinct count 1509 - Null count 0 | Column Description: the id of the product \n\tSales REAL, -- Example Values: `(19.44,)`, `(1325.85,)`, `(333.999,)` | Value Statics: Total count 6406 - Distinct count 2348 - Null count 0 | Column Description: the sales of the product \n\tQuantity INTEGER, -- Example Values: `3`, `5`, `4`, `10`, `2` | Value Statics: Total count 6406 - Distinct count 14 - Null count 0 | Column Description: the quantity of the product \n\tDiscount REAL, -- Example Values: `0.0`, `0.15`, `0.2`, `0.7`, `0.5` | Value Statics: Total count 6406 - Distinct count 5 - Null count 0 | Column Description: the discount of the product | Value Description: original price = sales / (1- discount)\n\tProfit REAL, -- Example Values: `(9.3312,)`, `(238.653,)`, `(3.9294,)` | Value Statics: Total count 6406 - Distinct count 2614 - Null count 0 | Column Description: the profit that the company got by selling the product | Value Description: total cost of products = sales / (1- discount) * quantity - profit deficiency: if the value is negative\n\tforeign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n\tforeign key (\"Product ID\", Region) references product(\"Product ID\",Region),\n);" }
app_store
{ "db_schema": "CREATE TABLE playstore\n(\n\tApp TEXT, -- \n\tCategory TEXT, -- Example Values: `('ART_AND_DESIGN',)`, `('AUTO_AND_VEHICLES',)`, `('BEAUTY',)` | Value Statics: Total count 10840 - Distinct count 33 - Null count 0 \n\tRating REAL, -- Example Values: `(4.1,)`, `(3.9,)`, `(4.7,)` | Value Statics: Total count 9366 - Distinct count 39 - Null count 1474 \n\tReviews INTEGER, -- Example Values: `(159,)`, `(967,)`, `(87510,)` | Value Statics: Total count 10840 - Distinct count 6001 - Null count 0 \n\tSize TEXT, -- Example Values: `('19M',)`, `('14M',)`, `('8.7M',)` | Value Statics: Total count 10840 - Distinct count 461 - Null count 0 \n\tInstalls TEXT, -- Example Values: `('10,000+',)`, `('500,000+',)`, `('5,000,000+',)` | Value Statics: Total count 10840 - Distinct count 21 - Null count 0 \n\tType TEXT, -- Example Values: `Free`, `Paid`, `NaN` | Value Statics: Total count 10840 - Distinct count 3 - Null count 0 \n\tPrice TEXT, -- Example Values: `('0',)`, `('$4.99',)`, `('$3.99',)` | Value Statics: Total count 10840 - Distinct count 92 - Null count 0 \n\t\"Content Rating\" TEXT, -- Example Values: `Everyone`, `Teen`, `Everyone 10+`, `Mature 17+`, `Adults only 18+` | Value Statics: Total count 10840 - Distinct count 6 - Null count 0 \n\tGenres TEXT, -- Example Values: `('Art & Design',)`, `('Art & Design;Pretend Play',)`, `('Art & Design;Creativity',)` | Value Statics: Total count 10840 - Distinct count 119 - Null count 0 \n);\n\nCREATE TABLE user_reviews\n(\n\tApp TEXT references \"playstore\" (App), -- Example Values: `('10 Best Foods for You',)`, `('104 找工作 - 找工作 找打工 找兼職 履歷健檢 履歷診療室',)`, `('11st',)` | Value Statics: Total count 64286 - Distinct count 1074 - Null count 0 \n\tTranslated_Review TEXT, -- \n\tSentiment TEXT, -- Example Values: `Positive`, `nan`, `Neutral`, `Negative` | Value Statics: Total count 64286 - Distinct count 4 - Null count 0 \n\tSentiment_Polarity TEXT, -- Example Values: `('1.0',)`, `('0.25',)`, `('nan',)` | Value Statics: Total count 64286 - Distinct count 6492 - Null count 0 \n\tSentiment_Subjectivity TEXT, -- Example Values: `('0.5333333333333333',)`, `('0.28846153846153844',)`, `('nan',)` | Value Statics: Total count 64286 - Distinct count 4694 - Null count 0 \n);" }
regional_sales
{ "db_schema": "CREATE TABLE Customers\n(\n\tCustomerID INTEGER constraint Customers_pk primary key,\n\t\"Customer Names\" TEXT, -- Example Values: `('Avon Corp',)`, `('WakeFern ',)`, `('Elorac, Corp',)` | Value Statics: Total count 50 - Distinct count 50 - Null count 0 | Column Description: the name of the customer \n);\n\nCREATE TABLE Products\n(\n\tProductID INTEGER constraint Products_pk primary key,\n\t\"Product Name\" TEXT, -- Example Values: `('Cookware',)`, `('Photo Frames',)`, `('Table Lamps',)` | Value Statics: Total count 47 - Distinct count 47 - Null count 0 | Column Description: name of the product \n);\n\nCREATE TABLE Regions\n(\n\tStateCode TEXT constraint Regions_pk primary key,\n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 48 - Distinct count 48 - Null count 0 | Column Description: full state name \n\tRegion TEXT, -- Example Values: `South`, `West`, `Northeast`, `Midwest` | Value Statics: Total count 48 - Distinct count 4 - Null count 0 | Column Description: the region where the state is located in \n);\n\nCREATE TABLE Sales Team\n(\n\tSalesTeamID INTEGER constraint \"Sales Team_pk\" primary key,\n\t\"Sales Team\" TEXT, -- Example Values: `('Adam Hernandez',)`, `('Keith Griffin',)`, `('Jerry Green',)` | Value Statics: Total count 28 - Distinct count 28 - Null count 0 | Column Description: sales team names \n\tRegion TEXT, -- Example Values: `Northeast`, `West`, `South`, `Midwest` | Value Statics: Total count 28 - Distinct count 4 - Null count 0 | Column Description: the region where the state is located in \n);\n\nCREATE TABLE Store Locations\n(\n\tStoreID INTEGER constraint \"Store Locations_pk\" primary key,\n\t\"City Name\" TEXT, -- Example Values: `('Birmingham',)`, `('Huntsville',)`, `('Mobile',)` | Value Statics: Total count 367 - Distinct count 351 - Null count 0 | Column Description: City Name \n\tCounty TEXT, -- Example Values: `('Shelby County/Jefferson County',)`, `('Limestone County/Madison County',)`, `('Mobile County',)` | Value Statics: Total count 367 - Distinct count 228 - Null count 0 | Column Description: full county name \n\tStateCode TEXT constraint \"Store Locations_Regions_StateCode_fk\" references Regions(StateCode), -- Example Values: `('AL',)`, `('AR',)`, `('AZ',)` | Value Statics: Total count 367 - Distinct count 45 - Null count 0 | Column Name Meaning: State Code | Column Description: state code \n\tState TEXT, -- Example Values: `('Alabama',)`, `('Arkansas',)`, `('Arizona',)` | Value Statics: Total count 367 - Distinct count 45 - Null count 0 | Column Description: full state name \n\tType TEXT, -- Example Values: `City`, `Town`, `CDP`, `Unified Government`, `Consolidated Government` | Value Statics: Total count 367 - Distinct count 10 - Null count 0 | Column Description: type of the store | Value Description: City Town CDP (customer data platform) Unified Government Consolidated Government Other Township Urban County Borough Metropolitan Government\n\tLatitude REAL, -- Example Values: `(33.52744,)`, `(34.69901,)`, `(30.69436,)` | Value Statics: Total count 367 - Distinct count 365 - Null count 0 | Column Description: Latitude \n\tLongitude REAL, -- Example Values: `(-86.79905,)`, `(-86.67298,)`, `(-88.04305,)` | Value Statics: Total count 367 - Distinct count 367 - Null count 0 | Column Description: Longitude | Value Description: coordinates or detailed position: (Latitude, Longitude)\n\tAreaCode INTEGER, -- Example Values: `(205,)`, `(256,)`, `(251,)` | Value Statics: Total count 367 - Distinct count 177 - Null count 0 | Column Name Meaning: Area Code \n\tPopulation INTEGER, -- Example Values: `(212461,)`, `(190582,)`, `(194288,)` | Value Statics: Total count 367 - Distinct count 361 - Null count 0 | Column Description: Population \n\t\"Household Income\" INTEGER, -- Example Values: `(89972,)`, `(78554,)`, `(76170,)` | Value Statics: Total count 367 - Distinct count 362 - Null count 0 | Column Description: Household Income \n\t\"Median Income\" INTEGER, -- Example Values: `(31061,)`, `(48775,)`, `(38776,)` | Value Statics: Total count 367 - Distinct count 357 - Null count 0 | Column Description: Median Income \n\t\"Land Area\" INTEGER, -- Example Values: `(378353942,)`, `(552604579,)`, `(361044263,)` | Value Statics: Total count 367 - Distinct count 362 - Null count 0 | Column Description: Land Area \n\t\"Water Area\" INTEGER, -- Example Values: `(6591013,)`, `(3452021,)`, `(105325210,)` | Value Statics: Total count 367 - Distinct count 346 - Null count 0 | Column Description: Water Area \n\t\"Time Zone\" TEXT, -- Example Values: `America/Chicago`, `America/Phoenix`, `America/Los Angeles`, `America/Denver`, `America/New York` | Value Statics: Total count 367 - Distinct count 9 - Null count 0 | Column Description: Time Zone \n);\n\nCREATE TABLE Sales Orders\n(\n\tOrderNumber TEXT constraint \"Sales Orders_pk\" primary key,\n\t\"Sales Channel\" TEXT, -- Example Values: `In-Store`, `Online`, `Distributor`, `Wholesale` | Value Statics: Total count 7991 - Distinct count 4 - Null count 0 | Column Description: Sales Channel | Value Description: • In-Store • Online • Distributor • Wholesale\n\tWarehouseCode TEXT, -- Example Values: `WARE-UHY1004`, `WARE-NMK1003`, `WARE-PUJ1005`, `WARE-XYS1001`, `WARE-MKL1006` | Value Statics: Total count 7991 - Distinct count 6 - Null count 0 | Column Name Meaning: Warehouse Code | Column Description: Warehouse Code | Value Description: if the warehouse code is the same, it means this product is shipped from the same ware house\n\tProcuredDate TEXT, -- Example Values: `('12/31/17',)`, `('4/10/18',)`, `('7/19/18',)` | Value Statics: Total count 7991 - Distinct count 11 - Null count 0 | Column Name Meaning: Procured Date | Column Description: Procured Date | Value Description: date: month/date/year, 17--> 2017\n\tOrderDate TEXT, -- Example Values: `('5/31/18',)`, `('6/1/18',)`, `('6/2/18',)` | Value Statics: Total count 7991 - Distinct count 945 - Null count 0 | Column Name Meaning: Order Date | Column Description: Order Date \n\tShipDate TEXT, -- Example Values: `('6/14/18',)`, `('6/22/18',)`, `('6/21/18',)` | Value Statics: Total count 7991 - Distinct count 966 - Null count 0 | Column Name Meaning: Ship Date | Column Description: Ship Date \n\tDeliveryDate TEXT, -- Example Values: `('6/19/18',)`, `('7/2/18',)`, `('7/1/18',)` | Value Statics: Total count 7991 - Distinct count 966 - Null count 0 | Column Name Meaning: Delivery Date | Column Description: Delivery Date | Value Description: the difference \"DeliveryDate - OrderDate\" is smaller, it means faster delivery\n\tCurrencyCode TEXT, -- Example Values: `USD` | Value Statics: Total count 7991 - Distinct count 1 - Null count 0 | Column Name Meaning: Currency Code | Column Description: Currency Code | Value Description: USD\n\t_SalesTeamID INTEGER constraint \"Sales Orders_Sales Team_SalesTeamID_fk\" references \"Sales Team\"(SalesTeamID), -- Example Values: `(6,)`, `(14,)`, `(21,)` | Value Statics: Total count 7991 - Distinct count 28 - Null count 0 | Column Name Meaning: _Sales Team ID | Column Description: Sales Team ID \n\t_CustomerID INTEGER constraint \"Sales Orders_Customers_CustomerID_fk\" references Customers(CustomerID), -- Example Values: `(15,)`, `(20,)`, `(16,)` | Value Statics: Total count 7991 - Distinct count 50 - Null count 0 | Column Name Meaning: _Customer ID | Column Description: _Customer ID \n\t_StoreID INTEGER constraint \"Sales Orders_Store Locations_StoreID_fk\" references \"Store Locations\"(StoreID), -- Example Values: `(259,)`, `(196,)`, `(213,)` | Value Statics: Total count 7991 - Distinct count 367 - Null count 0 | Column Name Meaning: _Store ID | Column Description: _Store ID \n\t_ProductID INTEGER constraint \"Sales Orders_Products_ProductID_fk\" references Products(ProductID), -- Example Values: `(12,)`, `(27,)`, `(16,)` | Value Statics: Total count 7991 - Distinct count 47 - Null count 0 | Column Name Meaning: _Product ID | Column Description: _Product ID \n\t\"Order Quantity\" INTEGER, -- Example Values: `5`, `3`, `1`, `8`, `4` | Value Statics: Total count 7991 - Distinct count 8 - Null count 0 | Column Description: Order Quantity | Value Description: 1 - 8: higher means order quantity is higher or customer needs more\n\t\"Discount Applied\" REAL, -- Example Values: `0.075`, `0.05`, `0.1`, `0.15`, `0.3` | Value Statics: Total count 7991 - Distinct count 7 - Null count 0 | Column Description: Discount Applied | Value Description: 0.2: 20% discount\n\t\"Unit Price\" TEXT, -- Example Values: `('1,963.10',)`, `('3,939.60',)`, `('1,775.50',)` | Value Statics: Total count 7991 - Distinct count 664 - Null count 0 \n\t\"Unit Cost\" TEXT, -- Example Values: `('1,001.18',)`, `('3,348.66',)`, `('781.22',)` | Value Statics: Total count 7991 - Distinct count 5252 - Null count 0 | Value Description: net profit = Unit Price - Unit Cost\n);" }
european_football_1
{ "db_schema": "CREATE TABLE divisions\n(\n\tdivision TEXT not null primary key,\n\tname TEXT, -- Example Values: `('Division 1A',)`, `('Bundesliga',)`, `('2. Bundesliga',)` | Value Statics: Total count 21 - Distinct count 21 - Null count 0 | Column Description: name of the division \n\tcountry TEXT, -- Example Values: `Belgium`, `Deutschland`, `England`, `France`, `Greece` | Value Statics: Total count 21 - Distinct count 11 - Null count 0 | Column Description: country of the division \n);\n\nCREATE TABLE matchs\n(\n\tDiv TEXT, -- Example Values: `('B1',)`, `('D1',)`, `('D2',)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Name Meaning: Division | Column Description: Division Id \n\tDate DATE, -- Example Values: `('2020-08-08',)`, `('2020-08-09',)`, `('2020-08-10',)` | Value Statics: Total count 100000 - Distinct count 3369 - Null count 0 | Column Description: Match Date | Value Description: YYYY-MM-DD\n\tHomeTeam TEXT, -- Example Values: `('Club Brugge',)`, `('Antwerp',)`, `('Standard',)` | Value Statics: Total count 100000 - Distinct count 618 - Null count 0 | Column Description: Name of Home Team \n\tAwayTeam TEXT, -- Example Values: `('Charleroi',)`, `('Mouscron',)`, `('Cercle Brugge',)` | Value Statics: Total count 100000 - Distinct count 607 - Null count 0 | Column Description: Name of Away Team \n\tFTHG INTEGER, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 100000 - Distinct count 11 - Null count 0 | Column Name Meaning: Final-time Home-team Goals | Column Description: Final-time Home-team Goals \n\tFTAG INTEGER, -- Example Values: `1`, `0`, `2`, `3`, `4` | Value Statics: Total count 100000 - Distinct count 11 - Null count 0 | Column Name Meaning: Final-time Away-team Goals | Column Description: Final-time Away-team Goals \n\tFTR TEXT, -- Example Values: `A`, `D`, `H` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0 | Column Name Meaning: Final-time Results | Column Description: Final-time Results | Value Description: H stands for home victory, which means FTHG is higher than FTAG A stands for away victory, which means FTAG is higher than FTHG D stands for draft, which means FTHG equals to FTAG\n\tseason INTEGER, -- Example Values: `2021`, `2020`, `2019`, `2018`, `2017` | Value Statics: Total count 100000 - Distinct count 14 - Null count 0 | Column Description: season of the match \n\tforeign key (Div) references divisions(division),\n);" }
professional_basketball
{ "db_schema": "CREATE TABLE awards_players\n(\n\tplayerID TEXT not null, -- Example Values: `('abdulka01',)`, `('abdulma02',)`, `('adamsal01',)` | Value Statics: Total count 1719 - Distinct count 441 - Null count 0 | Column Description: ID number identifying the unique number of the player \n\taward TEXT not null, -- Example Values: `('All-Defensive Second Team',)`, `('All-NBA Second Team',)`, `('Rookie of the Year',)` | Value Statics: Total count 1719 - Distinct count 21 - Null count 0 | Column Description: the name of the award \n\tyear INTEGER not null, -- Example Values: `(1969,)`, `(1970,)`, `(1971,)` | Value Statics: Total count 1719 - Distinct count 75 - Null count 0 | Column Description: the time of this award \n\tlgID TEXT null, -- Example Values: `NBA`, `ABA`, `NBL`, `ABL1` | Value Statics: Total count 1719 - Distinct count 4 - Null count 0 | Column Name Meaning: league ID | Column Description: the name of the league | Value Description: mainly categories: \"NBA\" & \"ABA\"\n\tnote TEXT null, -- Example Values: `tie` | Value Statics: Total count 37 - Distinct count 1 - Null count 1682 | Column Description: notification | Value Description: ”null“ refers to that no special things ”tie“ represents that coaches are tied for some awards\n\tpos TEXT null, -- Example Values: `C`, `F`, `G`, `F/G`, `F/C` | Value Statics: Total count 833 - Distinct count 5 - Null count 886 | Column Name Meaning: position | Column Description: the position of the player | Value Description: C: Center F: Forward G: Guard\n\tprimary key (playerID, year, award),\n\tforeign key (playerID) references players (playerID) on update cascade on delete cascade,\n);\n\nCREATE TABLE coaches\n(\n\tcoachID TEXT not null, -- Example Values: `('adelmri01',)`, `('adubari01',)`, `('aingeda01',)` | Value Statics: Total count 1689 - Distinct count 358 - Null count 0 | Column Description: ID number identifying the unique number of the coach \n\tyear INTEGER not null, -- Example Values: `(1988,)`, `(1989,)`, `(1990,)` | Value Statics: Total count 1689 - Distinct count 66 - Null count 0 \n\ttmID TEXT not null, -- Example Values: `('POR',)`, `('GSW',)`, `('SAC',)` | Value Statics: Total count 1689 - Distinct count 132 - Null count 0 | Column Name Meaning: team ID | Column Description: team name | Value Description: abbreviated name\n\tlgID TEXT null, -- Example Values: `NBA`, `ABA`, `ABL1`, `PBLA`, `NPBL` | Value Statics: Total count 1689 - Distinct count 5 - Null count 0 | Column Name Meaning: league ID | Column Description: league name | Value Description: mainly categories: \"NBA\" & \"ABA\"\n\tstint INTEGER not null, -- Example Values: `2`, `1`, `4`, `5`, `3` | Value Statics: Total count 1689 - Distinct count 5 - Null count 0 | Column Description: the period of the time coaching this team \n\twon INTEGER null, -- Example Values: `(14,)`, `(59,)`, `(63,)` | Value Statics: Total count 1680 - Distinct count 71 - Null count 9 | Column Description: the number of won games | Value Description: 0: no wins\n\tlost INTEGER null, -- Example Values: `(21,)`, `(23,)`, `(19,)` | Value Statics: Total count 1680 - Distinct count 72 - Null count 9 | Column Description: the number of lost games | Value Description: 0: win all the games\n\tpost_wins INTEGER null, -- Example Values: `0`, `12`, `9`, `13`, `1` | Value Statics: Total count 1649 - Distinct count 17 - Null count 40 | Column Name Meaning: post season wins | Column Description: the number of games won in the post-season (playoffs) games | Value Description: 0: no wins If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n\tpost_losses INTEGER null, -- Example Values: `3`, `9`, `7`, `8`, `0` | Value Statics: Total count 1649 - Distinct count 12 - Null count 40 | Column Name Meaning: post season losses | Column Description: the number of games lost in the post-season (playoffs) games | Value Description: 0: win all the games If the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\n\tprimary key (coachID, year, tmID, stint),\n\tforeign key (tmID, year) references teams (tmID, year) on update cascade on delete cascade,\n);\n\nCREATE TABLE draft\n(\n\tid INTEGER default 0 not null primary key,\n\tdraftYear INTEGER null, -- Example Values: `(1967,)`, `(1968,)`, `(1969,)` | Value Statics: Total count 8621 - Distinct count 65 - Null count 0 | Column Description: which year does this draft happens \n\tdraftRound INTEGER null, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 8621 - Distinct count 23 - Null count 0 | Column Description: the Round number of this draft | Value Description: If the value is 0, it means that there is no draft in this year 1 refers that this player was picked in the first round\n\tdraftSelection INTEGER null, -- Example Values: `(0,)`, `(3,)`, `(4,)` | Value Statics: Total count 8621 - Distinct count 31 - Null count 0 | Column Name Meaning: league ID | Column Description: the position that the player was picked | Value Description: 0:This signifies that it doesn't contain the draft information of this player 7:this player was selected in the 7th position in this round draftRound: 1; draftSelection: 7 represents: this player was selected in the round 1, 7th position.\n\tdraftOverall INTEGER null, -- Example Values: `(0,)`, `(3,)`, `(4,)` | Value Statics: Total count 8621 - Distinct count 240 - Null count 0 | Column Name Meaning: draft overall rank | Column Description: The player's overall draft position for the year | Value Description: this is the overall draft rank of the player.\n\ttmID TEXT null, -- Example Values: `('ANA',)`, `('DNR',)`, `('DLC',)` | Value Statics: Total count 8621 - Distinct count 89 - Null count 0 | Column Name Meaning: team ID | Column Description: team name | Value Description: abbreviated name\n\tfirstName TEXT null, -- Example Values: `('Darrell',)`, `('Bob',)`, `('Mike',)` | Value Statics: Total count 8621 - Distinct count 1445 - Null count 0 | Column Description: the first name of the player \n\tlastName TEXT null, -- Example Values: `('Hardy',)`, `('Krulish',)`, `('Lewis',)` | Value Statics: Total count 8621 - Distinct count 4073 - Null count 0 | Column Description: the last name of the player \n\tsuffixName TEXT null, -- Example Values: `Jr.` | Value Statics: Total count 2 - Distinct count 1 - Null count 8619 | Column Description: the suffix name of the player \n\tplayerID TEXT null, -- Example Values: `('hardyda01',)`, `('lewisbo01',)`, `('lynnmi01',)` | Value Statics: Total count 3663 - Distinct count 3055 - Null count 4958 | Column Description: ID number identifying the unique number of the player \n\tdraftFrom TEXT null, -- Example Values: `('Baylor',)`, `('Pacific',)`, `('North Carolina',)` | Value Statics: Total count 8616 - Distinct count 1233 - Null count 5 | Column Description: the university that the drafted players come from | Value Description: the name of the university\n\tlgID TEXT null, -- Example Values: `ABA`, `NBA` | Value Statics: Total count 8621 - Distinct count 2 - Null count 0 | Column Name Meaning: league ID | Column Description: the league name | Value Description: mainly categories: \"NBA\" & \"ABA\"\n\tforeign key (tmID, draftYear) references teams (tmID, year) on update cascade on delete cascade,\n\tforeign key (tmID, draftYear) references teams (tmID, year) on update cascade on delete cascade,\n);\n\nCREATE TABLE player_allstar\n(\n\tplayerID TEXT not null, -- Example Values: `('abdulka01',)`, `('abdursh01',)`, `('adamsal01',)` | Value Statics: Total count 1608 - Distinct count 443 - Null count 0 | Column Description: ID number identifying the unique number of the player \n\tlast_name TEXT null, -- Example Values: `('Abdul-Jabbar',)`, `('A-Rahim',)`, `('Adams',)` | Value Statics: Total count 1608 - Distinct count 366 - Null count 0 | Column Description: the last name of the player \n\tfirst_name TEXT null, -- Example Values: `('Kareem',)`, `('Shareef',)`, `('Alvan',)` | Value Statics: Total count 1608 - Distinct count 268 - Null count 0 | Column Description: the first name of the player \n\tseason_id INTEGER not null, -- Example Values: `(1969,)`, `(1970,)`, `(1971,)` | Value Statics: Total count 1608 - Distinct count 59 - Null count 0 | Column Description: the id number of the season \n\tconference TEXT null, -- Example Values: `East`, `West`, `Weset`, `Allstars`, `Denver` | Value Statics: Total count 1608 - Distinct count 5 - Null count 0 | Column Description: which conference that players belong to | Value Description: two categories: west; east\n\tleague_id TEXT null, -- Example Values: `NBA`, `ABA` | Value Statics: Total count 1608 - Distinct count 2 - Null count 0 | Column Name Meaning: league ID | Column Description: the league name | Value Description: two categories: NBA; ABA\n\tgames_played INTEGER null, -- Example Values: `1` | Value Statics: Total count 1608 - Distinct count 1 - Null count 0 | Column Description: how many all star games that this player played in this season | Value Description: mostly it's 1\n\tminutes INTEGER null, -- Example Values: `(18,)`, `(30,)`, `(19,)` | Value Statics: Total count 1608 - Distinct count 45 - Null count 0 | Column Description: minutes of attendance | Value Description: 18:played in 18 minutes\n\tpoints INTEGER null, -- Example Values: `(10,)`, `(19,)`, `(12,)` | Value Statics: Total count 1561 - Distinct count 40 - Null count 47 | Column Description: points | Value Description: 19: get 19 points; null --> doesn't get points\n\to_rebounds INTEGER null, -- Example Values: `1`, `2`, `0`, `3`, `4` | Value Statics: Total count 493 - Distinct count 10 - Null count 1115 | Column Name Meaning: offense rebounds | Column Description: offense rebounds | Value Description: empty or null refers to none offense rebounds, 1: one offense rebound\n\td_rebounds INTEGER null, -- Example Values: `2`, `5`, `0`, `1`, `4` | Value Statics: Total count 493 - Distinct count 14 - Null count 1115 | Column Name Meaning: defense rebounds | Column Description: defense rebounds | Value Description: empty or null refers to none defense rebounds, 1: one defense rebound\n\trebounds INTEGER null, -- Example Values: `(11,)`, `(14,)`, `(7,)` | Value Statics: Total count 1561 - Distinct count 27 - Null count 47 | Column Description: total rebounds | Value Description: empty or null refers to none total rebounds, 3: totally gets 3 rebounds including offence and defense rebounds commensense evidence: total rebounds = offense rebounds + defense rebounds\n\tassists INTEGER null, -- Example Values: `(4,)`, `(1,)`, `(2,)` | Value Statics: Total count 1561 - Distinct count 19 - Null count 47 | Column Name Meaning: assistants | Column Description: assistants | Value Description: null or empty refers to none 2: 2 assistants\n\tsteals INTEGER null, -- Example Values: `3`, `0`, `1`, `2`, `5` | Value Statics: Total count 398 - Distinct count 7 - Null count 1210 | Column Description: steals | Value Description: null or empty refers to none 2: 2 steals\n\tblocks INTEGER null, -- Example Values: `2`, `0`, `1`, `3`, `5` | Value Statics: Total count 398 - Distinct count 6 - Null count 1210 | Column Description: blocks | Value Description: null or empty refers to none 2: 2 blocks\n\tturnovers INTEGER null, -- Example Values: `1`, `0`, `3`, `2`, `4` | Value Statics: Total count 493 - Distinct count 9 - Null count 1115 | Column Description: turnovers | Value Description: null or empty refers to none 2: 2 turnovers\n\tpersonal_fouls INTEGER null, -- Example Values: `3`, `2`, `0`, `1`, `5` | Value Statics: Total count 540 - Distinct count 8 - Null count 1068 | Column Description: personal fouls | Value Description: null or empty refers to none 2: 2 personal fouls\n\tfg_attempted INTEGER null, -- Example Values: `(8,)`, `(16,)`, `(10,)` | Value Statics: Total count 1561 - Distinct count 28 - Null count 47 | Column Name Meaning: field goal attempted | Column Description: field goal attempted | Value Description: null or empty refers to none 2: 2 field goal attempts\n\tfg_made INTEGER null, -- Example Values: `4`, `8`, `5`, `7`, `3` | Value Statics: Total count 1561 - Distinct count 18 - Null count 47 | Column Name Meaning: field goal made | Column Description: field goal made | Value Description: null or empty refers to none 2: 2 field goal made\n\tft_attempted INTEGER null, -- Example Values: `2`, `4`, `0`, `6`, `3` | Value Statics: Total count 1561 - Distinct count 17 - Null count 47 | Column Name Meaning: free throw attempted | Column Description: free throw attempted | Value Description: null or empty refers to none 2: 2 free throw attempts\n\tft_made INTEGER null, -- Example Values: `2`, `3`, `0`, `1`, `4` | Value Statics: Total count 1561 - Distinct count 13 - Null count 47 | Column Name Meaning: free throw made | Column Description: free throw made | Value Description: null or empty refers to none 2: 2 free throw made\n\tthree_attempted INTEGER null, -- Example Values: `0`, `1`, `6`, `7`, `10` | Value Statics: Total count 540 - Distinct count 12 - Null count 1068 | Column Name Meaning: three point attempted | Column Description: three point attempted | Value Description: null or empty refers to none 2: 2 three point attempts\n\tthree_made INTEGER null, -- Example Values: `0`, `1`, `3`, `5`, `4` | Value Statics: Total count 566 - Distinct count 7 - Null count 1042 | Column Name Meaning: three point made | Column Description: three point made | Value Description: null or empty refers to none 2: 2 three point made\n\tprimary key (playerID, season_id),\n\tforeign key (playerID) references players (playerID) on update cascade on delete cascade,\n);\n\nCREATE TABLE players\n(\n\tplayerID TEXT not null primary key,\n\tuseFirst TEXT null, -- Example Values: `('Alaa',)`, `('Kareem',)`, `('Mahdi',)` | Value Statics: Total count 4231 - Distinct count 1223 - Null count 831 | Column Name Meaning: use first name \n\tfirstName TEXT null, -- Example Values: `('Alaa',)`, `('Kareem',)`, `('Mahdi',)` | Value Statics: Total count 5038 - Distinct count 1270 - Null count 24 | Column Description: the first name of the player \n\tmiddleName TEXT null, -- Example Values: `('Shareef',)`, `('Craig',)`, `('Edward',)` | Value Statics: Total count 3246 - Distinct count 914 - Null count 1816 | Column Description: the middle name of the player \n\tlastName TEXT null, -- Example Values: `('Abdelnaby',)`, `('Abdul-Jabbar',)`, `('Abdul-Rahman',)` | Value Statics: Total count 5062 - Distinct count 3072 - Null count 0 | Column Description: the last name of the player \n\tnameGiven TEXT null, -- Example Values: `nameGiven`, `Mort`, `Robert`, `Jim`, `Mike` | Value Statics: Total count 10 - Distinct count 9 - Null count 5052 \n\tfullGivenName TEXT null, -- Example Values: `('Ferdinand Lewis Alcindor, Jr.',)`, `('Walter Raphael Hazzard, Jr.',)`, `('Chris Wayne Jackson',)` | Value Statics: Total count 27 - Distinct count 27 - Null count 5035 \n\tnameSuffix TEXT null, -- Example Values: `Jr.`, `III`, `nameSuffix`, `II`, `IV` | Value Statics: Total count 324 - Distinct count 6 - Null count 4738 | Column Description: the suffix name of the player \n\tnameNick TEXT null, -- Example Values: `('Lew, Cap',)`, `('Walt',)`, `('Don, The Kangaroo',)` | Value Statics: Total count 2708 - Distinct count 1314 - Null count 2354 | Column Name Meaning: nick name \n\tpos TEXT null, -- Example Values: `F-C`, `C`, `G`, `G-F`, `C-F` | Value Statics: Total count 4880 - Distinct count 14 - Null count 182 | Column Name Meaning: position | Column Description: the position of the player | Value Description: C: Center\r \r F: Forward\r \r G: Guard \r \r \r some player can have two positions simultaneously\n\tfirstseason INTEGER null, -- Example Values: `0`, `1951` | Value Statics: Total count 5047 - Distinct count 2 - Null count 15 | Value Description: nothing special\n\tlastseason INTEGER null, -- Example Values: `0`, `1951` | Value Statics: Total count 5047 - Distinct count 2 - Null count 15 | Value Description: nothing special\n\theight REAL null, -- Example Values: `(82.0,)`, `(85.0,)`, `(74.0,)` | Value Statics: Total count 5049 - Distinct count 44 - Null count 13 | Column Description: inch | Value Description: inch\n\tweight INTEGER null, -- Example Values: `(240,)`, `(225,)`, `(185,)` | Value Statics: Total count 5048 - Distinct count 140 - Null count 14 | Column Description: lb | Value Description: null or empty means it doesn't have this information\n\tcollege TEXT null, -- Example Values: `('Duke',)`, `('UCLA',)`, `('Louisiana State',)` | Value Statics: Total count 4884 - Distinct count 687 - Null count 178 | Column Description: college | Value Description: null or empty means it doesn't have this information\r \r which colledge does this player graduate from\n\tcollegeOther TEXT null, -- Example Values: `('Santa Monica City',)`, `('Michigan',)`, `('Louisville',)` | Value Statics: Total count 854 - Distinct count 625 - Null count 4208 | Column Description: the college that transferred from | Value Description: some players may have the record of transferring from other colleges\n\tbirthDate DATE null, -- Example Values: `('1968-06-24',)`, `('1947-04-16',)`, `('1942-04-15',)` | Value Statics: Total count 5051 - Distinct count 4141 - Null count 11 | Column Description: birthdate \n\tbirthCity TEXT null, -- Example Values: `('Cairo',)`, `('New York',)`, `('Wilmington',)` | Value Statics: Total count 3888 - Distinct count 1460 - Null count 1174 | Column Description: birthcity | Value Description: null / empty refers to not recorded\n\tbirthState TEXT null, -- Example Values: `('NY',)`, `('DE',)`, `('MS',)` | Value Statics: Total count 3608 - Distinct count 61 - Null count 1454 | Column Description: birth state \n\tbirthCountry TEXT null, -- Example Values: `('EGY',)`, `('USA',)`, `('FRA',)` | Value Statics: Total count 3902 - Distinct count 81 - Null count 1160 | Column Description: birth country \n\thighSchool TEXT null, -- Example Values: `('Bloomfield Senior',)`, `('Power Memorial',)`, `('Overbrook / Moton',)` | Value Statics: Total count 4289 - Distinct count 2562 - Null count 773 | Column Description: high school | Value Description: null / empty refers to not recorded\n\thsCity TEXT null, -- Example Values: `('Bloomfield',)`, `('New York',)`, `('Philadelphia / Easton',)` | Value Statics: Total count 4297 - Distinct count 1616 - Null count 765 | Column Name Meaning: high school city | Column Description: high school city | Value Description: null / empty refers to not recorded\n\thsState TEXT null, -- Example Values: `('NJ',)`, `('NY',)`, `('PA / MD',)` | Value Statics: Total count 4228 - Distinct count 188 - Null count 834 | Column Name Meaning: high school state | Column Description: high school state | Value Description: null / empty refers to not recorded\n\thsCountry TEXT null, -- Example Values: `('USA',)`, `('FRA',)`, `('NGR',)` | Value Statics: Total count 4297 - Distinct count 52 - Null count 765 | Column Name Meaning: high school country | Column Description: high school country | Value Description: null / empty refers to not recorded\n\tdeathDate DATE null, -- Example Values: `('0000-00-00',)`, `('2011-11-18',)`, `('2000-06-09',)` | Value Statics: Total count 5062 - Distinct count 928 - Null count 0 | Column Description: deathdate | Value Description: 0000-00-00 means this player is still alive\r \r within clear date:\r 2011-11-10, which means this guy was died on \"2011-11-10\"\n\trace TEXT null, -- Example Values: `B`, `W`, `O`, `1`, `r` | Value Statics: Total count 4903 - Distinct count 5 - Null count 159 | Value Description: B:black,\r W: white\r \r null or empty: nothing\n);\n\nCREATE TABLE teams\n(\n\tyear INTEGER not null, -- Example Values: `(1937,)`, `(1938,)`, `(1939,)` | Value Statics: Total count 1536 - Distinct count 75 - Null count 0 | Column Description: year \n\tlgID TEXT null, -- Example Values: `NBL`, `NBA`, `PBLA`, `NPBL`, `ABL1` | Value Statics: Total count 1536 - Distinct count 6 - Null count 0 | Column Name Meaning: league ID | Column Description: league name | Value Description: main categories: NBA, ABA\n\ttmID TEXT not null, -- Example Values: `('AFS',)`, `('AGW',)`, `('BFB',)` | Value Statics: Total count 1536 - Distinct count 161 - Null count 0 | Column Name Meaning: team ID | Column Description: team id | Value Description: abbreviated name\n\tfranchID TEXT null, -- Example Values: `('AFS',)`, `('AGW',)`, `('BFB',)` | Value Statics: Total count 1536 - Distinct count 104 - Null count 0 \n\tconfID TEXT null, -- Example Values: `EC`, `WC` | Value Statics: Total count 1064 - Distinct count 2 - Null count 472 \n\tdivID TEXT null, -- Example Values: `EA`, `WE`, `ED`, `WD`, `SO` | Value Statics: Total count 1498 - Distinct count 13 - Null count 38 | Column Name Meaning: division ID | Column Description: division ID \n\t`rank` INTEGER null, -- Example Values: `1`, `2`, `4`, `5`, `6` | Value Statics: Total count 1536 - Distinct count 10 - Null count 0 | Column Description: rank | Value Description: less is better\n\tconfRank INTEGER null, -- Example Values: `0`, `4`, `3`, `5`, `7` | Value Statics: Total count 1536 - Distinct count 16 - Null count 0 \n\tplayoff TEXT null, -- Example Values: `CF`, `WC`, `LC`, `CS`, `F` | Value Statics: Total count 901 - Distinct count 15 - Null count 635 | Column Description: another name: post season | Value Description: for brevity, if the value is not null or empty, it means this team attends the playoffs, otherwise, means not attend\n\tname TEXT null, -- Example Values: `('Akron Firestone Non-Skids',)`, `('Akron Goodyear Wingfoots',)`, `('Buffalo Bisons',)` | Value Statics: Total count 1536 - Distinct count 156 - Null count 0 | Column Description: full name of the team \n\to_fgm INTEGER null, -- Example Values: `(249,)`, `(243,)`, `(108,)` | Value Statics: Total count 1536 - Distinct count 1049 - Null count 0 | Column Name Meaning: offense field goal made | Column Description: how many offense field goal made by this team in this season \n\to_ftm INTEGER null, -- Example Values: `(183,)`, `(159,)`, `(46,)` | Value Statics: Total count 1536 - Distinct count 865 - Null count 0 | Column Name Meaning: offense free throw made | Column Description: how many offense free throw made by this team in this season \n\to_pts INTEGER null, -- Example Values: `(681,)`, `(645,)`, `(262,)` | Value Statics: Total count 1536 - Distinct count 1241 - Null count 0 | Column Name Meaning: offense points | Column Description: offense points \n\td_pts INTEGER null, -- Example Values: `(578,)`, `(498,)`, `(275,)` | Value Statics: Total count 1536 - Distinct count 1275 - Null count 0 | Column Name Meaning: defense points | Column Description: defense points \n\thomeWon INTEGER null, -- Example Values: `(8,)`, `(2,)`, `(3,)` | Value Statics: Total count 1536 - Distinct count 41 - Null count 0 | Column Name Meaning: home wins | Column Description: wins in the home \n\thomeLost INTEGER null, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 1536 - Distinct count 36 - Null count 0 | Column Name Meaning: home loses | Column Description: loses in the home \n\tawayWon INTEGER null, -- Example Values: `(5,)`, `(1,)`, `(0,)` | Value Statics: Total count 1536 - Distinct count 34 - Null count 0 | Column Name Meaning: away wins | Column Description: wins in the away \n\tawayLost INTEGER null, -- Example Values: `(3,)`, `(4,)`, `(5,)` | Value Statics: Total count 1536 - Distinct count 41 - Null count 0 | Column Name Meaning: away loses | Column Description: loses in the away \n\twon INTEGER null, -- Example Values: `(14,)`, `(13,)`, `(3,)` | Value Statics: Total count 1536 - Distinct count 71 - Null count 0 | Value Description: total wins of this team in this year.\n\tlost INTEGER null, -- Example Values: `(4,)`, `(5,)`, `(6,)` | Value Statics: Total count 1536 - Distinct count 73 - Null count 0 | Value Description: total losts of this team in this year.\n\tgames INTEGER null, -- Example Values: `(18,)`, `(9,)`, `(10,)` | Value Statics: Total count 1536 - Distinct count 59 - Null count 0 | Value Description: total number of games that this team played in this year (season)\n\tarena TEXT null, -- Example Values: `('Boston Garden',)`, `('Chicago Stadium',)`, `('Cleveland Arena',)` | Value Statics: Total count 1347 - Distinct count 165 - Null count 189 | Column Description: arena | Value Description: null or empty refers to the fact that this team doesn't have individual arenas, otherwise, it has individual arenas\n\tprimary key (year, tmID),\n);\n\nCREATE TABLE awards_coaches\n(\n\tid INTEGER primary key autoincrement,\n\tyear INTEGER, -- Example Values: `(1962,)`, `(1963,)`, `(1964,)` | Value Statics: Total count 61 - Distinct count 50 - Null count 0 | Column Description: which year did the coach receive the honor? \n\tcoachID TEXT, -- Example Values: `('gallaha01',)`, `('hannual01',)`, `('auerbre01',)` | Value Statics: Total count 61 - Distinct count 46 - Null count 0 | Column Description: id number of the coaches \n\taward TEXT, -- Example Values: `NBA Coach of the Year`, `ABA Coach of the Year` | Value Statics: Total count 61 - Distinct count 2 - Null count 0 | Column Description: the award names | Value Description: mainly categories: \"NBA\" & \"ABA\"\n\tlgID TEXT, -- Example Values: `NBA`, `ABA` | Value Statics: Total count 61 - Distinct count 2 - Null count 0 | Column Name Meaning: league ID | Column Description: the name of the league | Value Description: mainly categories: \"NBA\" & \"ABA\"\n\tnote TEXT, -- Example Values: `tie` | Value Statics: Total count 4 - Distinct count 1 - Null count 57 | Column Description: special notification | Value Description: ”null“ refers to that no special things ”tie“ represents that coaches are tied for some awards\n\tforeign key (coachID, year) references coaches (coachID, year) on update cascade on delete cascade,\n);\n\nCREATE TABLE players_teams\n(\n\tid INTEGER primary key autoincrement,\n\tplayerID TEXT not null references players on update cascade on delete cascade, -- Example Values: `('abdelal01',)`, `('abdulka01',)`, `('abdulma01',)` | Value Statics: Total count 23751 - Distinct count 4903 - Null count 0 | Column Description: ID number identifying the unique number of the player \n\tyear INTEGER, -- Example Values: `(1990,)`, `(1991,)`, `(1992,)` | Value Statics: Total count 23751 - Distinct count 75 - Null count 0 | Column Description: year \n\tstint INTEGER, -- Example Values: `1`, `2`, `0`, `3`, `4` | Value Statics: Total count 23751 - Distinct count 6 - Null count 0 | Column Description: the period of the time player spent played for this team \n\ttmID TEXT, -- Example Values: `('POR',)`, `('MIL',)`, `('BOS',)` | Value Statics: Total count 23751 - Distinct count 161 - Null count 0 | Column Name Meaning: team ID | Column Description: team name | Value Description: abbreviated name\n\tlgID TEXT, -- Example Values: `NBA`, `NBL`, `ABA`, `ABL1`, `NPBL` | Value Statics: Total count 23751 - Distinct count 6 - Null count 0 \n\tGP INTEGER, -- Example Values: `(43,)`, `(71,)`, `(12,)` | Value Statics: Total count 23751 - Distinct count 85 - Null count 0 | Column Name Meaning: game presentatons | Column Description: game presentatons (attendance) | Value Description: min: 0, max: 82 if this number is equal to 82, means full attendance\n\tGS INTEGER, -- Example Values: `(0,)`, `(69,)`, `(62,)` | Value Statics: Total count 23751 - Distinct count 83 - Null count 0 | Column Name Meaning: game starting | Column Description: game starting | Value Description: min: 0, max: 82, when GP = GS, it means that this player plays as the stating lineup fully.\n\tminutes INTEGER, -- Example Values: `(290,)`, `(934,)`, `(159,)` | Value Statics: Total count 23751 - Distinct count 3352 - Null count 0 | Column Description: minutes \n\tpoints INTEGER, -- Example Values: `(135,)`, `(432,)`, `(64,)` | Value Statics: Total count 23751 - Distinct count 2116 - Null count 0 | Column Description: points \n\toRebounds INTEGER, -- Example Values: `(27,)`, `(81,)`, `(12,)` | Value Statics: Total count 23751 - Distinct count 407 - Null count 0 | Column Name Meaning: offense rebounds | Column Description: offense rebounds | Value Description: empty or null refers to none offense rebounds, 1: one offense rebound\n\tdRebounds INTEGER, -- Example Values: `(62,)`, `(179,)`, `(25,)` | Value Statics: Total count 23751 - Distinct count 788 - Null count 0 | Column Name Meaning: defense rebounds | Column Description: defense rebounds | Value Description: empty or null refers to none defense rebounds, 1: one defense rebound\n\trebounds INTEGER, -- Example Values: `(89,)`, `(260,)`, `(37,)` | Value Statics: Total count 23751 - Distinct count 1166 - Null count 0 | Column Description: total rebounds | Value Description: empty or null refers to none total rebounds, 3: totally gets 3 rebounds including offense and defense rebounds commensense evidence: total rebounds = offense rebounds + defense rebounds\n\tassists INTEGER, -- Example Values: `(12,)`, `(30,)`, `(10,)` | Value Statics: Total count 23751 - Distinct count 768 - Null count 0 | Column Name Meaning: assistants | Column Description: assistants | Value Description: null or empty refers to none 2: 2 assistants\n\tsteals INTEGER, -- Example Values: `(4,)`, `(25,)`, `(6,)` | Value Statics: Total count 23751 - Distinct count 245 - Null count 0 | Column Description: steals | Value Description: null or empty refers to none 2: 2 steals\n\tblocks INTEGER, -- Example Values: `(12,)`, `(17,)`, `(4,)` | Value Statics: Total count 23751 - Distinct count 281 - Null count 0 | Column Description: blocks | Value Description: null or empty refers to none 2: 2 blocks\n\tturnovers INTEGER, -- Example Values: `(22,)`, `(66,)`, `(0,)` | Value Statics: Total count 23751 - Distinct count 351 - Null count 0 | Column Description: turnovers | Value Description: null or empty refers to none 2: 2 turnovers\n\tPF INTEGER, -- Example Values: `(39,)`, `(132,)`, `(24,)` | Value Statics: Total count 23751 - Distinct count 364 - Null count 0 | Column Name Meaning: personal fouls | Column Description: personal fouls | Value Description: null or empty refers to none 2: 2 personal fouls\n\tfgAttempted INTEGER, -- Example Values: `(116,)`, `(361,)`, `(56,)` | Value Statics: Total count 23751 - Distinct count 1742 - Null count 0 | Column Name Meaning: field goal attempted | Column Description: field goal attempted | Value Description: null or empty refers to none 2: 2 field goal attempts\n\tfgMade INTEGER, -- Example Values: `(55,)`, `(178,)`, `(26,)` | Value Statics: Total count 23751 - Distinct count 913 - Null count 0 | Column Name Meaning: field goal made | Column Description: field goal made | Value Description: null or empty refers to none 2: 2 field goal made\n\tftAttempted INTEGER, -- Example Values: `(44,)`, `(101,)`, `(16,)` | Value Statics: Total count 23751 - Distinct count 812 - Null count 0 | Column Name Meaning: free throw attempted | Column Description: free throw attempted | Value Description: null or empty refers to none 2: 2 free throw attempts\n\tftMade INTEGER, -- Example Values: `(25,)`, `(76,)`, `(12,)` | Value Statics: Total count 23751 - Distinct count 650 - Null count 0 | Column Name Meaning: free throw made | Column Description: free throw made | Value Description: null or empty refers to none 2: 2 free throw made\n\tthreeAttempted INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 23751 - Distinct count 514 - Null count 0 | Column Name Meaning: three point attempted | Column Description: three point attempted | Value Description: null or empty refers to none 2: 2 three point attempts\n\tthreeMade INTEGER, -- Example Values: `(0,)`, `(1,)`, `(24,)` | Value Statics: Total count 23751 - Distinct count 218 - Null count 0 | Column Name Meaning: three point made | Column Description: three point made | Value Description: null or empty refers to none 2: 2 three point made\n\tPostGP INTEGER, -- Example Values: `(5,)`, `(8,)`, `(0,)` | Value Statics: Total count 23751 - Distinct count 27 - Null count 0 | Column Name Meaning: post season game presentations | Column Description: post season game presentations | Value Description: 0: this player doesn't present in the post season (playoffs)\n\tPostGS INTEGER, -- Example Values: `(0,)`, `(6,)`, `(3,)` | Value Statics: Total count 23751 - Distinct count 24 - Null count 0 | Column Name Meaning: post season game starting | Column Description: post season game starting \n\tPostMinutes INTEGER, -- Example Values: `(13,)`, `(25,)`, `(0,)` | Value Statics: Total count 23751 - Distinct count 862 - Null count 0 | Column Name Meaning: post season minutes | Column Description: post season minutes \n\tPostPoints INTEGER, -- Example Values: `(4,)`, `(12,)`, `(0,)` | Value Statics: Total count 23751 - Distinct count 503 - Null count 0 | Column Name Meaning: post season points | Column Description: post season points \n\tPostoRebounds INTEGER, -- Example Values: `(1,)`, `(0,)`, `(2,)` | Value Statics: Total count 23751 - Distinct count 100 - Null count 0 | Column Name Meaning: post season offense rebounds | Column Description: post season offense rebounds | Value Description: null or empty refers to none 1: 1 offense rebounds in the post season\n\tPostdRebounds INTEGER, -- Example Values: `(2,)`, `(4,)`, `(0,)` | Value Statics: Total count 23751 - Distinct count 186 - Null count 0 | Column Name Meaning: post season defense rebounds | Column Description: post season defense rebounds | Value Description: null or empty refers to none 1: 1 defense rebounds in the post season\n\tPostRebounds INTEGER, -- Example Values: `(3,)`, `(4,)`, `(0,)` | Value Statics: Total count 23751 - Distinct count 283 - Null count 0 | Column Name Meaning: post season defense rebounds | Column Description: post season defense rebounds | Value Description: null or empty refers to none 3: 3 rebounds in the post season totally\n\tPostAssists INTEGER, -- Example Values: `(0,)`, `(2,)`, `(1,)` | Value Statics: Total count 23751 - Distinct count 177 - Null count 0 | Column Name Meaning: post season assistants | Value Description: null or empty refers to none 1: 1 assistance in the post season\n\tPostSteals INTEGER, -- Example Values: `(0,)`, `(20,)`, `(19,)` | Value Statics: Total count 23751 - Distinct count 56 - Null count 0 | Column Name Meaning: post season steals | Value Description: null or empty refers to none 1: 1 offense steals in the post season\n\tPostBlocks INTEGER, -- Example Values: `(0,)`, `(1,)`, `(39,)` | Value Statics: Total count 23751 - Distinct count 64 - Null count 0 | Column Name Meaning: post season blocks | Value Description: null or empty refers to none 1: 1 block in the post season\n\tPostTurnovers INTEGER, -- Example Values: `(0,)`, `(2,)`, `(9,)` | Value Statics: Total count 23751 - Distinct count 90 - Null count 0 | Column Name Meaning: post season turnovers | Value Description: null or empty refers to none 1: 1 turnover in the post season\n\tPostPF INTEGER, -- Example Values: `(0,)`, `(4,)`, `(7,)` | Value Statics: Total count 23751 - Distinct count 100 - Null count 0 | Column Name Meaning: post season personal fouls | Value Description: null or empty refers to none 1: 2 personal fouls in the post season\n\tPostfgAttempted INTEGER, -- Example Values: `(6,)`, `(10,)`, `(0,)` | Value Statics: Total count 23751 - Distinct count 419 - Null count 0 | Column Name Meaning: post season field goal attempted | Value Description: null or empty refers to none 1: 1 field goal attempts in the post season\n\tPostfgMade INTEGER, -- Example Values: `(2,)`, `(5,)`, `(0,)` | Value Statics: Total count 23751 - Distinct count 219 - Null count 0 | Column Name Meaning: post season field goal made | Value Description: null or empty refers to none 1: 1 field goal made in the post season\n\tPostftAttempted INTEGER, -- Example Values: `(0,)`, `(4,)`, `(101,)` | Value Statics: Total count 23751 - Distinct count 201 - Null count 0 | Column Name Meaning: post season field free throw attempted | Value Description: null or empty refers to none 1: 1 free throw attempts in the post season\n\tPostftMade INTEGER, -- Example Values: `(0,)`, `(2,)`, `(74,)` | Value Statics: Total count 23751 - Distinct count 164 - Null count 0 | Column Name Meaning: post season free throw made | Value Description: null or empty refers to none 1: 1 free throw made in the post season\n\tPostthreeAttempted INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 23751 - Distinct count 128 - Null count 0 | Column Name Meaning: post season three point attempted | Value Description: null or empty refers to none 1: 1 three point attempts in the post season\n\tPostthreeMade INTEGER, -- Example Values: `(0,)`, `(12,)`, `(2,)` | Value Statics: Total count 23751 - Distinct count 56 - Null count 0 | Column Name Meaning: post season three point made | Value Description: null or empty refers to none 1: 1 three point made in the post season\n\tnote TEXT, -- Example Values: `C` | Value Statics: Total count 43 - Distinct count 1 - Null count 23708 \n\tforeign key (tmID, year) references teams (tmID, year) on update cascade on delete cascade,\n);\n\nCREATE TABLE series_post\n(\n\tid INTEGER primary key autoincrement,\n\tyear INTEGER, -- Example Values: `(1946,)`, `(1947,)`, `(1948,)` | Value Statics: Total count 775 - Distinct count 66 - Null count 0 | Column Description: year \n\tround TEXT, -- Example Values: `F`, `QF`, `SF`, `DT`, `DF` | Value Statics: Total count 775 - Distinct count 11 - Null count 0 | Column Description: round | Value Description: known abbreviations: F:final SF: semi-final QF:quater-final 1/4 DF:division-final DSF:division semi-final\n\tseries TEXT, -- Example Values: `O`, `M`, `N`, `A`, `K` | Value Statics: Total count 775 - Distinct count 11 - Null count 0 \n\ttmIDWinner TEXT, -- Example Values: `('PHW',)`, `('NYK',)`, `('CHS',)` | Value Statics: Total count 775 - Distinct count 66 - Null count 0 | Column Name Meaning: team id winner | Column Description: team id winner \n\tlgIDWinner TEXT, -- Example Values: `NBA`, `ABA` | Value Statics: Total count 775 - Distinct count 2 - Null count 0 | Column Name Meaning: league id winner | Column Description: league id winner \n\ttmIDLoser TEXT, -- Example Values: `('CHS',)`, `('CLR',)`, `('STB',)` | Value Statics: Total count 769 - Distinct count 79 - Null count 6 | Column Name Meaning: team id loser | Column Description: team id loser \n\tlgIDLoser TEXT, -- Example Values: `NBA`, `ABA` | Value Statics: Total count 775 - Distinct count 2 - Null count 0 | Column Name Meaning: league id loser | Column Description: league id loser \n\tW INTEGER, -- Example Values: `4`, `2`, `1`, `3`, `0` | Value Statics: Total count 775 - Distinct count 5 - Null count 0 | Column Name Meaning: wins | Column Description: wins \n\tL INTEGER, -- Example Values: `1`, `0`, `2`, `3`, `4` | Value Statics: Total count 775 - Distinct count 5 - Null count 0 | Column Name Meaning: loses | Column Description: loses \n\tforeign key (tmIDWinner, year) references teams (tmID, year) on update cascade on delete cascade,\n\tforeign key (tmIDLoser, year) references teams (tmID, year) on update cascade on delete cascade,\n);" }
shakespeare
{ "db_schema": "CREATE TABLE chapters\n(\n\tid INTEGER primary key autoincrement,\n\tAct INTEGER not null, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 945 - Distinct count 6 - Null count 0 | Column Description: An act is a major division of a theatre work, including a play, film, opera, or musical theatre | Value Description: An act can consist of one or more scenes\n\tScene INTEGER not null, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 945 - Distinct count 155 - Null count 0 | Column Description: A scene is a dramatic part of a story, at a specific time and place, between specific characters. \n\tDescription TEXT not null, -- Example Values: `('DUKE ORSINO’s palace.',)`, `('The sea-coast.',)`, `('OLIVIA’S house.',)` | Value Statics: Total count 945 - Distinct count 519 - Null count 0 | Column Description: textual description of the chapter. \n\twork_id INTEGER not null references works, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 945 - Distinct count 43 - Null count 0 | Column Name Meaning: work id | Column Description: id number identifying the work \n);\n\nCREATE TABLE characters\n(\n\tid INTEGER primary key autoincrement,\n\tCharName TEXT not null, -- Example Values: `('First Apparition',)`, `('First Citizen',)`, `('First Conspirator',)` | Value Statics: Total count 1266 - Distinct count 957 - Null count 0 | Column Name Meaning: char name | Column Description: character name \n\tAbbrev TEXT not null, -- Example Values: `('First Apparition',)`, `('First Citizen',)`, `('First Conspirator',)` | Value Statics: Total count 1266 - Distinct count 964 - Null count 0 | Column Name Meaning: abbreviation | Column Description: abbreviation. An abbreviation is a shortened form of a word or phrase. \n\tDescription TEXT not null, -- Example Values: `('',)`, `('A senator of Venice',)`, `('a Moor, beloved by Tamora',)` | Value Statics: Total count 1266 - Distinct count 467 - Null count 0 | Column Description: description of the character. \n);\n\nCREATE TABLE paragraphs\n(\n\tid INTEGER primary key autoincrement,\n\tParagraphNum INTEGER not null, -- Example Values: `(3,)`, `(4,)`, `(19,)` | Value Statics: Total count 35126 - Distinct count 3970 - Null count 0 | Column Name Meaning: paragraph number | Column Description: unique id number identifying the paragraph number \n\tPlainText TEXT not null, --| Column Name Meaning: Plain Text | Column Description: main content of the paragraphs \n\tcharacter_id INTEGER not null references characters, -- Example Values: `(1261,)`, `(840,)`, `(297,)` | Value Statics: Total count 35126 - Distinct count 1219 - Null count 0 | Column Name Meaning: character id | Column Description: unique id number identifying the mentioned character \n\tchapter_id INTEGER default 0 not null references chapters, -- Example Values: `(18704,)`, `(18705,)`, `(18706,)` | Value Statics: Total count 35126 - Distinct count 945 - Null count 0 | Column Name Meaning: chapter id | Column Description: unique id number identifying the related chapter | Value Description: if number of the paragraphs is > 150, then it means this is a long chapter\n);\n\nCREATE TABLE works\n(\n\tid INTEGER primary key autoincrement,\n\tTitle TEXT not null, -- Example Values: `('Twelfth Night',)`, `(\"All's Well That Ends Well\",)`, `('Antony and Cleopatra',)` | Value Statics: Total count 43 - Distinct count 43 - Null count 0 | Column Description: title of the work | Value Description: the short title or abbreviated title\n\tLongTitle TEXT not null, -- Example Values: `('Twelfth Night, Or What You Will',)`, `(\"All's Well That Ends Well\",)`, `('Antony and Cleopatra',)` | Value Statics: Total count 43 - Distinct count 43 - Null count 0 | Column Name Meaning: Long Title | Column Description: full title of the work \n\tDate INTEGER not null, -- Example Values: `(1599,)`, `(1602,)`, `(1606,)` | Value Statics: Total count 43 - Distinct count 23 - Null count 0 | Column Name Meaning: character id | Column Description: date of the work \n\tGenreType TEXT not null, -- Example Values: `Comedy`, `Tragedy`, `History`, `Poem`, `Sonnet` | Value Statics: Total count 43 - Distinct count 5 - Null count 0 | Column Name Meaning: genre type | Column Description: the type of the genere \n);" }
cars
{ "db_schema": "CREATE TABLE country\n(\n\torigin INTEGER primary key,\n\tcountry TEXT, -- Example Values: `USA`, `Europe`, `Japan` | Value Statics: Total count 3 - Distinct count 3 - Null count 0 | Column Description: the origin country of the car \n);\n\nCREATE TABLE price\n(\n\tID INTEGER primary key,\n\tprice REAL, -- Example Values: `(25561.59078,)`, `(24221.42273,)`, `(27240.84373,)` | Value Statics: Total count 398 - Distinct count 224 - Null count 0 | Column Description: price of the car in USD \n);\n\nCREATE TABLE data\n(\n\tID INTEGER primary key,\n\tmpg REAL, -- Example Values: `(18.0,)`, `(15.0,)`, `(16.0,)` | Value Statics: Total count 398 - Distinct count 129 - Null count 0 | Column Name Meaning: mileage per gallon | Column Description: mileage of the car in miles per gallon | Value Description: The car with higher mileage is more fuel-efficient.\n\tcylinders INTEGER, -- Example Values: `8`, `4`, `6`, `3`, `5` | Value Statics: Total count 398 - Distinct count 5 - Null count 0 | Column Name Meaning: number of cylinders | Column Description: the number of cylinders present in the car \n\tdisplacement REAL, -- Example Values: `(307.0,)`, `(350.0,)`, `(318.0,)` | Value Statics: Total count 398 - Distinct count 82 - Null count 0 | Column Description: engine displacement in cubic mm | Value Description: sweep volume = displacement / no_of cylinders\n\thorsepower INTEGER, -- Example Values: `(130,)`, `(165,)`, `(150,)` | Value Statics: Total count 398 - Distinct count 94 - Null count 0 | Column Name Meaning: horse power | Column Description: horse power associated with the car | Value Description: horse power is the metric used to indicate the power produced by a car's engine - the higher the number, the more power is sent to the wheels and, in theory, the faster it will go.\n\tweight INTEGER, -- Example Values: `(3504,)`, `(3693,)`, `(3436,)` | Value Statics: Total count 398 - Distinct count 351 - Null count 0 | Column Description: weight of the car in lbs | Value Description: A bigger, heavier vehicle provides better crash protection than a smaller\n\tacceleration REAL, -- Example Values: `(12.0,)`, `(11.5,)`, `(11.0,)` | Value Statics: Total count 398 - Distinct count 95 - Null count 0 | Column Description: acceleration of the car in miles per squared hour \n\tmodel INTEGER, -- Example Values: `70`, `71`, `72`, `73`, `74` | Value Statics: Total count 398 - Distinct count 13 - Null count 0 | Column Description: the year when the car model was introduced in the market | Value Description: 0 --> 1970\n\tcar_name TEXT, -- Example Values: `('chevrolet chevelle malibu',)`, `('buick skylark 320',)`, `('plymouth satellite',)` | Value Statics: Total count 398 - Distinct count 305 - Null count 0 | Column Name Meaning: car name | Column Description: name of the car \n\tforeign key (ID) references price(ID),\n);\n\nCREATE TABLE production\n(\n\tID INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 692 - Distinct count 398 - Null count 0 | Column Description: the id of the car \n\tmodel_year INTEGER, -- Example Values: `1970`, `1971`, `1972`, `1973`, `1975` | Value Statics: Total count 692 - Distinct count 13 - Null count 0 | Column Name Meaning: model year | Column Description: year when the car model was introduced in the market \n\tcountry INTEGER, -- Example Values: `1`, `3`, `2` | Value Statics: Total count 692 - Distinct count 3 - Null count 0 | Column Description: country id to which the car belongs | Value Description: Japan --> Asia \r USA --> North America\n\tprimary key (ID, model_year),\n\tforeign key (country) references country(origin),\n\tforeign key (ID) references data(ID),\n\tforeign key (ID) references price(ID),\n);" }
donor
{ "db_schema": "CREATE TABLE essays\n(\n\tprojectid TEXT, -- Example Values: `('ffffc4f85b60efc5b52347df489d0238',)`, `('ffffac55ee02a49d1abc87ba6fc61135',)`, `('ffff97ed93720407d70a2787475932b0',)` | Value Statics: Total count 99998 - Distinct count 99998 - Null count 0 | Column Name Meaning: project id | Column Description: unique project identifier \n\tteacher_acctid TEXT, -- Example Values: `('c24011b20fc161ed02248e85beb59a90',)`, `('947066d0af47e0566f334566553dd6a6',)`, `('462270f5d5c212162fcab11afa2623cb',)` | Value Statics: Total count 99998 - Distinct count 68583 - Null count 0 | Column Name Meaning: teacher acctid | Column Description: teacher id that created a project \n\ttitle TEXT, -- Example Values: `('iMath',)`, `(\"Recording Rockin' Readers\",)`, `('Kindergarten In Need of Important Materials!',)` | Value Statics: Total count 99995 - Distinct count 93160 - Null count 3 | Column Description: title of the project \n\tshort_description TEXT, --| Column Name Meaning: short description | Column Description: short description of a project \n\tneed_statement TEXT, -- Example Values: `('My students need four iPods.',)`, `('My students need a camcorder. ',)`, `('My students need 17 assorted classroom materials` | Value Statics: Total count 99773 - Distinct count 98038 - Null count 225 | Column Name Meaning: need statement | Column Description: need statement of a project \n\tessay TEXT, -- | Column Description: complete project essay \n);\n\nCREATE TABLE projects\n(\n\tprojectid TEXT not null primary key,\n\tteacher_acctid TEXT, -- Example Values: `('42d43fa6f37314365d08692e08680973',)`, `('864eb466462bf704bf7a16a585ef296a',)`, `('37f85135259ece793213aca9d8765542',)` | Value Statics: Total count 100000 - Distinct count 61910 - Null count 0 | Column Description: teacher's unique identifier (teacher that created a project) \n\tschoolid TEXT, -- Example Values: `('c0e6ce89b244764085691a1b8e28cb81',)`, `('d711e47810900c96f26a5d0be30c446d',)`, `('665c3613013ba0a66e3a2a26b89f1b68',)` | Value Statics: Total count 100000 - Distinct count 25641 - Null count 0 | Column Description: school's identifier (school where teacher works) \n\tschool_ncesid TEXT, -- Example Values: `('063627006187',)`, `('483702008193',)`, `('410327000109',)` | Value Statics: Total count 99529 - Distinct count 23461 - Null count 471 | Column Name Meaning: school national center for education statistics id | Column Description: Public National Center for Ed Statistics id \n\tschool_latitude REAL, -- Example Values: `(36.57634,)`, `(32.911179,)`, `(45.166039,)` | Value Statics: Total count 100000 - Distinct count 25074 - Null count 0 | Column Name Meaning: school latitude | Column Description: latitude of school \n\tschool_longitude REAL, -- Example Values: `(-119.608713,)`, `(-96.72364,)`, `(-122.414576,)` | Value Statics: Total count 100000 - Distinct count 25074 - Null count 0 | Column Name Meaning: school longitude | Column Description: longitude of school \n\tschool_city TEXT, -- Example Values: `('Selma',)`, `('Dallas',)`, `('Colton',)` | Value Statics: Total count 100000 - Distinct count 5498 - Null count 0 | Column Name Meaning: school city | Column Description: city where the school is located \n\tschool_state TEXT, -- Example Values: `('CA',)`, `('TX',)`, `('OR',)` | Value Statics: Total count 100000 - Distinct count 51 - Null count 0 | Column Name Meaning: school state | Column Description: state where the school is located \n\tschool_zip INTEGER, -- Example Values: `(93662,)`, `(75243,)`, `(97017,)` | Value Statics: Total count 100000 - Distinct count 10333 - Null count 0 | Column Name Meaning: school zip | Column Description: zipcode of school \n\tschool_metro TEXT, -- Example Values: `urban`, `rural`, `suburban` | Value Statics: Total count 86239 - Distinct count 3 - Null count 13761 | Column Name Meaning: school metro | Column Description: metro where the school is located \n\tschool_district TEXT, -- Example Values: `('Selma Unified Sch District',)`, `('Richardson Ind School District',)`, `('Colton School District 53',)` | Value Statics: Total count 100000 - Distinct count 5431 - Null count 0 | Column Name Meaning: school district | Column Description: district where the school is located \n\tschool_county TEXT, -- Example Values: `('Fresno',)`, `('Dallas',)`, `('Clackamas',)` | Value Statics: Total count 100000 - Distinct count 1390 - Null count 0 | Column Name Meaning: school county | Column Description: country where the school is located \n\tschool_charter TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: school charter | Column Description: whether it is a public charter school or not (no private schools in the dataset) \n\tschool_magnet TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: school magnet | Column Description: whether a public magnet school or not \n\tschool_year_round TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: school year round | Column Description: whether it is a public year round school or not \n\tschool_nlns TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: school Nonleafy Normal Stature | Column Description: whether it is a public Nonleafy Normal Stature school or not \n\tschool_kipp TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: school Knowledge Is Power Program | Column Description: whether it is a public Knowledge Power Program school or not \n\tschool_charter_ready_promise TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: school charter ready promise | Column Description: whether it is a public ready promise school or not \n\tteacher_prefix TEXT, -- Example Values: `Mrs.`, `Mr.`, `Ms.`, ``, `Dr.` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0 | Column Name Meaning: teacher prefix | Column Description: teacher's gender | Value Description: if the value is equal to \"Dr. \", it means this teacher acquired P.h.D or doctor degree.\n\tteacher_teach_for_america TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: teachers teach for america | Column Description: Teach for America or not \n\tteacher_ny_teaching_fellow TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: teacher_new_york_teaching_fellow | Column Description: New York teaching fellow or not | Value Description: • t: true • f: false if true: it means that this teacher is a New York teacher\n\tprimary_focus_subject TEXT, -- Example Values: `('Literature & Writing',)`, `('Literacy',)`, `('Social Sciences',)` | Value Statics: Total count 99997 - Distinct count 27 - Null count 3 | Column Name Meaning: primary focus subject | Column Description: main subject for which project materials are intended \n\tprimary_focus_area TEXT, -- Example Values: `Literacy & Language`, `History & Civics`, `Math & Science`, `Health & Sports`, `Applied Learning` | Value Statics: Total count 99997 - Distinct count 7 - Null count 3 | Column Name Meaning: primary focus area | Column Description: main subject area for which project materials are intended \n\tsecondary_focus_subject TEXT, -- Example Values: `('College & Career Prep',)`, `('ESL',)`, `('Mathematics',)` | Value Statics: Total count 68631 - Distinct count 27 - Null count 31369 | Column Name Meaning: secondary focus subject | Column Description: secondary subject \n\tsecondary_focus_area TEXT, -- Example Values: `Applied Learning`, `Literacy & Language`, `Math & Science`, `Special Needs`, `History & Civics` | Value Statics: Total count 68631 - Distinct count 7 - Null count 31369 | Column Name Meaning: secondary focus area | Column Description: secondary subject area \n\tresource_type TEXT, -- Example Values: `Books`, `Technology`, `Other`, `Supplies`, `Visitors` | Value Statics: Total count 99998 - Distinct count 6 - Null count 2 | Column Name Meaning: resource type | Column Description: main type of resources requested by a project \n\tpoverty_level TEXT, -- Example Values: `highest poverty`, `high poverty`, `moderate poverty`, `low poverty` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0 | Column Name Meaning: poverty level | Column Description: school's poverty level | Value Description: highest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%\n\tgrade_level TEXT, -- Example Values: `Grades 6-8`, `Grades PreK-2`, `Grades 3-5`, `Grades 9-12` | Value Statics: Total count 99998 - Distinct count 4 - Null count 2 | Column Name Meaning: grade level | Column Description: grade level for which project materials are intended \n\tfulfillment_labor_materials REAL, -- Example Values: `30.0`, `35.0`, `9.0`, `17.0` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Name Meaning: fulfillment labor materials | Column Description: cost of fulfillment | Value Description: higher means higher cost, or need more labors\n\ttotal_price_excluding_optional_support REAL, -- Example Values: `(555.81,)`, `(296.47,)`, `(430.89,)` | Value Statics: Total count 100000 - Distinct count 52222 - Null count 0 | Column Name Meaning: total price excluding optional support | Column Description: project cost excluding optional tip that donors give to DonorsChoose.org while funding a project \n\ttotal_price_including_optional_support REAL, -- Example Values: `(653.89,)`, `(348.79,)`, `(506.93,)` | Value Statics: Total count 100000 - Distinct count 52222 - Null count 0 | Column Name Meaning: total price including optional support | Column Description: project cost including optional tip that donors give to DonorsChoose.org while funding a project | Value Description: cost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support\n\tstudents_reached INTEGER, -- Example Values: `(32,)`, `(22,)`, `(17,)` | Value Statics: Total count 99998 - Distinct count 737 - Null count 2 | Column Name Meaning: students reached | Column Description: number of students impacted by a project (if funded) \n\teligible_double_your_impact_match TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: eligible double your impact match | Column Description: project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney) \n\teligible_almost_home_match TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: eligible almost home match | Column Description: project was eligible for a $100 boost offer by a corporate partner \n\tdate_posted DATE, -- Example Values: `('2014-05-12',)`, `('2014-05-11',)`, `('2014-05-10',)` | Value Statics: Total count 100000 - Distinct count 242 - Null count 0 | Column Name Meaning: date posted | Column Description: data a project went live on the site \n);\n\nCREATE TABLE donations\n(\n\tdonationid TEXT not null primary key,\n\tprojectid TEXT, -- Example Values: `('ffffac55ee02a49d1abc87ba6fc61135',)`, `('ffff97ed93720407d70a2787475932b0',)`, `('ffff418bb42fad24347527ad96100f81',)` | Value Statics: Total count 100000 - Distinct count 16725 - Null count 0 | Column Name Meaning: project id | Column Description: project identifier that received the donation \n\tdonor_acctid TEXT, -- Example Values: `('22cbc920c9b5fa08dfb331422f5926b5',)`, `('521f1830a77c9dbbf8119d99c6206a16',)`, `('1e0a63fc8141c7ba26b8b44ca0871b90',)` | Value Statics: Total count 100000 - Distinct count 65747 - Null count 0 | Column Name Meaning: donor accid | Column Description: donor that made a donation \n\tdonor_city TEXT, -- Example Values: `('Peachtree City',)`, `('Rockville',)`, `('Salem',)` | Value Statics: Total count 51844 - Distinct count 5009 - Null count 48156 | Column Name Meaning: donor city | Column Description: donation city \n\tdonor_state TEXT, -- Example Values: `('GA',)`, `('MD',)`, `('IN',)` | Value Statics: Total count 80158 - Distinct count 60 - Null count 19842 | Column Name Meaning: donor state | Column Description: donation state \n\tdonor_zip TEXT, -- Example Values: `('30269',)`, `('20853',)`, `('47167',)` | Value Statics: Total count 44242 - Distinct count 8564 - Null count 55758 | Column Name Meaning: donor zip | Column Description: donation zip code \n\tis_teacher_acct TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: is teacher acct | Column Description: whether donor is also a teacher | Value Description: • f: false, it means this donor is not a teacher • t: true, it means this donor is a teacher\n\tdonation_timestamp DATETIME, -- Example Values: `('2011-08-25 14:27:34.807',)`, `('2011-11-04 07:54:21.552',)`, `('2011-11-02 22:53:53.019',)` | Value Statics: Total count 100000 - Distinct count 99814 - Null count 0 | Column Name Meaning: donation timestamp | Column Description: the time of donation \n\tdonation_to_project REAL, -- Example Values: `(42.5,)`, `(26.83,)`, `(55.35,)` | Value Statics: Total count 100000 - Distinct count 13993 - Null count 0 | Column Name Meaning: donation to project | Column Description: amount to project, excluding optional support (tip) \n\tdonation_optional_support REAL, -- Example Values: `(7.5,)`, `(4.73,)`, `(0.0,)` | Value Statics: Total count 100000 - Distinct count 7508 - Null count 0 | Column Name Meaning: donation optional support | Column Description: amount of optional support \n\tdonation_total REAL, -- Example Values: `(50.0,)`, `(31.56,)`, `(55.35,)` | Value Statics: Total count 100000 - Distinct count 14499 - Null count 0 | Column Name Meaning: donation total | Column Description: donated amount | Value Description: donated amount = donation_to_project + donation_optional_support\n\tdollar_amount TEXT, -- Example Values: `10_to_100`, `under_10`, `100_and_up` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0 | Column Name Meaning: dollar amount | Column Description: donated amount in US dollars \n\tdonation_included_optional_support TEXT, -- Example Values: `t`, `f` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: donation included optional support | Column Description: whether optional support (tip) was included for DonorsChoose.org | Value Description: • f: false, optional support (tip) was not included for DonorsChoose.org • t: true, optional support (tip) was included for DonorsChoose.org\n\tpayment_method TEXT, -- Example Values: `no_cash_received`, `creditcard`, `paypal`, `amazon`, `promo_code_match` | Value Statics: Total count 100000 - Distinct count 8 - Null count 0 | Column Name Meaning: payment method | Column Description: what card/payment option was used \n\tpayment_included_acct_credit TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: payment included acct credit | Column Description: whether a portion of a donation used account credits redemption | Value Description: • f: false, a portion of a donation didn't use account credits redemption • t: true, a portion of a donation used account credits redemption\n\tpayment_included_campaign_gift_card TEXT, -- Example Values: `t`, `f` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: payment included campaign gift card | Column Description: whether a portion of a donation included corporate sponsored gift card | Value Description: • f: false, a portion of a donation included corporate sponsored gift card • t: true, a portion of a donation included corporate sponsored gift card\n\tpayment_included_web_purchased_gift_card TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: payment included web purchased gift card | Column Description: whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you) | Value Description: • f: false • t: true\n\tpayment_was_promo_matched TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tvia_giving_page TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tfor_honoree TEXT, -- Example Values: `f`, `t` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 \n\tdonation_message TEXT, -- \n\tforeign key (projectid) references projects(projectid),\n);\n\nCREATE TABLE resources\n(\n\tresourceid TEXT not null primary key,\n\tprojectid TEXT, -- Example Values: `('ffffc4f85b60efc5b52347df489d0238',)`, `('ffffac55ee02a49d1abc87ba6fc61135',)`, `('ffff97ed93720407d70a2787475932b0',)` | Value Statics: Total count 100000 - Distinct count 18038 - Null count 0 | Column Name Meaning: project id | Column Description: project id that requested resources for a classroom \n\tvendorid INTEGER, -- Example Values: `(430,)`, `(82,)`, `(767,)` | Value Statics: Total count 96707 - Distinct count 116 - Null count 3293 | Column Name Meaning: vendor id | Column Description: vendor id that supplies resources to a project \n\tvendor_name TEXT, -- Example Values: `('Woodwind and Brasswind',)`, `('Best Buy for Business',)`, `('Lakeshore Learning Materials',)` | Value Statics: Total count 96707 - Distinct count 116 - Null count 3293 | Column Name Meaning: vendor name | Column Description: vendor name \n\tproject_resource_type TEXT, -- Example Values: `Technology`, `Supplies`, `Other`, `Books`, `Trips` | Value Statics: Total count 99999 - Distinct count 6 - Null count 1 | Column Name Meaning: project resource type | Column Description: type of resource \n\titem_name TEXT, -- Example Values: `('iPod nano 4th Gen 8GB (Black)',)`, `('Sony bloggie MHS-FS1 - camcorder - internal flas`, `('VX748 - Best-Buy Jumbo Crayons - 12-Color Box',)` | Value Statics: Total count 99583 - Distinct count 64627 - Null count 417 | Column Name Meaning: item name | Column Description: resource name \n\titem_number TEXT, -- Example Values: `('249995.001',)`, `('BB11216668',)`, `('VX748',)` | Value Statics: Total count 99583 - Distinct count 63149 - Null count 417 | Column Name Meaning: item number | Column Description: resource item identifier \n\titem_unit_price REAL, -- Example Values: `(149.0,)`, `(148.0,)`, `(69.95,)` | Value Statics: Total count 99558 - Distinct count 8176 - Null count 442 | Column Name Meaning: item unit price | Column Description: unit price of the resource \n\titem_quantity INTEGER, -- Example Values: `(4,)`, `(1,)`, `(2,)` | Value Statics: Total count 99751 - Distinct count 119 - Null count 249 | Column Name Meaning: item quantity | Column Description: number of a specific item requested by a teacher \n\tforeign key (projectid) references projects(projectid),\n);" }
video_games
{ "db_schema": "CREATE TABLE genre\n(\n\tid INTEGER not null primary key,\n\tgenre_name TEXT default NULL, -- Example Values: `Action`, `Adventure`, `Fighting`, `Misc`, `Platform` | Value Statics: Total count 12 - Distinct count 12 - Null count 0 | Column Description: the game genre | Value Description: The game genre can have a significant effect on the game. The genre refers to the category or type of game, such as action, adventure, strategy, or role-playing. The genre can determine the general style and gameplay of the game, as well as the expectations of the players. The genre can also affect the audience for the game, as different genres may appeal to different groups of players.\n);\n\nCREATE TABLE game\n(\n\tid INTEGER not null primary key,\n\tgenre_id INTEGER default NULL, -- Example Values: `4`, `5`, `11`, `2`, `9` | Value Statics: Total count 11317 - Distinct count 12 - Null count 0 | Column Name Meaning: genre id | Column Description: the id of the game genre | Value Description: If game A and game B have the same genre, the user who likes game A may also like game B.\n\tgame_name TEXT default NULL, -- Example Values: `('2 Games in 1: Sonic Advance & ChuChu Rocket!',)`, `('2 Games in 1: Sonic Battle & ChuChu Rocket!',)`, `('2 Games in 1: Sonic Pinball Party & Columns Crow` | Value Statics: Total count 11317 - Distinct count 11317 - Null count 0 | Column Name Meaning: game name | Column Description: the name of the game \n\tforeign key (genre_id) references genre(id),\n);\n\nCREATE TABLE platform\n(\n\tid INTEGER not null primary key,\n\tplatform_name TEXT default NULL, -- Example Values: `('Wii',)`, `('NES',)`, `('GB',)` | Value Statics: Total count 31 - Distinct count 31 - Null count 0 | Column Description: the name of the platform | Value Description: The game platform, or the platform on which a game is played, can have a significant effect on the game. The platform can determine what hardware and software the game can run on, as well as the technical capabilities of the game. The platform can also affect the audience for the game, as different platforms may attract different groups of players.\n);\n\nCREATE TABLE publisher\n(\n\tid INTEGER not null primary key,\n\tpublisher_name TEXT default NULL, -- Example Values: `('10TACLE Studios',)`, `('1C Company',)`, `('20th Century Fox Video Games',)` | Value Statics: Total count 577 - Distinct count 577 - Null count 0 | Column Description: the name of the publisher | Value Description: The publisher is the company or organization that finances, produces, and distributes the game. The publisher can influence the development of the game by providing resources, guidance, and support to the game's development team. The publisher can also affect the marketing and distribution of the game, as they are responsible for promoting the game and making it available to players.\n);\n\nCREATE TABLE game_publisher\n(\n\tid INTEGER not null primary key,\n\tgame_id INTEGER default NULL, -- Example Values: `(10866,)`, `(9244,)`, `(5464,)` | Value Statics: Total count 11732 - Distinct count 11360 - Null count 0 | Column Name Meaning: game id | Column Description: the id of the game \n\tpublisher_id INTEGER default NULL, -- Example Values: `(369,)`, `(328,)`, `(498,)` | Value Statics: Total count 11732 - Distinct count 577 - Null count 0 | Column Name Meaning: publisher id | Column Description: the id of the publisher | Value Description: If game A and game B were published by the same publisher, the user who likes game A may also like game B if the user is a fan of the publisher company.\n\tforeign key (game_id) references game(id),\n\tforeign key (publisher_id) references publisher(id),\n);\n\nCREATE TABLE game_platform\n(\n\tid INTEGER not null primary key,\n\tgame_publisher_id INTEGER default NULL, -- Example Values: `(8564,)`, `(9852,)`, `(11063,)` | Value Statics: Total count 16326 - Distinct count 11732 - Null count 0 | Column Name Meaning: game publisher id | Column Description: the id of the game publisher \n\tplatform_id INTEGER default NULL, -- Example Values: `(4,)`, `(7,)`, `(15,)` | Value Statics: Total count 16326 - Distinct count 31 - Null count 0 | Column Name Meaning: platform id | Column Description: the id of the platform \n\trelease_year INTEGER default NULL, -- Example Values: `(2007,)`, `(2006,)`, `(2011,)` | Value Statics: Total count 16326 - Distinct count 39 - Null count 0 | Column Name Meaning: release year | Column Description: the release year of the game \n\tforeign key (game_publisher_id) references game_publisher(id),\n\tforeign key (game_publisher_id) references game_publisher(id),\n\tforeign key (game_publisher_id) references game_publisher(id),\n\tforeign key (platform_id) references platform(id),\n);\n\nCREATE TABLE region\n(\n\tid INTEGER not null primary key,\n\tregion_name TEXT default NULL, -- Example Values: `North America`, `Europe`, `Japan`, `Other` | Value Statics: Total count 4 - Distinct count 4 - Null count 0 | Column Description: the region name \n);\n\nCREATE TABLE region_sales\n(\n\tregion_id INTEGER default NULL, -- Example Values: `1`, `2`, `3`, `4` | Value Statics: Total count 65320 - Distinct count 4 - Null count 0 | Column Description: the id of the region \n\tgame_platform_id INTEGER default NULL, -- Example Values: `(50,)`, `(51,)`, `(52,)` | Value Statics: Total count 65320 - Distinct count 16326 - Null count 0 | Column Name Meaning: game platform id | Column Description: the id of the game platform \n\tnum_sales REAL default NULL, -- Example Values: `(3.5,)`, `(1.43,)`, `(0.51,)` | Value Statics: Total count 65320 - Distinct count 494 - Null count 0 | Column Name Meaning: number sales | Column Description: the number of sales in this region | Value Description: The number of games sold in the region = num_sales * 100000. The game platform with higher num_sales is more popular in the region.\n\tforeign key (game_platform_id) references game_platform(id),\n\tforeign key (game_platform_id) references game_platform(id),\n\tforeign key (game_platform_id) references game_platform(id),\n\tforeign key (region_id) references region(id),\n);" }
authors
{ "db_schema": "CREATE TABLE Author\n(\n\tId INTEGER constraint Author_pk primary key,\n\tName TEXT, -- Example Values: `('Ernest Jordan',)`, `('K. MORIBE',)`, `('D. Jakominich',)` | Value Statics: Total count 99974 - Distinct count 96457 - Null count 26 | Column Description: Author Name \n\tAffiliation TEXT, -- Example Values: `('Cavendish Laboratory|Cambridge University',)`, `('Department of Molecular Biology|School of Scienc`, `('HASLab / INESC TEC and Universidade do Minho',)` | Value Statics: Total count 40408 - Distinct count 26559 - Null count 59592 | Column Description: Organization name with which the author is affiliated. | Value Description: the name of an organization with which an author can be affiliated\n);\n\nCREATE TABLE Conference\n(\n\tId INTEGER constraint Conference_pk primary key,\n\tShortName TEXT, -- Example Values: `('IADIS',)`, `('IADT',)`, `('',)` | Value Statics: Total count 4545 - Distinct count 3692 - Null count 0 | Column Description: Short name \n\tFullName TEXT, -- | Column Description: Full name \n\tHomePage TEXT, -- Example Values: `('',)`, `('http://www.informatik.uni-trier.de/~ley/db/conf/`, `('http://www.informatik.uni-trier.de/~ley/db/conf/` | Value Statics: Total count 4545 - Distinct count 3900 - Null count 0 | Column Description: Homepage URL of conference \n);\n\nCREATE TABLE Journal\n(\n\tId INTEGER constraint Journal_pk primary key,\n\tShortName TEXT, -- Example Values: `('ICOM',)`, `('AEPIA',)`, `('IBMRD',)` | Value Statics: Total count 15151 - Distinct count 8284 - Null count 0 | Column Description: Short name \n\tFullName TEXT, -- | Column Description: Full name \n\tHomePage TEXT, -- Example Values: `('http://www.i-com-media.de',)`, `('http://aepia.dsic.upv.es/revista/',)`, `('http://www-tr.watson.ibm.com/journal/rdindex.htm` | Value Statics: Total count 15151 - Distinct count 12864 - Null count 0 | Column Description: Homepage URL of journal \n);\n\nCREATE TABLE Paper\n(\n\tId INTEGER primary key,\n\tTitle TEXT, -- | Column Description: Title of the paper \n\tYear INTEGER, -- Example Values: `(2009,)`, `(2007,)`, `(1963,)` | Value Statics: Total count 100000 - Distinct count 143 - Null count 0 | Column Description: Year of the paper | Value Description: commonsense reasoning: if the year is \"0\", it means this paper is preprint, or not published\n\tConferenceId INTEGER, -- Example Values: `(167,)`, `(0,)`, `(158,)` | Value Statics: Total count 100000 - Distinct count 2782 - Null count 0 | Column Description: Conference Id in which paper was published \n\tJournalId INTEGER, -- Example Values: `(0,)`, `(7234,)`, `(16867,)` | Value Statics: Total count 100000 - Distinct count 7493 - Null count 0 | Column Description: Journal Id in which paper was published | Value Description: commonsense reasoning: If a paper contain \"0\" in both ConferenceID and JournalId, it means this paper is preprint\n\tKeyword TEXT, -- | Column Description: Keywords of the paper | Value Description: commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. Similar keywords represent similar fields or sub-field.\n\tforeign key (ConferenceId) references Conference(Id),\n\tforeign key (JournalId) references Journal(Id),\n);\n\nCREATE TABLE PaperAuthor\n(\n\tPaperId INTEGER, -- Example Values: `(4,)`, `(5,)`, `(6,)` | Value Statics: Total count 100000 - Distinct count 16982 - Null count 0 | Column Description: Paper Id \n\tAuthorId INTEGER, -- Example Values: `(1456512,)`, `(1102257,)`, `(1806301,)` | Value Statics: Total count 100000 - Distinct count 73028 - Null count 0 | Column Description: Author Id | Value Description: commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.\n\tName TEXT, -- Example Values: `('ADAM G. JONES',)`, `('Kazuo Iwama',)`, `('Asgeir Finnseth',)` | Value Statics: Total count 99999 - Distinct count 72827 - Null count 1 | Column Description: Author Name (as written on paper) \n\tAffiliation TEXT, -- | Column Description: Author Affiliation (as written on paper) | Value Description: the name of an organization with which an author can be affiliated\n\tforeign key (PaperId) references Paper(Id),\n\tforeign key (AuthorId) references Author(Id),\n);" }
college_completion
{ "db_schema": "CREATE TABLE institution_details\n(\n\tunitid INTEGER constraint institution_details_pk primary key,\n\tchronname TEXT, -- Example Values: `('Alabama A&M University',)`, `('University of Alabama at Birmingham',)`, `('Amridge University',)` | Value Statics: Total count 3798 - Distinct count 3793 - Null count 0 | Column Description: Institution name \n\tcity TEXT, -- Example Values: `('Normal',)`, `('Birmingham',)`, `('Montgomery',)` | Value Statics: Total count 3798 - Distinct count 1787 - Null count 0 | Column Description: Institution city \n\tstate TEXT, -- Example Values: `('Alabama',)`, `('Alaska',)`, `('Arizona',)` | Value Statics: Total count 3798 - Distinct count 51 - Null count 0 | Column Description: Institution state \n\tlevel TEXT, -- Example Values: `4-year`, `2-year` | Value Statics: Total count 3798 - Distinct count 2 - Null count 0 | Column Description: Level of institution | Value Description: 4-year: bachelor's degree 2-year: associate's degree\n\tcontrol TEXT, -- Example Values: `Public`, `Private not-for-profit`, `Private for-profit` | Value Statics: Total count 3798 - Distinct count 3 - Null count 0 | Column Description: Control of institution | Value Description: Public, Private not-for-profit, Private for-profit\n\tbasic TEXT, -- | Column Description: Carnegie Foundation for the Advancement of Teaching Basic Classification (2010 version) \n\thbcu TEXT, -- Example Values: `X`, `NULL` | Value Statics: Total count 3798 - Distinct count 2 - Null count 0 | Column Name Meaning: Historically Black College and Universities | Column Description: Denotes Historically Black College and Universities \n\tflagship TEXT, -- Example Values: `NULL`, `X` | Value Statics: Total count 3798 - Distinct count 2 - Null count 0 | Column Description: Denotes Public flagship institutions \n\tlong_x REAL, -- Example Values: `(-86.568502,)`, `(-86.80917,)`, `(-86.17401,)` | Value Statics: Total count 3798 - Distinct count 3798 - Null count 0 | Column Description: Institution longitude \n\tlat_y REAL, -- Example Values: `(34.783368,)`, `(33.50223,)`, `(32.362609,)` | Value Statics: Total count 3798 - Distinct count 3798 - Null count 0 | Column Description: Institution latitude | Value Description: institute Coordinate\n\tsite TEXT, -- Example Values: `('www.aamu.edu/',)`, `('www.uab.edu',)`, `('www.amridgeuniversity.edu',)` | Value Statics: Total count 3779 - Distinct count 3333 - Null count 19 | Column Description: Institution Web site address \n\tstudent_count INTEGER, -- Example Values: `(4051,)`, `(11502,)`, `(322,)` | Value Statics: Total count 3798 - Distinct count 2829 - Null count 0 | Column Name Meaning: student count | Column Description: Total number of undergraduates in 2010 \n\tawards_per_value REAL, -- Example Values: `(14.2,)`, `(20.9,)`, `(29.9,)` | Value Statics: Total count 3798 - Distinct count 517 - Null count 0 | Column Name Meaning: awards per value | Column Description: Completions per 100 FTE (full-time equivalency) undergraduate students (average 2011, 2012, and 2013) \n\tawards_per_state_value REAL, -- Example Values: `(18.8,)`, `(17.8,)`, `(15.9,)` | Value Statics: Total count 3798 - Distinct count 160 - Null count 0 | Column Name Meaning: awards per state value | Column Description: Completions per 100 FTE (full-time equivalency) undergraduate students, state and sector average | Value Description: • if his institute's completion (or graduation) rate exceeds the average for the state and sector in which it belongs: awards_per_value > awards_per_state_value • if his institute's completion (or graduation) rate falls below the average for the state and sector in which it belongs: awards_per_value < awards_per_state_value\n\tawards_per_natl_value REAL, -- Example Values: `21.5`, `22.5`, `16.5`, `24.6`, `32.8` | Value Statics: Total count 3798 - Distinct count 6 - Null count 0 | Column Name Meaning: awards per national value | Column Description: Completions per 100 FTE (full-time equivalency) undergraduate students, national sector average | Value Description: • if his institute's completion (or graduation) rate exceeds the average for the nationalin which it belongs: awards_per_value > awards_per_natl_value • if his institute's completion (or graduation) rate falls below the average for the state and industry in which it belongs: awards_per_value < awards_per_natl_value\n\texp_award_value INTEGER, -- Example Values: `(105331,)`, `(136546,)`, `(58414,)` | Value Statics: Total count 3798 - Distinct count 3611 - Null count 0 | Column Name Meaning: expected award value | Column Description: Estimated educational spending per academic award in 2013. Includes all certificates and degrees | Value Description: expenses related to instruction, research, public service, student services, academic support, institutional support, operations and maintenance. Includes all certificates and degrees\n\texp_award_state_value INTEGER, -- Example Values: `(75743,)`, `(92268,)`, `(42194,)` | Value Statics: Total count 3798 - Distinct count 264 - Null count 0 | Column Name Meaning: expected award state value | Column Description: Spending per completion, state and sector average \n\texp_award_natl_value INTEGER, -- Example Values: `66436`, `101725`, `37780`, `38763`, `24795` | Value Statics: Total count 3798 - Distinct count 6 - Null count 0 | Column Name Meaning: expected award national value | Column Description: Spending per completion, national sector average \n\texp_award_percentile INTEGER, -- Example Values: `(90,)`, `(97,)`, `(30,)` | Value Statics: Total count 3798 - Distinct count 101 - Null count 0 \n\tft_pct REAL, -- Example Values: `(93.8,)`, `(72.7,)`, `(62.7,)` | Value Statics: Total count 3794 - Distinct count 835 - Null count 4 | Column Name Meaning: Full-time percentage | Column Description: Percentage of undergraduates who attend full-time \n\tfte_value INTEGER, -- Example Values: `(3906,)`, `(10032,)`, `(294,)` | Value Statics: Total count 3798 - Distinct count 2745 - Null count 0 | Column Name Meaning: Full-time percentage | Column Description: total number of full-time equivalent undergraduates \n\tfte_percentile INTEGER, -- Example Values: `(33,)`, `(67,)`, `(12,)` | Value Statics: Total count 3798 - Distinct count 101 - Null count 0 \n\tmed_sat_value TEXT, -- Example Values: `('823',)`, `('1146',)`, `('NULL',)` | Value Statics: Total count 3798 - Distinct count 473 - Null count 0 | Column Name Meaning: median SAT value | Column Description: Median estimated SAT value for incoming students \n\tmed_sat_percentile TEXT, -- Example Values: `('0',)`, `('84',)`, `('NULL',)` | Value Statics: Total count 3798 - Distinct count 102 - Null count 0 | Column Name Meaning: median SAT percentile | Column Description: Institution's percent rank for median SAT value within sector | Value Description: Institution's percent rank for median SAT value within sector\n\taid_value INTEGER, -- Example Values: `(7142,)`, `(6088,)`, `(2540,)` | Value Statics: Total count 3797 - Distinct count 3135 - Null count 1 | Column Name Meaning: aid value | Column Description: The average amount of student aid going to undergraduate recipients \n\taid_percentile INTEGER, -- Example Values: `(72,)`, `(50,)`, `(1,)` | Value Statics: Total count 3797 - Distinct count 101 - Null count 1 | Column Name Meaning: aid percentile | Column Description: Institution's percent rank for average amount of student aid going to undergraduate recipients within sector | Value Description: Institution's percent rank for average amount of student aid going to undergraduate recipients within sector\n\tendow_value TEXT, -- Example Values: `('NULL',)`, `('24136',)`, `('302',)` | Value Statics: Total count 3798 - Distinct count 2141 - Null count 0 | Column Name Meaning: endow value | Column Description: End-of-year endowment value per full-time equivalent student \n\tendow_percentile TEXT, -- Example Values: `('NULL',)`, `('93',)`, `('1',)` | Value Statics: Total count 3798 - Distinct count 102 - Null count 0 | Column Name Meaning: endow percentile | Column Description: Institution's percent rank for endowment value per full-time equivalent student within sector \n\tgrad_100_value REAL, -- Example Values: `(10.0,)`, `(29.4,)`, `(0.0,)` | Value Statics: Total count 3467 - Distinct count 806 - Null count 331 | Column Name Meaning: graduation 100 value | Column Description: percentage of first-time, full-time, degree-seeking undergraduates who complete a degree or certificate program within 100 percent of expected time (bachelor's-seeking group at 4-year institutions) | Value Description: %, lower means harder to graduate for bachelor\n\tgrad_100_percentile INTEGER, -- Example Values: `(15,)`, `(67,)`, `(0,)` | Value Statics: Total count 3467 - Distinct count 101 - Null count 331 | Column Name Meaning: graduation 100 percentile | Column Description: Institution's percent rank for completers within 100 percent of normal time within sector \n\tgrad_150_value REAL, -- Example Values: `(29.1,)`, `(53.5,)`, `(66.7,)` | Value Statics: Total count 3467 - Distinct count 862 - Null count 331 | Column Name Meaning: graduation 150 value | Column Description: percentage of first-time, full-time, degree-seeking undergraduates who complete a degree or certificate program within 150 percent of expected time (bachelor's-seeking group at 4-year institutions) | Value Description: %, lower means harder to graduate for bachelor\n\tgrad_150_percentile INTEGER, -- Example Values: `(14,)`, `(66,)`, `(72,)` | Value Statics: Total count 3467 - Distinct count 101 - Null count 331 | Column Name Meaning: graduation 150 percentile | Column Description: Institution's percent rank for completers within 150 percent of normal time within sector \n\tpell_value REAL, -- Example Values: `(71.2,)`, `(35.1,)`, `(68.4,)` | Value Statics: Total count 3797 - Distinct count 832 - Null count 1 | Column Name Meaning: pell value | Column Description: percentage of undergraduates receiving a Pell Grant \n\tpell_percentile INTEGER, -- Example Values: `(98,)`, `(39,)`, `(91,)` | Value Statics: Total count 3797 - Distinct count 101 - Null count 1 | Column Name Meaning: pell percentile | Column Description: Institution's percent rank for undergraduate Pell recipients within sector \n\tretain_value REAL, -- Example Values: `(63.1,)`, `(80.2,)`, `(37.5,)` | Value Statics: Total count 3535 - Distinct count 649 - Null count 263 | Column Name Meaning: retain value | Column Description: share of freshman students retained for a second year \n\tretain_percentile INTEGER, -- Example Values: `(17,)`, `(70,)`, `(2,)` | Value Statics: Total count 3535 - Distinct count 101 - Null count 263 | Column Name Meaning: retain percentile | Column Description: Institution's percent rank for freshman retention percentage within sector \n\tft_fac_value REAL, -- Example Values: `(82.8,)`, `(92.4,)`, `(67.2,)` | Value Statics: Total count 3785 - Distinct count 897 - Null count 13 | Column Name Meaning: full time faculty value | Column Description: Percentage of employees devoted to instruction, research or public service who are full-time and do not work for an associated medical school \n\tft_fac_percentile INTEGER, -- Example Values: `(89,)`, `(98,)`, `(71,)` | Value Statics: Total count 3785 - Distinct count 100 - Null count 13 | Column Name Meaning: full time faculty percentile | Column Description: Institution's percent rank for full-time faculty share within sector \n\tvsa_year TEXT, -- Example Values: `2010`, `2011`, `NULL`, `2008`, `2009` | Value Statics: Total count 3787 - Distinct count 5 - Null count 11 | Column Name Meaning: voluntary system of accountability year | Column Description: Most recent year of Student Success and Progress Rate data available from the Voluntary System of Accountability \n\tvsa_grad_after4_first TEXT, -- Example Values: `('14.7',)`, `('22.3',)`, `('NULL',)` | Value Statics: Total count 3798 - Distinct count 221 - Null count 0 | Column Name Meaning: voluntary system of accountability after 4 year first time | Column Description: First-time, full-time students who graduated from this institution within four years \n\tvsa_grad_elsewhere_after4_first TEXT, -- Example Values: `('2',)`, `('2.9',)`, `('NULL',)` | Value Statics: Total count 3798 - Distinct count 77 - Null count 0 | Column Name Meaning: voluntary system of accountability graduation elsewhere after 4 year first time | Column Description: First-time, full-time students who graduated from another institution within four years \n\tvsa_enroll_after4_first TEXT, -- Example Values: `('36.5',)`, `('34.2',)`, `('NULL',)` | Value Statics: Total count 3798 - Distinct count 189 - Null count 0 | Column Name Meaning: voluntary system of accountability enrollment after 4 year first time | Column Description: First-time, full-time students who are still enrolled at this institution after four years \n\tvsa_enroll_elsewhere_after4_first TEXT, -- Example Values: `('16.1',)`, `('19.2',)`, `('NULL',)` | Value Statics: Total count 3798 - Distinct count 148 - Null count 0 | Column Name Meaning: voluntary system of accountability enrollment elsewhere after 4 year first time | Column Description: First-time, full-time students who are enrolled at another institution after four years \n\tvsa_grad_after6_first TEXT, -- Example Values: `('33',)`, `('42.6',)`, `('NULL',)` | Value Statics: Total count 3798 - Distinct count 230 - Null count 0 | Column Name Meaning: voluntary system of accountability graduation elsewhere after 6 year first time | Column Description: First-time, full-time students who graduated from this institution within six years | Value Description: null: not available\n\tvsa_grad_elsewhere_after6_first TEXT, -- Example Values: `('5.3',)`, `('10.5',)`, `('NULL',)` | Value Statics: Total count 3798 - Distinct count 124 - Null count 0 | Column Name Meaning: voluntary system of accountability graduation elsewhere after 6 year first time | Column Description: First-time, full-time students who graduated from another institution within six years \n\tvsa_enroll_after6_first TEXT, -- Example Values: `('12.5',)`, `('7.9',)`, `('NULL',)` | Value Statics: Total count 3798 - Distinct count 124 - Null count 0 | Column Name Meaning: voluntary system of accountability enrollment after 6 year first time | Column Description: First-time, full-time students who are still enrolled at this institution after six years \n\tvsa_enroll_elsewhere_after6_first TEXT, -- Example Values: `('14.6',)`, `('13.1',)`, `('NULL',)` | Value Statics: Total count 3798 - Distinct count 129 - Null count 0 | Column Name Meaning: voluntary system of accountability enrollment elsewhere after 6 year first time | Column Description: First-time, full-time students who are enrolled at another institution after six years \n\tvsa_grad_after4_transfer TEXT, -- Example Values: `('15.7',)`, `('NULL',)`, `('0',)` | Value Statics: Total count 3798 - Distinct count 206 - Null count 0 | Column Name Meaning: voluntary system of accountability transfer after 6 year first time | Column Description: Full-time transfer students who graduated from this institution within four years \n\tvsa_grad_elsewhere_after4_transfer TEXT, -- Example Values: `('1.5',)`, `('NULL',)`, `('0',)` | Value Statics: Total count 3798 - Distinct count 101 - Null count 0 | Column Name Meaning: voluntary system of accountability graduation elsewhere after 4 year | Column Description: Full-time transfer students who graduated from this institution within four years \n\tvsa_enroll_after4_transfer TEXT, -- Example Values: `('40.9',)`, `('NULL',)`, `('0',)` | Value Statics: Total count 3798 - Distinct count 141 - Null count 0 | Column Name Meaning: voluntary system of accountability enrollment after 4 years transfer | Column Description: Full-time transfer students who are still enrolled at this institution after four years \n\tvsa_enroll_elsewhere_after4_transfer TEXT, -- Example Values: `('17.2',)`, `('NULL',)`, `('0',)` | Value Statics: Total count 3798 - Distinct count 119 - Null count 0 | Column Name Meaning: voluntary system of accountability enrollment elsewhere after 4 years transfer | Column Description: Full-time transfer students who are enrolled at another institution after four years \n\tvsa_grad_after6_transfer TEXT, -- Example Values: `('36.4',)`, `('NULL',)`, `('0',)` | Value Statics: Total count 3798 - Distinct count 199 - Null count 0 | Column Name Meaning: voluntary system of accountability enrollment elsewhere after 6 years transfer | Column Description: Full-time transfer students who graduated from this institution within six years \n\tvsa_grad_elsewhere_after6_transfer TEXT, -- Example Values: `('5.6',)`, `('NULL',)`, `('0',)` | Value Statics: Total count 3798 - Distinct count 121 - Null count 0 | Column Name Meaning: voluntary system of accountability graduation elsewhere after 6 years transfer | Column Description: Full-time transfer students who graduated from another institution within six years \n\tvsa_enroll_after6_transfer TEXT, -- Example Values: `('17.2',)`, `('NULL',)`, `('0',)` | Value Statics: Total count 3798 - Distinct count 74 - Null count 0 | Column Name Meaning: voluntary system of accountability enrollment after 6 years transfer | Column Description: Full-time transfer students who are still enrolled at this institution after six years \n\tvsa_enroll_elsewhere_after6_transfer TEXT, -- Example Values: `('11.1',)`, `('NULL',)`, `('0',)` | Value Statics: Total count 3798 - Distinct count 98 - Null count 0 | Column Name Meaning: voluntary system of accountability enrollment elsewhere after 6 years transfer | Column Description: Full-time transfer students who are enrolled at another institution after six years \n\tsimilar TEXT, -- \n\tstate_sector_ct INTEGER, -- Example Values: `(13,)`, `(16,)`, `(25,)` | Value Statics: Total count 3798 - Distinct count 51 - Null count 0 \n\tcarnegie_ct INTEGER, -- Example Values: `(386,)`, `(106,)`, `(252,)` | Value Statics: Total count 3798 - Distinct count 29 - Null count 0 \n\tcounted_pct TEXT, -- Example Values: `('99.7|07',)`, `('56.0|07',)`, `('100.0|07',)` | Value Statics: Total count 3798 - Distinct count 1345 - Null count 0 \n\tnicknames TEXT, -- Example Values: `('NULL',)`, `('UAB',)`, `('UAH',)` | Value Statics: Total count 3798 - Distinct count 275 - Null count 0 \n\tcohort_size INTEGER, -- Example Values: `(882,)`, `(1376,)`, `(3,)` | Value Statics: Total count 3467 - Distinct count 1409 - Null count 331 \n);\n\nCREATE TABLE institution_grads\n(\n\tunitid INTEGER, -- Example Values: `(100760,)`, `(101028,)`, `(101143,)` | Value Statics: Total count 100000 - Distinct count 1852 - Null count 0 | Column Name Meaning: unit id | Column Description: Education Unit ID number \n\tyear INTEGER, -- Example Values: `2011`, `2012`, `2013`, `2010`, `2009` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0 | Column Description: year of data release \n\tgender TEXT, -- Example Values: `B`, `M`, `F` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0 | Column Description: gender of students | Value Description: 'B' = both genders; 'M' = male; 'F' = female\n\trace TEXT, -- Example Values: `X`, `W`, `B`, `H`, `Ai` | Value Statics: Total count 100000 - Distinct count 6 - Null count 0 | Column Description: race/ethnicity of students | Value Description: 'X' = all students; 'Ai' = American Indian; 'A' = Asian; 'B' = Black; 'H' = Hispanic; 'W' = White\n\tcohort TEXT, -- Example Values: `2y all`, `4y other`, `4y bach` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: degree-seeking cohort type | Value Description: • '4y bach' = Bachelor's/equivalent-seeking cohort at 4-year institutions; • '4y other' = Students seeking another type of degree or certificate at a 4-year institution; • '2y all' = Degree-seeking students at 2-year institutions 4-year degree is bachelor's degree 2-year degree is associate's degree\n\tgrad_cohort TEXT, -- Example Values: `('446',)`, `('185',)`, `('261',)` | Value Statics: Total count 100000 - Distinct count 1999 - Null count 0 | Column Name Meaning: graduation cohort | Column Description: Number of first-time, full-time, degree-seeking students in the cohort being tracked, minus any exclusions \n\tgrad_100 TEXT, -- Example Values: `('73',)`, `('NULL',)`, `('40',)` | Value Statics: Total count 100000 - Distinct count 512 - Null count 0 | Column Name Meaning: graduation 100 | Column Description: Number of students who graduated within 100 percent of normal/expected time \n\tgrad_150 TEXT, -- Example Values: `('105',)`, `('40',)`, `('65',)` | Value Statics: Total count 100000 - Distinct count 908 - Null count 0 | Column Name Meaning: graduation 150 | Column Description: Number of students who graduated within 150 percent of normal/expected time \n\tgrad_100_rate TEXT, -- Example Values: `('16.4',)`, `('NULL',)`, `('6.7',)` | Value Statics: Total count 100000 - Distinct count 795 - Null count 0 | Column Description: Percentage of students who graduated within 100 percent of normal/expected time \n\tgrad_150_rate TEXT, -- Example Values: `('23.5',)`, `('21.6',)`, `('24.9',)` | Value Statics: Total count 100000 - Distinct count 988 - Null count 0 | Column Description: Percentage of students who graduated within 150 percent of normal/expected time \n\tforeign key (unitid) references institution_details(unitid),\n);\n\nCREATE TABLE state_sector_grads\n(\n\tstateid INTEGER, -- Example Values: `(1,)`, `(2,)`, `(4,)` | Value Statics: Total count 84942 - Distinct count 52 - Null count 0 | Column Name Meaning: state id | Column Description: state FIPS (Federal Information Processing System) code \n\tstate TEXT, -- Example Values: `('Alabama',)`, `('Alaska',)`, `('Arizona',)` | Value Statics: Total count 84942 - Distinct count 52 - Null count 0 | Column Name Meaning: state name | Column Description: state name \n\tstate_abbr TEXT, -- Example Values: `('AL',)`, `('AK',)`, `('AZ',)` | Value Statics: Total count 84942 - Distinct count 52 - Null count 0 \n\tcontrol TEXT, -- Example Values: `Private for-profit`, `Private not-for-profit`, `Public` | Value Statics: Total count 84942 - Distinct count 3 - Null count 0 | Value Description: Public, Private not-for-profit, Private for-profit\n\tlevel TEXT, -- Example Values: `4-year`, `2-year` | Value Statics: Total count 84942 - Distinct count 2 - Null count 0 | Column Description: Level of institution | Value Description: 4-year: bachelor's degree 2-year: associate's degree\n\tyear INTEGER, -- Example Values: `2011`, `2012`, `2013`, `2002`, `2003` | Value Statics: Total count 84942 - Distinct count 12 - Null count 0 | Column Description: year of data release \n\tgender TEXT, -- Example Values: `B`, `F`, `M` | Value Statics: Total count 84942 - Distinct count 3 - Null count 0 | Column Description: gender of students | Value Description: B' = both genders; 'M' = male; 'F' = female\n\trace TEXT, -- Example Values: `A`, `Ai`, `B`, `H`, `W` | Value Statics: Total count 84942 - Distinct count 6 - Null count 0 | Column Description: race/ethnicity of students | Value Description: 'X' = all students; 'Ai' = American Indian; 'A' = Asian; 'B' = Black; 'H' = Hispanic; 'W' = White\n\tcohort TEXT, -- Example Values: `4y bach`, `4y other`, `2y all` | Value Statics: Total count 84942 - Distinct count 3 - Null count 0 | Column Description: degree-seeking cohort type | Value Description: • '4y bach' = Bachelor's/equivalent-seeking cohort at 4-year institutions; • '4y other' = Students seeking another type of degree or certificate at a 4-year institution; • '2y all' = Degree-seeking students at 2-year institutions 4-year degree is bachelor's degree 2-year degree is associate's degree\n\tgrad_cohort TEXT, -- Example Values: `('0',)`, `('1',)`, `('51',)` | Value Statics: Total count 84942 - Distinct count 9815 - Null count 0 | Column Name Meaning: graduation cohort | Column Description: Number of first-time, full-time, degree-seeking students in the cohort being tracked, minus any exclusions \n\tgrad_100 TEXT, -- Example Values: `('0',)`, `('2',)`, `('15',)` | Value Statics: Total count 84942 - Distinct count 4582 - Null count 0 | Column Name Meaning: graduation 100 | Column Description: Number of students who graduated within 100 percent of normal/expected time \n\tgrad_150 TEXT, -- Example Values: `('0',)`, `('3',)`, `('18',)` | Value Statics: Total count 84942 - Distinct count 6675 - Null count 0 | Column Name Meaning: graduation 150 | Column Description: Number of students who graduated within 150 percent of normal/expected time \n\tgrad_100_rate TEXT, -- Example Values: `('NULL',)`, `('0',)`, `('3.9',)` | Value Statics: Total count 84942 - Distinct count 846 - Null count 0 | Column Description: Percentage of students who graduated within 100 percent of normal/expected time \n\tgrad_150_rate TEXT, -- Example Values: `('NULL',)`, `('0',)`, `('5.9',)` | Value Statics: Total count 84942 - Distinct count 963 - Null count 0 | Column Description: Percentage of students who graduated within 150 percent of normal/expected time \n\tgrad_cohort_ct INTEGER, -- Example Values: `(9,)`, `(16,)`, `(13,)` | Value Statics: Total count 84942 - Distinct count 154 - Null count 0 | Column Name Meaning: graduation cohort count | Column Description: Number of institutions with data included in the cohort \n\tforeign key (state) references institution_details(state),\n\tforeign key (stateid) references state_sector_details(stateid),\n);\n\nCREATE TABLE state_sector_details\n(\n\tstateid INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 312 - Distinct count 52 - Null count 0 | Column Name Meaning: state id | Column Description: state FIPS (Federal Information Processing System) code \n\tstate TEXT references institution_details (state), -- Example Values: `('United States',)`, `('Alabama',)`, `('Alaska',)` | Value Statics: Total count 312 - Distinct count 52 - Null count 0 | Column Name Meaning: state name | Column Description: state name \n\tstate_post TEXT, -- Example Values: `('U.S.',)`, `('Ala.',)`, `('Alaska',)` | Value Statics: Total count 312 - Distinct count 52 - Null count 0 \n\tlevel TEXT, -- Example Values: `2-year`, `4-year` | Value Statics: Total count 312 - Distinct count 2 - Null count 0 | Column Description: Level of institution | Value Description: 4-year: bachelor's degree 2-year: associate's degree\n\tcontrol TEXT, -- Example Values: `Private for-profit`, `Private not-for-profit`, `Public` | Value Statics: Total count 312 - Distinct count 3 - Null count 0 | Value Description: Public, Private not-for-profit, Private for-profit\n\tschools_count INTEGER, -- Example Values: `(632,)`, `(1180,)`, `(527,)` | Value Statics: Total count 312 - Distinct count 58 - Null count 0 \n\tcounted_pct TEXT, -- Example Values: `('NULL',)`, `('61',)`, `('62',)` | Value Statics: Total count 312 - Distinct count 209 - Null count 0 | Column Name Meaning: counted percentage | Column Description: Percentage of students in the entering class (Fall 2007 at 4-year institutions, Fall 2010 at 2-year institutions) who are first-time, full-time, degree-seeking students and generally part of the official graduation rate \n\tawards_per_state_value TEXT, -- Example Values: `('NULL',)`, `('18.8',)`, `('17.8',)` | Value Statics: Total count 312 - Distinct count 161 - Null count 0 | Column Name Meaning: awards per state value | Column Description: Completions per 100 FTE (full-time equivalent) undergraduate students, state and sector average \n\tawards_per_natl_value REAL, -- Example Values: `21.5`, `22.5`, `24.6`, `16.5`, `25.9` | Value Statics: Total count 312 - Distinct count 6 - Null count 0 | Column Name Meaning: awards per national value | Column Description: Completions per 100 FTE (full-time equivalent) undergraduate students, national sector average \n\texp_award_state_value TEXT, -- Example Values: `('NULL',)`, `('75743',)`, `('92268',)` | Value Statics: Total count 312 - Distinct count 265 - Null count 0 | Column Name Meaning: expected award state value | Column Description: Spending per completion, state and sector average \n\texp_award_natl_value INTEGER, -- Example Values: `66436`, `101725`, `38763`, `37780`, `34510` | Value Statics: Total count 312 - Distinct count 6 - Null count 0 | Column Name Meaning: expected award national value | Column Description: Spending per completion, national sector average \n\tstate_appr_value TEXT, -- Example Values: `('NULL',)`, `('290.68',)`, `('496.78',)` | Value Statics: Total count 312 - Distinct count 50 - Null count 0 | Column Name Meaning: state appropriation value | Column Description: State appropriations to higher education in fiscal year 2011 per resident \n\tstate_appr_rank TEXT, -- Example Values: `('NULL',)`, `('11',)`, `('2',)` | Value Statics: Total count 312 - Distinct count 50 - Null count 0 \n\tgrad_rate_rank TEXT, -- Example Values: `('23',)`, `('18',)`, `('8',)` | Value Statics: Total count 312 - Distinct count 53 - Null count 0 \n\tawards_per_rank TEXT, -- Example Values: `('NULL',)`, `('42',)`, `('49',)` | Value Statics: Total count 312 - Distinct count 52 - Null count 0 \n\tprimary key (stateid, level, control),\n);" }
public_review_platform
{ "db_schema": "CREATE TABLE Attributes\n(\n\tattribute_id INTEGER constraint Attributes_pk primary key,\n\tattribute_name TEXT, -- Example Values: `('Alcohol',)`, `('Waiter Service',)`, `('Delivery',)` | Value Statics: Total count 80 - Distinct count 80 - Null count 0 | Column Name Meaning: attribute name | Column Description: the name of the attribute \n);\n\nCREATE TABLE Categories\n(\n\tcategory_id INTEGER constraint Categories_pk primary key,\n\tcategory_name TEXT, -- Example Values: `('Active Life',)`, `('Arts & Entertainment',)`, `('Stadiums & Arenas',)` | Value Statics: Total count 591 - Distinct count 591 - Null count 0 | Column Name Meaning: category name \n);\n\nCREATE TABLE Compliments\n(\n\tcompliment_id INTEGER constraint Compliments_pk primary key,\n\tcompliment_type TEXT, -- Example Values: `photos`, `cool`, `hot`, `note`, `more` | Value Statics: Total count 11 - Distinct count 11 - Null count 0 | Column Name Meaning: compliment type \n);\n\nCREATE TABLE Days\n(\n\tday_id INTEGER constraint Days_pk primary key,\n\tday_of_week TEXT, -- Example Values: `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday` | Value Statics: Total count 7 - Distinct count 7 - Null count 0 | Column Name Meaning: day of week | Column Description: indicate the day of the week \n);\n\nCREATE TABLE Years\n(\n\tyear_id INTEGER constraint Years_pk primary key,\n\tactual_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 10 - Distinct count 10 - Null count 0 | Column Name Meaning: actual year | Column Description: actual year \n);\n\nCREATE TABLE Business_Attributes\n(\n\tattribute_id INTEGER constraint Business_Attributes_Attributes_attribute_id_fk references Attributes, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 32 - Null count 0 | Column Name Meaning: attribute id | Column Description: id number identifying the attribute \n\tbusiness_id INTEGER constraint Business_Attributes_Business_business_id_fk references Business, -- Example Values: `(2,)`, `(3,)`, `(13,)` | Value Statics: Total count 100000 - Distinct count 12833 - Null count 0 | Column Name Meaning: business id | Column Description: id number identifying the business \n\tattribute_value TEXT, -- Example Values: `('none',)`, `('full_bar',)`, `('beer_and_wine',)` | Value Statics: Total count 100000 - Distinct count 26 - Null count 0 | Column Name Meaning: attribute value | Column Description: sort of the attributes for each business | Value Description: “None”, “No” or “FALSE” means the business does not have the attribute.\n\tconstraint Business_Attributes_pk primary key (attribute_id, business_id),\n);\n\nCREATE TABLE Business_Categories\n(\n\tbusiness_id INTEGER constraint Business_Categories_Business_business_id_fk references Business, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 43703 - Distinct count 15470 - Null count 0 | Column Name Meaning: business id | Column Description: id number identifying the business \n\tcategory_id INTEGER constraint Business_Categories_Categories_category_id_fk references Categories, -- Example Values: `(8,)`, `(143,)`, `(18,)` | Value Statics: Total count 43703 - Distinct count 591 - Null count 0 | Column Name Meaning: category id | Column Description: id number identifying the categories \n\tconstraint Business_Categories_pk primary key (business_id, category_id),\n);\n\nCREATE TABLE Business_Hours\n(\n\tbusiness_id INTEGER constraint Business_Hours_Business_business_id_fk references Business, -- Example Values: `(2,)`, `(3,)`, `(4,)` | Value Statics: Total count 47831 - Distinct count 7452 - Null count 0 | Column Name Meaning: business id | Column Description: id number identifying the business \n\tday_id INTEGER constraint Business_Hours_Days_day_id_fk references Days, -- Example Values: `2`, `3`, `4`, `5`, `6` | Value Statics: Total count 47831 - Distinct count 7 - Null count 0 | Column Name Meaning: day id | Column Description: id number identifying each day of the week \n\topening_time TEXT, -- Example Values: `('11AM',)`, `('12PM',)`, `('10AM',)` | Value Statics: Total count 47831 - Distinct count 24 - Null count 0 | Column Name Meaning: opening time | Column Description: opening time of the business \n\tclosing_time TEXT, -- Example Values: `('8PM',)`, `('9PM',)`, `('6PM',)` | Value Statics: Total count 47831 - Distinct count 24 - Null count 0 | Column Name Meaning: closing time | Column Description: closing time of the business | Value Description: how much time does this business open: closing_time - opening_time\n\tconstraint Business_Hours_pk primary key (business_id, day_id),\n);\n\nCREATE TABLE Checkins\n(\n\tbusiness_id INTEGER constraint Checkins_Business_business_id_fk references Business, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 80038 - Distinct count 11434 - Null count 0 | Column Name Meaning: business id | Column Description: id number identifying the business \n\tday_id INTEGER constraint Checkins_Days_day_id_fk references Days, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 80038 - Distinct count 7 - Null count 0 | Column Name Meaning: day id | Column Description: id number identifying each day of the week \n\tlabel_time_0 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0 | Column Description: indicates times of checkins on a business | Value Description: label_time_0: 12:00 a.m. label_time_23: 23:00 p.m. If the label_time recorded \"None\" for check-in on one day, then it means the business is closed on that day.\n\tlabel_time_1 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0 \n\tlabel_time_2 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0 \n\tlabel_time_3 TEXT, -- Example Values: `None`, `Low`, `Medium` | Value Statics: Total count 80038 - Distinct count 3 - Null count 0 \n\tlabel_time_4 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0 \n\tlabel_time_5 TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_6 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_7 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_8 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_9 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_10 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_11 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_12 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_13 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_14 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_15 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_16 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_17 TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_18 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_19 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_20 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_21 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_22 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 80038 - Distinct count 5 - Null count 0 \n\tlabel_time_23 TEXT, -- Example Values: `None`, `Low`, `Medium`, `High` | Value Statics: Total count 80038 - Distinct count 4 - Null count 0 \n\tconstraint Checkins_pk primary key (business_id, day_id),\n);\n\nCREATE TABLE Elite\n(\n\tuser_id INTEGER constraint Elite_Users_user_id_fk references Users, -- Example Values: `(3,)`, `(19,)`, `(33,)` | Value Statics: Total count 16366 - Distinct count 5008 - Null count 0 | Column Name Meaning: user id | Column Description: id number identifying the users \n\tyear_id INTEGER constraint Elite_Years_year_id_fk references Years, -- Example Values: `2010`, `2011`, `2012`, `2013`, `2014` | Value Statics: Total count 16366 - Distinct count 10 - Null count 0 | Column Name Meaning: year id | Column Description: id number identifying the year \n\tconstraint Elite_pk primary key (user_id, year_id),\n);\n\nCREATE TABLE Reviews\n(\n\tbusiness_id INTEGER constraint Reviews_Business_business_id_fk references Business, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 4827 - Null count 0 | Column Name Meaning: business id | Column Description: the number identifying the business \n\tuser_id INTEGER constraint Reviews_Users_user_id_fk references Users, -- Example Values: `(36129,)`, `(40299,)`, `(59125,)` | Value Statics: Total count 100000 - Distinct count 36728 - Null count 0 | Column Name Meaning: user id | Column Description: the number identifying the user who comments on this business \n\treview_stars INTEGER, -- Example Values: `2`, `1`, `5`, `4`, `3` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0 | Column Name Meaning: review stars | Column Description: review on this business | Value Description: 5 – Great experience 4 – Good experience 3 – Average experience 2 – Bad experience 1 - Terrible experience\n\treview_votes_funny TEXT, -- Example Values: `None`, `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0 | Column Name Meaning: review votes funny | Column Description: the amount of funny votes that the user received for the review | Value Description: If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\n\treview_votes_useful TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0 | Column Name Meaning: review votes useful | Column Description: how many useful votes that the user received for the review \n\treview_votes_cool TEXT, -- Example Values: `None`, `Low`, `Medium`, `Uber`, `High` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0 | Column Name Meaning: review votes cool | Column Description: how many cool votes that the user received for the review \n\treview_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0 | Column Name Meaning: review length | Column Description: The length of the review written by the user \n\tconstraint Reviews_pk primary key (business_id, user_id),\n);\n\nCREATE TABLE Tips\n(\n\tbusiness_id INTEGER constraint Tips_Business_business_id_fk references Business, -- Example Values: `(2,)`, `(3,)`, `(6,)` | Value Statics: Total count 87157 - Distinct count 10473 - Null count 0 | Column Name Meaning: business id | Column Description: the number identifying the business \n\tuser_id INTEGER constraint Tips_Users_user_id_fk references Users, -- Example Values: `(12490,)`, `(16328,)`, `(19191,)` | Value Statics: Total count 87157 - Distinct count 15231 - Null count 0 | Column Name Meaning: user id | Column Description: the number identifying the user who comments on this business \n\tlikes INTEGER, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 87157 - Distinct count 4 - Null count 0 | Column Description: how many likes of this tips | Value Description: more likes mean this tip is more valuable\n\ttip_length TEXT, -- Example Values: `Medium`, `Short`, `Long` | Value Statics: Total count 87157 - Distinct count 3 - Null count 0 | Column Name Meaning: tip length | Column Description: length of the tip \n\tconstraint Tips_pk primary key (business_id, user_id),\n);\n\nCREATE TABLE Users_Compliments\n(\n\tcompliment_id INTEGER constraint Users_Compliments_Compliments_compliment_id_fk references Compliments, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 98810 - Distinct count 11 - Null count 0 | Column Name Meaning: compliment id | Column Description: the id number indicating the compliment \n\tuser_id INTEGER constraint Users_Compliments_Users_user_id_fk references Users, -- Example Values: `(3,)`, `(19,)`, `(45,)` | Value Statics: Total count 98810 - Distinct count 26799 - Null count 0 | Column Name Meaning: user id | Column Description: the id number indicating the user \n\tnumber_of_compliments TEXT, -- Example Values: `Medium`, `Low`, `High`, `Uber` | Value Statics: Total count 98810 - Distinct count 4 - Null count 0 | Column Name Meaning: number of compliments | Column Description: how many compliments a user has received from other users | Value Description: more number_of_compliments indicates this user is more welcome or he / she is high-quality user\n\tconstraint Users_Compliments_pk primary key (compliment_id, user_id),\n);\n\nCREATE TABLE Business\n(\n\tbusiness_id INTEGER constraint Business_pk primary key,\n\tactive TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 15585 - Distinct count 2 - Null count 0 | Column Description: whether the business is still actively running until now | Value Description: commonsense reasoning: � \"True\": the business is still running � \"False\": the business is closed or not running now\n\tcity TEXT, -- Example Values: `('Phoenix',)`, `('Scottsdale',)`, `('Glendale',)` | Value Statics: Total count 15585 - Distinct count 68 - Null count 0 | Column Description: The city where the business is located \n\tstate TEXT, -- Example Values: `AZ`, `SC`, `CA` | Value Statics: Total count 15585 - Distinct count 3 - Null count 0 | Column Description: The state where the business is located \n\tstars REAL, -- Example Values: `3.0`, `4.5`, `4.0`, `5.0`, `3.5` | Value Statics: Total count 15585 - Distinct count 9 - Null count 0 | Column Description: ratings of the business | Value Description: 5 � Great experience 4 � Good experience 3 � Average experience 2 � Bad experience 1 - Terrible experience � the rating of >3 stars referring to \"wonderful experience\" or positive comments and vice versa\n\treview_count TEXT, -- Example Values: `Low`, `Medium`, `High`, `Uber` | Value Statics: Total count 15585 - Distinct count 4 - Null count 0 | Column Name Meaning: review count | Column Description: the total number of reviews the users have written for a business | Value Description: � If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. � higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\n);\n\nCREATE TABLE Users\n(\n\tuser_id INTEGER constraint Users_pk primary key,\n\tuser_yelping_since_year INTEGER, -- Example Values: `2012`, `2010`, `2009`, `2008`, `2013` | Value Statics: Total count 70817 - Distinct count 11 - Null count 0 | Column Name Meaning: user yelping since year | Column Description: the time when the user join Yelp \n\tuser_average_stars TEXT, -- Example Values: `4.0`, `2.5`, `4.5`, `5.0`, `2.0` | Value Statics: Total count 70817 - Distinct count 10 - Null count 0 | Column Name Meaning: user average stars | Column Description: the average ratings of all review \n\tuser_votes_funny TEXT, -- Example Values: `Low`, `None`, `Uber`, `Medium`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0 | Column Name Meaning: user votes funny | Column Description: total number of funny votes sent by the user \n\tuser_votes_useful TEXT, -- Example Values: `Low`, `Medium`, `Uber`, `None`, `High` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0 | Column Name Meaning: user votes useful | Column Description: how many useful votes created by the user \n\tuser_votes_cool TEXT, -- Example Values: `Low`, `Uber`, `None`, `High`, `Medium` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0 | Column Name Meaning: user votes cool | Column Description: how many cool votes created by the user \n\tuser_review_count TEXT, -- Example Values: `Medium`, `High`, `Low`, `Uber` | Value Statics: Total count 70817 - Distinct count 4 - Null count 0 | Column Name Meaning: user review count | Column Description: total number of reviews the user has written \n\tuser_fans TEXT, -- Example Values: `Low`, `None`, `Medium`, `High`, `Uber` | Value Statics: Total count 70817 - Distinct count 5 - Null count 0 | Column Name Meaning: user fans | Column Description: total number of fans / followers the user has | Value Description: Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\n);" }
simpson_episodes
{ "db_schema": "CREATE TABLE Episode\n(\n\tepisode_id TEXT constraint Episode_pk primary key,\n\tseason INTEGER, -- Example Values: `20` | Value Statics: Total count 21 - Distinct count 1 - Null count 0 | Column Description: the season of the episode \n\tepisode INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 21 - Distinct count 21 - Null count 0 | Column Description: the episode number of the episode \n\tnumber_in_series INTEGER, -- Example Values: `(421,)`, `(422,)`, `(423,)` | Value Statics: Total count 21 - Distinct count 21 - Null count 0 | Column Name Meaning: number in series | Column Description: the number in series \n\ttitle TEXT, -- Example Values: `('Sex, Pies and Idiot Scrapes',)`, `('Lost Verizon',)`, `('Double, Double, Boy in Trouble',)` | Value Statics: Total count 21 - Distinct count 21 - Null count 0 | Column Description: the title of the episode \n\tsummary TEXT, -- | Column Description: the summary of the episode \n\tair_date TEXT, -- Example Values: `('2008-09-28',)`, `('2008-10-05',)`, `('2008-10-19',)` | Value Statics: Total count 21 - Distinct count 21 - Null count 0 | Column Name Meaning: air date | Column Description: the air date of the episode | Value Description: YYYY-MM-DD\n\tepisode_image TEXT, --| Column Name Meaning: episode image | Column Description: the image of episode \n\trating REAL, -- Example Values: `7.2`, `7.0`, `7.1`, `6.5`, `6.6` | Value Statics: Total count 21 - Distinct count 9 - Null count 0 | Column Description: the rating of episode | Value Description: 0.0 - 10.0 Higher ratings mean higher quality and better response. • excellent: 7.0 < rating <= 10.0 • average: 5.0 < rating <= 7.0 • bad: 0.0 < rating <= 5.0 not bad: average, excellent\n\tvotes INTEGER, -- Example Values: `(1192,)`, `(1055,)`, `(1015,)` | Value Statics: Total count 21 - Distinct count 21 - Null count 0 | Column Description: the votes of episode | Value Description: Higher votes mean more audience supports (or popular).\n);\n\nCREATE TABLE Person\n(\n\tname TEXT constraint Person_pk primary key,\n\tbirthdate TEXT, -- Example Values: `('1963-05-04',)`, `('1975-03-30',)`, `('1969-12-04',)` | Value Statics: Total count 132 - Distinct count 132 - Null count 237 | Column Name Meaning: birth date | Column Description: the birth date of the crew | Value Description: YYYY-MM-DD\n\tbirth_name TEXT, -- Example Values: `('Marc Edward Wilmore',)`, `('Valentina Lantigua',)`, `('Joseph Stewart Burns',)` | Value Statics: Total count 107 - Distinct count 107 - Null count 262 | Column Name Meaning: birth name | Column Description: the birth name of the crew \n\tbirth_place TEXT, -- Example Values: `('USA',)`, `('Brooklyn',)`, `('Chicago',)` | Value Statics: Total count 123 - Distinct count 73 - Null count 246 | Column Name Meaning: birth place | Column Description: the birth place of the crew \n\tbirth_region TEXT, -- Example Values: `('California',)`, `('New York',)`, `('Illinois',)` | Value Statics: Total count 111 - Distinct count 24 - Null count 258 | Column Name Meaning: birth region | Column Description: the birth region of the crew \n\tbirth_country TEXT, -- Example Values: `USA`, `Canada`, `Ireland`, `Philippines`, `Czechoslovakia` | Value Statics: Total count 119 - Distinct count 9 - Null count 250 | Column Name Meaning: birth country | Column Description: the birth country of the crew \n\theight_meters REAL, -- Example Values: `(1.85,)`, `(1.75,)`, `(2.03,)` | Value Statics: Total count 50 - Distinct count 24 - Null count 319 | Column Name Meaning: height meters | Column Description: the height of the crew | Value Description: the unit is meter\n\tnickname TEXT, -- Example Values: `Jim`, `Doofus`, `Hoops`, `Boop`, `King Cool` | Value Statics: Total count 15 - Distinct count 15 - Null count 354 | Column Description: the nickname of the crew \n);\n\nCREATE TABLE Award\n(\n\taward_id INTEGER primary key,\n\torganization TEXT, -- Example Values: `Primetime Emmy Awards`, `Annie Awards`, `Image Awards (NAACP)`, `Jupiter Award`, `Kids' Choice Awards, USA` | Value Statics: Total count 75 - Distinct count 11 - Null count 0 | Column Description: the organization that holds the award \n\tyear INTEGER, -- Example Values: `2009`, `2010`, `2017`, `2018` | Value Statics: Total count 75 - Distinct count 4 - Null count 0 | Column Description: year of award \n\taward_category TEXT, -- Example Values: `Primetime Emmy`, `Annie`, `Image Award`, `Jupiter Award`, `Blimp Award` | Value Statics: Total count 75 - Distinct count 11 - Null count 0 | Column Description: the category of the award \n\taward TEXT, -- Example Values: `Outstanding Voice-Over Performance`, `Outstanding Animated Program (For Programming Less`, `Outstanding Music Composition for a Series (Origin`, `Writing in a Television Production`, `Best Animated Television Production` | Value Statics: Total count 75 - Distinct count 18 - Null count 0 | Column Description: the name of the award \n\tperson TEXT, -- Example Values: `('Dan Castellaneta',)`, `('Hank Azaria',)`, `('Harry Shearer',)` | Value Statics: Total count 64 - Distinct count 41 - Null count 11 | Column Description: the person who gets the award \n\trole TEXT, -- Example Values: `executive producer`, `co-executive producer`, `co-executive producer, writer`, `animation producer`, `writer` | Value Statics: Total count 22 - Distinct count 11 - Null count 53 | Column Description: the role of the honoree \n\tepisode_id TEXT, -- Example Values: `S20-E18`, `S20-E16`, `S20-E8`, `S20-E13`, `S20-E20` | Value Statics: Total count 43 - Distinct count 11 - Null count 32 | Column Name Meaning: episode id | Column Description: S stands for 'Season' and E stands for 'Episode' \n\tseason TEXT, -- | Column Description: the season of the awarded work \n\tsong TEXT, -- | Column Description: the theme song of the awarded work \n\tresult TEXT, -- Example Values: `Winner`, `Nominee` | Value Statics: Total count 75 - Distinct count 2 - Null count 0 | Column Description: the final award result | Value Description: • Nominee: the prospective recipient of the award. The nominee are people who were nominated but didn't win the award. • Winner: the people who finally won the award\n\tforeign key (person) references Person(name),\n\tforeign key (episode_id) references Episode(episode_id),\n);\n\nCREATE TABLE Character_Award\n(\n\taward_id INTEGER, -- Example Values: `325`, `326`, `327` | Value Statics: Total count 12 - Distinct count 3 - Null count 0 | Column Name Meaning: award id | Column Description: A unique identifier for the award \n\tcharacter TEXT, -- Example Values: `Homer Simpson`, `Moe Szyslak`, `Kent Brockman`, `Lenny`, `Mr. Burns` | Value Statics: Total count 12 - Distinct count 6 - Null count 0 | Column Description: the name of the awarded character \n\tforeign key (award_id) references Award(award_id),\n);\n\nCREATE TABLE Credit\n(\n\tepisode_id TEXT, -- Example Values: `('S20-E10',)`, `('S20-E13',)`, `('S20-E14',)` | Value Statics: Total count 4557 - Distinct count 21 - Null count 0 | Column Name Meaning: episode id | Column Description: A unique identifier for episodes \n\tcategory TEXT, -- Example Values: `Casting Department`, `Animation Department`, `Sound Department`, `Editorial Department`, `Produced by` | Value Statics: Total count 4557 - Distinct count 17 - Null count 0 | Column Description: the category of the credit \n\tperson TEXT, -- Example Values: `('Bonita Pietila',)`, `('Adam Kuhlman',)`, `('Carlton Batten',)` | Value Statics: Total count 4557 - Distinct count 369 - Null count 0 | Column Description: the name of cast and crew members \n\trole TEXT, -- Example Values: `('casting',)`, `('additional timer',)`, `('adr engineer',)` | Value Statics: Total count 4557 - Distinct count 388 - Null count 0 | Column Description: the role of the person \n\tcredited TEXT, -- Example Values: `true`, `false` | Value Statics: Total count 4557 - Distinct count 2 - Null count 0 | Column Description: whether the person is credited | Value Description: true/ false • true: The person is included in the credit list • false: The person isn't included in the credit list\n\tforeign key (episode_id) references Episode(episode_id),\n\tforeign key (person) references Person(name),\n);\n\nCREATE TABLE Keyword\n(\n\tepisode_id TEXT, -- Example Values: `('S20-E1',)`, `('S20-E10',)`, `('S20-E11',)` | Value Statics: Total count 307 - Distinct count 21 - Null count 0 | Column Name Meaning: episode id | Column Description: A unique identifier for episodes \n\tkeyword TEXT, -- Example Values: `('1930s to 2020s',)`, `('erotic bakery',)`, `('cake',)` | Value Statics: Total count 307 - Distinct count 264 - Null count 0 | Column Description: the keywords of episode \n\tprimary key (episode_id, keyword),\n\tforeign key (episode_id) references Episode(episode_id),\n);\n\nCREATE TABLE Vote\n(\n\tepisode_id TEXT, -- Example Values: `('S20-E1',)`, `('S20-E10',)`, `('S20-E11',)` | Value Statics: Total count 210 - Distinct count 21 - Null count 0 | Column Name Meaning: episode id | Column Description: A unique identifier for episodes \n\tstars INTEGER, -- Example Values: `2`, `3`, `4`, `5`, `1` | Value Statics: Total count 210 - Distinct count 10 - Null count 0 | Column Description: the star score of the episode | Value Description: 1-10 Star classification is a type of rating scale. The lowest star is 1 which means the worst, and the highest star is 10 which means the best.\n\tvotes INTEGER, -- Example Values: `(16,)`, `(20,)`, `(36,)` | Value Statics: Total count 210 - Distinct count 130 - Null count 0 | Column Description: the number of votes of the star score \n\tpercent REAL, -- Example Values: `(1.3,)`, `(1.7,)`, `(3.0,)` | Value Statics: Total count 210 - Distinct count 136 - Null count 0 | Column Description: the percent of the vote number of the star score | Value Description: percent = the number of votes for the star / the total amount of votes for all stars\n\tforeign key (episode_id) references Episode(episode_id),\n);" }
student_loan
{ "db_schema": "CREATE TABLE bool\n(\n\t\"name\" TEXT default '' not null primary key,\n);\n\nCREATE TABLE person\n(\n\t\"name\" TEXT default '' not null primary key,\n);\n\nCREATE TABLE disabled\n(\n\t\"name\" TEXT default '' not null primary key,\n\tforeign key (\"name\") references person (\"name\") on update cascade on delete cascade,\n);\n\nCREATE TABLE enlist\n(\n\t\"name\" TEXT not null, -- Example Values: `('student40',)`, `('student51',)`, `('student109',)` | Value Statics: Total count 306 - Distinct count 283 - Null count 0 | Column Description: the name of the enlisted students \n\torgan TEXT not null, -- Example Values: `fire_department`, `air_force`, `navy`, `marines`, `foreign_legion` | Value Statics: Total count 306 - Distinct count 7 - Null count 0 | Column Name Meaning: organization | Column Description: the organization that the student enlisted in \n\tforeign key (\"name\") references person (\"name\") on update cascade on delete cascade,\n);\n\nCREATE TABLE filed_for_bankrupcy\n(\n\t\"name\" TEXT default '' not null primary key,\n\tforeign key (\"name\") references person (\"name\") on update cascade on delete cascade,\n);\n\nCREATE TABLE longest_absense_from_school\n(\n\t\"name\" TEXT default '' not null primary key,\n\t\"month\" INTEGER default 0 null, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 1000 - Distinct count 10 - Null count 0 | Column Description: the duration of absence | Value Description: 0 means that the student has never been absent.\n\tforeign key (\"name\") references person (\"name\") on update cascade on delete cascade,\n);\n\nCREATE TABLE male\n(\n\t\"name\" TEXT default '' not null primary key,\n\tforeign key (\"name\") references person (\"name\") on update cascade on delete cascade,\n);\n\nCREATE TABLE no_payment_due\n(\n\t\"name\" TEXT default '' not null primary key,\n\tbool TEXT null, -- Example Values: `neg`, `pos` | Value Statics: Total count 1000 - Distinct count 2 - Null count 0 | Column Description: whether the student has payment dues | Value Description: •\tneg: the student doesn't have payment due •\tpos: the student has payment due\n\tforeign key (\"name\") references person (\"name\") on update cascade on delete cascade,\n\tforeign key (bool) references bool (\"name\") on update cascade on delete cascade,\n);\n\nCREATE TABLE unemployed\n(\n\t\"name\" TEXT default '' not null primary key,\n\tforeign key (\"name\") references person (\"name\") on update cascade on delete cascade,\n);\n\nCREATE TABLE enrolled\n(\n\t`name` TEXT NOT NULL, -- Example Values: `('student1',)`, `('student10',)`, `('student100',)` | Value Statics: Total count 1194 - Distinct count 960 - Null count 0 \n\t`school` TEXT NOT NULL, -- Example Values: `occ`, `smc`, `ucb`, `ucla`, `ucsd` | Value Statics: Total count 1194 - Distinct count 6 - Null count 0 \n\t`month` INTEGER NOT NULL DEFAULT 0, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 1194 - Distinct count 15 - Null count 0 \n\tPRIMARY KEY (`name`,`school`),\n\tFOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,\n);" }
mental_health_survey
{ "db_schema": "CREATE TABLE Question\n(\n\tquestiontext TEXT, -- Example Values: `('What is your age?',)`, `('What is your gender?',)`, `('What country do you live in?',)` | Value Statics: Total count 105 - Distinct count 105 - Null count 0 | Column Name Meaning: question text | Column Description: The detailed text of the question. \n\tquestionid INTEGER constraint Question_pk primary key,\n);\n\nCREATE TABLE Survey\n(\n\tSurveyID INTEGER constraint Survey_pk primary key,\n\tDescription TEXT, -- Example Values: `mental health survey for 2014`, `mental health survey for 2016`, `mental health survey for 2017`, `mental health survey for 2018`, `mental health survey for 2019` | Value Statics: Total count 5 - Distinct count 5 - Null count 0 | Column Description: The Description of the specific survey. \n);\n\nCREATE TABLE Answer\n(\n\tAnswerText TEXT, -- Example Values: `('37',)`, `('44',)`, `('32',)` | Value Statics: Total count 100000 - Distinct count 449 - Null count 0 | Column Name Meaning: Answer Text | Column Description: The specific and detailed answer text of each question. | Value Description: The content is highly depend on the question.\n\tSurveyID INTEGER constraint Answer_Survey_SurveyID_fk references Survey, -- Example Values: `2014`, `2016`, `2017`, `2018`, `2019` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: Survey ID | Column Description: The id of each survey. | Value Description: The SurveyID is simply survey year i.e., 2014, 2016, 2017, 2018, 2019.\n\tUserID INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 2381 - Null count 0 | Column Name Meaning: User ID | Column Description: The id of different user. | Value Description: Some questions can contain multiple answers, thus the same user can appear more than once for that QuestionID.\n\tQuestionID INTEGER constraint Answer_Question_questionid_fk references Question, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 72 - Null count 0 | Column Name Meaning: Question ID | Column Description: The id of different questions. | Value Description: Some questions can contain multiple answers, thus the same user can appear more than once for that QuestionID.\n\tconstraint Answer_pk primary key (UserID, QuestionID),\n);" }
disney
{ "db_schema": "CREATE TABLE characters\n(\n\tmovie_title TEXT primary key,\n\trelease_date TEXT, -- Example Values: `('21-Dec-37',)`, `('7-Feb-40',)`, `('13-Nov-40',)` | Value Statics: Total count 56 - Distinct count 56 - Null count 0 | Column Name Meaning: release date | Column Description: The release date of the movie. \n\thero TEXT, -- Example Values: `('Snow White',)`, `('Pinocchio',)`, `('Dumbo',)` | Value Statics: Total count 52 - Distinct count 49 - Null count 4 | Column Description: The main character of the movie. | Value Description: round role\n\tvillian TEXT, -- Example Values: `('Evil Queen',)`, `('Stromboli',)`, `('Chernabog',)` | Value Statics: Total count 46 - Distinct count 46 - Null count 10 | Column Description: The villain of the movie. | Value Description: a character whose evil actions or motives are important to the plot.\n\tsong TEXT, -- Example Values: `('Some Day My Prince Will Come',)`, `('When You Wish upon a Star',)`, `('Baby Mine',)` | Value Statics: Total count 47 - Distinct count 47 - Null count 9 | Column Description: A song associated with the movie. \n\tforeign key (hero) references \"voice-actors\"(character),\n);\n\nCREATE TABLE director\n(\n\tname TEXT primary key,\n\tdirector TEXT, -- Example Values: `('David Hand',)`, `('Ben Sharpsteen',)`, `('full credits',)` | Value Statics: Total count 56 - Distinct count 29 - Null count 0 | Column Description: the name of the director | Value Description: one director may have multiple movies. more movies --> this director is more productive\n\tforeign key (name) references characters(movie_title),\n);\n\nCREATE TABLE movies_total_gross\n(\n\tmovie_title TEXT, -- Example Values: `('101 Dalmatians',)`, `('102 Dalmatians',)`, `('1492: Conquest of Paradise',)` | Value Statics: Total count 579 - Distinct count 573 - Null count 0 | Column Name Meaning: movie title | Column Description: movie title \n\trelease_date TEXT, -- Example Values: `('Jan 25, 1961',)`, `('Nov 27, 1996',)`, `('Nov 22, 2000',)` | Value Statics: Total count 579 - Distinct count 553 - Null count 0 | Column Name Meaning: release date | Column Description: release date \n\tgenre TEXT, -- Example Values: `Musical`, `Adventure`, `Drama`, `Comedy`, `` | Value Statics: Total count 579 - Distinct count 13 - Null count 0 | Column Description: genre of the movie \n\tMPAA_rating TEXT, -- Example Values: `G`, ``, `Not Rated`, `PG`, `R` | Value Statics: Total count 579 - Distinct count 6 - Null count 0 | Column Name Meaning: Motion Picture Association of America rating | Column Description: Motion Picture Association of America of the disney movie | Value Description: • G: general audience • PG: mature audiences or parental guidance suggested • R: restricted: no children under 17 allowed without parents or adult guardians • PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13 movies need accompany with parents: PG, PG-13, PG-17; if \"Not rated\" or null, it means this film can show only gets permissions by theatre management if the film can show without need of permissions of theatre management, the MPAA_rating should not be \"Not rated\" or null\n\ttotal_gross TEXT, -- Example Values: `('$184,925,485',)`, `('$84,300,000',)`, `('$83,320,000',)` | Value Statics: Total count 579 - Distinct count 576 - Null count 0 | Column Name Meaning: total gross | Column Description: The total gross of the movie. | Value Description: more total_gross--> more popular movie\n\tinflation_adjusted_gross TEXT, -- Example Values: `('$5,228,953,251',)`, `('$2,188,229,052',)`, `('$2,187,090,808',)` | Value Statics: Total count 579 - Distinct count 576 - Null count 0 | Column Name Meaning: inflation adjusted gross | Column Description: The inflation-adjusted gross of the movie. | Value Description: estimated inflation rate = inflation_adjusted_gross / total_gross; the current gross = inflation_adjusted_gross\n\tprimary key (movie_title, release_date),\n\tforeign key (movie_title) references characters(movie_title),\n);\n\nCREATE TABLE revenue\n(\n\tYear INTEGER primary key,\n\t\"Studio Entertainment[NI 1]\" REAL, -- Example Values: `(2593.0,)`, `(3115.0,)`, `(3673.4,)` | Value Statics: Total count 25 - Distinct count 25 - Null count 1 | Column Description: The studio entertainment segment of the Walt Disney Company. \n\t\"Disney Consumer Products[NI 2]\" REAL, -- Example Values: `(724.0,)`, `(1081.0,)`, `(1415.1,)` | Value Statics: Total count 24 - Distinct count 24 - Null count 2 | Column Description: The consumer products segment of the Walt Disney Company. \n\t\"Disney Interactive[NI 3][Rev 1]\" INTEGER, -- Example Values: `174`, `260`, `206`, `368`, `719` | Value Statics: Total count 12 - Distinct count 12 - Null count 14 | Column Description: The interactive segment of the Walt Disney Company. \n\t\"Walt Disney Parks and Resorts\" REAL, -- Example Values: `(2794.0,)`, `(3306.0,)`, `(3440.7,)` | Value Statics: Total count 26 - Distinct count 26 - Null count 0 | Column Description: The parks and resorts segment of the Walt Disney Company. \n\t\"Disney Media Networks\" TEXT, -- Example Values: `('359',)`, `('414',)`, `('4,142',)` | Value Statics: Total count 23 - Distinct count 23 - Null count 3 | Column Description: The media networks segment of the Walt Disney Company. \n\tTotal INTEGER, -- Example Values: `(6111,)`, `(7502,)`, `(8529,)` | Value Statics: Total count 26 - Distinct count 26 - Null count 0 | Column Description: The total box office gross for the movie. \n);\n\nCREATE TABLE voice-actors\n(\n\tcharacter TEXT primary key,\n\t\"voice-actor\" TEXT, -- Example Values: `('Joan Cusack',)`, `('Monica Evans',)`, `('Jason Alexander',)` | Value Statics: Total count 922 - Distinct count 645 - Null count 0 | Column Description: The name of the voice actor. \n\tmovie TEXT, -- Example Values: `('Chicken Little',)`, `('The Aristocats',)`, `('The Return of Jafar',)` | Value Statics: Total count 922 - Distinct count 139 - Null count 0 | Column Description: The name of the movie. \n\tforeign key (movie) references characters(movie_title),\n);" }
legislator
{ "db_schema": "CREATE TABLE current\n(\n\tballotpedia_id TEXT, -- Example Values: `('Sherrod Brown',)`, `('Maria Cantwell',)`, `('Ben Cardin',)` | Value Statics: Total count 347 - Distinct count 347 - Null count 194 | Column Name Meaning: ballotpedia id | Column Description: The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). | Value Description: if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org\n\tbioguide_id TEXT, -- Example Values: `('A000055',)`, `('A000360',)`, `('A000367',)` | Value Statics: Total count 541 - Distinct count 541 - Null count 0 | Column Name Meaning: bioguide id | Column Description: The alphanumeric ID for this legislator \n\tbirthday_bio DATE, -- Example Values: `('1952-11-09',)`, `('1958-10-13',)`, `('1943-10-05',)` | Value Statics: Total count 539 - Distinct count 530 - Null count 2 | Column Name Meaning: birthday bio | Column Description: The legislator's birthday, | Value Description: in YYYY-MM-DD format.\n\tcspan_id REAL, -- Example Values: `(45516.0,)`, `(5.0,)`, `(1033767.0,)` | Value Statics: Total count 422 - Distinct count 422 - Null count 119 | Column Name Meaning: cspan id | Column Description: The numeric ID for this legislator on C-SPAN's video website, | Value Description: if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website\n\tfec_id TEXT, -- Example Values: `(\"['H2OH13033', 'S6OH00163']\",)`, `(\"['S8WA00194', 'H2WA01054']\",)`, `(\"['H6MD03177', 'S6MD03177']\",)` | Value Statics: Total count 490 - Distinct count 490 - Null count 51 | Column Name Meaning: fec id | Column Description: A list of IDs for this legislator in Federal Election Commission data. | Value Description: if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n\tfirst_name TEXT, -- Example Values: `('Sherrod',)`, `('Maria',)`, `('Benjamin',)` | Value Statics: Total count 541 - Distinct count 305 - Null count 0 | Column Name Meaning: first name | Column Description: first name of the legislator \n\tgender_bio TEXT, -- Example Values: `M`, `F` | Value Statics: Total count 541 - Distinct count 2 - Null count 0 | Column Name Meaning: gender bio | Column Description: gender of the legislator \n\tgoogle_entity_id_id TEXT, -- Example Values: `('kg:/m/034s80',)`, `('kg:/m/01x68t',)`, `('kg:/m/025k3k',)` | Value Statics: Total count 486 - Distinct count 486 - Null count 55 | Column Name Meaning: google entity id | Column Description: google entity id | Value Description: if this value is null or empty, it means this legislator are not google entities\n\tgovtrack_id INTEGER, -- Example Values: `(400050,)`, `(300018,)`, `(400064,)` | Value Statics: Total count 541 - Distinct count 541 - Null count 0 | Column Name Meaning: govtrack id | Column Description: The numeric ID for this legislator on GovTrack.us | Value Description: if this value is null or empty, it means this legislator doesn't have account on GovTrack.us\n\thouse_history_id REAL, -- Example Values: `(9996.0,)`, `(10608.0,)`, `(10629.0,)` | Value Statics: Total count 350 - Distinct count 350 - Null count 191 | Column Name Meaning: house history id | Column Description: The numeric ID for this legislator on http://history.house.gov/People/Search/ | Value Description: The ID is present only for members who have served in the U.S. House.\n\ticpsr_id REAL, -- Example Values: `(29389.0,)`, `(39310.0,)`, `(15408.0,)` | Value Statics: Total count 411 - Distinct count 411 - Null count 130 | Column Name Meaning: interuniversity consortium for political and social research id | Column Description: The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). | Value Description: if this value is null or empty, it means this legislator doesn't have account on VoteView.com\n\tlast_name TEXT, -- Example Values: `('Brown',)`, `('Cantwell',)`, `('Cardin',)` | Value Statics: Total count 541 - Distinct count 489 - Null count 0 | Column Name Meaning: last name | Column Description: last name of the legislator \n\tlis_id TEXT, -- Example Values: `('S307',)`, `('S275',)`, `('S308',)` | Value Statics: Total count 100 - Distinct count 100 - Null count 441 | Column Name Meaning: legislator id | Column Description: The alphanumeric ID for this legislator found in Senate roll call votes | Value Description: The ID is present only for members who attended in Senate roll call votes\n\tmaplight_id REAL, -- Example Values: `(168.0,)`, `(544.0,)`, `(182.0,)` | Value Statics: Total count 486 - Distinct count 486 - Null count 55 | Column Name Meaning: maplight id | Column Description: The numeric ID for this legislator on maplight.org | Value Description: if this value is null or empty, it means this legislator doesn't have account on maplight.org\n\tmiddle_name TEXT, -- Example Values: `('L.',)`, `('Richard',)`, `('P.',)` | Value Statics: Total count 216 - Distinct count 57 - Null count 325 | Column Name Meaning: middle name | Column Description: the middle name of the legislator \n\tnickname_name TEXT, -- Example Values: `('Bob',)`, `('Bernie',)`, `('Jim',)` | Value Statics: Total count 37 - Distinct count 28 - Null count 504 | Column Name Meaning: nickname | Column Description: nickname of the legislator \n\tofficial_full_name TEXT, -- Example Values: `('Sherrod Brown',)`, `('Maria Cantwell',)`, `('Benjamin L. Cardin',)` | Value Statics: Total count 541 - Distinct count 541 - Null count 0 | Column Name Meaning: official full name | Column Description: official full name \n\topensecrets_id TEXT, -- Example Values: `('N00003535',)`, `('N00007836',)`, `('N00001955',)` | Value Statics: Total count 486 - Distinct count 486 - Null count 55 | Column Name Meaning: opensecrets id | Column Description: The alphanumeric ID for this legislator on OpenSecrets.org. | Value Description: if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n\treligion_bio TEXT, -- Example Values: `('Lutheran',)`, `('Roman Catholic',)`, `('Jewish',)` | Value Statics: Total count 161 - Distinct count 19 - Null count 380 | Column Name Meaning: religion bio | Column Description: The legislator's religion. \n\tsuffix_name TEXT, -- Example Values: `Jr.`, `III`, `II` | Value Statics: Total count 20 - Distinct count 3 - Null count 521 | Column Name Meaning: suffix name | Column Description: suffix name \n\tthomas_id INTEGER, -- Example Values: `(136,)`, `(172,)`, `(174,)` | Value Statics: Total count 484 - Distinct count 484 - Null count 57 | Column Name Meaning: thomas id | Column Description: The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. | Value Description: if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n\tvotesmart_id REAL, -- Example Values: `(27018.0,)`, `(27122.0,)`, `(26888.0,)` | Value Statics: Total count 427 - Distinct count 427 - Null count 114 | Column Name Meaning: votesmart id | Column Description: The numeric ID for this legislator on VoteSmart.org | Value Description: if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org\n\twikidata_id TEXT, -- Example Values: `('Q381880',)`, `('Q22250',)`, `('Q723295',)` | Value Statics: Total count 486 - Distinct count 486 - Null count 55 | Column Name Meaning: wikidata id | Column Description: the id for wikidata \n\twikipedia_id TEXT, -- Example Values: `('Sherrod Brown',)`, `('Maria Cantwell',)`, `('Ben Cardin',)` | Value Statics: Total count 490 - Distinct count 490 - Null count 51 | Column Name Meaning: wikipedia id | Column Description: The Wikipedia page name for the person | Value Description: if a legislator has wikipedia id, it means he or she is famous or impact\n\tprimary key (bioguide_id, cspan_id),\n);\n\nCREATE TABLE current-terms\n(\n\taddress TEXT, -- | Column Description: the address of this legislator \n\tbioguide TEXT, -- Example Values: `('A000055',)`, `('A000360',)`, `('A000367',)` | Value Statics: Total count 3078 - Distinct count 541 - Null count 0 | Column Name Meaning: bioguide id | Column Description: The alphanumeric ID for this legislator \n\tcaucus TEXT, -- Example Values: `Democrat` | Value Statics: Total count 3 - Distinct count 1 - Null count 3075 | Column Description: caucus | Value Description: For independents, the party that the legislator caucuses with, using the same values as the party field. Omitted if the legislator caucuses with the party indicated in the party field. When in doubt about the difference between the party and caucus fields, the party field is what displays after the legislator's name (i.e. \"(D)\") but the caucus field is what normally determines committee seniority. This field was added starting with terms for the 113th Congress.\n\tchamber TEXT, -- Example Values: `senate`, `house` | Value Statics: Total count 28 - Distinct count 2 - Null count 3050 | Column Description: chamber | Value Description: • senate • house\n\tclass REAL, -- Example Values: `1.0`, `2.0`, `3.0` | Value Statics: Total count 244 - Distinct count 3 - Null count 2834 | Column Description: class | Value Description: For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n\tcontact_form TEXT, -- Example Values: `('http://www.brown.senate.gov/contact/',)`, `('http://www.brown.senate.gov/contact',)`, `('http://www.cantwell.senate.gov/contact/',)` | Value Statics: Total count 998 - Distinct count 616 - Null count 2080 | Column Description: The website URL of the contact page on the legislator's official website \n\tdistrict REAL, -- Example Values: `(13.0,)`, `(1.0,)`, `(3.0,)` | Value Statics: Total count 2770 - Distinct count 54 - Null count 308 | Column Description: district | Value Description: For representatives, the district number they are serving from. if null or empty, they are not representatives.\n\tend TEXT, -- Example Values: `('1999-01-03',)`, `('2001-01-03',)`, `('2003-01-03',)` | Value Statics: Total count 3034 - Distinct count 41 - Null count 44 | Column Description: the end of the term | Value Description: end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n\tfax TEXT, -- Example Values: `('202-228-6321',)`, `('202-228-0514',)`, `('202-224-1651',)` | Value Statics: Total count 1034 - Distinct count 440 - Null count 2044 | Column Description: The fax number of the legislator's Washington, D.C. office | Value Description: only valid if the term is current\n\tlast TEXT, -- Example Values: `Menendez` | Value Statics: Total count 1 - Distinct count 1 - Null count 3077 | Column Description: the last known number \n\tname TEXT, -- Example Values: `('Stewart Lee Udall',)`, `('Morris K. Udall',)`, `('Mark Udall',)` | Value Statics: Total count 35 - Distinct count 35 - Null count 3043 \n\toffice TEXT, -- Example Values: `('713 Hart Senate Office Building',)`, `('311 Hart Senate Office Building',)`, `('511 Hart Senate Office Building',)` | Value Statics: Total count 1606 - Distinct count 574 - Null count 1472 | Column Description: office | Value Description: only valid if the term is current, otherwise the last known office\n\tparty TEXT, -- Example Values: `Democrat`, `Republican`, `Independent` | Value Statics: Total count 3014 - Distinct count 3 - Null count 64 | Column Description: The political party of the legislator. | Value Description: If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n\tparty_affiliations TEXT, -- Example Values: `{'start': '2009-01-06', 'end': '2009-02-23', 'part`, `{'start': '1993-01-05', 'end': '1994-11-09', 'part` | Value Statics: Total count 2 - Distinct count 2 - Null count 3076 | Column Name Meaning: party affiliations | Column Description: This field is present if the legislator changed party or caucus affiliation during the term. | Value Description: The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n\tphone TEXT, -- Example Values: `('202-224-2315',)`, `('202-224-3441',)`, `('202-224-4524',)` | Value Statics: Total count 1606 - Distinct count 541 - Null count 1472 | Column Description: The phone number of the legislator's Washington, D.C. office | Value Description: only valid if the term is current, otherwise the last known number\n\trelation TEXT, -- Example Values: `son`, `nephew`, `cousin`, `daughter`, `grandson` | Value Statics: Total count 35 - Distinct count 13 - Null count 3043 \n\trss_url TEXT, --| Column Name Meaning: Really Simple Syndication URL | Column Description: The URL to the official website's RSS feed \n\tstart TEXT, -- Example Values: `('1993-01-05',)`, `('1995-01-04',)`, `('1997-01-07',)` | Value Statics: Total count 3042 - Distinct count 89 - Null count 36 | Column Description: The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. | Value Description: Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.)\n\tstate TEXT, -- Example Values: `('OH',)`, `('WA',)`, `('MD',)` | Value Statics: Total count 3014 - Distinct count 56 - Null count 64 | Column Description: state code | Value Description: AK: Alaska AL: Alabama AR: Arkansas AZ: Arizona CA: California CO: Colorado CT: Connecticut DE: Delaware FL: Florida GA: Georgia HI: Hawaii IA: Iowa ID: Idaho IL: Illinois IN: Indiana KS: Kansas KY: Kentucky LA: Louisiana MA: Massachusetts MD: Maryland ME: Maine MI: Michigan MN: Minnesota MO: Missouri MS: Mississippi MT: Montana NC: North Carolina ND: North Dakota NE: Nebraska NH: New Hampshire NJ: New Jersey 9 divisions of states in us: (please mention) https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf\n\tstate_rank TEXT, -- Example Values: `senior`, `junior` | Value Statics: Total count 147 - Distinct count 2 - Null count 2931 | Column Description: whether they are the \"junior\" or \"senior\" senator | Value Description: only valid if the term is current, otherwise the senator's rank at the time the term ended only senator has this value\n\ttitle TEXT, -- Example Values: `Minority Whip`, `Majority Whip`, `Minority Leader`, `Majority Leader`, `Speaker` | Value Statics: Total count 28 - Distinct count 5 - Null count 3050 | Column Description: title of the legislator \n\ttype TEXT, -- Example Values: `rep`, `sen` | Value Statics: Total count 3014 - Distinct count 2 - Null count 64 | Column Description: The type of the term. | Value Description: Either \"sen\" for senators or \"rep\" for representatives and delegates to the House\n\turl TEXT, -- Example Values: `('http://www.house.gov/sherrodbrown',)`, `('http://brown.senate.gov/',)`, `('https://www.brown.senate.gov',)` | Value Statics: Total count 2258 - Distinct count 852 - Null count 820 | Column Description: The official website URL of the legislator | Value Description: only valid if the term is current\n\tprimary key (bioguide, end),\n\tforeign key (bioguide) references current(bioguide_id),\n);\n\nCREATE TABLE historical\n(\n\tballotpedia_id TEXT, -- Example Values: `('Mo Cowan',)`, `('Jo Bonner',)`, `('Rodney Alexander',)` | Value Statics: Total count 101 - Distinct count 101 - Null count 11763 | Column Name Meaning: ballotpedia id | Column Description: The ballotpedia.org page name for the person (spaces are given as spaces, not underscores). | Value Description: if this value is null or empty, it means this legislator doesn't have account on ballotpedia.org\n\tbioguide_id TEXT primary key,\n\tbioguide_previous_id TEXT, -- Example Values: `['F000246']`, `['L000266']`, `['W000790']` | Value Statics: Total count 3 - Distinct count 3 - Null count 11861 | Column Name Meaning: bioguide previous id | Column Description: The previous alphanumeric ID for this legislator \n\tbirthday_bio TEXT, -- Example Values: `('1745-04-02',)`, `('1742-03-21',)`, `('1743-06-16',)` | Value Statics: Total count 11310 - Distinct count 10429 - Null count 554 | Column Name Meaning: birthday bio | Column Description: The legislator's birthday, | Value Description: in YYYY-MM-DD format.\n\tcspan_id TEXT, -- Example Values: `('12590.0',)`, `('4479.0',)`, `('103.0',)` | Value Statics: Total count 304 - Distinct count 304 - Null count 11560 | Column Name Meaning: cspan id | Column Description: The numeric ID for this legislator on C-SPAN's video website, | Value Description: if this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website\n\tfec_id TEXT, -- Example Values: `(\"['S6CO00168']\",)`, `(\"['S2MN00126']\",)`, `(\"['S0ID00057']\",)` | Value Statics: Total count 425 - Distinct count 425 - Null count 11439 | Column Name Meaning: fec id | Column Description: A list of IDs for this legislator in Federal Election Commission data. | Value Description: if this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\n\tfirst_name TEXT, -- Example Values: `('Richard',)`, `('Theodorick',)`, `('Aedanus',)` | Value Statics: Total count 11864 - Distinct count 1514 - Null count 0 | Column Name Meaning: first name | Column Description: first name of the legislator \n\tgender_bio TEXT, -- Example Values: `M`, `F` | Value Statics: Total count 11864 - Distinct count 2 - Null count 0 | Column Name Meaning: gender bio | Column Description: gender of the legislator \n\tgoogle_entity_id_id TEXT, -- Example Values: `('kg:/m/02pz46',)`, `('kg:/m/033mf4',)`, `('kg:/m/03yccv',)` | Value Statics: Total count 11849 - Distinct count 11849 - Null count 15 | Column Name Meaning: google entity id | Column Description: google entity id | Value Description: if this value is null or empty, it means this legislator are not google entities\n\tgovtrack_id INTEGER, -- Example Values: `(401222,)`, `(401521,)`, `(402032,)` | Value Statics: Total count 11864 - Distinct count 11864 - Null count 0 | Column Name Meaning: govtrack id | Column Description: The numeric ID for this legislator on GovTrack.us | Value Description: if this value is null or empty, it means this legislator doesn't have account on GovTrack.us\n\thouse_history_alternate_id TEXT, -- Example Values: `13283.0` | Value Statics: Total count 1 - Distinct count 1 - Null count 11863 | Column Name Meaning: house history alternate id | Column Description: The alternative numeric ID for this legislator \n\thouse_history_id REAL, -- Example Values: `(9479.0,)`, `(10177.0,)`, `(10687.0,)` | Value Statics: Total count 10673 - Distinct count 10673 - Null count 1191 | Column Name Meaning: house history id | Column Description: The numeric ID for this legislator on http://history.house.gov/People/Search/ | Value Description: The ID is present only for members who have served in the U.S. House.\n\ticpsr_id REAL, -- Example Values: `(507.0,)`, `(786.0,)`, `(1260.0,)` | Value Statics: Total count 11655 - Distinct count 11655 - Null count 209 | Column Name Meaning: interuniversity consortium for political and social research id | Column Description: The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer). | Value Description: if this value is null or empty, it means this legislator doesn't have account on VoteView.com\n\tlast_name TEXT, -- Example Values: `('Bassett',)`, `('Bland',)`, `('Burke',)` | Value Statics: Total count 11864 - Distinct count 5410 - Null count 0 | Column Name Meaning: last name | Column Description: last name of the legislator \n\tlis_id TEXT, -- Example Values: `('S134',)`, `('S135',)`, `('S138',)` | Value Statics: Total count 178 - Distinct count 178 - Null count 11686 | Column Name Meaning: legislator id | Column Description: The alphanumeric ID for this legislator found in Senate roll call votes | Value Description: The ID is present only for members who attended in Senate roll call votes\n\tmaplight_id TEXT, -- Example Values: `('232.0',)`, `('581.0',)`, `('585.0',)` | Value Statics: Total count 140 - Distinct count 140 - Null count 11724 | Column Name Meaning: maplight id | Column Description: The numeric ID for this legislator on maplight.org | Value Description: if this value is null or empty, it means this legislator doesn't have account on maplight.org\n\tmiddle_name TEXT, -- Example Values: `('Samuel',)`, `('Henry',)`, `('Jenifer',)` | Value Statics: Total count 8313 - Distinct count 2900 - Null count 3551 | Column Name Meaning: middle name | Column Description: the middle name of the legislator \n\tnickname_name TEXT, -- Example Values: `('of Carrollton',)`, `('of Colchester',)`, `('of Milton',)` | Value Statics: Total count 217 - Distinct count 121 - Null count 11647 | Column Name Meaning: nickname | Column Description: nickname of the legislator \n\tofficial_full_name TEXT, -- Example Values: `('Enid Greene Waldholtz',)`, `('Jesse L. Jackson Jr.',)`, `('Bob Filner',)` | Value Statics: Total count 228 - Distinct count 228 - Null count 11636 | Column Name Meaning: official full name | Column Description: official full name \n\topensecrets_id TEXT, -- Example Values: `('N00008333',)`, `('N00006953',)`, `('N00009160',)` | Value Statics: Total count 553 - Distinct count 553 - Null count 11311 | Column Name Meaning: opensecrets id | Column Description: The alphanumeric ID for this legislator on OpenSecrets.org. | Value Description: if this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\n\treligion_bio TEXT, -- Example Values: `('Baptist',)`, `('Roman Catholic',)`, `('Methodist',)` | Value Statics: Total count 366 - Distinct count 31 - Null count 11498 | Column Name Meaning: religion bio | Column Description: The legislator's religion. \n\tsuffix_name TEXT, -- Example Values: `Jr.`, `Sr.`, `II`, `III`, `IV` | Value Statics: Total count 418 - Distinct count 5 - Null count 11446 | Column Name Meaning: suffix name | Column Description: suffix name \n\tthomas_id TEXT, -- Example Values: `('01308',)`, `('01270',)`, `('01281',)` | Value Statics: Total count 1697 - Distinct count 1697 - Null count 10167 | Column Name Meaning: thomas id | Column Description: The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. | Value Description: if this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\n\tvotesmart_id TEXT, -- Example Values: `('52156.0',)`, `('128775.0',)`, `('26829.0',)` | Value Statics: Total count 437 - Distinct count 437 - Null count 11427 | Column Name Meaning: votesmart id | Column Description: The numeric ID for this legislator on VoteSmart.org | Value Description: if this value is null or empty, it means this legislator doesn't have account on VoteSmart.org\n\twikidata_id TEXT, -- Example Values: `('Q518823',)`, `('Q1749152',)`, `('Q380504',)` | Value Statics: Total count 11861 - Distinct count 11861 - Null count 3 | Column Name Meaning: wikidata id | Column Description: the id for wikidata \n\twikipedia_id TEXT, -- Example Values: `('Richard Bassett (politician)',)`, `('Theodorick Bland (congressman)',)`, `('Aedanus Burke',)` | Value Statics: Total count 11861 - Distinct count 11861 - Null count 3 | Column Name Meaning: wikipedia id | Column Description: The Wikipedia page name for the person | Value Description: if a legislator has wikipedia id, it means he or she is famous or impact\n);\n\nCREATE TABLE historical-terms\n(\n\taddress TEXT, -- | Column Description: the address of this legislator \n\tbioguide TEXT primary key,\n\tchamber TEXT, -- Example Values: `house`, `senate` | Value Statics: Total count 3 - Distinct count 2 - Null count 11861 | Column Description: chamber | Value Description: • senate • house\n\tclass REAL, -- Example Values: `2.0`, `1.0`, `3.0` | Value Statics: Total count 1256 - Distinct count 3 - Null count 10608 | Column Description: class | Value Description: For senators, their election class (1, 2, or 3). only senator has class, if the value is null or empty, it means this legislator is not senator.\n\tcontact_form TEXT, -- Example Values: `('http://www.webb.senate.gov/contact.cfm',)`, `('http://www.scottbrown.senate.gov/public/index.cf`, `('https://walsh.house.gov/contact-me',)` | Value Statics: Total count 25 - Distinct count 25 - Null count 11839 | Column Description: The website URL of the contact page on the legislator's official website \n\tdistrict REAL, -- Example Values: `(9.0,)`, `(2.0,)`, `(6.0,)` | Value Statics: Total count 10602 - Distinct count 50 - Null count 1262 | Column Description: district | Value Description: For representatives, the district number they are serving from. if null or empty, they are not representatives.\n\tend TEXT, -- Example Values: `('1793-03-03',)`, `('1791-03-03',)`, `('1795-03-03',)` | Value Statics: Total count 11864 - Distinct count 231 - Null count 0 | Column Description: the end of the term | Value Description: end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\n\tfax TEXT, -- Example Values: `('202-228-6363',)`, `('202-226-6299',)`, `('202-226-0893',)` | Value Statics: Total count 49 - Distinct count 47 - Null count 11815 | Column Description: The fax number of the legislator's Washington, D.C. office | Value Description: only valid if the term is current\n\tlast TEXT, -- Example Values: `Levy`, `Lambert`, `Bono` | Value Statics: Total count 3 - Distinct count 3 - Null count 11861 | Column Description: the last known number \n\tmiddle TEXT, -- \n\tname TEXT, -- \n\toffice TEXT, -- Example Values: `('248 Russell Senate Office Building',)`, `('359 Dirksen Senate Office Building',)`, `('216 Cannon House Office Building',)` | Value Statics: Total count 62 - Distinct count 58 - Null count 11802 | Column Description: office | Value Description: only valid if the term is current, otherwise the last known office\n\tparty TEXT, -- Example Values: `('Anti-Administration',)`, `('Pro-Administration',)`, `('Republican',)` | Value Statics: Total count 11636 - Distinct count 61 - Null count 228 | Column Description: The political party of the legislator. | Value Description: If the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"Democrat\", \"Independent\", or \"Republican\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"Democratic Farmer Labor\" we will use the national party name (\"Democrat\") instead to keep the values of this field normalized.\n\tparty_affiliations TEXT, -- Example Values: `{'start': '2009-01-06', 'end': '2009-12-22', 'part`, `{'start': '2003-01-07', 'end': '2004-08-09', 'part` | Value Statics: Total count 2 - Distinct count 2 - Null count 11862 | Column Name Meaning: party affiliations | Column Description: This field is present if the legislator changed party or caucus affiliation during the term. | Value Description: The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\n\tphone TEXT, -- Example Values: `('202-224-4024',)`, `('202-224-4543',)`, `('202-225-2706',)` | Value Statics: Total count 62 - Distinct count 55 - Null count 11802 | Column Description: The phone number of the legislator's Washington, D.C. office | Value Description: only valid if the term is current, otherwise the last known number\n\trelation TEXT, -- \n\trss_url TEXT, -- Example Values: `http://radel.house.gov/news/rss.aspx`, `http://www.begich.senate.gov/public/?a=rss.feed`, `http://www.hagan.senate.gov/rss`, `http://negretemcleod.house.gov/rss.xml`, `http://garcia.house.gov/rss.xml` | Value Statics: Total count 12 - Distinct count 12 - Null count 11852 | Column Name Meaning: Really Simple Syndication URL | Column Description: The URL to the official website's RSS feed \n\tstart TEXT, -- Example Values: `('1789-03-04',)`, `('1790-01-01',)`, `('1791-10-24',)` | Value Statics: Total count 11861 - Distinct count 333 - Null count 3 | Column Description: The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. | Value Description: Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.)\n\tstate TEXT, -- Example Values: `('DE',)`, `('VA',)`, `('SC',)` | Value Statics: Total count 11858 - Distinct count 58 - Null count 6 | Column Description: state code | Value Description: AK: Alaska AL: Alabama AR: Arkansas AZ: Arizona CA: California CO: Colorado CT: Connecticut DE: Delaware FL: Florida GA: Georgia HI: Hawaii IA: Iowa ID: Idaho IL: Illinois IN: Indiana KS: Kansas KY: Kentucky LA: Louisiana MA: Massachusetts MD: Maryland ME: Maine MI: Michigan MN: Minnesota MO: Missouri MS: Mississippi MT: Montana NC: North Carolina ND: North Dakota NE: Nebraska NH: New Hampshire NJ: New Jersey 9 divisions of states in us: (please mention) https://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf\n\tstate_rank TEXT, -- Example Values: `junior`, `senior` | Value Statics: Total count 7 - Distinct count 2 - Null count 11857 | Column Description: whether they are the \"junior\" or \"senior\" senator | Value Description: only valid if the term is current, otherwise the senator's rank at the time the term ended only senator has this value\n\ttitle TEXT, -- Example Values: `Majority Leader`, `Speaker` | Value Statics: Total count 3 - Distinct count 2 - Null count 11861 | Column Description: title of the legislator \n\ttype TEXT, -- Example Values: `sen`, `rep` | Value Statics: Total count 11858 - Distinct count 2 - Null count 6 | Column Description: The type of the term. | Value Description: Either \"sen\" for senators or \"rep\" for representatives and delegates to the House\n\turl TEXT, -- Example Values: `('http://edwards.senate.gov/',)`, `('http://fitzgerald.senate.gov/',)`, `('http://miller.senate.gov/',)` | Value Statics: Total count 181 - Distinct count 180 - Null count 11683 | Column Description: The official website URL of the legislator | Value Description: only valid if the term is current\n\tforeign key (bioguide) references historical(bioguide_id),\n);\n\nCREATE TABLE social-media\n(\n\tbioguide TEXT primary key,\n\tfacebook TEXT, -- Example Values: `('congresswomanaumuaamata',)`, `('RepToddYoung',)`, `('senjoniernst',)` | Value Statics: Total count 458 - Distinct count 458 - Null count 21 | Column Description: The username of the current official Facebook presence of the legislator. \n\tfacebook_id REAL, -- Example Values: `(1537155909907320.0,)`, `(186203844738421.0,)`, `(351671691660938.0,)` | Value Statics: Total count 386 - Distinct count 386 - Null count 93 | Column Description: The numeric ID of the current official Facebook presence of the legislator. \n\tgovtrack REAL, -- Example Values: `(412664.0,)`, `(412428.0,)`, `(412667.0,)` | Value Statics: Total count 476 - Distinct count 476 - Null count 3 | Column Description: The numeric ID for this legislator on GovTrack.us \n\tinstagram TEXT, -- Example Values: `('senjoniernst',)`, `('senatorwarner',)`, `('SenWhitehouse',)` | Value Statics: Total count 109 - Distinct count 109 - Null count 370 | Column Description: The current official Instagram handle of the legislator. \n\tinstagram_id REAL, -- Example Values: `(1582702853.0,)`, `(515327940.0,)`, `(1559860900.0,)` | Value Statics: Total count 93 - Distinct count 93 - Null count 386 | Column Description: The numeric ID of the current official Instagram handle of the legislator. \n\tthomas INTEGER, -- Example Values: `(2222,)`, `(2019,)`, `(2283,)` | Value Statics: Total count 475 - Distinct count 475 - Null count 4 | Column Description: The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. \n\ttwitter TEXT, -- Example Values: `('RepAmata',)`, `('RepToddYoung',)`, `('SenJoniErnst',)` | Value Statics: Total count 470 - Distinct count 470 - Null count 9 | Column Description: The current official Twitter handle of the legislator. \n\ttwitter_id REAL, -- Example Values: `(3026622545.0,)`, `(234128524.0,)`, `(2856787757.0,)` | Value Statics: Total count 468 - Distinct count 468 - Null count 11 | Column Description: The numeric ID of the current official twitter handle of the legislator. \n\tyoutube TEXT, -- Example Values: `('RepToddYoung',)`, `('RepYoder',)`, `('RepJohnYarmuth',)` | Value Statics: Total count 384 - Distinct count 384 - Null count 95 | Column Description: The current official YouTube username of the legislator. \n\tyoutube_id TEXT, -- Example Values: `('UCGdrLQbt1PYDTPsampx4t1A',)`, `('UCuknj4PGn91gHDNAfboZEgQ',)`, `('UCLwrmtF_84FIcK3TyMs4MIw',)` | Value Statics: Total count 404 - Distinct count 404 - Null count 75 | Column Description: The current official YouTube channel ID of the legislator. \n\tforeign key (bioguide) references current(bioguide_id),\n);" }
olympics
{ "db_schema": "CREATE TABLE city\n(\n\tid INTEGER not null primary key,\n\tcity_name TEXT default NULL, -- Example Values: `('Barcelona',)`, `('London',)`, `('Antwerpen',)` | Value Statics: Total count 42 - Distinct count 42 - Null count 0 | Column Name Meaning: city name | Column Description: the name of the city \n);\n\nCREATE TABLE games\n(\n\tid INTEGER not null primary key,\n\tgames_year INTEGER default NULL, -- Example Values: `(1992,)`, `(2012,)`, `(1920,)` | Value Statics: Total count 51 - Distinct count 35 - Null count 0 | Column Name Meaning: games year | Column Description: the year of the game \n\tgames_name TEXT default NULL, -- Example Values: `('1992 Summer',)`, `('2012 Summer',)`, `('1920 Summer',)` | Value Statics: Total count 51 - Distinct count 51 - Null count 0 | Column Name Meaning: games name | Column Description: the name of the game | Value Description: games_name is 'games_year season'\n\tseason TEXT default NULL, -- Example Values: `Summer`, `Winter` | Value Statics: Total count 51 - Distinct count 2 - Null count 0 | Column Description: the season of the game | Value Description: The Olympics are held every four years and include both summer and winter games. The summer games include a wide range of sports, such as athletics, swimming, and gymnastics, while the winter games feature sports that are played on ice or snow, such as ice hockey, figure skating, and skiing.\n);\n\nCREATE TABLE games_city\n(\n\tgames_id INTEGER default NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 52 - Distinct count 51 - Null count 0 | Column Name Meaning: games id | Column Description: the id of the game Maps to games(id) \n\tcity_id INTEGER default NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 52 - Distinct count 42 - Null count 0 | Column Name Meaning: city id | Column Description: the id of the city that held the game Maps to city(id) \n\tforeign key (city_id) references city(id),\n\tforeign key (games_id) references games(id),\n);\n\nCREATE TABLE medal\n(\n\tid INTEGER not null primary key,\n\tmedal_name TEXT default NULL, -- Example Values: `Gold`, `Silver`, `Bronze`, `NA` | Value Statics: Total count 4 - Distinct count 4 - Null count 0 | Column Name Meaning: medal name | Column Description: the name of the medal \n);\n\nCREATE TABLE noc_region\n(\n\tid INTEGER not null primary key,\n\tnoc TEXT default NULL, -- Example Values: `('AFG',)`, `('AHO',)`, `('ALB',)` | Value Statics: Total count 231 - Distinct count 231 - Null count 0 | Column Description: the NOC code of the region | Value Description: A NOC code is a number used by the International Olympic Committee (IOC) to identify each of the national Olympic committees (NOCs) from around the world.\n\tregion_name TEXT default NULL, -- Example Values: `('Afghanistan',)`, `('Netherlands Antilles',)`, `('Albania',)` | Value Statics: Total count 231 - Distinct count 230 - Null count 0 | Column Name Meaning: region name | Column Description: the name of the region \n);\n\nCREATE TABLE person\n(\n\tid INTEGER not null primary key,\n\tfull_name TEXT default NULL, -- Example Values: `('A Dijiang',)`, `('A Lamusi',)`, `('Gunnar Nielsen Aaby',)` | Value Statics: Total count 100000 - Distinct count 99461 - Null count 0 | Column Name Meaning: full name | Column Description: the full name of the person | Value Description: A person's full name is the complete name that they are known by, which typically includes their first name, middle name (if applicable), and last name.\n\tgender TEXT default NULL, -- Example Values: `M`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: the gender of the person | Value Description: M stands for male and F stands for female.\n\theight INTEGER default NULL, -- Example Values: `(180,)`, `(170,)`, `(0,)` | Value Statics: Total count 100000 - Distinct count 94 - Null count 0 | Column Description: the height of the person \n\tweight INTEGER default NULL, -- Example Values: `(80,)`, `(60,)`, `(0,)` | Value Statics: Total count 100000 - Distinct count 142 - Null count 0 | Column Description: the weight of the person | Value Description: The unit of height is cm, and the unit of weight is kg. If the height or the weight of the person is 0, it means his/her height or weight is missing.\n);\n\nCREATE TABLE games_competitor\n(\n\tid INTEGER not null primary key,\n\tgames_id INTEGER default NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 51 - Null count 0 | Column Name Meaning: games id | Column Description: the id of the game Maps to games(id) \n\tperson_id INTEGER default NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 71713 - Null count 0 | Column Name Meaning: person id | Column Description: the id of the person Maps to person(id) | Value Description: The times a person participated in the Olympics games could be calculated by grouping by person_id.\n\tage INTEGER default NULL, -- Example Values: `(24,)`, `(23,)`, `(34,)` | Value Statics: Total count 100000 - Distinct count 71 - Null count 0 | Column Description: the age of the person when he/she participated in the game | Value Description: If person A's age was 22 when he participated in game A and his age was 24 when he participated in game B, it means that game A was held two years earlier than game B.\n\tforeign key (games_id) references games(id),\n\tforeign key (person_id) references person(id),\n);\n\nCREATE TABLE person_region\n(\n\tperson_id INTEGER default NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 98794 - Null count 0 | Column Description: the id of the person Maps to person(id) \n\tregion_id INTEGER default NULL, -- Example Values: `(42,)`, `(56,)`, `(146,)` | Value Statics: Total count 100000 - Distinct count 228 - Null count 0 | Column Description: the id of the noc region Maps to noc_region(id) \n\tforeign key (person_id) references person(id),\n\tforeign key (region_id) references noc_region(id),\n);\n\nCREATE TABLE sport\n(\n\tid INTEGER not null primary key,\n\tsport_name TEXT default NULL, -- Example Values: `('Aeronautics',)`, `('Alpine Skiing',)`, `('Alpinism',)` | Value Statics: Total count 66 - Distinct count 66 - Null count 0 | Column Name Meaning: sport name | Column Description: the name of the sport \n);\n\nCREATE TABLE event\n(\n\tid INTEGER not null primary key,\n\tsport_id INTEGER default NULL, -- Example Values: `(9,)`, `(33,)`, `(25,)` | Value Statics: Total count 757 - Distinct count 66 - Null count 0 | Column Name Meaning: sport id | Column Description: the id of the sport Maps to sport(id) | Value Description: There may be different events for the same sport in Olympics.\n\tevent_name TEXT default NULL, -- Example Values: `(\"Basketball Men's Basketball\",)`, `(\"Judo Men's Extra-Lightweight\",)`, `(\"Football Men's Football\",)` | Value Statics: Total count 757 - Distinct count 757 - Null count 0 | Column Name Meaning: event name | Column Description: the name of the event \n\tforeign key (sport_id) references sport(id),\n);\n\nCREATE TABLE competitor_event\n(\n\tevent_id INTEGER default NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 743 - Null count 0 | Column Name Meaning: event id | Column Description: the id of the event Maps to event(id) \n\tcompetitor_id INTEGER default NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 69554 - Null count 0 | Column Name Meaning: competitor id | Column Description: the id of the competitor Maps to games_competitor(id) | Value Description: The number of competitors who participated in a specific event could be calculated by grouping by event_id.\n\tmedal_id INTEGER default NULL, -- Example Values: `4`, `1`, `3`, `2` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0 | Column Name Meaning: medal id | Column Description: the id of the medal Maps to medal(id) | Value Description: For a specific event, the competitor whose medal_id = 1 is the champion, the competitor whose medal_id = 2 is the runner-up, and the competitor whose medal_id = 3 got third place.\n\tforeign key (competitor_id) references games_competitor(id),\n\tforeign key (competitor_id) references games_competitor(id),\n\tforeign key (event_id) references event(id),\n\tforeign key (medal_id) references medal(id),\n);" }
address
{ "db_schema": "CREATE TABLE CBSA\n(\n\tCBSA INTEGER primary key,\n\tCBSA_name TEXT, -- Example Values: `('Adrian, MI',)`, `('Aguadilla-Isabela, PR',)`, `('Akron, OH',)` | Value Statics: Total count 465 - Distinct count 465 - Null count 0 | Column Name Meaning: cbsa name | Column Description: the name and the position of the cbsa officer \n\tCBSA_type TEXT, -- Example Values: `Micro`, `Metro` | Value Statics: Total count 465 - Distinct count 2 - Null count 0 | Column Name Meaning: cbsa type | Column Description: the office type of the officer \n);\n\nCREATE TABLE state\n(\n\tabbreviation TEXT primary key,\n\tname TEXT, -- Example Values: `('Armed Forces Americas',)`, `('Armed Forces Europe',)`, `('Alaska',)` | Value Statics: Total count 62 - Distinct count 62 - Null count 0 | Column Description: the state name \n);\n\nCREATE TABLE congress\n(\n\tcognress_rep_id TEXT primary key,\n\tfirst_name TEXT, -- Example Values: `('Young',)`, `('Begich',)`, `('Murkowski',)` | Value Statics: Total count 540 - Distinct count 488 - Null count 0 | Column Name Meaning: first name | Column Description: the first name of the congress representative \n\tlast_name TEXT, -- Example Values: `('Don',)`, `('Mark',)`, `('Lisa',)` | Value Statics: Total count 540 - Distinct count 319 - Null count 0 | Column Name Meaning: last name | Column Description: the last name of the congress representative \n\tCID TEXT, -- Example Values: `('N00008091',)`, `('N00009585',)`, `('N00033101',)` | Value Statics: Total count 540 - Distinct count 540 - Null count 0 | Column Description: the unique identifier for the congress representative \n\tparty TEXT, -- Example Values: `Republican`, `Democrat`, `Independent` | Value Statics: Total count 540 - Distinct count 3 - Null count 0 | Column Description: the party of the representative \n\tstate TEXT, -- Example Values: `('Alaska',)`, `('Alabama',)`, `('Arkansas',)` | Value Statics: Total count 540 - Distinct count 55 - Null count 0 | Column Description: the state that the representative is from \n\tabbreviation TEXT, -- Example Values: `('AK',)`, `('AL',)`, `('AR',)` | Value Statics: Total count 540 - Distinct count 55 - Null count 0 | Column Description: the abbreviation of the state \n\tHouse TEXT, -- Example Values: `House of Repsentatives`, `Senate` | Value Statics: Total count 540 - Distinct count 2 - Null count 0 | Column Description: the house that the representative is from \n\tDistrict INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 431 - Distinct count 53 - Null count 109 | Column Description: the id of the district that the representative represents | Value Description: The state is divided into different districts. The districts under the same state will be numbered uniformly. \r 'NA' means that the state is not divided into districts.\n\tland_area REAL, -- Example Values: `(571951.26,)`, `(570641.0,)`, `(6066.83,)` | Value Statics: Total count 540 - Distinct count 480 - Null count 0 | Column Name Meaning: land area | Column Description: the land area of the district \n\tforeign key (abbreviation) references state(abbreviation),\n);\n\nCREATE TABLE zip_data\n(\n\tzip_code INTEGER primary key,\n\tcity TEXT, -- Example Values: `('Holtsville',)`, `('Adjuntas',)`, `('Aguada',)` | Value Statics: Total count 41563 - Distinct count 18577 - Null count 0 | Column Description: the city where the postal point locates \n\tstate TEXT, -- Example Values: `('NY',)`, `('PR',)`, `('VI',)` | Value Statics: Total count 41563 - Distinct count 62 - Null count 0 | Column Description: the state of the city \n\tmulti_county TEXT, -- Example Values: `No`, `Yes` | Value Statics: Total count 41563 - Distinct count 2 - Null count 0 | Column Name Meaning: multi country | Column Description: whether the country that the city belongs to is multi_country | Value Description: The meaning of multi_country is consisting of or involving multiple countries.\n\ttype TEXT, -- Example Values: `Unique Post Office`, `Post Office`, `P.O. Box Only`, `Branch`, `Non Postal Community Name` | Value Statics: Total count 41563 - Distinct count 9 - Null count 0 | Column Description: the type of the postal point \n\torganization TEXT, -- Example Values: `('I R S Service Center',)`, `('Irs Service Center',)`, `('Centro Medico Metropolitano',)` | Value Statics: Total count 2011 - Distinct count 1675 - Null count 39552 | Column Description: the organization to which the postal point belongs | Value Description: 'No data' means the postal point is not affiliated with any organization\n\ttime_zone TEXT, -- Example Values: `Eastern`, `Atlantic`, `Central`, `Mountain`, `Pacific` | Value Statics: Total count 40955 - Distinct count 12 - Null count 608 | Column Name Meaning: time zone | Column Description: the time zone of the postal point location \n\tdaylight_savings TEXT, -- Example Values: `Yes`, `No` | Value Statics: Total count 41563 - Distinct count 2 - Null count 0 | Column Name Meaning: daylight savings | Column Description: whether the location implements daylight savings | Value Description: Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\n\tlatitude REAL, -- Example Values: `(40.817923,)`, `(40.788827,)`, `(18.196747,)` | Value Statics: Total count 40942 - Distinct count 37413 - Null count 621 | Column Description: the latitude of the postal point location \n\tlongitude REAL, -- Example Values: `(-73.045317,)`, `(-73.039405,)`, `(-66.736735,)` | Value Statics: Total count 40942 - Distinct count 37493 - Null count 621 | Column Description: the longitude of the postal point location \n\televation INTEGER, -- Example Values: `(25,)`, `(0,)`, `(70,)` | Value Statics: Total count 40942 - Distinct count 1730 - Null count 621 | Column Description: the elevation of the postal point location \n\tstate_fips INTEGER, -- Example Values: `(36,)`, `(72,)`, `(78,)` | Value Statics: Total count 40942 - Distinct count 59 - Null count 621 | Column Name Meaning: state fips | Column Description: state-level FIPS code \n\tcounty_fips INTEGER, -- Example Values: `(103,)`, `(1,)`, `(3,)` | Value Statics: Total count 40942 - Distinct count 319 - Null count 621 | Column Name Meaning: country fips | Column Description: country-level FIPS code | Value Description: FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\n\tregion TEXT, -- Example Values: `Northeast`, `South`, `Midwest`, `West` | Value Statics: Total count 40725 - Distinct count 4 - Null count 838 | Column Description: the region where the postal point locates \n\tdivision TEXT, -- Example Values: `Middle Atlantic`, `New England`, `South Atlantic`, `East South Central`, `East North Central` | Value Statics: Total count 40725 - Distinct count 9 - Null count 838 | Column Description: the division of the organization \n\tpopulation_2020 INTEGER, -- Example Values: `(0,)`, `(11737,)`, `(24263,)` | Value Statics: Total count 40942 - Distinct count 15389 - Null count 621 | Column Name Meaning: population 2020 | Column Description: the population of the residential area in 2020 | Value Description: 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division.\n\tpopulation_2010 INTEGER, -- Example Values: `(0,)`, `(18570,)`, `(41520,)` | Value Statics: Total count 40942 - Distinct count 15416 - Null count 621 | Column Name Meaning: population 2010 | Column Description: the population of the residential area in 2010 \n\thouseholds INTEGER, -- Example Values: `(0,)`, `(6525,)`, `(15002,)` | Value Statics: Total count 40942 - Distinct count 10536 - Null count 621 | Column Description: the number of the households in the residential area \n\tavg_house_value INTEGER, -- Example Values: `(0,)`, `(86200,)`, `(86300,)` | Value Statics: Total count 40942 - Distinct count 5485 - Null count 621 | Column Name Meaning: average house value | Column Description: the average house value in the residential area \n\tavg_income_per_household INTEGER, -- Example Values: `(0,)`, `(13092,)`, `(16358,)` | Value Statics: Total count 40942 - Distinct count 19776 - Null count 621 | Column Name Meaning: average income per household | Column Description: the average income per household in the residential area \n\tpersons_per_household REAL, -- Example Values: `(0.0,)`, `(2.84,)`, `(2.76,)` | Value Statics: Total count 40942 - Distinct count 379 - Null count 621 | Column Name Meaning: persons per household | Column Description: the number of persons per household residential area \n\twhite_population INTEGER, -- Example Values: `(0,)`, `(17479,)`, `(36828,)` | Value Statics: Total count 40942 - Distinct count 14124 - Null count 621 | Column Name Meaning: white population | Column Description: the population of white people in the residential area \n\tblack_population INTEGER, -- Example Values: `(0,)`, `(663,)`, `(2860,)` | Value Statics: Total count 40942 - Distinct count 5591 - Null count 621 | Column Name Meaning: black population | Column Description: the population of black people in the residential area \n\thispanic_population INTEGER, -- Example Values: `(0,)`, `(18486,)`, `(41265,)` | Value Statics: Total count 40942 - Distinct count 5726 - Null count 621 | Column Name Meaning: Hispanic population | Column Description: the population of Hispanic people in the residential area \n\tasian_population INTEGER, -- Example Values: `(0,)`, `(7,)`, `(42,)` | Value Statics: Total count 40942 - Distinct count 3516 - Null count 621 | Column Name Meaning: Asian population | Column Description: the population of Asian people in the residential area \n\tamerican_indian_population INTEGER, -- Example Values: `(0,)`, `(113,)`, `(291,)` | Value Statics: Total count 40942 - Distinct count 1640 - Null count 621 | Column Name Meaning: American Indian population | Column Description: the population of American Indian people in the residential area \n\thawaiian_population INTEGER, -- Example Values: `(0,)`, `(10,)`, `(32,)` | Value Statics: Total count 40942 - Distinct count 716 - Null count 621 | Column Name Meaning: Hawaiian population | Column Description: the population of Hawaiian people in the residential area \n\tother_population INTEGER, -- Example Values: `(0,)`, `(558,)`, `(2634,)` | Value Statics: Total count 40942 - Distinct count 3988 - Null count 621 | Column Name Meaning: other population | Column Description: the population of other races in the residential area \n\tmale_population INTEGER, -- Example Values: `(0,)`, `(9078,)`, `(20396,)` | Value Statics: Total count 40942 - Distinct count 11759 - Null count 621 | Column Name Meaning: male population | Column Description: the population of males in the residential area \n\tfemale_population INTEGER, -- Example Values: `(0,)`, `(9492,)`, `(21124,)` | Value Statics: Total count 40942 - Distinct count 11953 - Null count 621 | Column Name Meaning: female population | Column Description: the population of females in the residential area \n\tmedian_age REAL, -- Example Values: `(0.0,)`, `(35.9,)`, `(37.5,)` | Value Statics: Total count 40942 - Distinct count 546 - Null count 621 | Column Name Meaning: median age | Column Description: the median age of the residential area | Value Description: gender ratio in the residential area = male_population / female_population if female_population != 0\n\tmale_median_age REAL, -- Example Values: `(0.0,)`, `(34.5,)`, `(36.6,)` | Value Statics: Total count 40942 - Distinct count 539 - Null count 621 | Column Name Meaning: male median age | Column Description: the male median age in the residential area \n\tfemale_median_age REAL, -- Example Values: `(0.0,)`, `(37.1,)`, `(38.5,)` | Value Statics: Total count 40942 - Distinct count 552 - Null count 621 | Column Name Meaning: female median age | Column Description: the female median age in the residential area \n\tresidential_mailboxes INTEGER, -- Example Values: `(0,)`, `(4133,)`, `(8791,)` | Value Statics: Total count 40942 - Distinct count 10919 - Null count 621 | Column Name Meaning: residential mailboxes | Column Description: the number of residential mailboxes in the residential area \n\tbusiness_mailboxes INTEGER, -- Example Values: `(1,)`, `(0,)`, `(221,)` | Value Statics: Total count 40942 - Distinct count 2120 - Null count 621 | Column Name Meaning: business mailboxes | Column Description: the number of business mailboxes in the residential area \n\ttotal_delivery_receptacles INTEGER, -- Example Values: `(1,)`, `(0,)`, `(5173,)` | Value Statics: Total count 40942 - Distinct count 12322 - Null count 621 | Column Name Meaning: total delivery receptacles | Column Description: the total number of delivery receptacles \n\tbusinesses INTEGER, -- Example Values: `(2,)`, `(0,)`, `(472,)` | Value Statics: Total count 40942 - Distinct count 1929 - Null count 621 | Column Description: the number of businesses in the residential area \n\t\"1st_quarter_payroll\" INTEGER, -- Example Values: `(0,)`, `(88685000,)`, `(109167000,)` | Value Statics: Total count 40942 - Distinct count 18397 - Null count 621 | Column Name Meaning: 1st quarter payroll | Column Description: the total wages reported in the 1st quarter payroll report of the residential area \n\tannual_payroll INTEGER, -- Example Values: `(0,)`, `(376492000,)`, `(472633000,)` | Value Statics: Total count 40942 - Distinct count 24757 - Null count 621 | Column Name Meaning: annual payroll | Column Description: the total wages reported in the annual payroll report of the residential area \n\temployees INTEGER, -- Example Values: `(0,)`, `(9127,)`, `(18894,)` | Value Statics: Total count 40942 - Distinct count 9739 - Null count 621 | Column Description: the number of employees in the residential area | Value Description: Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\n\twater_area REAL, -- Example Values: `(0.0,)`, `(0.309,)`, `(1.71,)` | Value Statics: Total count 40942 - Distinct count 5978 - Null count 621 | Column Name Meaning: water area | Column Description: the water area of the residential area \n\tland_area REAL, -- Example Values: `(0.0,)`, `(64.348,)`, `(30.621,)` | Value Statics: Total count 40942 - Distinct count 27704 - Null count 621 | Column Name Meaning: land area | Column Description: the land area of the residential area \n\tsingle_family_delivery_units INTEGER, -- Example Values: `(0,)`, `(2419,)`, `(5473,)` | Value Statics: Total count 40942 - Distinct count 9026 - Null count 621 | Column Name Meaning: single-family delivery units | Column Description: the number of single-family delivery units in the residential area \n\tmulti_family_delivery_units INTEGER, -- Example Values: `(0,)`, `(1264,)`, `(827,)` | Value Statics: Total count 40942 - Distinct count 4347 - Null count 621 | Column Name Meaning: multi-family delivery units | Column Description: the number of single-family delivery units in the residential area | Value Description: A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n\ttotal_beneficiaries INTEGER, -- Example Values: `(0,)`, `(5135,)`, `(16805,)` | Value Statics: Total count 40773 - Distinct count 2191 - Null count 790 | Column Name Meaning: total beneficiaries | Column Description: the total number of beneficiaries of the postal service | Value Description: multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time\n\tretired_workers INTEGER, -- Example Values: `(0,)`, `(2940,)`, `(12145,)` | Value Statics: Total count 40773 - Distinct count 1659 - Null count 790 | Column Name Meaning: retired workers | Column Description: the number of retired workers in the residential area \n\tdisabled_workers INTEGER, -- Example Values: `(0,)`, `(885,)`, `(1835,)` | Value Statics: Total count 40773 - Distinct count 467 - Null count 790 | Column Name Meaning: disable workers | Column Description: the number of disabled workers in the residential area \n\tparents_and_widowed INTEGER, -- Example Values: `(0,)`, `(155,)`, `(1045,)` | Value Statics: Total count 40773 - Distinct count 222 - Null count 790 | Column Name Meaning: parents and widowed | Column Description: the number of parents and widowed in the residential area \n\tspouses INTEGER, -- Example Values: `(0,)`, `(145,)`, `(1085,)` | Value Statics: Total count 40773 - Distinct count 182 - Null count 790 | Column Description: the number of spouses in the residential area \n\tchildren INTEGER, -- Example Values: `(0,)`, `(1010,)`, `(695,)` | Value Statics: Total count 40773 - Distinct count 255 - Null count 790 | Column Description: the number of children in the residential area \n\tover_65 INTEGER, -- Example Values: `(0,)`, `(3245,)`, `(13260,)` | Value Statics: Total count 40773 - Distinct count 1758 - Null count 790 | Column Name Meaning: over 65 | Column Description: the number of people whose age is over 65 in the residential area \n\tmonthly_benefits_all INTEGER, -- Example Values: `(0,)`, `(6137000,)`, `(14602000,)` | Value Statics: Total count 40773 - Distinct count 8155 - Null count 790 | Column Name Meaning: monthly benefits all | Column Description: all benefit payments by month | Value Description: no. of over_65 can refer to elders. Higher means more elders\r if the ratio: over_65 / children is higher: the aging is more serious.\n\tmonthly_benefits_retired_workers INTEGER, -- Example Values: `(0,)`, `(4007000,)`, `(10947000,)` | Value Statics: Total count 40773 - Distinct count 6906 - Null count 790 | Column Name Meaning: monthly benefits retired workers | Column Description: monthly benefit payments for retired workers | Value Description: usd\n\tmonthly_benefits_widowed INTEGER, -- Example Values: `(0,)`, `(185000,)`, `(966000,)` | Value Statics: Total count 40773 - Distinct count 1109 - Null count 790 | Column Name Meaning: monthly benefits widowed | Column Description: monthly benefit payments for retired workers \n\tCBSA INTEGER, -- Example Values: `(35620,)`, `(38660,)`, `(10380,)` | Value Statics: Total count 17621 - Distinct count 465 - Null count 23942 | Column Description: the code of the cbsa officer \n\tforeign key (state) references state(abbreviation),\n\tforeign key (CBSA) references CBSA(CBSA),\n);\n\nCREATE TABLE alias\n(\n\tzip_code INTEGER primary key,\n\talias TEXT, -- Example Values: `('Holtsville',)`, `('Adjuntas',)`, `('Aguada',)` | Value Statics: Total count 41701 - Distinct count 18667 - Null count 0 | Column Description: the alias of the city \n\tforeign key (zip_code) references zip_data(zip_code),\n);\n\nCREATE TABLE area_code\n(\n\tzip_code INTEGER, -- Example Values: `(501,)`, `(544,)`, `(601,)` | Value Statics: Total count 53796 - Distinct count 41698 - Null count 0 | Column Name Meaning: zip code | Column Description: the zip code of the area \n\tarea_code INTEGER, -- Example Values: `(631,)`, `(787,)`, `(939,)` | Value Statics: Total count 53796 - Distinct count 331 - Null count 0 | Column Name Meaning: area code | Column Description: the code of the area \n\tprimary key (zip_code, area_code),\n\tforeign key (zip_code) references zip_data(zip_code),\n);\n\nCREATE TABLE avoid\n(\n\tzip_code INTEGER, -- Example Values: `(501,)`, `(544,)`, `(601,)` | Value Statics: Total count 24114 - Distinct count 11228 - Null count 0 | Column Name Meaning: zip code | Column Description: the zip code of the bad alias \n\tbad_alias TEXT, -- Example Values: `('Internal Revenue Service',)`, `('Colinas Del Gigante',)`, `('Jard De Adjuntas',)` | Value Statics: Total count 24114 - Distinct count 18262 - Null count 0 | Column Name Meaning: bad alias | Column Description: the bad alias \n\tprimary key (zip_code, bad_alias),\n\tforeign key (zip_code) references zip_data(zip_code),\n);\n\nCREATE TABLE country\n(\n\tzip_code INTEGER, -- Example Values: `(501,)`, `(544,)`, `(601,)` | Value Statics: Total count 51001 - Distinct count 40361 - Null count 0 | Column Name Meaning: zip code | Column Description: the zip code of the state in the country \n\tcounty TEXT, -- Example Values: `('SUFFOLK',)`, `('ADJUNTAS',)`, `('AGUADA',)` | Value Statics: Total count 51001 - Distinct count 2159 - Null count 0 | Column Name Meaning: country | Column Description: the country \n\tstate TEXT, -- Example Values: `('NY',)`, `('PR',)`, `('VI',)` | Value Statics: Total count 50621 - Distinct count 57 - Null count 380 | Column Description: the state of the country \n\tprimary key (zip_code, county),\n\tforeign key (zip_code) references zip_data(zip_code),\n\tforeign key (state) references state(abbreviation),\n);\n\nCREATE TABLE zip_congress\n(\n\tzip_code INTEGER, -- Example Values: `(501,)`, `(601,)`, `(602,)` | Value Statics: Total count 45231 - Distinct count 39232 - Null count 0 | Column Name Meaning: zip code | Column Description: the zip code of the district \n\tdistrict TEXT, -- Example Values: `('NY-1',)`, `('PR',)`, `('VI',)` | Value Statics: Total count 45231 - Distinct count 439 - Null count 0 | Column Description: the district \n\tprimary key (zip_code, district),\n\tforeign key (district) references congress(cognress_rep_id),\n\tforeign key (zip_code) references zip_data(zip_code),\n);" }
beer_factory
{ "db_schema": "CREATE TABLE customers\n(\n\tCustomerID INTEGER primary key,\n\tFirst TEXT, -- Example Values: `('Kenneth',)`, `('Madeleine',)`, `('Damen',)` | Value Statics: Total count 554 - Distinct count 359 - Null count 0 | Column Name Meaning: first name | Column Description: the first name of the customer \n\tLast TEXT, -- Example Values: `('Walton',)`, `('Jones',)`, `('Wheeler',)` | Value Statics: Total count 554 - Distinct count 478 - Null count 0 | Column Name Meaning: last name | Column Description: the last name of the customer \n\tStreetAddress TEXT, -- Example Values: `('6715 Commonwealth Dr',)`, `('3603 Leola Way',)`, `('6740 Branwood Way',)` | Value Statics: Total count 554 - Distinct count 554 - Null count 0 | Column Name Meaning: street address | Column Description: the address of the customer \n\tCity TEXT, -- Example Values: `('Sacramento',)`, `('Orangevale',)`, `('Folsom',)` | Value Statics: Total count 554 - Distinct count 22 - Null count 0 | Column Description: the city where the customer lives \n\tState TEXT, -- Example Values: `CA` | Value Statics: Total count 554 - Distinct count 1 - Null count 0 | Column Description: the state code | Value Description: please refer to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971\r and mention its corresponding state name in the question. i.e. New York-- NY\n\tZipCode INTEGER, -- Example Values: `(94256,)`, `(94258,)`, `(95662,)` | Value Statics: Total count 554 - Distinct count 133 - Null count 0 | Column Name Meaning: zip code | Column Description: the zip code \n\tEmail TEXT, -- Example Values: `('walton.k76@fastmail.com',)`, `('j_madeleine@gmail.com',)`, `('dwheeler@outlook.com',)` | Value Statics: Total count 554 - Distinct count 554 - Null count 0 | Column Description: the customer's email \n\tPhoneNumber TEXT, -- Example Values: `('(916) 918-1561',)`, `('(916) 186-9423',)`, `('(916) 164-1156',)` | Value Statics: Total count 554 - Distinct count 554 - Null count 0 | Column Name Meaning: phone number | Column Description: the customer's phone number \n\tFirstPurchaseDate DATE, -- Example Values: `('2013-05-30',)`, `('2013-02-06',)`, `('2013-04-11',)` | Value Statics: Total count 554 - Distinct count 307 - Null count 0 | Column Name Meaning: first purchase date | Column Description: the first purchase date of the customer | Value Description: yyyy-mm-dd\n\tSubscribedToEmailList TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 554 - Distinct count 2 - Null count 0 | Column Name Meaning: subscribed to email list | Column Description: whether the customer subscribe to the email list | Value Description: 'true' means the user permits the company to send regular emails to them.\n\tGender TEXT, -- Example Values: `M`, `F` | Value Statics: Total count 554 - Distinct count 2 - Null count 0 | Column Description: the customer's gender \n);\n\nCREATE TABLE geolocation\n(\n\tLocationID INTEGER primary key,\n\tLatitude REAL, -- Example Values: `0.0`, `38.566129`, `38.559615` | Value Statics: Total count 3 - Distinct count 3 - Null count 0 | Column Description: the latitude of the location \n\tLongitude REAL, -- Example Values: `0.0`, `-121.426432`, `-121.42243` | Value Statics: Total count 3 - Distinct count 3 - Null count 0 | Column Description: the longitude of the location | Value Description: precise location / coordinate = POINT(latitude, longitude)\n\tforeign key (LocationID) references location(LocationID),\n);\n\nCREATE TABLE location\n(\n\tLocationID INTEGER primary key,\n\tLocationName TEXT, -- Example Values: `LOST`, `Sac State American River Courtyard`, `Sac State Union` | Value Statics: Total count 3 - Distinct count 3 - Null count 0 | Column Name Meaning: location name | Column Description: the name of the location \n\tStreetAddress TEXT, -- Example Values: `6000 J St` | Value Statics: Total count 2 - Distinct count 1 - Null count 1 | Column Name Meaning: street address | Column Description: the street address \n\tCity TEXT, -- Example Values: `Sacramento` | Value Statics: Total count 2 - Distinct count 1 - Null count 1 | Column Description: the city where the location locates \n\tState TEXT, -- Example Values: `CA` | Value Statics: Total count 2 - Distinct count 1 - Null count 1 | Column Description: the state code \n\tZipCode INTEGER, -- Example Values: `95819` | Value Statics: Total count 2 - Distinct count 1 - Null count 1 | Column Name Meaning: zip code | Column Description: the zip code of the location \n\tforeign key (LocationID) references geolocation(LocationID),\n\tforeign key (LocationID) references geolocation(LocationID),\n);\n\nCREATE TABLE rootbeerbrand\n(\n\tBrandID INTEGER primary key,\n\tBrandName TEXT, -- Example Values: `('A&W',)`, `('A.J. Stephans',)`, `('Abita',)` | Value Statics: Total count 24 - Distinct count 24 - Null count 0 | Column Name Meaning: brand name | Column Description: the brand name \n\tFirstBrewedYear INTEGER, -- Example Values: `1919`, `1926`, `1986`, `1898`, `1984` | Value Statics: Total count 24 - Distinct count 19 - Null count 0 | Column Name Meaning: first brewed year | Column Description: the first brewed year of the brand | Value Description: brand with earlier first brewed year has a much longer brewed history\n\tBreweryName TEXT, -- Example Values: `('Dr Pepper Snapple Group',)`, `('AJ Stephans Beverages',)`, `('Abita Brewery',)` | Value Statics: Total count 24 - Distinct count 23 - Null count 0 | Column Name Meaning: brewery name | Column Description: the brewery name \n\tCity TEXT, -- Example Values: `('Lodi',)`, `('Fall River',)`, `('Covington',)` | Value Statics: Total count 23 - Distinct count 19 - Null count 1 | Column Description: the city where the brewery locates \n\tState TEXT, -- Example Values: `CA`, `MA`, `LA`, `WA`, `QLD` | Value Statics: Total count 23 - Distinct count 14 - Null count 1 | Column Description: the state code \n\tCountry TEXT, -- Example Values: `United States`, `Australia` | Value Statics: Total count 24 - Distinct count 2 - Null count 0 | Column Description: the country where the brewery locates | Value Description: can find its corresponding continent. e.g., U.S.--> North America\n\tDescription TEXT, -- | Column Description: the description of the brand \n\tCaneSugar TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0 | Column Name Meaning: cane sugar | Column Description: whether the drink contains cane sugar \n\tCornSyrup TEXT, -- Example Values: `TRUE`, `FALSE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0 | Column Name Meaning: corn syrup | Column Description: whether the drink contains the corn syrup \n\tHoney TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0 | Column Description: whether the drink contains the honey | Value Description: if the beer has honey, it means this beer is sweeter or has sweetness\n\tArtificialSweetener TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0 | Column Name Meaning: artificial sweetener | Column Description: whether the drink contains the artificial sweetener | Value Description: if the beer has artificial sweetener, it means this beer is sweeter or has sweetness\n\tCaffeinated TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0 | Column Description: whether the drink is caffeinated \n\tAlcoholic TEXT, -- Example Values: `FALSE` | Value Statics: Total count 24 - Distinct count 1 - Null count 0 | Column Description: whether the drink is alcoholic \n\tAvailableInCans TEXT, -- Example Values: `TRUE`, `FALSE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0 | Column Name Meaning: available in cans | Column Description: whether the drink is available in cans \n\tAvailableInBottles TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0 | Column Name Meaning: available in bottles | Column Description: whether the drink is available in bottles \n\tAvailableInKegs TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 24 - Distinct count 2 - Null count 0 | Column Name Meaning: available in kegs | Column Description: whether the drink is available in kegs \n\tWebsite TEXT, -- Example Values: `('http://www.rootbeer.com/',)`, `('http://www.ajstephans.com/',)`, `('https://abita.com/brews/our_brews/abita-root-bee` | Value Statics: Total count 22 - Distinct count 22 - Null count 2 | Column Description: the website of the brand \n\tFacebookPage TEXT, -- Example Values: `https://www.facebook.com/Dads-Old-Fashioned-Root-B`, `https://www.facebook.com/Dog-N-Suds-Bottled-Root-B`, `https://www.facebook.com/fitzsrootbeer`, `https://www.facebook.com/Gales-Root-Beer-207365072`, `https://www.facebook.com/MugRootBeer/` | Value Statics: Total count 6 - Distinct count 6 - Null count 18 | Column Name Meaning: facebook page | Column Description: the facebook page of the brand | Value Description: if not, it means this brand doesn't advertise on facebook\n\tTwitter TEXT, -- Example Values: `https://twitter.com/ilovedads`, `https://twitter.com/1919rootbeer` | Value Statics: Total count 2 - Distinct count 2 - Null count 22 | Column Description: the twitter of the brand | Value Description: if not, it means this brand doesn't advertise on twitter\n\tWholesaleCost REAL, -- Example Values: `0.42`, `0.98`, `1.13`, `0.4`, `1.1` | Value Statics: Total count 24 - Distinct count 17 - Null count 0 | Column Name Meaning: wholesale cost | Column Description: the wholesale cost \n\tCurrentRetailPrice REAL, -- Example Values: `1.0`, `3.0`, `44.0` | Value Statics: Total count 24 - Distinct count 3 - Null count 0 | Column Name Meaning: current retail price | Column Description: the current retail price | Value Description: The unit profit available to wholesalers = current retail price - wholesale cost\n);\n\nCREATE TABLE rootbeer\n(\n\tRootBeerID INTEGER primary key,\n\tBrandID INTEGER, -- Example Values: `(10001,)`, `(10002,)`, `(10003,)` | Value Statics: Total count 6430 - Distinct count 23 - Null count 0 | Column Description: the brand id \n\tContainerType TEXT, -- Example Values: `Bottle`, `Can` | Value Statics: Total count 6430 - Distinct count 2 - Null count 0 | Column Name Meaning: container type | Column Description: the type of the container \n\tLocationID INTEGER, -- Example Values: `1`, `2` | Value Statics: Total count 6430 - Distinct count 2 - Null count 0 | Column Name Meaning: location id | Column Description: the location id of the selling company \n\tPurchaseDate DATE, -- Example Values: `('2015-07-03',)`, `('2016-05-09',)`, `('2015-05-24',)` | Value Statics: Total count 6430 - Distinct count 807 - Null count 0 | Column Name Meaning: purchase date | Column Description: the purchase date of the root beer \n\tforeign key (LocationID) references geolocation(LocationID),\n\tforeign key (LocationID) references geolocation(LocationID),\n\tforeign key (LocationID) references location(LocationID),\n\tforeign key (BrandID) references rootbeerbrand(BrandID),\n\tforeign key (BrandID) references rootbeerbrand(BrandID),\n);\n\nCREATE TABLE rootbeerreview\n(\n\tCustomerID INTEGER, -- Example Values: `(101811,)`, `(105549,)`, `(105771,)` | Value Statics: Total count 713 - Distinct count 362 - Null count 0 | Column Name Meaning: customer id | Column Description: the id of the customer \n\tBrandID INTEGER, -- Example Values: `(10012,)`, `(10014,)`, `(10015,)` | Value Statics: Total count 713 - Distinct count 22 - Null count 0 | Column Name Meaning: brand id | Column Description: the id of the brand \n\tStarRating INTEGER, -- Example Values: `5`, `1`, `3`, `2`, `4` | Value Statics: Total count 713 - Distinct count 5 - Null count 0 | Column Name Meaning: star rating | Column Description: the star rating of the root beer | Value Description: root beer with higher star rating has higher market evaluation and acceptance\n\tReviewDate DATE, -- Example Values: `('2013-07-15',)`, `('2013-07-08',)`, `('2013-07-25',)` | Value Statics: Total count 713 - Distinct count 421 - Null count 0 | Column Name Meaning: review date | Column Description: the review date | Value Description: yyyy-mm-dd\n\tReview TEXT, -- Example Values: `You could have done better Sactown.`, `Too much bite, not enough barq.`, `The drink is fine, but the crest on the label is p`, `Fantastic!`, `Love stopping by Fitz's in St. Louis.` | Value Statics: Total count 16 - Distinct count 16 - Null count 697 | Column Description: the specific review content \n\tprimary key (CustomerID, BrandID),\n\tforeign key (CustomerID) references customers(CustomerID),\n\tforeign key (BrandID) references rootbeerbrand(BrandID),\n\tforeign key (BrandID) references rootbeerbrand(BrandID),\n);\n\nCREATE TABLE transaction\n(\n\tTransactionID INTEGER primary key,\n\tCreditCardNumber INTEGER, -- Example Values: `(6011583832864739,)`, `(4716634257568793,)`, `(5597608517846968,)` | Value Statics: Total count 6312 - Distinct count 554 - Null count 0 | Column Name Meaning: credit card number | Column Description: the number of the credit card used for payment \n\tCustomerID INTEGER, -- Example Values: `(864896,)`, `(610766,)`, `(207846,)` | Value Statics: Total count 6312 - Distinct count 554 - Null count 0 | Column Name Meaning: customer id | Column Description: the customer id \n\tTransactionDate DATE, -- Example Values: `('2014-07-07',)`, `('2014-07-13',)`, `('2014-07-17',)` | Value Statics: Total count 6312 - Distinct count 727 - Null count 0 | Column Name Meaning: transaction date | Column Description: the transaction date | Value Description: yyyy-mm-dd\n\tCreditCardType TEXT, -- Example Values: `Discover`, `Visa`, `MasterCard`, `American Express` | Value Statics: Total count 6312 - Distinct count 4 - Null count 0 | Column Name Meaning: credit card type | Column Description: the credit card type \n\tLocationID INTEGER, -- Example Values: `2`, `1` | Value Statics: Total count 6312 - Distinct count 2 - Null count 0 | Column Name Meaning: location id | Column Description: the location id of the selling company \n\tRootBeerID INTEGER, -- Example Values: `(105661,)`, `(105798,)`, `(102514,)` | Value Statics: Total count 6312 - Distinct count 6312 - Null count 0 | Column Name Meaning: root beer id | Column Description: the root beer id \n\tPurchasePrice REAL, -- Example Values: `3.0`, `1.0` | Value Statics: Total count 6312 - Distinct count 2 - Null count 0 | Column Name Meaning: purchase price | Column Description: the unit purchase price of the root beer | Value Description: us dollars\n\tforeign key (CustomerID) references customers(CustomerID),\n\tforeign key (LocationID) references location(LocationID),\n\tforeign key (RootBeerID) references rootbeer(RootBeerID),\n);" }
sales
{ "db_schema": "CREATE TABLE Customers\n(\n\tCustomerID INTEGER not null primary key,\n\tFirstName TEXT not null, -- Example Values: `('Aaron',)`, `('Abby',)`, `('Abe',)` | Value Statics: Total count 19759 - Distinct count 1011 - Null count 0 | Column Name Meaning: First Name | Column Description: the customer's first name \n\tMiddleInitial TEXT null, -- Example Values: `('A',)`, `('B',)`, `('C',)` | Value Statics: Total count 11426 - Distinct count 27 - Null count 8333 | Column Name Meaning: Middle Initial | Column Description: the customer's middle initial \n\tLastName TEXT not null, -- Example Values: `('Alexander',)`, `('Bryant',)`, `('Butler',)` | Value Statics: Total count 19759 - Distinct count 1202 - Null count 0 | Column Name Meaning: Last Name | Column Description: the customer's last name \n);\n\nCREATE TABLE Employees\n(\n\tEmployeeID INTEGER not null primary key,\n\tFirstName TEXT not null, -- Example Values: `('Abraham',)`, `('Reginald',)`, `('Cheryl',)` | Value Statics: Total count 22 - Distinct count 22 - Null count 0 | Column Name Meaning: First Name | Column Description: the employee's first name \n\tMiddleInitial TEXT null, -- Example Values: `e`, `l`, `a`, `u`, `r` | Value Statics: Total count 22 - Distinct count 11 - Null count 0 | Column Name Meaning: Middle Initial | Column Description: the employee's middle initial \n\tLastName TEXT not null, -- Example Values: `('Bennet',)`, `('Blotchet-Halls',)`, `('Carson',)` | Value Statics: Total count 22 - Distinct count 21 - Null count 0 | Column Name Meaning: Last Name | Column Description: the employee's last name \n);\n\nCREATE TABLE Products\n(\n\tProductID INTEGER not null primary key,\n\tName TEXT not null, -- Example Values: `('Adjustable Race',)`, `('Bearing Ball',)`, `('BB Ball Bearing',)` | Value Statics: Total count 504 - Distinct count 504 - Null count 0 | Column Description: the product name \n\tPrice REAL null, -- Example Values: `(1.6,)`, `(0.8,)`, `(2.4,)` | Value Statics: Total count 504 - Distinct count 254 - Null count 0 | Column Description: the price of the product | Value Description: unit price if the price = 0.0, it means this product is free or a gift\n);\n\nCREATE TABLE Sales\n(\n\tSalesID INTEGER not null primary key,\n\tSalesPersonID INTEGER not null, -- Example Values: `(17,)`, `(5,)`, `(8,)` | Value Statics: Total count 100000 - Distinct count 22 - Null count 0 | Column Name Meaning: SalesPerson ID | Column Description: the unique id of the sale person \n\tCustomerID INTEGER not null, -- Example Values: `(10482,)`, `(1964,)`, `(12300,)` | Value Statics: Total count 100000 - Distinct count 230 - Null count 0 | Column Name Meaning: Customer ID | Column Description: the unique id of the customer \n\tProductID INTEGER not null, -- Example Values: `(500,)`, `(306,)`, `(123,)` | Value Statics: Total count 100000 - Distinct count 80 - Null count 0 | Column Name Meaning: Product ID | Column Description: the unique id of the product \n\tQuantity INTEGER not null, -- Example Values: `(500,)`, `(810,)`, `(123,)` | Value Statics: Total count 100000 - Distinct count 88 - Null count 0 | Column Description: trading quantity | Value Description: total price = quantity x Products' Price\n\tforeign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,\n\tforeign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,\n\tforeign key (CustomerID) references Customers (CustomerID) on update cascade on delete cascade,\n\tforeign key (ProductID) references Products (ProductID) on update cascade on delete cascade,\n);" }
menu
{ "db_schema": "CREATE TABLE Dish\n(\n\tid INTEGER primary key,\n\tname TEXT, -- Example Values: `('Consomme printaniere royal',)`, `('Chicken gumbo',)`, `('Tomato aux croutons',)` | Value Statics: Total count 100000 - Distinct count 99994 - Null count 0 | Column Description: the name of the dish \n\tdescription TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993 | Column Description: description of the dish | Value Description: (no value)\n\tmenus_appeared INTEGER, -- Example Values: `(8,)`, `(111,)`, `(14,)` | Value Statics: Total count 100000 - Distinct count 529 - Null count 0 | Column Name Meaning: menus appeared | Column Description: how many menus have this dish \n\ttimes_appeared INTEGER, -- Example Values: `(8,)`, `(117,)`, `(14,)` | Value Statics: Total count 100000 - Distinct count 532 - Null count 0 | Column Name Meaning: times appeared | Column Description: how many times this dish appears in the menu | Value Description: if times_appeared > menus_appeard: this dish appeared in a menu more than once\n\tfirst_appeared INTEGER, -- Example Values: `(1897,)`, `(1895,)`, `(1893,)` | Value Statics: Total count 100000 - Distinct count 95 - Null count 0 | Column Name Meaning: first appeared | Column Description: the year that this dish appears first | Value Description: 1.\tthe year outside of [1851, 2012], it means this data is not correct 2.\tif this dish lasts longer (last_appeared - first_appeard), it means its history is long or historical / classical\n\tlast_appeared INTEGER, -- Example Values: `(1927,)`, `(1960,)`, `(1917,)` | Value Statics: Total count 100000 - Distinct count 137 - Null count 0 | Column Name Meaning: last appeared | Column Description: the year that this dish appears the last time | Value Description: 1.\tthe year outside of [1851, 2012], it means this data is not correct 2.\tif this dish lasts longer (last_appeared - first_appeard), it means its history is long or historical / classical\n\tlowest_price REAL, -- Example Values: `(0.2,)`, `(0.1,)`, `(0.25,)` | Value Statics: Total count 97538 - Distinct count 152 - Null count 2462 | Column Name Meaning: lowest price | Column Description: the lowest price of the dish | Value Description: 0: for free\n\thighest_price REAL, -- Example Values: `(0.4,)`, `(0.8,)`, `(1.0,)` | Value Statics: Total count 97538 - Distinct count 276 - Null count 2462 | Column Name Meaning: highest price | Column Description: the highest price of the dish \n);\n\nCREATE TABLE Menu\n(\n\tid INTEGER primary key,\n\tname TEXT, -- Example Values: `('',)`, `('The Modern',)`, `('Restaurant',)` | Value Statics: Total count 11267 - Distinct count 798 - Null count 6260 | Column Description: the name of the menu | Value Description: if the value is not null or empty, it means this menu has special dishes. otherwise, this menu is general and nothing special\n\tsponsor TEXT, -- Example Values: `('HOTEL EASTMAN',)`, `('REPUBLICAN HOUSE',)`, `('NORDDEUTSCHER LLOYD BREMEN',)` | Value Statics: Total count 15966 - Distinct count 6361 - Null count 1561 | Column Description: the sponsor of this menu | Value Description: if the value is null or empyt, it means this meanu is DIY by the restaurant.\n\tevent TEXT, -- Example Values: `('BREAKFAST',)`, `('[DINNER]',)`, `('FRUHSTUCK/BREAKFAST;',)` | Value Statics: Total count 8633 - Distinct count 1762 - Null count 8894 | Column Description: the event that the menu was created for \n\tvenue TEXT, -- Example Values: `('COMMERCIAL',)`, `('',)`, `('SOC;',)` | Value Statics: Total count 8456 - Distinct count 235 - Null count 9071 | Column Description: the venue that the menu was created for \n\tplace TEXT, -- Example Values: `('HOT SPRINGS, AR',)`, `('MILWAUKEE, [WI];',)`, `('DAMPFER KAISER WILHELM DER GROSSE;',)` | Value Statics: Total count 8456 - Distinct count 3704 - Null count 9071 | Column Description: the location that the menu was used | Value Description: the location that the menu was used\n\tphysical_description TEXT, -- Example Values: `('CARD; 4.75X7.5;',)`, `('CARD; ILLUS; COL; 7.0X9.0;',)`, `('CARD; ILLU; COL; 5.5X8.0;',)` | Value Statics: Total count 15898 - Distinct count 6260 - Null count 1629 | Column Name Meaning: physical description | Column Description: physical description of the menu \n\toccasion TEXT, -- Example Values: `('EASTER;',)`, `('',)`, `('ANNIVERSARY;',)` | Value Statics: Total count 8456 - Distinct count 422 - Null count 9071 | Column Description: occasion of the menu \n\tnotes TEXT, -- Example Values: `('',)`, `('WEDGEWOOD BLUE CARD; WHITE EMBOSSED GREEK KEY BO`, `('MENU IN GERMAN AND ENGLISH; ILLUS, STEAMSHIP AND` | Value Statics: Total count 15898 - Distinct count 6958 - Null count 1629 | Column Description: notes \n\tcall_number TEXT, -- Example Values: `('1900-2822',)`, `('1900-2825',)`, `('1900-2827',)` | Value Statics: Total count 15966 - Distinct count 15920 - Null count 1561 | Column Description: call number | Value Description: if null: not support for taking out or booking in advance\n\tkeywords TEXT, -- | Column Description: keywords \n\tlanguage TEXT, -- | Column Description: language \n\tdate DATE, -- Example Values: `('1900-04-15',)`, `('1900-04-16',)`, `('1900-04-17',)` | Value Statics: Total count 16941 - Distinct count 6593 - Null count 586 | Column Description: the date that this menu was created \n\tlocation TEXT, -- Example Values: `('Hotel Eastman',)`, `('Republican House',)`, `('Norddeutscher Lloyd Bremen',)` | Value Statics: Total count 17527 - Distinct count 6274 - Null count 0 | Column Description: the location that the menu was used \n\tlocation_type TEXT, -- \n\tcurrency TEXT, -- Example Values: `('Dollars',)`, `('Cents',)`, `('Francs',)` | Value Statics: Total count 6454 - Distinct count 42 - Null count 11073 | Column Description: the currency that the menu was used \n\tcurrency_symbol TEXT, -- Example Values: `('$',)`, `('c',)`, `('FF',)` | Value Statics: Total count 6454 - Distinct count 34 - Null count 11073 | Column Description: the currency symbol \n\tstatus TEXT, -- Example Values: `complete` | Value Statics: Total count 17527 - Distinct count 1 - Null count 0 | Column Description: status of the menu \n\tpage_count INTEGER, -- Example Values: `(2,)`, `(4,)`, `(12,)` | Value Statics: Total count 17527 - Distinct count 46 - Null count 0 | Column Name Meaning: page count | Column Description: the number of pages of this menu \n\tdish_count INTEGER, -- Example Values: `(67,)`, `(34,)`, `(84,)` | Value Statics: Total count 17527 - Distinct count 555 - Null count 0 | Column Name Meaning: dish count | Column Description: the number of dishes of this menu \n);\n\nCREATE TABLE MenuPage\n(\n\tid INTEGER primary key,\n\tmenu_id INTEGER, -- Example Values: `(12460,)`, `(12461,)`, `(12462,)` | Value Statics: Total count 66937 - Distinct count 19816 - Null count 0 | Column Name Meaning: menu id | Column Description: the id of the menu \n\tpage_number INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 65735 - Distinct count 74 - Null count 1202 | Column Name Meaning: page number | Column Description: the page number \n\timage_id REAL, -- Example Values: `(1603595.0,)`, `(1603596.0,)`, `(1603597.0,)` | Value Statics: Total count 66914 - Distinct count 63223 - Null count 23 | Column Name Meaning: image id | Column Description: the id of the image \n\tfull_height INTEGER, -- Example Values: `(7230,)`, `(5428,)`, `(3074,)` | Value Statics: Total count 66608 - Distinct count 5612 - Null count 329 | Column Name Meaning: full height | Column Description: full height of the menu page | Value Description: (mm)\n\tfull_width INTEGER, -- Example Values: `(5428,)`, `(7230,)`, `(2046,)` | Value Statics: Total count 66608 - Distinct count 5041 - Null count 329 | Column Name Meaning: full width | Column Description: full width of the menu page | Value Description: (mm)\n\tuuid TEXT, -- Example Values: `('510d47e4-2955-a3d9-e040-e00a18064a99',)`, `('510d47e4-2956-a3d9-e040-e00a18064a99',)`, `('510d47e4-2957-a3d9-e040-e00a18064a99',)` | Value Statics: Total count 66937 - Distinct count 63041 - Null count 0 \n\tforeign key (menu_id) references Menu(id),\n);\n\nCREATE TABLE MenuItem\n(\n\tid INTEGER primary key,\n\tmenu_page_id INTEGER, -- Example Values: `(1389,)`, `(3079,)`, `(1388,)` | Value Statics: Total count 100000 - Distinct count 2188 - Null count 0 | Column Description: the id of menu page \n\tprice REAL, -- Example Values: `(0.4,)`, `(0.6,)`, `(0.5,)` | Value Statics: Total count 59228 - Distinct count 125 - Null count 40772 | Column Description: the price of this dish (menu item) \n\thigh_price REAL, -- Example Values: `(1.0,)`, `(3.0,)`, `(1.5,)` | Value Statics: Total count 8704 - Distinct count 76 - Null count 91296 | Column Name Meaning: high price | Column Description: high price of this dish \n\tdish_id INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 99968 - Distinct count 31978 - Null count 32 | Column Description: the id of the dish \n\tcreated_at TEXT, -- Example Values: `('2011-03-28 15:00:44 UTC',)`, `('2011-03-28 15:01:13 UTC',)`, `('2011-03-28 15:01:40 UTC',)` | Value Statics: Total count 100000 - Distinct count 90211 - Null count 0 | Column Name Meaning: created at | Column Description: the dates when the item was created \n\tupdated_at TEXT, -- Example Values: `('2011-04-19 04:33:15 UTC',)`, `('2011-04-19 15:00:54 UTC',)`, `('2011-04-19 19:10:05 UTC',)` | Value Statics: Total count 100000 - Distinct count 92492 - Null count 0 | Column Name Meaning: updated at | Column Description: the dates when the item was updated \n\txpos REAL, -- Example Values: `(0.111429,)`, `(0.438571,)`, `(0.14,)` | Value Statics: Total count 100000 - Distinct count 610 - Null count 0 | Column Name Meaning: x position | Column Description: x-axis position of the dish in this menu page \n\typos REAL, -- Example Values: `(0.254735,)`, `(0.261922,)`, `(0.26272,)` | Value Statics: Total count 100000 - Distinct count 80424 - Null count 0 | Column Name Meaning: y position | Column Description: y-axis position of the dish in this menu page \n\tforeign key (dish_id) references Dish(id),\n\tforeign key (menu_page_id) references MenuPage(id),\n\tforeign key (menu_page_id) references MenuPage(id),\n);" }
shipping
{ "db_schema": "CREATE TABLE city\n(\n\tcity_id INTEGER primary key,\n\tcity_name TEXT, -- Example Values: `('Union City',)`, `('Huntington Park',)`, `('Passaic',)` | Value Statics: Total count 601 - Distinct count 566 - Null count 0 | Column Name Meaning: city name | Column Description: name of the city \n\tstate TEXT, -- Example Values: `('New Jersey',)`, `('California',)`, `('New York',)` | Value Statics: Total count 601 - Distinct count 49 - Null count 0 | Column Description: state in which the city is \n\tpopulation INTEGER, -- Example Values: `(67088,)`, `(61348,)`, `(67861,)` | Value Statics: Total count 601 - Distinct count 600 - Null count 0 | Column Description: population of the city \n\tarea REAL, -- Example Values: `(1.3,)`, `(3.0,)`, `(3.1,)` | Value Statics: Total count 601 - Distinct count 444 - Null count 0 | Column Description: square miles the city covers | Value Description: population density (land area per capita) = area / population\n);\n\nCREATE TABLE customer\n(\n\tcust_id INTEGER primary key,\n\tcust_name TEXT, -- Example Values: `('Advanced Fabricators',)`, `(\"Pard's Trailer Sales\",)`, `('Saar Enterprises, Inc.',)` | Value Statics: Total count 100 - Distinct count 99 - Null count 0 | Column Name Meaning: customer name | Column Description: Business name of the customer \n\tannual_revenue INTEGER, -- Example Values: `(39588651,)`, `(17158109,)`, `(47403613,)` | Value Statics: Total count 100 - Distinct count 100 - Null count 0 | Column Name Meaning: annual revenue | Column Description: Annual revenue of the customer \n\tcust_type TEXT, -- Example Values: `manufacturer`, `wholesaler`, `retailer` | Value Statics: Total count 100 - Distinct count 3 - Null count 0 | Column Name Meaning: customer type | Column Description: Whether the customer is a manufacturer or a wholes \n\taddress TEXT, -- Example Values: `('5141 Summit Boulevard',)`, `('5910 South 300 West',)`, `('11687 192nd Street',)` | Value Statics: Total count 100 - Distinct count 100 - Null count 0 | Column Description: Physical street address of the customer \n\tcity TEXT, -- Example Values: `('West Palm Beach',)`, `('Salt Lake City',)`, `('Council Bluffs',)` | Value Statics: Total count 100 - Distinct count 82 - Null count 0 | Column Description: City of the customer's address \n\tstate TEXT, -- Example Values: `('FL',)`, `('UT',)`, `('IA',)` | Value Statics: Total count 100 - Distinct count 33 - Null count 0 | Column Description: State of the customer's address | Value Description: please mention its full name in the question, by referring to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971 e.g., NY --> New York\n\tzip REAL, -- Example Values: `(33415.0,)`, `(84107.0,)`, `(51503.0,)` | Value Statics: Total count 100 - Distinct count 95 - Null count 0 | Column Description: Postal code of the customer's address \n\tphone TEXT, -- Example Values: `('(561) 683-3535',)`, `('(801) 262-4864',)`, `('(712) 366-4929',)` | Value Statics: Total count 100 - Distinct count 100 - Null count 0 | Column Description: Telephone number to reach the customer \n);\n\nCREATE TABLE driver\n(\n\tdriver_id INTEGER primary key,\n\tfirst_name TEXT, -- Example Values: `Sue`, `Andrea`, `Roger`, `Zachery`, `Adel` | Value Statics: Total count 11 - Distinct count 11 - Null count 0 | Column Name Meaning: first name | Column Description: First given name of the driver \n\tlast_name TEXT, -- Example Values: `Newell`, `Simons`, `McHaney`, `Hicks`, `Al-Alawi` | Value Statics: Total count 11 - Distinct count 11 - Null count 0 | Column Name Meaning: last name | Column Description: Family name of the driver | Value Description: full name = first_name + last_name\n\taddress TEXT, -- Example Values: `268 Richmond Ave`, `3574 Oak Limb Cv`, `1839 S Orleans St`, `3649 Park Lake Dr`, `749 E Mckellar Ave` | Value Statics: Total count 11 - Distinct count 11 - Null count 0 | Column Description: Street address of the driver's home \n\tcity TEXT, -- Example Values: `Memphis` | Value Statics: Total count 11 - Distinct count 1 - Null count 0 | Column Description: City the driver lives in \n\tstate TEXT, -- Example Values: `TN` | Value Statics: Total count 11 - Distinct count 1 - Null count 0 | Column Description: State the driver lives in | Value Description: please mention its full name in the question, by referring to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971 e.g., NY --> New York\n\tzip_code INTEGER, -- Example Values: `38106`, `38135`, `38118`, `38109`, `38114` | Value Statics: Total count 11 - Distinct count 7 - Null count 0 | Column Name Meaning: zip code | Column Description: postal code of the driver's address \n\tphone TEXT, -- Example Values: `(901) 774-6569`, `(901) 384-0984`, `(901) 948-1043`, `(901) 362-6674`, `(901) 947-4433` | Value Statics: Total count 11 - Distinct count 11 - Null count 0 | Column Description: telephone number of the driver \n);\n\nCREATE TABLE truck\n(\n\ttruck_id INTEGER primary key,\n\tmake TEXT, -- Example Values: `Peterbilt`, `Mack`, `Kenworth` | Value Statics: Total count 12 - Distinct count 3 - Null count 0 | Column Description: The brand of the truck | Value Description: • Peterbilt headquarter: Texas (TX) • Mack headquarter: North Carolina (NC) • Kenworth headquarter: Washington (WA) can ask question about headquarters of the truck\n\tmodel_year INTEGER, -- Example Values: `2005`, `2006`, `2007`, `2008`, `2009` | Value Statics: Total count 12 - Distinct count 6 - Null count 0 | Column Name Meaning: model year | Column Description: The year the truck was manufactured | Value Description: The truck with earlier model year means this truck is newer.\n);\n\nCREATE TABLE shipment\n(\n\tship_id INTEGER primary key,\n\tcust_id INTEGER, -- Example Values: `(3660,)`, `(2001,)`, `(1669,)` | Value Statics: Total count 960 - Distinct count 100 - Null count 0 | Column Name Meaning: customer id | Column Description: A reference to the customer table that indicates which customer the shipment is for \n\tweight REAL, -- Example Values: `(3528.0,)`, `(11394.0,)`, `(8712.0,)` | Value Statics: Total count 960 - Distinct count 692 - Null count 0 | Column Description: The number of pounds being transported on the shipment \n\ttruck_id INTEGER, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 960 - Distinct count 12 - Null count 0 | Column Name Meaning: truck id | Column Description: A reference to the truck table that indicates which truck is used in the shipment \n\tdriver_id INTEGER, -- Example Values: `23`, `27`, `21`, `24`, `22` | Value Statics: Total count 960 - Distinct count 11 - Null count 0 | Column Name Meaning: driver id | Column Description: A reference to the driver table that indicates which driver transported the goods in the shipment \n\tcity_id INTEGER, -- Example Values: `(137,)`, `(186,)`, `(268,)` | Value Statics: Total count 960 - Distinct count 429 - Null count 0 | Column Name Meaning: city id | Column Description: A reference to the city table that indicates the destination of the shipment \n\tship_date TEXT, -- Example Values: `('2016-01-08',)`, `('2016-01-18',)`, `('2016-01-19',)` | Value Statics: Total count 960 - Distinct count 530 - Null count 0 | Column Name Meaning: ship date | Column Description: the date the items were received by the driver | Value Description: yyyy-mm-dd\n\tforeign key (cust_id) references customer(cust_id),\n\tforeign key (city_id) references city(city_id),\n\tforeign key (driver_id) references driver(driver_id),\n\tforeign key (truck_id) references truck(truck_id),\n);" }
language_corpus
{ "db_schema": "CREATE TABLE langs\n(\n\tlid INTEGER PRIMARY KEY AUTOINCREMENT,\n\tlang TEXT UNIQUE, -- Example Values: `ca` | Value Statics: Total count 1 - Distinct count 1 - Null count 0 | Column Name Meaning: language | Column Description: language name | Value Description: ca means Catalan language.\n\tlocale TEXT UNIQUE, -- Example Values: `ca_ES` | Value Statics: Total count 1 - Distinct count 1 - Null count 0 | Column Description: The locale of the language \n\tpages INTEGER DEFAULT 0, -- Example Values: `1129144` | Value Statics: Total count 1 - Distinct count 1 - Null count 0 | Column Description: total pages of Wikipedia in this language \n);\n\nCREATE TABLE pages\n(\n\tpid INTEGER PRIMARY KEY AUTOINCREMENT,\n\tlid INTEGER REFERENCES langs(lid) ON UPDATE CASCADE ON DELETE CASCADE, -- Example Values: `1` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Name Meaning: language id | Column Description: language id | Value Description: lid=1 means it's Catalan language\n\tpage INTEGER DEFAULT NULL, -- Example Values: `(1,)`, `(2,)`, `(8,)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: wikipedia page id \n\twords INTEGER DEFAULT 0, -- Example Values: `(1081,)`, `(68,)`, `(304,)` | Value Statics: Total count 100000 - Distinct count 2407 - Null count 0 | Column Description: number of different words in this page \n);\n\nCREATE TABLE words\n(\n\twid INTEGER PRIMARY KEY AUTOINCREMENT,\n\tword TEXT UNIQUE, -- Example Values: `('+,2',)`, `('+,33',)`, `('+,4',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Description: The word itself \n\toccurrences INTEGER DEFAULT 0, -- Example Values: `(242,)`, `(16841,)`, `(48700,)` | Value Statics: Total count 100000 - Distinct count 9275 - Null count 0 | Column Description: The occurrences of the specific word \n);\n\nCREATE TABLE langs_words\n(\n\tlid INTEGER REFERENCES langs(lid) ON UPDATE CASCADE ON DELETE CASCADE, -- Example Values: `1` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Name Meaning: language id | Column Description: language id | Value Description: lid=1 means it's Catalan language.\n\twid INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Name Meaning: word id | Column Description: The word id of the Catalan language \n\toccurrences INTEGER, -- Example Values: `(242,)`, `(16841,)`, `(48700,)` | Value Statics: Total count 100000 - Distinct count 9275 - Null count 0 | Column Description: repetitions of this word in this language | Value Description: it's INTEGER and DEFAULT is 0.\n\t-- repetitions of this word in this language PRIMARY KEY(lid,wid),\n);\n\nCREATE TABLE pages_words\n(\n\tpid INTEGER REFERENCES pages(pid) ON UPDATE CASCADE ON DELETE CASCADE, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 152 - Null count 0 | Column Name Meaning: page id | Column Description: page id of Wikipedia about Catalan language \n\twid INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 34378 - Null count 0 | Column Name Meaning: word id | Column Description: The word id of the Catalan language | Value Description: The value is unique.\n\toccurrences INTEGER DEFAULT 0, -- Example Values: `(30,)`, `(8,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 242 - Null count 0 | Column Description: times of this word appears into this page \n\t-- times this word appears into this page PRIMARY KEY(pid,wid),\n);\n\nCREATE TABLE biwords\n(\n\tlid INTEGER REFERENCES langs(lid) ON UPDATE CASCADE ON DELETE CASCADE, -- Example Values: `1` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Name Meaning: language id | Column Description: language id | Value Description: lid=1 means it's Catalan language.\n\tw1st INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 34 - Null count 0 | Column Name Meaning: word id of the first word | Column Description: The word id of the first word of the biwords pair. | Value Description: The value is unique.\n\tw2nd INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE, -- Example Values: `(2,)`, `(4,)`, `(25,)` | Value Statics: Total count 100000 - Distinct count 74383 - Null count 0 | Column Name Meaning: word id of the second word | Column Description: The word id of the second word of the biwords pair. | Value Description: The value is unique.\n\toccurrences INTEGER DEFAULT 0, -- Example Values: `(4,)`, `(3,)`, `(13,)` | Value Statics: Total count 100000 - Distinct count 2644 - Null count 0 | Column Description: times of this pair appears in this language/page \n\t-- times this pair appears in this language/page PRIMARY KEY(lid,w1st,w2nd),\n);" }
airline
{ "db_schema": "CREATE TABLE Air Carriers\n(\n\tCode INTEGER primary key,\n\tDescription TEXT, -- Example Values: `('Mackey International Inc.: MAC',)`, `('Munz Northern Airlines Inc.: XY',)`, `('Cochise Airlines Inc.: COC',)` | Value Statics: Total count 1656 - Distinct count 1656 - Null count 0 | Column Description: the description of air carriers \n);\n\nCREATE TABLE Airports\n(\n\tCode TEXT primary key,\n\tDescription TEXT, -- Example Values: `('Afognak Lake, AK: Afognak Lake Airport',)`, `('Granite Mountain, AK: Bear Creek Mining Strip',)`, `('Lik, AK: Lik Mining Camp',)` | Value Statics: Total count 6510 - Distinct count 6464 - Null count 0 | Column Description: the description of airports \n);\n\nCREATE TABLE Airlines\n(\n\tFL_DATE TEXT, -- Example Values: `('2018/8/1',)`, `('2018/8/2',)`, `('2018/8/3',)` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0 | Column Name Meaning: flight date | Column Description: flight date \n\tOP_CARRIER_AIRLINE_ID INTEGER, -- Example Values: `(19805,)`, `(20427,)`, `(21167,)` | Value Statics: Total count 100000 - Distinct count 26 - Null count 0 | Column Name Meaning: operator carrier airline id | Column Description: operator carrier airline id \n\tTAIL_NUM TEXT, -- Example Values: `('N956AN',)`, `('N973AN',)`, `('N9006',)` | Value Statics: Total count 99666 - Distinct count 5428 - Null count 334 | Column Name Meaning: tail number | Column Description: plane's tail number | Value Description: plane's tail number\n\tOP_CARRIER_FL_NUM INTEGER, -- Example Values: `(1587,)`, `(1588,)`, `(1590,)` | Value Statics: Total count 100000 - Distinct count 6407 - Null count 0 | Column Name Meaning: operator carrier flight number | Column Description: operator carrier flight number \n\tORIGIN_AIRPORT_ID INTEGER, -- Example Values: `(12478,)`, `(14107,)`, `(11042,)` | Value Statics: Total count 100000 - Distinct count 364 - Null count 0 | Column Name Meaning: origin airport id | Column Description: origin airport id \n\tORIGIN_AIRPORT_SEQ_ID INTEGER, -- Example Values: `(1247805,)`, `(1410702,)`, `(1104205,)` | Value Statics: Total count 100000 - Distinct count 364 - Null count 0 | Column Name Meaning: origin airport sequence id | Column Description: origin airport sequence id \n\tORIGIN_CITY_MARKET_ID INTEGER, -- Example Values: `(31703,)`, `(30466,)`, `(30647,)` | Value Statics: Total count 100000 - Distinct count 340 - Null count 0 | Column Name Meaning: origin city market id | Column Description: origin city market id \n\tORIGIN TEXT, -- Example Values: `('JFK',)`, `('PHX',)`, `('CLE',)` | Value Statics: Total count 100000 - Distinct count 364 - Null count 0 | Column Description: airport of origin | Value Description: • the origin city could be inferred by this code: you can refer to https://www.iata.org/en/publications/directories/code-search/?airport.search=mia to quickly check\n\tDEST_AIRPORT_ID INTEGER, -- Example Values: `(14107,)`, `(11618,)`, `(11298,)` | Value Statics: Total count 100000 - Distinct count 364 - Null count 0 | Column Name Meaning: destination airport id | Column Description: ID of the destination airport \n\tDEST_AIRPORT_SEQ_ID INTEGER, -- Example Values: `(1410702,)`, `(1161802,)`, `(1129806,)` | Value Statics: Total count 100000 - Distinct count 364 - Null count 0 | Column Name Meaning: destination airport sequence id \n\tDEST_CITY_MARKET_ID INTEGER, -- Example Values: `(30466,)`, `(31703,)`, `(30194,)` | Value Statics: Total count 100000 - Distinct count 340 - Null count 0 | Column Name Meaning: destination city market id \n\tDEST TEXT, -- Example Values: `('PHX',)`, `('EWR',)`, `('DFW',)` | Value Statics: Total count 100000 - Distinct count 364 - Null count 0 | Column Name Meaning: destination | Column Description: Destination airport | Value Description: • the dest city could be inferred by this code: you can refer to https://www.iata.org/en/publications/directories/code-search/?airport.search=mia to quickly check\n\tCRS_DEP_TIME INTEGER, -- Example Values: `(1640,)`, `(1512,)`, `(744,)` | Value Statics: Total count 100000 - Distinct count 1194 - Null count 0 | Column Name Meaning: scheduled local departure time \n\tDEP_TIME INTEGER, -- Example Values: `(1649,)`, `(1541,)`, `(741,)` | Value Statics: Total count 96402 - Distinct count 1359 - Null count 3598 | Column Name Meaning: departure time | Column Description: Flight departure time | Value Description: stored as the integer\n\tDEP_DELAY INTEGER, -- Example Values: `(9,)`, `(29,)`, `(-3,)` | Value Statics: Total count 96306 - Distinct count 654 - Null count 3694 | Column Name Meaning: Departure delay | Column Description: Departure delay indicator | Value Description: in minutes • if this value is positive: it means this flight delays; if the value is negative, it means this flight departs in advance (-4) • if this value <= 0, it means this flight departs on time\n\tDEP_DELAY_NEW INTEGER, -- Example Values: `(9,)`, `(29,)`, `(0,)` | Value Statics: Total count 96306 - Distinct count 620 - Null count 3694 | Column Name Meaning: departure delay new | Column Description: departure delay new \n\tARR_TIME INTEGER, -- Example Values: `(2006,)`, `(2350,)`, `(938,)` | Value Statics: Total count 96178 - Distinct count 1430 - Null count 3822 | Column Name Meaning: arrival time | Column Description: Flight arrival time. \n\tARR_DELAY INTEGER, -- Example Values: `(44,)`, `(53,)`, `(-2,)` | Value Statics: Total count 95816 - Distinct count 673 - Null count 4184 | Column Name Meaning: arrival delay | Column Description: arrival delay time | Value Description: in minutes • if this value is positive: it means this flight will arrives late (delay); If the value is negative, this flight arrives earlier than scheduled. (-4) • if this value <= 0, it means this flight arrives on time\n\tARR_DELAY_NEW INTEGER, -- Example Values: `(44,)`, `(53,)`, `(0,)` | Value Statics: Total count 95816 - Distinct count 615 - Null count 4184 | Column Name Meaning: arrival delay new | Column Description: arrival delay new \n\tCANCELLED INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: Flight cancellation indicator. \n\tCANCELLATION_CODE TEXT, -- Example Values: `A`, `B`, `C` | Value Statics: Total count 3795 - Distinct count 3 - Null count 96205 | Column Name Meaning: cancellation code | Column Description: cancellation code | Value Description: C--> A: more serious reasons lead to this cancellation\n\tCRS_ELAPSED_TIME INTEGER, -- Example Values: `(342,)`, `(285,)`, `(176,)` | Value Statics: Total count 100000 - Distinct count 426 - Null count 0 | Column Name Meaning: scheduled elapsed time | Column Description: scheduled elapsed time \n\tACTUAL_ELAPSED_TIME INTEGER, -- Example Values: `(377,)`, `(309,)`, `(177,)` | Value Statics: Total count 95858 - Distinct count 510 - Null count 4142 | Column Name Meaning: actual elapsed time | Column Description: actual elapsed time | Value Description: if ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME: this flight is faster than scheduled; if ACTUAL_ELAPSED_TIME > CRS_ELAPSED_TIME: this flight is slower than scheduled\n\tCARRIER_DELAY INTEGER, -- Example Values: `(9,)`, `(0,)`, `(43,)` | Value Statics: Total count 26778 - Distinct count 439 - Null count 73222 | Column Name Meaning: carrier delay | Column Description: carrier delay | Value Description: minutes\n\tWEATHER_DELAY INTEGER, -- Example Values: `(0,)`, `(2,)`, `(48,)` | Value Statics: Total count 26778 - Distinct count 261 - Null count 73222 | Column Name Meaning: weather delay | Column Description: delay caused by the wheather problem | Value Description: minutes\n\tNAS_DELAY INTEGER, -- Example Values: `(35,)`, `(53,)`, `(0,)` | Value Statics: Total count 26778 - Distinct count 394 - Null count 73222 | Column Name Meaning: National Aviavtion System delay | Column Description: delay, in minutes, attributable to the National Aviation System | Value Description: minutes\n\tSECURITY_DELAY INTEGER, -- Example Values: `(0,)`, `(42,)`, `(4,)` | Value Statics: Total count 26778 - Distinct count 47 - Null count 73222 | Column Name Meaning: security delay | Column Description: delay attribute to security | Value Description: minutes\n\tLATE_AIRCRAFT_DELAY INTEGER, -- Example Values: `(0,)`, `(6,)`, `(73,)` | Value Statics: Total count 26778 - Distinct count 424 - Null count 73222 | Column Name Meaning: late aircraft delay | Column Description: delay attribute to late aircraft | Value Description: minutes\n\tFOREIGN KEY (ORIGIN) REFERENCES Airports(Code),\n\tFOREIGN KEY (DEST) REFERENCES Airports(Code),\n\tFOREIGN KEY (OP_CARRIER_AIRLINE_ID) REFERENCES \"Air Carriers\"(Code),\n);" }
books
{ "db_schema": "CREATE TABLE address_status\n(\n\tstatus_id INTEGER primary key,\n\taddress_status TEXT, -- Example Values: `Active`, `Inactive` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Name Meaning: address status | Column Description: the status of the address | Value Description: •\tactive: the address is still in use •\tinactive: the address is not in use anymore\n);\n\nCREATE TABLE author\n(\n\tauthor_id INTEGER primary key,\n\tauthor_name TEXT, -- Example Values: `('A. Bartlett Giamatti',)`, `('A. Elizabeth Delany',)`, `('A. Merritt',)` | Value Statics: Total count 9235 - Distinct count 9204 - Null count 0 | Column Name Meaning: author name | Column Description: the name of the author \n);\n\nCREATE TABLE book_language\n(\n\tlanguage_id INTEGER primary key,\n\tlanguage_code TEXT, -- Example Values: `('eng',)`, `('en-US',)`, `('fre',)` | Value Statics: Total count 27 - Distinct count 27 - Null count 0 | Column Name Meaning: language code | Column Description: the language code | Value Description: A language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"en\" for English, \"fr\" for French, and \"es\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\n\tlanguage_name TEXT, -- Example Values: `('English',)`, `('United States English',)`, `('French',)` | Value Statics: Total count 27 - Distinct count 27 - Null count 0 | Column Name Meaning: language name | Column Description: the language name \n);\n\nCREATE TABLE country\n(\n\tcountry_id INTEGER primary key,\n\tcountry_name TEXT, -- Example Values: `('Afghanistan',)`, `('Netherlands Antilles',)`, `('Albania',)` | Value Statics: Total count 232 - Distinct count 231 - Null count 0 | Column Name Meaning: country name | Column Description: the country name \n);\n\nCREATE TABLE address\n(\n\taddress_id INTEGER primary key,\n\tstreet_number TEXT, -- Example Values: `('57',)`, `('86',)`, `('292',)` | Value Statics: Total count 1000 - Distinct count 647 - Null count 0 | Column Name Meaning: street number | Column Description: the street number of the address | Value Description: The street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\n\tstreet_name TEXT, -- Example Values: `('Glacier Hill Avenue',)`, `('Dottie Junction',)`, `('Ramsey Avenue',)` | Value Statics: Total count 1000 - Distinct count 958 - Null count 0 | Column Name Meaning: street name | Column Description: the street name \n\tcity TEXT, -- Example Values: `('Torbat-e Jām',)`, `('Beaumont',)`, `('Cayambe',)` | Value Statics: Total count 1000 - Distinct count 974 - Null count 0 | Column Description: the city where the address belongs \n\tcountry_id INTEGER, -- Example Values: `(95,)`, `(37,)`, `(60,)` | Value Statics: Total count 1000 - Distinct count 109 - Null count 0 | Column Name Meaning: country id | Column Description: the id of the country where the address belongs | Value Description: Maps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'\n\tforeign key (country_id) references country(country_id),\n);\n\nCREATE TABLE customer\n(\n\tcustomer_id INTEGER primary key,\n\tfirst_name TEXT, -- Example Values: `('Ursola',)`, `('Ruthanne',)`, `('Reidar',)` | Value Statics: Total count 2000 - Distinct count 1787 - Null count 0 | Column Name Meaning: first name | Column Description: the first name of the customer \n\tlast_name TEXT, -- Example Values: `('Purdy',)`, `('Vatini',)`, `('Turbitt',)` | Value Statics: Total count 2000 - Distinct count 1957 - Null count 0 | Column Name Meaning: last name | Column Description: the last name of the customer | Value Description: A person's full name is the first name, middle name (if applicable), and last name.\n\temail TEXT, -- Example Values: `('upurdy0@cdbaby.com',)`, `('rvatini1@fema.gov',)`, `('rturbitt2@geocities.jp',)` | Value Statics: Total count 2000 - Distinct count 2000 - Null count 0 | Column Description: the email of the customer \n);\n\nCREATE TABLE customer_address\n(\n\tcustomer_id INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 3350 - Distinct count 2000 - Null count 0 | Column Name Meaning: customer id | Column Description: the id of the customer Maps to customer(customer_id) \n\taddress_id INTEGER, -- Example Values: `(606,)`, `(266,)`, `(376,)` | Value Statics: Total count 3350 - Distinct count 972 - Null count 0 | Column Name Meaning: address id | Column Description: the id of the address Maps to address(address_id) \n\tstatus_id INTEGER, -- Example Values: `1`, `2` | Value Statics: Total count 3350 - Distinct count 2 - Null count 0 | Column Name Meaning: status id | Column Description: the id of the address status | Value Description: A customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses.\n\tprimary key (customer_id, address_id),\n\tforeign key (address_id) references address(address_id),\n\tforeign key (customer_id) references customer(customer_id),\n);\n\nCREATE TABLE order_status\n(\n\tstatus_id INTEGER primary key,\n\tstatus_value TEXT, -- Example Values: `Order Received`, `Pending Delivery`, `Delivery In Progress`, `Delivered`, `Cancelled` | Value Statics: Total count 6 - Distinct count 6 - Null count 0 | Column Name Meaning: status value | Column Description: the status value | Value Description: The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n);\n\nCREATE TABLE publisher\n(\n\tpublisher_id INTEGER primary key,\n\tpublisher_name TEXT, -- Example Values: `('10/18',)`, `('1st Book Library',)`, `('1st World Library',)` | Value Statics: Total count 2264 - Distinct count 2255 - Null count 0 | Column Name Meaning: publisher name | Column Description: the name of the publisher \n);\n\nCREATE TABLE book\n(\n\tbook_id INTEGER primary key,\n\ttitle TEXT, -- Example Values: `(\"The World's First Love: Mary Mother of God\",)`, `('The Illuminati',)`, `('The Servant Leader',)` | Value Statics: Total count 11127 - Distinct count 10352 - Null count 0 | Column Description: the title of the book \n\tisbn13 TEXT, -- Example Values: `('8987059752',)`, `('20049130001',)`, `('23755004321',)` | Value Statics: Total count 11127 - Distinct count 11127 - Null count 0 | Column Description: the International Standard Book Number of the book | Value Description: An ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\n\tlanguage_id INTEGER, -- Example Values: `(2,)`, `(1,)`, `(5,)` | Value Statics: Total count 11127 - Distinct count 27 - Null count 0 | Column Name Meaning: language id | Column Description: the id of the book language Maps to book_language (language_id) \n\tnum_pages INTEGER, -- Example Values: `(276,)`, `(352,)`, `(128,)` | Value Statics: Total count 11127 - Distinct count 997 - Null count 0 | Column Name Meaning: number pages | Column Description: the number of the pages \n\tpublication_date DATE, -- Example Values: `('1996-09-01',)`, `('2004-10-04',)`, `('2003-03-11',)` | Value Statics: Total count 11127 - Distinct count 3678 - Null count 0 | Column Name Meaning: publication date | Column Description: the publication date of the book | Value Description: The publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\n\tpublisher_id INTEGER, -- Example Values: `(1010,)`, `(1967,)`, `(1978,)` | Value Statics: Total count 11127 - Distinct count 2264 - Null count 0 | Column Description: the id of the publisher Maps to publisher (publisher_id) \n\tforeign key (language_id) references book_language(language_id),\n\tforeign key (language_id) references book_language(language_id),\n\tforeign key (publisher_id) references publisher(publisher_id),\n);\n\nCREATE TABLE book_author\n(\n\tbook_id INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 17642 - Distinct count 10058 - Null count 0 | Column Name Meaning: book id | Column Description: the id of the book Maps to book(book_id) \n\tauthor_id INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 17642 - Distinct count 9125 - Null count 0 | Column Name Meaning: author id | Column Description: the id of the author Maps to author(author_id) | Value Description: Books with the same author id are written by the same author.\n\tprimary key (book_id, author_id),\n\tforeign key (author_id) references author(author_id),\n\tforeign key (book_id) references book(book_id),\n);\n\nCREATE TABLE shipping_method\n(\n\tmethod_id INTEGER primary key,\n\tmethod_name TEXT, -- Example Values: `Standard`, `Priority`, `Express`, `International` | Value Statics: Total count 4 - Distinct count 4 - Null count 0 | Column Name Meaning: method name | Column Description: the method name \n\tcost REAL, -- Example Values: `5.9`, `8.9`, `11.9`, `24.5` | Value Statics: Total count 4 - Distinct count 4 - Null count 0 | Column Description: the cost of the shipping method | Value Description: The main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\n);\n\nCREATE TABLE cust_order\n(\n\torder_id INTEGER primary key autoincrement,\n\torder_date DATETIME, -- Example Values: `('2021-07-14 10:47:19',)`, `('2020-08-16 17:26:41',)`, `('2021-08-19 21:43:07',)` | Value Statics: Total count 7550 - Distinct count 7548 - Null count 0 | Column Name Meaning: order date | Column Description: the date of the order \n\tcustomer_id INTEGER references customer, -- Example Values: `(387,)`, `(1256,)`, `(1335,)` | Value Statics: Total count 7550 - Distinct count 1697 - Null count 0 | Column Name Meaning: customer id | Column Description: the id of the customer Maps to customer(customer_Id) | Value Description: The number of orders ordered by the customer = the show-up times of the relative customer id in the table\n\tshipping_method_id INTEGER references shipping_method, -- Example Values: `4`, `2`, `1`, `3` | Value Statics: Total count 7550 - Distinct count 4 - Null count 0 | Column Name Meaning: shipping method id | Column Description: the id of the shipping method Maps to shipping_method(method_id) \n\tdest_address_id INTEGER references address, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 7550 - Distinct count 720 - Null count 0 | Column Name Meaning: destination address id | Column Description: the id of the destination address Maps to address(address_id) \n);\n\nCREATE TABLE order_history\n(\n\thistory_id INTEGER primary key autoincrement,\n\torder_id INTEGER references cust_order, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 22348 - Distinct count 7548 - Null count 0 | Column Description: the id of the order Maps to cust_order(order_id) \n\tstatus_id INTEGER references order_status, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 22348 - Distinct count 6 - Null count 0 | Column Name Meaning: status id | Column Description: the id of the order Maps to order_status(status_id) | Value Description: The order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\n\tstatus_date DATETIME, -- Example Values: `('2021-07-14 17:04:28',)`, `('2020-08-16 20:23:19',)`, `('2021-08-20 05:34:51',)` | Value Statics: Total count 22348 - Distinct count 22345 - Null count 0 | Column Name Meaning: status date | Column Description: the date of the status updated \n);\n\nCREATE TABLE order_line\n(\n\tline_id INTEGER primary key autoincrement,\n\torder_id INTEGER references cust_order, -- Example Values: `(2051,)`, `(899,)`, `(4994,)` | Value Statics: Total count 7550 - Distinct count 7550 - Null count 0 | Column Name Meaning: order id | Column Description: the id of the order Maps to cust_order(order_id) \n\tbook_id INTEGER references book, -- Example Values: `(10720,)`, `(10105,)`, `(6503,)` | Value Statics: Total count 7550 - Distinct count 5466 - Null count 0 | Column Name Meaning: book id | Column Description: the id of the book Maps to book(book_id) \n\tprice REAL, -- Example Values: `(3.19,)`, `(1.24,)`, `(14.74,)` | Value Statics: Total count 7550 - Distinct count 1960 - Null count 0 | Column Description: the price of the order | Value Description: Even though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered.\n);" }
food_inspection_2
{ "db_schema": "CREATE TABLE employee\n(\n\temployee_id INTEGER primary key,\n\tfirst_name TEXT, -- Example Values: `('Anastasia',)`, `('Joshua',)`, `('Zach',)` | Value Statics: Total count 75 - Distinct count 71 - Null count 0 | Column Name Meaning: first name | Column Description: first name of the employee \n\tlast_name TEXT, -- Example Values: `('Hansen',)`, `('Rosa',)`, `('Barber',)` | Value Statics: Total count 75 - Distinct count 72 - Null count 0 | Column Name Meaning: last name | Column Description: last name of the employee | Value Description: full name: first name + last_name\n\taddress TEXT, -- Example Values: `('6023 S Elizabeth St',)`, `('5000 N Wolcott Ave',)`, `('7522 N Oleander Ave',)` | Value Statics: Total count 75 - Distinct count 75 - Null count 0 | Column Description: physical street address of the employee \n\tcity TEXT, -- Example Values: `Chicago`, `Park Forest`, `Hoffman Estates` | Value Statics: Total count 75 - Distinct count 3 - Null count 0 | Column Description: city of the employee's address \n\tstate TEXT, -- Example Values: `IL` | Value Statics: Total count 75 - Distinct count 1 - Null count 0 | Column Description: state of the customer's address \n\tzip INTEGER, -- Example Values: `(60636,)`, `(60640,)`, `(60631,)` | Value Statics: Total count 75 - Distinct count 37 - Null count 0 | Column Description: postal code of the employee's address \n\tphone TEXT, -- Example Values: `('(773) 424-8729',)`, `('(773) 293-6409',)`, `('(219) 473-0757',)` | Value Statics: Total count 75 - Distinct count 75 - Null count 0 | Column Description: telephone number to reach the customer \n\ttitle TEXT, -- Example Values: `Sanitarian`, `Supervisor`, `Division Manager` | Value Statics: Total count 75 - Distinct count 3 - Null count 0 | Column Description: career title of the employee | Value Description: • Sanitarian • Supervisor • Division Manager\n\tsalary INTEGER, -- Example Values: `(79300,)`, `(82000,)`, `(79900,)` | Value Statics: Total count 75 - Distinct count 68 - Null count 0 | Column Description: the salary of the employee | Value Description: us dollars / year monthly salary: salary / 12\n\tsupervisor INTEGER, -- Example Values: `177316`, `186742`, `179582`, `182205`, `192462` | Value Statics: Total count 75 - Distinct count 8 - Null count 0 | Column Description: the employee id of the employee's supervisor \n\tforeign key (supervisor) references employee(employee_id),\n);\n\nCREATE TABLE establishment\n(\n\tlicense_no INTEGER primary key,\n\tdba_name TEXT, -- Example Values: `('HARVEST CRUSADES MINISTRIES',)`, `('COSI',)`, `('XANDO COFFEE & BAR / COSI SANDWICH BAR',)` | Value Statics: Total count 31642 - Distinct count 23341 - Null count 0 | Column Name Meaning: doing business as name | Column Description: the dba name of the facility | Value Description: DBA stands for “doing business as.” It's also referred to as your business's assumed, trade or fictitious name.\n\taka_name TEXT, -- Example Values: `('COSI',)`, `(\"KING'S CHINESE/PARK MANOR LOUNGE\",)`, `('MR BEEF ON HARLEM',)` | Value Statics: Total count 5911 - Distinct count 4279 - Null count 25731 | Column Name Meaning: as know as name | Column Description: the aka name of the facility | Value Description: the aka name is used to indicate another name that a person or thing has or uses\n\tfacility_type TEXT, -- Example Values: `('Special Event',)`, `('Restaurant',)`, `('TAVERN',)` | Value Statics: Total count 27537 - Distinct count 396 - Null count 4105 | Column Name Meaning: facility type | Column Description: the facility type | Value Description: can ask some questions about its categories, for i.e.: • \"Restaurant\" and \"Cafeteria\" refers to restaurants • ”PASTRY school“ and \"CULINARY ARTS SCHOOL\" belongs to \"Education\" or \"School\". Please design this and mention your evidence in the commonsense part of questions, thanks\n\trisk_level INTEGER, -- Example Values: `2`, `1`, `3` | Value Statics: Total count 31621 - Distinct count 3 - Null count 21 | Column Name Meaning: risk level | Column Description: the risk level of the facility | Value Description: Facilities with higher risk level have more serious food safety issues\n\taddress TEXT, -- Example Values: `('118 N CENTRAL AVE ',)`, `('230 W MONROE ST ',)`, `('116 S MICHIGAN AVE ',)` | Value Statics: Total count 31642 - Distinct count 16450 - Null count 0 | Column Description: physical street address of the facility \n\tcity TEXT, -- Example Values: `CHICAGO`, `Chicago`, `chicago`, `CHicago`, `MAYWOOD` | Value Statics: Total count 31593 - Distinct count 16 - Null count 49 | Column Description: city of the facility's address \n\tstate TEXT, -- Example Values: `IL` | Value Statics: Total count 31640 - Distinct count 1 - Null count 2 | Column Description: state of the facility's address \n\tzip INTEGER, -- Example Values: `(60644,)`, `(60606,)`, `(60603,)` | Value Statics: Total count 31605 - Distinct count 71 - Null count 37 | Column Description: postal code of the facility's address \n\tlatitude REAL, -- Example Values: `(41.8828450747188,)`, `(41.8807571586472,)`, `(41.8803958382596,)` | Value Statics: Total count 31538 - Distinct count 15488 - Null count 104 | Column Description: the latitude of the facility \n\tlongitude REAL, -- Example Values: `(-87.7650954520439,)`, `(-87.6347092983425,)`, `(-87.6245017215946,)` | Value Statics: Total count 31538 - Distinct count 15488 - Null count 104 | Column Description: the longitude of the facility | Value Description: location = POINT(latitude, longitude)\n\tward INTEGER, -- Example Values: `(29,)`, `(42,)`, `(18,)` | Value Statics: Total count 31544 - Distinct count 51 - Null count 98 | Column Description: the ward number of the facility | Value Description: Ward number is the number assigned by the local authorities to identify the population count in each town, village and district usually for electoral purposes or to extract property and locality details\n);\n\nCREATE TABLE inspection\n(\n\tinspection_id INTEGER primary key,\n\tinspection_date DATE, -- Example Values: `('2010-01-05',)`, `('2010-01-21',)`, `('2010-02-09',)` | Value Statics: Total count 100000 - Distinct count 1546 - Null count 0 | Column Name Meaning: inspection date | Column Description: the date of the inspection | Value Description: yyyy-mm-dd\n\tinspection_type TEXT, -- Example Values: `('Complaint',)`, `('Canvass',)`, `('Canvass Re-Inspection',)` | Value Statics: Total count 100000 - Distinct count 105 - Null count 0 | Column Name Meaning: inspection type | Column Description: the type of the inspection \n\tresults TEXT, -- Example Values: `Pass`, `Pass w/ Conditions`, `Fail`, `Out of Business`, `Business Not Located` | Value Statics: Total count 100000 - Distinct count 7 - Null count 0 | Column Description: the inspection results | Value Description: • Pass • Pass w/ Conditions • Fail • Out of Business • Business Not Located • No Entry • Not Ready the quality is verified: Pass + Pass w/ Conditions\n\temployee_id INTEGER, -- Example Values: `(141319,)`, `(143902,)`, `(143487,)` | Value Statics: Total count 100000 - Distinct count 25 - Null count 0 | Column Name Meaning: employee id | Column Description: the id of the employee who is responsible for the inspection \n\tlicense_no INTEGER, -- Example Values: `(1222441,)`, `(1336561,)`, `(1334073,)` | Value Statics: Total count 100000 - Distinct count 26994 - Null count 0 | Column Name Meaning: license number | Column Description: the license number of the facility that is inspected \n\tfollowup_to INTEGER, -- Example Values: `(67871,)`, `(248210,)`, `(233215,)` | Value Statics: Total count 18298 - Distinct count 18244 - Null count 81702 | Column Name Meaning: followup to | Column Description: the id of inspections that this inspection is following up | Value Description: 'No data' means the inspection has no followup. if followup_to has value: • it's the parent inspection id, and this value represents child inspection id • the entire inspection: followup_to + inspection_id\n\tforeign key (employee_id) references employee(employee_id),\n\tforeign key (license_no) references establishment(license_no),\n\tforeign key (followup_to) references inspection(inspection_id),\n);\n\nCREATE TABLE inspection_point\n(\n\tpoint_id INTEGER primary key,\n\tDescription TEXT, -- | Column Description: the specific description of the inspection results \n\tcategory TEXT, -- Example Values: `Food Protection`, `Food Equipment and Utensil Sanitation`, `Wash and Waste Water Disposal`, `Toilet and Hand Washing Facilities for Staff`, `Compliance Insect and Rodent Control` | Value Statics: Total count 46 - Distinct count 14 - Null count 0 | Column Description: the inspection category \n\tcode TEXT, -- Example Values: `7-38-005 (B) (B-2)`, `7-38-005 (A)`, `7-38-010 (A) (B)`, `7-38-030`, `7-38-031` | Value Statics: Total count 46 - Distinct count 17 - Null count 0 | Column Description: the sanitary operating requirement code | Value Description: Each code stands for an operating requirement\n\tfine INTEGER, -- Example Values: `500`, `250`, `100` | Value Statics: Total count 46 - Distinct count 3 - Null count 0 | Column Description: the fines for food safety problems | Value Description: The fine of more serious food safety problems will be higher. \r • Minor: 100 \r • Serious: 250 \r • Critical: 500\n\tpoint_level TEXT, -- Example Values: `Critical`, `Serious `, `Minor ` | Value Statics: Total count 46 - Distinct count 3 - Null count 0 | Column Description: point level | Value Description: Critical / Serious/ Minor\n);\n\nCREATE TABLE violation\n(\n\tinspection_id INTEGER, -- Example Values: `(44247,)`, `(44248,)`, `(44249,)` | Value Statics: Total count 100000 - Distinct count 20759 - Null count 0 | Column Name Meaning: inspection id | Column Description: the unique id for the inspection \n\tpoint_id INTEGER, -- Example Values: `(30,)`, `(32,)`, `(33,)` | Value Statics: Total count 100000 - Distinct count 43 - Null count 0 | Column Name Meaning: point id | Column Description: the inspection point id \n\tfine INTEGER, -- Example Values: `100`, `0`, `500`, `250` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0 | Column Description: the fine of the violation | Value Description: The fine of more serious food safety problems will be higher. • Minor: 100 • Serious: 250 • Critical: 500\n\tinspector_comment TEXT, -- | Column Description: the comment of the inspector \n\tprimary key (inspection_id, point_id),\n\tforeign key (inspection_id) references inspection(inspection_id),\n\tforeign key (point_id) references inspection_point(point_id),\n\tforeign key (point_id) references inspection_point(point_id),\n);" }
coinmarketcap
{ "db_schema": "CREATE TABLE coins\n(\n\tid INTEGER not null primary key,\n\tname TEXT, -- Example Values: `('Bitcoin',)`, `('Litecoin',)`, `('Namecoin',)` | Value Statics: Total count 8927 - Distinct count 8863 - Null count 0 | Column Description: name of coins \n\tslug TEXT, -- Example Values: `('bitcoin',)`, `('litecoin',)`, `('namecoin',)` | Value Statics: Total count 8927 - Distinct count 8924 - Null count 0 | Column Description: slug names of coins \n\tsymbol TEXT, -- Example Values: `('BTC',)`, `('LTC',)`, `('NMC',)` | Value Statics: Total count 8927 - Distinct count 7566 - Null count 0 | Column Description: symbol of names of coins \n\tstatus TEXT, -- Example Values: `active`, `untracked`, `inactive`, `extinct` | Value Statics: Total count 8927 - Distinct count 4 - Null count 0 | Column Description: status of coins | Value Description: commonsense reasoning:\r • active: this coin is active and available for transactions\r • untracked: this coin cannot be tracked\r • inactive: this coin is not available for transactions\r • extinct: this coin has been disappeared\n\tcategory TEXT, -- Example Values: `coin`, `token` | Value Statics: Total count 8869 - Distinct count 2 - Null count 58 | Column Description: category of coins | Value Description: commonsense reasoning:\r • token: \r • coin:\n\tdescription TEXT, -- | Column Description: description of coins \n\tsubreddit TEXT, -- Example Values: `('bitcoin',)`, `('litecoin',)`, `('namecoin',)` | Value Statics: Total count 2641 - Distinct count 2431 - Null count 6286 | Column Description: name of coins on reddit \n\tnotice TEXT, -- | Column Description: notice if any \n\ttags TEXT, -- | Column Description: tags of coins \n\ttag_names TEXT, -- | Column Description: tag names of coins \n\twebsite TEXT, -- Example Values: `('https://bitcoin.org/',)`, `('https://litecoin.org/',)`, `('https://www.namecoin.org/',)` | Value Statics: Total count 8506 - Distinct count 8169 - Null count 421 | Column Description: website introduction of coins \n\tplatform_id INTEGER, -- Example Values: `(1027,)`, `(1765,)`, `(1376,)` | Value Statics: Total count 5671 - Distinct count 21 - Null count 3256 | Column Name Meaning: platform id | Column Description: id number of the platform \n\tdate_added TEXT, -- Example Values: `('2013-04-28T00:00:00.000Z',)`, `('2013-05-03T00:00:00.000Z',)`, `('2013-05-08T00:00:00.000Z',)` | Value Statics: Total count 8927 - Distinct count 1701 - Null count 0 | Column Name Meaning: date added | Column Description: the added date \n\tdate_launched TEXT, -- Example Values: `('2018-01-16T00:00:00.000Z',)`, `('2018-05-01T00:00:00.000Z',)`, `('2017-09-18T22:20:00.000Z',)` | Value Statics: Total count 1374 - Distinct count 461 - Null count 7553 | Column Name Meaning: date lanched | Column Description: lanched date \n);\n\nCREATE TABLE historical\n(\n\tdate DATE, -- Example Values: `('2013-04-28',)`, `('2013-04-29',)`, `('2013-04-30',)` | Value Statics: Total count 100000 - Distinct count 559 - Null count 0 | Column Description: transaction date \n\tcoin_id INTEGER, -- Example Values: `(1,)`, `(2,)`, `(5,)` | Value Statics: Total count 100000 - Distinct count 709 - Null count 0 | Column Description: id number referring to coins \n\tcmc_rank INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 526 - Null count 0 | Column Name Meaning: coinmarketcap rank | Column Description: CMC rank is a metric used by CoinMarketCap to rank the relative popularity of different cryptocurrencies. \n\tmarket_cap REAL, -- Example Values: `(1488566971.9558687,)`, `(74637021.56790735,)`, `(7250186.647688276,)` | Value Statics: Total count 97078 - Distinct count 97068 - Null count 2922 | Column Name Meaning: Market capitalization | Column Description: Market capitalization refers to how much a coin is worth as determined by the coin market. | Value Description: dollars market cap (latest trade price x circulating supply).\n\tprice REAL, -- Example Values: `(134.210021972656,)`, `(4.34840488433838,)`, `(0.386524856090546,)` | Value Statics: Total count 100000 - Distinct count 94938 - Null count 0 | Column Description: how much is a coin | Value Description: dollars\n\topen REAL, -- Example Values: `(134.44400024414062,)`, `(4.366759777069092,)`, `(0.3871999979019165,)` | Value Statics: Total count 97911 - Distinct count 90724 - Null count 2089 | Column Description: the price at which a cryptocurrency (coin) opens at a time period | Value Description: dollars commonsense reasoning: if null or empty, it means this coins has not opened yet today.\n\thigh REAL, -- Example Values: `(147.48800659179688,)`, `(4.573599815368652,)`, `(0.4247649908065796,)` | Value Statics: Total count 97911 - Distinct count 94751 - Null count 2089 | Column Description: highest price | Value Description: dollars\n\tlow REAL, -- Example Values: `(134.0,)`, `(4.225639820098877,)`, `(0.37790799140930176,)` | Value Statics: Total count 97911 - Distinct count 93905 - Null count 2089 | Column Description: lowest price | Value Description: commonsense reasoning: 1.\tIt's the best time to purchase this coin 2.\tusers can make the max profit today by computation: high - low\n\tclose REAL, -- Example Values: `(144.5399932861328,)`, `(4.383900165557861,)`, `(0.4088610112667084,)` | Value Statics: Total count 97911 - Distinct count 90575 - Null count 2089 | Column Description: the price at which a cryptocurrency (coin) closes at a time period, for example at the end of the day. \n\ttime_high TEXT, -- Example Values: `('13:15:01',)`, `('13:15:03',)`, `('12:45:02',)` | Value Statics: Total count 97911 - Distinct count 37125 - Null count 2089 | Column Description: the time to achieve highest price \n\ttime_low TEXT, -- Example Values: `('05:20:01',)`, `('19:25:02',)`, `('04:05:04',)` | Value Statics: Total count 97911 - Distinct count 37016 - Null count 2089 | Column Description: the time to achieve lowest price \n\tvolume_24h REAL, -- Example Values: `(0.0,)`, `(46862728.0,)`, `(31112234.0,)` | Value Statics: Total count 100000 - Distinct count 91219 - Null count 0 | Column Description: the total value of cryptocurrency coined traded in the past 24 hours. \n\tpercent_change_1h REAL, -- Example Values: `(0.639231,)`, `(0.799273,)`, `(-0.934763,)` | Value Statics: Total count 99503 - Distinct count 78914 - Null count 497 | Column Name Meaning: percent change 1h | Column Description: price percentage change in the first hour | Value Description: The change is the difference (in percent) between the price now compared to the price around this time 1 hours ago\n\tpercent_change_24h REAL, -- Example Values: `(7.63553,)`, `(0.920718,)`, `(18.558,)` | Value Statics: Total count 97344 - Distinct count 92374 - Null count 2656 | Column Name Meaning: percent change 24h | Column Description: price percentage change in the first 24 hours | Value Description: The change is the difference (in percent) between the price now compared to the price around this time 24 hours ago\n\tpercent_change_7d REAL, -- Example Values: `(-13.809,)`, `(-16.7201,)`, `(1.64395,)` | Value Statics: Total count 93265 - Distinct count 90202 - Null count 6735 | Column Name Meaning: percent change 7d | Column Description: price percentage change in the first 7 days | Value Description: The change is the difference (in percent) between the price now compared to the price around this time 7 days ago\n\tcirculating_supply REAL, -- Example Values: `(11091325.0,)`, `(17164230.0,)`, `(18757362.0,)` | Value Statics: Total count 97078 - Distinct count 68783 - Null count 2922 | Column Name Meaning: circulating supply | Column Description: the best approximation of the number of coins that are circulating in the market and in the general public's hands. \n\ttotal_supply REAL, -- Example Values: `(11091325.0,)`, `(17164230.0,)`, `(18757362.0,)` | Value Statics: Total count 97078 - Distinct count 68573 - Null count 2922 | Column Name Meaning: total supply | Column Description: the total amount of coins in existence right now \n\tmax_supply REAL, -- Example Values: `(21000000.0,)`, `(84000000.0,)`, `(42000000.0,)` | Value Statics: Total count 14116 - Distinct count 52 - Null count 85884 | Column Name Meaning: max supply | Column Description: Max Supply is the best approximation of the maximum amount of coins that will ever exist in the lifetime of the cryptocurrency. | Value Description: commonsense reasoning: the number of coins verifiably burned so far = max_supply - total_supply\n\tnum_market_pairs INTEGER, -- Example Values: `(7050,)`, `(5146,)`, `(382,)` | Value Statics: Total count 0 - Distinct count 0 - Null count 100000 | Column Name Meaning: number market pairs | Column Description: number of market pairs across all exchanges trading each currency. | Value Description: commonsense reasoning: active coins that have gone inactive can easily be identified as having a num_market_pairs of 0\n);" }
retail_world
{ "db_schema": "CREATE TABLE Categories\n(\n\tCategoryID INTEGER PRIMARY KEY AUTOINCREMENT,\n\tCategoryName TEXT, -- Example Values: `Beverages`, `Condiments`, `Confections`, `Dairy Products`, `Grains/Cereals` | Value Statics: Total count 8 - Distinct count 8 - Null count 0 | Column Name Meaning: Category Name | Column Description: the category name \n\tDescription TEXT, -- Example Values: `Soft drinks, coffees, teas, beers, and ales`, `Sweet and savory sauces, relishes, spreads, and se`, `Desserts, candies, and sweet breads`, `Cheeses`, `Breads, crackers, pasta, and cereal` | Value Statics: Total count 8 - Distinct count 8 - Null count 0 | Column Description: the detailed description of the category \n);\n\nCREATE TABLE Customers\n(\n\tCustomerID INTEGER PRIMARY KEY AUTOINCREMENT,\n\tCustomerName TEXT, -- Example Values: `('Alfreds Futterkiste',)`, `('Ana Trujillo Emparedados y helados',)`, `('Antonio Moreno Taquería',)` | Value Statics: Total count 91 - Distinct count 91 - Null count 0 | Column Name Meaning: Customer Name | Column Description: the customer name \n\tContactName TEXT, -- Example Values: `('Maria Anders',)`, `('Ana Trujillo',)`, `('Antonio Moreno',)` | Value Statics: Total count 91 - Distinct count 91 - Null count 0 | Column Name Meaning: Contact Name | Column Description: the contact person's name representing the company \n\tAddress TEXT, -- Example Values: `('Obere Str. 57',)`, `('Avda. de la Constitución 2222',)`, `('Mataderos 2312',)` | Value Statics: Total count 91 - Distinct count 91 - Null count 0 | Column Description: the address of the customer \n\tCity TEXT, -- Example Values: `('Berlin',)`, `('México D.F.',)`, `('London',)` | Value Statics: Total count 91 - Distinct count 69 - Null count 0 | Column Description: the city where the customer is located \n\tPostalCode TEXT, -- Example Values: `('12209',)`, `('5021',)`, `('5023',)` | Value Statics: Total count 91 - Distinct count 86 - Null count 0 | Column Name Meaning: Postal Code | Column Description: the postal code \n\tCountry TEXT, -- Example Values: `('Germany',)`, `('Mexico',)`, `('UK',)` | Value Statics: Total count 91 - Distinct count 21 - Null count 0 | Column Description: the country \n);\n\nCREATE TABLE Employees\n(\n\tEmployeeID INTEGER PRIMARY KEY AUTOINCREMENT,\n\tLastName TEXT, -- Example Values: `Davolio`, `Fuller`, `Leverling`, `Peacock`, `Buchanan` | Value Statics: Total count 10 - Distinct count 10 - Null count 0 | Column Name Meaning: Last Name | Column Description: the employee's last name \n\tFirstName TEXT, -- Example Values: `Nancy`, `Andrew`, `Janet`, `Margaret`, `Steven` | Value Statics: Total count 10 - Distinct count 10 - Null count 0 | Column Name Meaning: First Name | Column Description: the employee's first name | Value Description: the employee's full name is 'first_name last_name'.\n\tBirthDate DATE, -- Example Values: `('1968-12-08',)`, `('1952-02-19',)`, `('1963-08-30',)` | Value Statics: Total count 10 - Distinct count 10 - Null count 0 | Column Name Meaning: Birth Date | Column Description: the birth date of the employee \n\tPhoto TEXT, -- Example Values: `EmpID1.pic`, `EmpID2.pic`, `EmpID3.pic`, `EmpID4.pic`, `EmpID5.pic` | Value Statics: Total count 10 - Distinct count 10 - Null count 0 | Column Description: the photo of the employee \n\tNotes TEXT, -- Example Values: `Education includes a BA in psychology from Colorad`, `Andrew received his BTS commercial and a Ph.D. in `, `Janet has a BS degree in chemistry from Boston Col`, `Margaret holds a BA in English literature from Con`, `Steven Buchanan graduated from St. Andrews Univers` | Value Statics: Total count 10 - Distinct count 10 - Null count 0 | Column Description: some additional information of the employee \n);\n\nCREATE TABLE Shippers\n(\n\tShipperID INTEGER PRIMARY KEY AUTOINCREMENT,\n\tShipperName TEXT, -- Example Values: `Speedy Express`, `United Package`, `Federal Shipping` | Value Statics: Total count 3 - Distinct count 3 - Null count 0 | Column Name Meaning: Shipper Name | Column Description: the shipped company name \n\tPhone TEXT, -- Example Values: `(503) 555-9831`, `(503) 555-3199`, `(503) 555-9931` | Value Statics: Total count 3 - Distinct count 3 - Null count 0 | Column Description: the phone of the company \n);\n\nCREATE TABLE Suppliers\n(\n\tSupplierID INTEGER PRIMARY KEY AUTOINCREMENT,\n\tSupplierName TEXT, -- Example Values: `('Exotic Liquid',)`, `('New Orleans Cajun Delights',)`, `(\"Grandma Kelly's Homestead\",)` | Value Statics: Total count 29 - Distinct count 29 - Null count 0 | Column Name Meaning: Supplier Name | Column Description: the supplier name \n\tContactName TEXT, -- Example Values: `('Charlotte Cooper',)`, `('Shelley Burke',)`, `('Regina Murphy',)` | Value Statics: Total count 29 - Distinct count 29 - Null count 0 | Column Name Meaning: Contact Name | Column Description: the contact person's name representing the company \n\tAddress TEXT, -- Example Values: `('49 Gilbert St.',)`, `('P.O. Box 78934',)`, `('707 Oxford Rd.',)` | Value Statics: Total count 29 - Distinct count 29 - Null count 0 | Column Description: the address of the supplier \n\tCity TEXT, -- Example Values: `('Londona',)`, `('New Orleans',)`, `('Ann Arbor',)` | Value Statics: Total count 29 - Distinct count 29 - Null count 0 | Column Description: the city where the supplier is located \n\tPostalCode TEXT, -- Example Values: `('EC1 4SD',)`, `('70117',)`, `('48104',)` | Value Statics: Total count 29 - Distinct count 29 - Null count 0 | Column Name Meaning: Postal Code | Column Description: the postal code \n\tCountry TEXT, -- Example Values: `UK`, `USA`, `Japan`, `Spain`, `Australia` | Value Statics: Total count 29 - Distinct count 16 - Null count 0 | Column Description: the country \n\tPhone TEXT, -- Example Values: `('(171) 555-2222',)`, `('(100) 555-4822',)`, `('(313) 555-5735',)` | Value Statics: Total count 29 - Distinct count 29 - Null count 0 | Column Description: the phone number \n);\n\nCREATE TABLE Products\n(\n\tProductID INTEGER PRIMARY KEY AUTOINCREMENT,\n\tProductName TEXT, -- Example Values: `('Chais',)`, `('Chang',)`, `('Aniseed Syrup',)` | Value Statics: Total count 77 - Distinct count 77 - Null count 0 | Column Name Meaning: Product Name | Column Description: the name of the product \n\tSupplierID INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 77 - Distinct count 29 - Null count 0 | Column Name Meaning: Supplier ID | Column Description: the unique id for supplier \n\tCategoryID INTEGER, -- Example Values: `1`, `2`, `7`, `6`, `8` | Value Statics: Total count 77 - Distinct count 8 - Null count 0 | Column Name Meaning: Category ID | Column Description: the unique id for the product category \n\tUnit TEXT, -- Example Values: `('10 boxes x 20 bags',)`, `('24 - 12 oz bottles',)`, `('12 - 550 ml bottles',)` | Value Statics: Total count 77 - Distinct count 70 - Null count 0 | Column Description: the unit of the product \n\tPrice REAL DEFAULT 0, -- Example Values: `(18.0,)`, `(19.0,)`, `(10.0,)` | Value Statics: Total count 77 - Distinct count 62 - Null count 0 | Column Description: the price \n\tFOREIGN KEY (CategoryID) REFERENCES Categories (CategoryID),\n\tFOREIGN KEY (SupplierID) REFERENCES Suppliers (SupplierID),\n);\n\nCREATE TABLE Orders\n(\n\tOrderID INTEGER PRIMARY KEY AUTOINCREMENT,\n\tCustomerID INTEGER, -- Example Values: `(90,)`, `(81,)`, `(34,)` | Value Statics: Total count 196 - Distinct count 74 - Null count 0 | Column Name Meaning: Customer ID | Column Description: the unique id for customers \n\tEmployeeID INTEGER, -- Example Values: `5`, `6`, `4`, `3`, `9` | Value Statics: Total count 196 - Distinct count 9 - Null count 0 | Column Name Meaning: Employee ID | Column Description: the unique id for employees \n\tOrderDate DATETIME, -- Example Values: `('1996-07-04',)`, `('1996-07-05',)`, `('1996-07-08',)` | Value Statics: Total count 196 - Distinct count 160 - Null count 0 | Column Name Meaning: Order Date | Column Description: the order date \n\tShipperID INTEGER, -- Example Values: `3`, `1`, `2` | Value Statics: Total count 196 - Distinct count 3 - Null count 0 | Column Name Meaning: Shipper ID | Column Description: the id of the shipper \n\tFOREIGN KEY (EmployeeID) REFERENCES Employees (EmployeeID),\n\tFOREIGN KEY (CustomerID) REFERENCES Customers (CustomerID),\n\tFOREIGN KEY (ShipperID) REFERENCES Shippers (ShipperID),\n);\n\nCREATE TABLE OrderDetails\n(\n\tOrderDetailID INTEGER PRIMARY KEY AUTOINCREMENT,\n\tOrderID INTEGER, -- Example Values: `(10248,)`, `(10249,)`, `(10250,)` | Value Statics: Total count 518 - Distinct count 196 - Null count 0 | Column Name Meaning: Order ID | Column Description: the unique id for orders \n\tProductID INTEGER, -- Example Values: `(11,)`, `(42,)`, `(72,)` | Value Statics: Total count 518 - Distinct count 77 - Null count 0 | Column Name Meaning: Product ID | Column Description: the unique id for products \n\tQuantity INTEGER, -- Example Values: `(12,)`, `(10,)`, `(5,)` | Value Statics: Total count 518 - Distinct count 43 - Null count 0 | Column Description: the quantity of the ordered products \n\tFOREIGN KEY (OrderID) REFERENCES Orders (OrderID),\n\tFOREIGN KEY (ProductID) REFERENCES Products (ProductID),\n);" }
retails
{ "db_schema": "CREATE TABLE customer\n(\n\t`c_custkey` INTEGER NOT NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Name Meaning: customer key | Column Description: unique id number identifying the customer \n\t`c_mktsegment` TEXT DEFAULT NULL, -- Example Values: `BUILDING`, `MACHINERY`, `FURNITURE`, `AUTOMOBILE`, `HOUSEHOLD` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0 | Column Name Meaning: customer market segment | Column Description: the segment of the customer \n\t`c_nationkey` INTEGER DEFAULT NULL, -- Example Values: `(8,)`, `(16,)`, `(11,)` | Value Statics: Total count 100000 - Distinct count 25 - Null count 0 | Column Name Meaning: customer nation key | Column Description: the nation key number of the customer \n\t`c_name` TEXT DEFAULT NULL, -- Example Values: `('Customer#000000001',)`, `('Customer#000000002',)`, `('Customer#000000003',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Name Meaning: customer name | Column Description: name of the customer \n\t`c_address` TEXT DEFAULT NULL, -- Example Values: `('KwX3hMHjZ6',)`, `('ioUn,eqTTXOdo',)`, `('YddJqmIdouNT9Yj',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Name Meaning: customer address | Column Description: address of the customer \n\t`c_phone` TEXT DEFAULT NULL, -- Example Values: `('937-241-3198',)`, `('906-965-7556',)`, `('328-750-7603',)` | Value Statics: Total count 100000 - Distinct count 99997 - Null count 0 | Column Name Meaning: customer phone | Column Description: phone of the customer \n\t`c_acctbal` REAL DEFAULT NULL, -- Example Values: `(3560.03,)`, `(7550.21,)`, `(-926.96,)` | Value Statics: Total count 100000 - Distinct count 95565 - Null count 0 | Column Name Meaning: customer account balance | Column Description: account balance | Value Description: if c_acctbal < 0: this account is in debt\n\t`c_comment` TEXT DEFAULT NULL, --| Column Name Meaning: customer comment | Column Description: comment of the customer \n\tPRIMARY KEY (`c_custkey`),\n\tFOREIGN KEY (`c_nationkey`) REFERENCES `nation` (`n_nationkey`) ON DELETE CASCADE ON UPDATE CASCADE,\n);\n\nCREATE TABLE lineitem\n(\n\tl_shipdate DATE null, -- Example Values: `('1995-08-16',)`, `('1995-08-13',)`, `('1995-06-17',)` | Value Statics: Total count 100000 - Distinct count 1829 - Null count 0 | Column Name Meaning: line item ship date | Column Description: ship date of line item \n\tl_orderkey INTEGER not null, -- Example Values: `(1,)`, `(2,)`, `(4,)` | Value Statics: Total count 100000 - Distinct count 25388 - Null count 0 | Column Name Meaning: line item order key | Column Description: order key number of line item \n\tl_discount REAL not null, -- Example Values: `0.1`, `0.09`, `0.02`, `0.08`, `0.07` | Value Statics: Total count 100000 - Distinct count 11 - Null count 0 | Column Name Meaning: line item discount | Column Description: discount of line item | Value Description: 0.1: 10% off\n\tl_extendedprice REAL not null, -- Example Values: `(58303.08,)`, `(16947.7,)`, `(63642.9,)` | Value Statics: Total count 100000 - Distinct count 94277 - Null count 0 | Column Name Meaning: line item extended price | Column Description: extended price of line item | Value Description: full price before discount discounted price = (l_extendedprice*(1-l_discount))\n\tl_suppkey INTEGER not null, -- Example Values: `(6296,)`, `(8776,)`, `(3859,)` | Value Statics: Total count 100000 - Distinct count 10000 - Null count 0 | Column Name Meaning: line item suppkey | Column Description: suppkey of line item \n\tl_quantity INTEGER not null, -- Example Values: `(33,)`, `(10,)`, `(34,)` | Value Statics: Total count 100000 - Distinct count 50 - Null count 0 | Column Name Meaning: line item quantity | Column Description: quantity of line item \n\tl_returnflag TEXT null, -- Example Values: `N`, `A`, `R` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0 | Column Name Meaning: line item return flag | Column Description: return flag of line item | Value Description: • “R” ? returned item • “A” and \"N\": not returned item.\n\tl_partkey INTEGER not null, -- Example Values: `(98768,)`, `(23771,)`, `(113858,)` | Value Statics: Total count 100000 - Distinct count 78624 - Null count 0 | Column Name Meaning: line item part key | Column Description: part key of line item \n\tl_linestatus TEXT null, -- Example Values: `O`, `F` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: line item line status | Column Description: line status of line item \n\tl_tax REAL not null, -- Example Values: `0.06`, `0.08`, `0.07`, `0.02`, `0.01` | Value Statics: Total count 100000 - Distinct count 9 - Null count 0 | Column Name Meaning: line item tax | Column Description: tax of line item | Value Description: charge = l_extendedprice * (1- l_discount) * (1+ l_tax)\n\tl_commitdate DATE null, -- Example Values: `('1995-07-12',)`, `('1995-07-09',)`, `('1995-05-22',)` | Value Statics: Total count 100000 - Distinct count 1881 - Null count 0 | Column Name Meaning: line item commit date | Column Description: commit date of line item \n\tl_receiptdate DATE null, -- Example Values: `('1995-09-14',)`, `('1995-08-27',)`, `('1995-06-30',)` | Value Statics: Total count 100000 - Distinct count 1851 - Null count 0 | Column Name Meaning: line item receipt date | Column Description: receipt date of line item | Value Description: freight / shipping / delivery time = l_receiptdate - l_commitdate; less shipping / delivery time --> faster shipping speed.\n\tl_shipmode TEXT null, -- Example Values: `RAIL`, `TRUCK`, `SHIP`, `MAIL`, `AIR` | Value Statics: Total count 100000 - Distinct count 7 - Null count 0 | Column Name Meaning: line item ship mode | Column Description: ship mode of line item \n\tl_linenumber INTEGER not null, -- Example Values: `1`, `2`, `3`, `4`, `5` | Value Statics: Total count 100000 - Distinct count 7 - Null count 0 | Column Name Meaning: line item line number | Column Description: unique id number identifying the line item \n\tl_shipinstruct TEXT null, -- Example Values: `NONE`, `TAKE BACK RETURN`, `COLLECT COD`, `DELIVER IN PERSON` | Value Statics: Total count 100000 - Distinct count 4 - Null count 0 | Column Name Meaning: line item ship instruct | Column Description: ship instruct of line item \n\tl_comment TEXT null, -- Example Values: `('carefully bo',)`, `('blithely regular pac',)`, `('ironic accounts sleep furiously silen',)` | Value Statics: Total count 100000 - Distinct count 80548 - Null count 0 | Column Name Meaning: line item comment | Column Description: comment of line item \n\tprimary key (l_orderkey, l_linenumber),\n\tforeign key (l_orderkey) references orders (o_orderkey) on update cascade on delete cascade,\n\tforeign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey) on update cascade on delete cascade,\n\tforeign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey) on update cascade on delete cascade,\n);\n\nCREATE TABLE nation\n(\n\tn_nationkey INTEGER not null primary key,\n\tn_name TEXT null, -- Example Values: `('ALGERIA',)`, `('ARGENTINA',)`, `('BRAZIL',)` | Value Statics: Total count 25 - Distinct count 25 - Null count 0 | Column Name Meaning: nation name | Column Description: name of the nation \n\tn_regionkey INTEGER null, -- Example Values: `0`, `1`, `3`, `2`, `4` | Value Statics: Total count 25 - Distinct count 5 - Null count 0 | Column Name Meaning: nation region key | Column Description: region key number of the nation \n\tn_comment TEXT null, --| Column Name Meaning: nation comment | Column Description: comment description of nation \n\tforeign key (n_regionkey) references region (r_regionkey) on update cascade on delete cascade,\n);\n\nCREATE TABLE orders\n(\n\to_orderdate DATE null, -- Example Values: `('1995-04-19',)`, `('1996-11-04',)`, `('1992-02-15',)` | Value Statics: Total count 100000 - Distinct count 2405 - Null count 0 | Column Name Meaning: order date | Column Description: date of the order | Value Description: earlier order date --> higher priority in delivery\n\to_orderkey INTEGER not null primary key,\n\to_custkey INTEGER not null, -- Example Values: `(73100,)`, `(92861,)`, `(44875,)` | Value Statics: Total count 100000 - Distinct count 63370 - Null count 0 | Column Name Meaning: order customer key | Column Description: customer key of order \n\to_orderpriority TEXT null, -- Example Values: `4-NOT SPECIFIED`, `1-URGENT`, `5-LOW`, `3-MEDIUM`, `2-HIGH` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0 | Column Name Meaning: order priority | Column Description: priority rate of order | Value Description: A smaller number means a higher priority: 0-Urgent\n\to_shippriority INTEGER null, -- Example Values: `0` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Name Meaning: order ship priority | Column Description: ship priority of order \n\to_clerk TEXT null, -- Example Values: `('Clerk#000000916',)`, `('Clerk#000000373',)`, `('Clerk#000000485',)` | Value Statics: Total count 100000 - Distinct count 1000 - Null count 0 | Column Name Meaning: order clerk | Column Description: clerk of order \n\to_orderstatus TEXT null, -- Example Values: `P`, `O`, `F` | Value Statics: Total count 100000 - Distinct count 3 - Null count 0 | Column Name Meaning: order status | Column Description: status of order \n\to_totalprice REAL null, -- Example Values: `(203198.56,)`, `(317719.99,)`, `(146674.98,)` | Value Statics: Total count 100000 - Distinct count 99827 - Null count 0 | Column Name Meaning: order total price | Column Description: total price of the order \n\to_comment TEXT null, -- Example Values: `('final packages sleep blithely packa',)`, `('final excuses about the ironic even deposits det`, `('final final deposits cajole foxes. blithely pend` | Value Statics: Total count 100000 - Distinct count 98032 - Null count 0 | Column Name Meaning: order comment | Column Description: comment description of order \n\tforeign key (o_custkey) references customer (c_custkey) on update cascade on delete cascade,\n);\n\nCREATE TABLE part\n(\n\tp_partkey INTEGER not null primary key,\n\tp_type TEXT null, -- Example Values: `('LARGE PLATED TIN',)`, `('LARGE POLISHED STEEL',)`, `('STANDARD PLATED COPPER',)` | Value Statics: Total count 100000 - Distinct count 150 - Null count 0 | Column Name Meaning: part type | Column Description: type of part \n\tp_size INTEGER null, -- Example Values: `(31,)`, `(4,)`, `(30,)` | Value Statics: Total count 100000 - Distinct count 50 - Null count 0 | Column Name Meaning: part size | Column Description: size number of part | Value Description: larger number --> larger part\n\tp_brand TEXT null, -- Example Values: `('Brand#43',)`, `('Brand#55',)`, `('Brand#53',)` | Value Statics: Total count 100000 - Distinct count 25 - Null count 0 | Column Name Meaning: part brand | Column Description: brand of part \n\tp_name TEXT null, -- Example Values: `('burlywood plum powder puff mint',)`, `('hot spring dodger dim light',)`, `('dark slate grey steel misty',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Name Meaning: part name | Column Description: name of part \n\tp_container TEXT null, -- Example Values: `('LG BAG',)`, `('LG CASE',)`, `('WRAP CASE',)` | Value Statics: Total count 100000 - Distinct count 40 - Null count 0 | Column Name Meaning: part container | Column Description: container of part \n\tp_mfgr TEXT null, -- Example Values: `Manufacturer#4`, `Manufacturer#5`, `Manufacturer#1`, `Manufacturer#3`, `Manufacturer#2` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0 | Column Name Meaning: part manufacturer | Column Description: manufacturer of part \n\tp_retailprice REAL null, -- Example Values: `(901.0,)`, `(902.0,)`, `(903.0,)` | Value Statics: Total count 100000 - Distinct count 10899 - Null count 0 | Column Name Meaning: part retail price | Column Description: retail price of part \n\tp_comment TEXT null, -- Example Values: `('blithely busy reque',)`, `('even ironic requests s',)`, `('slyly ironic fox',)` | Value Statics: Total count 100000 - Distinct count 34495 - Null count 0 | Column Name Meaning: part comment | Column Description: comment description text of part \n);\n\nCREATE TABLE partsupp\n(\n\tps_partkey INTEGER not null, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 25000 - Null count 0 | Column Name Meaning: part supply part key | Column Description: unique id number identifying the part key \n\tps_suppkey INTEGER not null, -- Example Values: `(2,)`, `(2502,)`, `(5002,)` | Value Statics: Total count 100000 - Distinct count 10000 - Null count 0 | Column Name Meaning: part supply supply key | Column Description: unique id number identifying the supply key \n\tps_supplycost REAL not null, -- Example Values: `(400.75,)`, `(702.61,)`, `(383.95,)` | Value Statics: Total count 100000 - Distinct count 63085 - Null count 0 | Column Name Meaning: part supply cost | Column Description: cost number of the part supply | Value Description: profit = (l_extendedprice*(1-l_discount)) - (ps_supplycost * l_quantity)] l_quantity comes from table lineitem!\n\tps_availqty INTEGER null, -- Example Values: `(1111,)`, `(3999,)`, `(7411,)` | Value Statics: Total count 100000 - Distinct count 9999 - Null count 0 | Column Name Meaning: part supply available quantity | Column Description: available quantity of the part supply | Value Description: if ps_availqty < 10 --> closer to OOS (out of stock)\n\tps_comment TEXT null, --| Column Name Meaning: part supply comment | Column Description: comment description of the part supply. \n\tprimary key (ps_partkey, ps_suppkey),\n\tforeign key (ps_partkey) references part (p_partkey) on update cascade on delete cascade,\n\tforeign key (ps_suppkey) references supplier (s_suppkey) on update cascade on delete cascade,\n);\n\nCREATE TABLE region\n(\n\tr_regionkey INTEGER not null primary key,\n\tr_name TEXT null, -- Example Values: `AFRICA`, `AMERICA`, `ASIA`, `EUROPE`, `MIDDLE EAST` | Value Statics: Total count 5 - Distinct count 5 - Null count 0 | Column Name Meaning: region name | Column Description: name of the region \n\tr_comment TEXT null, -- Example Values: `asymptotes sublate after the r`, `requests affix quickly final tithes. blithely even`, `accounts cajole carefully according to the careful`, `slyly even theodolites are carefully ironic pinto `, `furiously express accounts wake sly` | Value Statics: Total count 5 - Distinct count 5 - Null count 0 | Column Name Meaning: region comment | Column Description: comment description of the region \n);\n\nCREATE TABLE supplier\n(\n\ts_suppkey INTEGER not null primary key,\n\ts_nationkey INTEGER null, -- Example Values: `(13,)`, `(5,)`, `(22,)` | Value Statics: Total count 10000 - Distinct count 25 - Null count 0 | Column Name Meaning: supplier nation key | Column Description: nation key of the supply \n\ts_comment TEXT null, -- Example Values: `('blithely final pearls are. instructions thra',)`, `('requests integrate fluffily. fluffily ironic dep`, `('carefully express ideas shall have to unwin',)` | Value Statics: Total count 10000 - Distinct count 9998 - Null count 0 | Column Name Meaning: supplier comment | Column Description: comment description of the comment \n\ts_name TEXT null, -- Example Values: `('Supplier#000000001',)`, `('Supplier#000000002',)`, `('Supplier#000000003',)` | Value Statics: Total count 10000 - Distinct count 10000 - Null count 0 | Column Name Meaning: supplier name | Column Description: name of the supplier \n\ts_address TEXT null, -- Example Values: `(',wWs4pnykQOFl8mgVCU8EZMXqZs1w',)`, `('WkXT6MSAJrp4qWq3W9N',)`, `('KjUqa42JEHaRDVQTHV6Yq2h',)` | Value Statics: Total count 10000 - Distinct count 10000 - Null count 0 | Column Name Meaning: supplier address | Column Description: address of the supplier \n\ts_phone TEXT null, -- Example Values: `('800-807-9579',)`, `('348-617-6055',)`, `('471-986-9888',)` | Value Statics: Total count 10000 - Distinct count 10000 - Null count 0 | Column Name Meaning: supplier phone | Column Description: phone number of the supplier \n\ts_acctbal REAL null, -- Example Values: `(3082.86,)`, `(3009.73,)`, `(9159.78,)` | Value Statics: Total count 10000 - Distinct count 9964 - Null count 0 | Column Name Meaning: supplier account balance | Column Description: account balance of the supplier | Value Description: if c_acctbal < 0: this account is in debt\n\tforeign key (s_nationkey) references nation (n_nationkey),\n);" }
ice_hockey_draft
{ "db_schema": "CREATE TABLE height_info\n(\n\theight_id INTEGER primary key,\n\theight_in_cm INTEGER, -- Example Values: `165`, `170`, `172`, `174`, `177` | Value Statics: Total count 16 - Distinct count 16 - Null count 0 | Column Name Meaning: height in cm | Column Description: height in cm | Value Description: e.g. 180 --> the height is 180 cm\n\theight_in_inch TEXT, -- Example Values: `5'5\"`, `5'7\"`, `5'8\"`, `5'9\"`, `5'10\"` | Value Statics: Total count 16 - Distinct count 16 - Null count 0 | Column Name Meaning: height in inch | Column Description: height in inch \n);\n\nCREATE TABLE weight_info\n(\n\tweight_id INTEGER primary key,\n\tweight_in_kg INTEGER, -- Example Values: `(70,)`, `(72,)`, `(73,)` | Value Statics: Total count 46 - Distinct count 46 - Null count 0 | Column Name Meaning: weight in kg | Column Description: weight in kg | Value Description: e.g. 70: -->70 kg\n\tweight_in_lbs INTEGER, -- Example Values: `(154,)`, `(159,)`, `(161,)` | Value Statics: Total count 46 - Distinct count 46 - Null count 0 | Column Name Meaning: weight in lbs | Column Description: weight in lbs \n);\n\nCREATE TABLE PlayerInfo\n(\n\tELITEID INTEGER primary key,\n\tPlayerName TEXT, -- Example Values: `('David Bornhammar',)`, `('David Printz',)`, `('Yared Hagos',)` | Value Statics: Total count 2171 - Distinct count 2165 - Null count 0 | Column Name Meaning: Player Name | Column Description: the name of the player \n\tbirthdate TEXT, -- Example Values: `('1981-06-15',)`, `('1980-07-24',)`, `('1983-03-27',)` | Value Statics: Total count 2171 - Distinct count 1688 - Null count 0 | Column Description: the birthdate of the player \n\tbirthyear DATE, -- Example Values: `(1981,)`, `(1980,)`, `(1983,)` | Value Statics: Total count 2171 - Distinct count 22 - Null count 0 | Column Description: the birth year of the player \n\tbirthmonth INTEGER, -- Example Values: `6`, `7`, `3`, `5`, `10` | Value Statics: Total count 2171 - Distinct count 12 - Null count 0 | Column Description: the birth month of the player \n\tbirthday INTEGER, -- Example Values: `(15,)`, `(24,)`, `(27,)` | Value Statics: Total count 2171 - Distinct count 31 - Null count 0 | Column Description: the birthday of the player \n\tbirthplace TEXT, -- Example Values: `('Lidingo, SWE',)`, `('Stockholm, SWE',)`, `('Ostersund, SWE',)` | Value Statics: Total count 2171 - Distinct count 983 - Null count 0 | Column Description: the player of the birthplace \n\tnation TEXT, -- Example Values: `('Sweden',)`, `('Austria',)`, `('Slovakia',)` | Value Statics: Total count 2171 - Distinct count 25 - Null count 0 | Column Description: the nation of the player | Value Description: can ask questions about their corresponding continents. or group nations with their continents. You can refer to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent e.g.: Slovakia --> Europe\n\theight INTEGER, -- Example Values: `73`, `76`, `72`, `75`, `70` | Value Statics: Total count 2171 - Distinct count 16 - Null count 0 | Column Description: the id number identifying heights \n\tweight INTEGER, -- Example Values: `(198,)`, `(220,)`, `(218,)` | Value Statics: Total count 2171 - Distinct count 46 - Null count 0 | Column Description: the id number identifying weights \n\tposition_info TEXT, -- Example Values: `('D',)`, `('C',)`, `('LW/C',)` | Value Statics: Total count 2171 - Distinct count 24 - Null count 0 | Column Name Meaning: position information | Column Description: position information of the player | Value Description: There are six different positions in hockey: left wing, right wing, center, left defenseman, right defenseman goalie. Left wings, right wings, and centers are all considered forwards, while left and right defensemen are considered the defense.\n\tshoots TEXT, -- Example Values: `L`, `R`, `-` | Value Statics: Total count 2171 - Distinct count 3 - Null count 0 | Value Description: • L: Left-shooted • R: Right-shooted • '-': no preference\n\tdraftyear INTEGER, -- Example Values: `1999`, `2001`, `2002`, `2000`, `1998` | Value Statics: Total count 2171 - Distinct count 10 - Null count 0 | Column Name Meaning: draft year | Column Description: draft year \n\tdraftround INTEGER, -- Example Values: `7`, `3`, `5`, `4`, `1` | Value Statics: Total count 2171 - Distinct count 9 - Null count 0 | Column Name Meaning: draft round | Column Description: draft round \n\toverall INTEGER, -- Example Values: `(192,)`, `(225,)`, `(70,)` | Value Statics: Total count 2171 - Distinct count 293 - Null count 0 | Column Description: overall orders of draft picks \n\toverallby TEXT, -- Example Values: `('Washington Capitals',)`, `('Philadelphia Flyers',)`, `('Dallas Stars',)` | Value Statics: Total count 2171 - Distinct count 30 - Null count 0 | Column Description: drafted by which team \n\tCSS_rank INTEGER, -- Example Values: `(192,)`, `(176,)`, `(24,)` | Value Statics: Total count 2171 - Distinct count 221 - Null count 0 | Column Name Meaning: Central Scouting Service ranking | Column Description: Central Scouting Service ranking | Value Description: higher rank refers to higher prospects for the draft\n\tsum_7yr_GP INTEGER, -- Example Values: `(0,)`, `(13,)`, `(6,)` | Value Statics: Total count 2171 - Distinct count 343 - Null count 0 | Column Name Meaning: sum 7-year game plays | Column Description: Total NHL games played in player’s first 7 years of NHL career | Value Description: higher --> more attendance in the first 7 years\n\tsum_7yr_TOI INTEGER, -- Example Values: `(0,)`, `(84,)`, `(42,)` | Value Statics: Total count 2171 - Distinct count 769 - Null count 0 | Column Name Meaning: sum 7-year time on ice | Column Description: Total NHL Time on Ice in player’s first 7 years of NHL career | Value Description: higher --> more playing time in the first 7 years of career\n\tGP_greater_than_0 TEXT, -- Example Values: `no`, `yes` | Value Statics: Total count 2171 - Distinct count 2 - Null count 0 | Column Name Meaning: game play greater than 0 | Column Description: Played a game or not in player’s first 7 years of NHL career | Value Description: • yes • no\n\tforeign key (height) references height_info(height_id),\n\tforeign key (weight) references weight_info(weight_id),\n);\n\nCREATE TABLE SeasonStatus\n(\n\tELITEID INTEGER, -- Example Values: `(3667,)`, `(3668,)`, `(3669,)` | Value Statics: Total count 5485 - Distinct count 2171 - Null count 0 | Column Name Meaning: ELITE ID | Column Description: the id number of the players \n\tSEASON TEXT, -- Example Values: `1997-1998`, `1999-2000`, `1998-1999`, `2000-2001`, `2001-2002` | Value Statics: Total count 5485 - Distinct count 10 - Null count 0 | Column Description: season when players are playing \n\tTEAM TEXT, -- Example Values: `('Rimouski Oceanic',)`, `('Canada U20',)`, `('Plymouth Whalers',)` | Value Statics: Total count 5485 - Distinct count 818 - Null count 0 | Column Description: which team the player belong to \n\tLEAGUE TEXT, -- Example Values: `('QMJHL',)`, `('WJC-20',)`, `('OHL',)` | Value Statics: Total count 5485 - Distinct count 105 - Null count 0 | Column Description: league \n\tGAMETYPE TEXT, -- Example Values: `Regular Season`, `Playoffs` | Value Statics: Total count 5485 - Distinct count 2 - Null count 0 | Column Name Meaning: GAME TYPE | Column Description: type of games | Value Description: • Regular season • playoffs (post season)\n\tGP INTEGER, -- Example Values: `(58,)`, `(18,)`, `(7,)` | Value Statics: Total count 5485 - Distinct count 76 - Null count 0 | Column Name Meaning: Game Plays | Column Description: number of games \n\tG INTEGER, -- Example Values: `(44,)`, `(15,)`, `(1,)` | Value Statics: Total count 5485 - Distinct count 62 - Null count 0 | Column Description: Goals in Draft Year \n\tA INTEGER, -- Example Values: `(71,)`, `(26,)`, `(1,)` | Value Statics: Total count 5485 - Distinct count 84 - Null count 0 | Column Description: Assists in Draft Year \n\tP INTEGER, -- Example Values: `(115,)`, `(41,)`, `(2,)` | Value Statics: Total count 5485 - Distinct count 129 - Null count 0 | Column Description: Points in Draft Year | Value Description: higher --> more valuable\n\tPIM INTEGER, -- Example Values: `(117,)`, `(46,)`, `(4,)` | Value Statics: Total count 5485 - Distinct count 235 - Null count 0 | Column Name Meaning: Penalty Minutes | Column Description: Penalty Minutes in Draft Year | Value Description: higher --> This player has committed more rule violations.\n\tPLUSMINUS INTEGER, -- Example Values: `(27,)`, `(4,)`, `(0,)` | Value Statics: Total count 5485 - Distinct count 100 - Null count 0 | Column Name Meaning: Plus Minutes | Column Description: Goal Differential in Draft Year | Value Description: Goal Differential\n\tforeign key (ELITEID) references PlayerInfo(ELITEID),\n);" }
image_and_language
{ "db_schema": "CREATE TABLE ATT_CLASSES\n(\n\tATT_CLASS_ID INTEGER default 0 not null primary key,\n\tATT_CLASS TEXT not null, -- Example Values: `('building s',)`, `('indoors',)`, `('cluttered',)` | Value Statics: Total count 699 - Distinct count 699 - Null count 0 | Column Name Meaning: ATTRIBUTE CLASS | Column Description: the corresponding classes for attributes \n);\n\nCREATE TABLE OBJ_CLASSES\n(\n\tOBJ_CLASS_ID INTEGER default 0 not null primary key,\n\tOBJ_CLASS TEXT not null, -- Example Values: `('awning',)`, `('goggles',)`, `('dot',)` | Value Statics: Total count 300 - Distinct count 300 - Null count 0 | Column Name Meaning: OBJECT CLASS | Column Description: the explanation about object classes \n);\n\nCREATE TABLE IMG_OBJ\n(\n\tIMG_ID INTEGER default 0 not null, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 6113 - Null count 0 | Column Name Meaning: IMAGE ID | Column Description: the id representing images \n\tOBJ_SAMPLE_ID INTEGER default 0 not null, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 121 - Null count 0 | Column Name Meaning: OBJECT SAMPLE ID | Column Description: the id of the object sample \n\tOBJ_CLASS_ID INTEGER null, -- Example Values: `(298,)`, `(246,)`, `(293,)` | Value Statics: Total count 100000 - Distinct count 300 - Null count 0 | Column Name Meaning: OBJECT CLASS ID | Column Description: the id indicating class of the objects \n\tX INTEGER null, -- Example Values: `(0,)`, `(78,)`, `(1,)` | Value Statics: Total count 100000 - Distinct count 1035 - Null count 0 | Column Description: x coordinate \n\tY INTEGER null, -- Example Values: `(0,)`, `(308,)`, `(283,)` | Value Statics: Total count 100000 - Distinct count 949 - Null count 0 | Column Description: y coordinate \n\tW INTEGER null, -- Example Values: `(799,)`, `(722,)`, `(222,)` | Value Statics: Total count 100000 - Distinct count 1013 - Null count 0 | Column Description: width of the bounding box of the object \n\tH INTEGER null, -- Example Values: `(557,)`, `(290,)`, `(538,)` | Value Statics: Total count 100000 - Distinct count 899 - Null count 0 | Column Description: height of the bounding box of the object | Value Description: bounding box of the object: (x, y, W, H)\n\tprimary key (IMG_ID, OBJ_SAMPLE_ID),\n\tforeign key (OBJ_CLASS_ID) references OBJ_CLASSES (OBJ_CLASS_ID),\n);\n\nCREATE TABLE IMG_OBJ_ATT\n(\n\tIMG_ID INTEGER default 0 not null, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 51306 - Null count 0 | Column Name Meaning: IMAGE ID | Column Description: id number of each image \n\tATT_CLASS_ID INTEGER default 0 not null, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 485 - Null count 0 | Column Name Meaning: ATTRIBUTE CLASS ID | Column Description: attribute class number for image | Value Description: if one IMG_ID has many ATT_CLASS_ID, it refers to that this image has multiple attributes\n\tOBJ_SAMPLE_ID INTEGER default 0 not null, -- Example Values: `(21,)`, `(22,)`, `(23,)` | Value Statics: Total count 100000 - Distinct count 79 - Null count 0 | Column Name Meaning: OBJECT SAMPLE ID | Column Description: object sample id | Value Description: • if one IMG_ID has many OBJ_SAMPLE_ID, it refers to that this image has multiple objects • if one ATT_CLASS_ID has many OBJ_SAMPLE_ID, it refers to that this attribute is composed of multiple objects.\n\tprimary key (IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID),\n\tforeign key (ATT_CLASS_ID) references ATT_CLASSES (ATT_CLASS_ID),\n\tforeign key (IMG_ID, OBJ_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID),\n);\n\nCREATE TABLE PRED_CLASSES\n(\n\tPRED_CLASS_ID INTEGER default 0 not null primary key,\n\tPRED_CLASS TEXT not null, -- Example Values: `('playing on',)`, `('looking a',)`, `('to left of',)` | Value Statics: Total count 150 - Distinct count 150 - Null count 0 | Column Name Meaning: PREDICTION CLASS | Column Description: the caption for the prediction class id \n);\n\nCREATE TABLE IMG_REL\n(\n\tIMG_ID INTEGER default 0 not null, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 45777 - Null count 0 | Column Name Meaning: IMAGE ID | Column Description: the image id \n\tPRED_CLASS_ID INTEGER default 0 not null, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 132 - Null count 0 | Column Name Meaning: PREDICTION CLASS ID | Column Description: the prediction relationship class between objects | Value Description: if OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID, this relationship is the self-relation.\n\tOBJ1_SAMPLE_ID INTEGER default 0 not null, -- Example Values: `(13,)`, `(12,)`, `(4,)` | Value Statics: Total count 100000 - Distinct count 80 - Null count 0 | Column Name Meaning: OBJECT1 SAMPLE ID | Column Description: the sample id of the first object \n\tOBJ2_SAMPLE_ID INTEGER default 0 not null, -- Example Values: `(1,)`, `(34,)`, `(5,)` | Value Statics: Total count 100000 - Distinct count 78 - Null count 0 | Column Name Meaning: OBJECT2 SAMPLE ID | Column Description: the sample id of the second object | Value Description: if (OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID) has multiple PRED_CLASS_ID, it means these two objects have multiple relations.\n\tprimary key (IMG_ID, PRED_CLASS_ID, OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID),\n\tforeign key (PRED_CLASS_ID) references PRED_CLASSES (PRED_CLASS_ID),\n\tforeign key (IMG_ID, OBJ1_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID),\n\tforeign key (IMG_ID, OBJ2_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID),\n);" }
hockey
{ "db_schema": "CREATE TABLE AwardsMisc\n(\n\tname TEXT not null primary key,\n\tID TEXT, -- Example Values: `('arboual01',)`, `('delveal01',)`, `('rossar01',)` | Value Statics: Total count 85 - Distinct count 85 - Null count 39 | Column Description: id number of players or coaches, etc. \n\taward TEXT, -- Example Values: `Patrick` | Value Statics: Total count 124 - Distinct count 1 - Null count 0 | Column Description: awarder \n\tyear INTEGER, -- Example Values: `(2001,)`, `(1998,)`, `(1991,)` | Value Statics: Total count 124 - Distinct count 45 - Null count 0 | Column Description: year of the award \n\tlgID TEXT, -- Example Values: `NHL` | Value Statics: Total count 124 - Distinct count 1 - Null count 0 | Column Name Meaning: league ID | Column Description: league abbreviated name \n\tnote TEXT, -- Example Values: `posthumous` | Value Statics: Total count 15 - Distinct count 1 - Null count 109 | Column Description: note if needed | Value Description: noted information\n);\n\nCREATE TABLE HOF\n(\n\tyear INTEGER, -- Example Values: `(1969,)`, `(1960,)`, `(1959,)` | Value Statics: Total count 365 - Distinct count 59 - Null count 0 | Column Description: year of hall of fame \n\thofID TEXT not null primary key,\n\tname TEXT, -- Example Values: `('Sid Abel',)`, `('Charles Adams',)`, `('Jack Adams',)` | Value Statics: Total count 365 - Distinct count 364 - Null count 0 | Column Description: name \n\tcategory TEXT, -- Example Values: `Player`, `Builder`, `Referee/Linesman` | Value Statics: Total count 365 - Distinct count 3 - Null count 0 | Column Description: category \n);\n\nCREATE TABLE Teams\n(\n\tyear INTEGER not null, -- Example Values: `(1909,)`, `(1910,)`, `(1911,)` | Value Statics: Total count 1519 - Distinct count 102 - Null count 0 | Column Description: year \n\tlgID TEXT, -- Example Values: `NHA`, `PCHA`, `NHL`, `WCHL`, `WHA` | Value Statics: Total count 1519 - Distinct count 5 - Null count 0 | Column Name Meaning: league ID | Column Description: league ID number \n\ttmID TEXT not null, -- Example Values: `('COB',)`, `('HAI',)`, `('LES',)` | Value Statics: Total count 1519 - Distinct count 115 - Null count 0 | Column Name Meaning: team ID | Column Description: team ID \n\tfranchID TEXT, -- Example Values: `('BKN',)`, `('MTL',)`, `('TBS',)` | Value Statics: Total count 1519 - Distinct count 65 - Null count 0 | Column Name Meaning: Franchise ID | Column Description: Franchise ID \n\tconfID TEXT, -- Example Values: `CC`, `WA`, `WC`, `EC` | Value Statics: Total count 902 - Distinct count 4 - Null count 617 | Column Name Meaning: Conference ID | Column Description: Conference ID | Value Description: see abbrev.csv for details\n\tdivID TEXT, -- Example Values: `AM`, `CA`, `ED`, `WD`, `WW` | Value Statics: Total count 1171 - Distinct count 17 - Null count 348 | Column Name Meaning: Division ID | Column Description: Division ID | Value Description: see abbrev.csv for details\n\trank INTEGER, -- Example Values: `4`, `5`, `7`, `6`, `1` | Value Statics: Total count 1519 - Distinct count 10 - Null count 0 | Column Description: Final standing \n\tplayoff TEXT, -- Example Values: `('LCS',)`, `('WCS',)`, `('NHAF',)` | Value Statics: Total count 936 - Distinct count 24 - Null count 583 | Column Description: playoff results \n\tG INTEGER, -- Example Values: `(12,)`, `(16,)`, `(18,)` | Value Statics: Total count 1519 - Distinct count 33 - Null count 0 | Column Name Meaning: games | Column Description: games \n\tW INTEGER, -- Example Values: `(4,)`, `(2,)`, `(3,)` | Value Statics: Total count 1519 - Distinct count 61 - Null count 0 | Column Name Meaning: wins | Column Description: wins \n\tL INTEGER, -- Example Values: `(8,)`, `(10,)`, `(1,)` | Value Statics: Total count 1519 - Distinct count 63 - Null count 0 | Column Name Meaning: loses | Column Description: loses \n\tT INTEGER, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 1309 - Distinct count 25 - Null count 210 | Column Name Meaning: ties | Column Description: ties \n\tOTL TEXT, -- Example Values: `3`, `4`, `6`, `5`, `0` | Value Statics: Total count 358 - Distinct count 18 - Null count 1161 | Column Name Meaning: Overtime losses | Column Description: Overtime losses \n\tPts INTEGER, -- Example Values: `(8,)`, `(4,)`, `(7,)` | Value Statics: Total count 1519 - Distinct count 122 - Null count 0 | Column Name Meaning: points | Column Description: points \n\tSoW TEXT, -- Example Values: `3`, `5`, `2`, `8`, `12` | Value Statics: Total count 210 - Distinct count 15 - Null count 1309 | Column Name Meaning: Shootout wins | Column Description: Shootout wins \n\tSoL TEXT, -- Example Values: `7`, `5`, `8`, `2`, `3` | Value Statics: Total count 210 - Distinct count 12 - Null count 1309 | Column Name Meaning: Shootout loses | Column Description: Shootout loses \n\tGF INTEGER, -- Example Values: `(79,)`, `(77,)`, `(59,)` | Value Statics: Total count 1519 - Distinct count 326 - Null count 0 | Column Name Meaning: Goals for | Column Description: Goals for \n\tGA INTEGER, -- Example Values: `(104,)`, `(83,)`, `(100,)` | Value Statics: Total count 1519 - Distinct count 333 - Null count 0 | Column Name Meaning: Goals against | Column Description: goals against \n\tname TEXT, -- Example Values: `('Cobalt Silver Kings',)`, `('Haileybury Hockey Club',)`, `('Les Canadiens',)` | Value Statics: Total count 1519 - Distinct count 103 - Null count 0 | Column Name Meaning: Full team name | Column Description: Full team name \n\tPIM TEXT, -- Example Values: `('336',)`, `('27',)`, `('333',)` | Value Statics: Total count 1409 - Distinct count 979 - Null count 110 | Column Name Meaning: Penalty minutes | Column Description: Penalty minutes \n\tBenchMinor TEXT, -- Example Values: `('12',)`, `('14',)`, `('8',)` | Value Statics: Total count 1028 - Distinct count 26 - Null count 491 | Column Name Meaning: Bench minors (minutes) | Column Description: Bench minors (minutes) | Value Description: A bench minor penalty is a minor penalty committed by a player or coach that is not on the ice. It is like a minor penalty in that it calls for the offending player to serve two minutes in the penalty box.\n\tPPG TEXT, -- Example Values: `('28',)`, `('51',)`, `('42',)` | Value Statics: Total count 1101 - Distinct count 88 - Null count 418 | Column Name Meaning: Power play goals | Column Description: Power play goals \n\tPPC TEXT, -- Example Values: `('220',)`, `('279',)`, `('240',)` | Value Statics: Total count 1100 - Distinct count 285 - Null count 419 | Column Name Meaning: Power play chances | Column Description: Power play chances | Value Description: power play percentage (PP%) = PPG / PPC\n\tSHA TEXT, -- Example Values: `('4',)`, `('2',)`, `('5',)` | Value Statics: Total count 1101 - Distinct count 23 - Null count 418 | Column Name Meaning: Shorthanded goals against | Column Description: Shorthanded goals against \n\tPKG TEXT, -- Example Values: `('45',)`, `('43',)`, `('36',)` | Value Statics: Total count 1101 - Distinct count 90 - Null count 418 | Column Name Meaning: Power play goals against | Column Description: Power play goals against \n\tPKC TEXT, -- Example Values: `('242',)`, `('301',)`, `('267',)` | Value Statics: Total count 1100 - Distinct count 289 - Null count 419 | Column Name Meaning: Penalty kill chances | Column Description: Penalty kill chances \n\tSHF TEXT, -- Example Values: `('3',)`, `('8',)`, `('2',)` | Value Statics: Total count 1101 - Distinct count 28 - Null count 418 | Column Name Meaning: Shorthanded goals for | Column Description: Shorthanded goals for \n\tprimary key (year, tmID),\n);\n\nCREATE TABLE Coaches\n(\n\tcoachID TEXT not null, -- Example Values: `('abelsi01c',)`, `('adamsja01c',)`, `('agnewga01c',)` | Value Statics: Total count 1812 - Distinct count 395 - Null count 0 | Column Name Meaning: coach ID | Column Description: number identifying coaches | Value Description: number identifying coaches\n\tyear INTEGER not null, -- Example Values: `(1952,)`, `(1953,)`, `(1957,)` | Value Statics: Total count 1812 - Distinct count 102 - Null count 0 | Column Description: In which year did the coach teach this team \n\ttmID TEXT not null, -- Example Values: `('CHI',)`, `('DET',)`, `('STL',)` | Value Statics: Total count 1812 - Distinct count 112 - Null count 0 | Column Name Meaning: team ID | Column Description: team abbreviated name \n\tlgID TEXT, -- Example Values: `NHL`, `WHA`, `NHA`, `WCHL`, `PCHA` | Value Statics: Total count 1812 - Distinct count 5 - Null count 0 | Column Name Meaning: league ID | Column Description: league abbreviated name \n\tstint INTEGER not null, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 1812 - Distinct count 3 - Null count 0 | Column Description: stint \n\tnotes TEXT, -- Example Values: `interim`, `co-coach with Barry Smith`, `co-coach with Dave Lewis` | Value Statics: Total count 11 - Distinct count 3 - Null count 1801 | Column Description: note if needed | Value Description: noted information\n\tg INTEGER, -- Example Values: `(70,)`, `(33,)`, `(74,)` | Value Statics: Total count 1811 - Distinct count 83 - Null count 1 | Column Name Meaning: games | Column Description: number of games \n\tw INTEGER, -- Example Values: `(27,)`, `(12,)`, `(16,)` | Value Statics: Total count 1811 - Distinct count 61 - Null count 1 | Column Name Meaning: wins | Column Description: number of wins | Value Description: winning rates = wins / (wins + loses)\n\tl INTEGER, -- Example Values: `(28,)`, `(51,)`, `(12,)` | Value Statics: Total count 1811 - Distinct count 60 - Null count 1 | Column Name Meaning: loses | Column Description: number of loses \n\tt INTEGER, -- Example Values: `(15,)`, `(7,)`, `(5,)` | Value Statics: Total count 1811 - Distinct count 25 - Null count 1 | Column Name Meaning: ties | Column Description: number of ties \n\tpostg TEXT, -- Example Values: `('7',)`, `('4',)`, `('6',)` | Value Statics: Total count 927 - Distinct count 25 - Null count 885 | Column Name Meaning: post-season games | Column Description: number of post-season games \n\tpostw TEXT, -- Example Values: `3`, `0`, `2`, `6`, `5` | Value Statics: Total count 927 - Distinct count 17 - Null count 885 | Column Name Meaning: post-season wins | Column Description: number of post-season wins \n\tpostl TEXT, -- Example Values: `4`, `5`, `6`, `7`, `2` | Value Statics: Total count 927 - Distinct count 12 - Null count 885 | Column Name Meaning: post-season loses | Column Description: number of post-season loses \n\tpostt TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 927 - Distinct count 5 - Null count 885 | Column Name Meaning: post-season ties | Column Description: number of post-season ties \n\tprimary key (coachID, year, tmID, stint),\n\tforeign key (year, tmID) references Teams (year, tmID) on update cascade on delete cascade,\n);\n\nCREATE TABLE AwardsCoaches\n(\n\tcoachID TEXT, -- Example Values: `('patrile01c',)`, `('irvindi01c',)`, `('gormato01c',)` | Value Statics: Total count 77 - Distinct count 49 - Null count 0 | Column Name Meaning: coach ID | Column Description: string ID of the coach \n\taward TEXT, -- Example Values: `First Team All-Star`, `Second Team All-Star`, `Jack Adams`, `Baldwin`, `Schmertz` | Value Statics: Total count 77 - Distinct count 5 - Null count 0 | Column Description: awards that the coach achieve \n\tyear INTEGER, -- Example Values: `(1930,)`, `(1931,)`, `(1932,)` | Value Statics: Total count 77 - Distinct count 55 - Null count 0 | Column Description: year of award \n\tlgID TEXT, -- Example Values: `NHL`, `WHA` | Value Statics: Total count 77 - Distinct count 2 - Null count 0 | Column Name Meaning: league ID | Column Description: league abbreviated name \n\tnote TEXT, -- \n\tforeign key (coachID) references Coaches (coachID),\n);\n\nCREATE TABLE Master\n(\n\tplayerID TEXT, -- Example Values: `('aaltoan01',)`, `('abbeybr01',)`, `('abbotge01',)` | Value Statics: Total count 7520 - Distinct count 7520 - Null count 241 | Column Description: id number identifying the player \n\tcoachID TEXT, -- Example Values: `('abelsi01c',)`, `('adamsja01c',)`, `('agnewga01c',)` | Value Statics: Total count 395 - Distinct count 395 - Null count 7366 | Column Name Meaning: coach ID | Column Description: coach id number | Value Description: if a person has both playerID and coachID, it means this person becomes coach after retirement.\n\thofID TEXT, -- Example Values: `('abelsi01h',)`, `('adamsch01h',)`, `('adamsja01h',)` | Value Statics: Total count 366 - Distinct count 366 - Null count 7395 | Column Description: hall of fame id \n\tfirstName TEXT, -- Example Values: `('Antti',)`, `('Bruce',)`, `('George',)` | Value Statics: Total count 7748 - Distinct count 1241 - Null count 13 | Column Name Meaning: first name | Column Description: first name \n\tlastName TEXT not null, -- Example Values: `('Aalto',)`, `('Abbey',)`, `('Abbott',)` | Value Statics: Total count 7761 - Distinct count 5075 - Null count 0 | Column Name Meaning: last name | Column Description: last name \n\tnameNote TEXT, -- Example Values: `also known as Bellehumeur`, `also listed as Bourdginon`, `born Bodnarchuk`, `also known as Bowcher`, `also known as Burmeister` | Value Statics: Total count 18 - Distinct count 18 - Null count 7743 | Column Name Meaning: name note | Column Description: note about name \n\tnameGiven TEXT, -- Example Values: `('Antti',)`, `('Bruce',)`, `('George Henry',)` | Value Statics: Total count 5985 - Distinct count 3810 - Null count 1776 | Column Name Meaning: name given | Column Description: Given name \n\tnameNick TEXT, -- Example Values: `('Preacher',)`, `('Taffy',)`, `('Boot Nose',)` | Value Statics: Total count 1306 - Distinct count 997 - Null count 6455 | Column Name Meaning: Nickname | Column Description: Nickname | Value Description: (multiple entries separated by \"/\")\n\theight TEXT, -- Example Values: `('73',)`, `('67',)`, `('71',)` | Value Statics: Total count 7334 - Distinct count 19 - Null count 427 | Column Description: height \n\tweight TEXT, -- Example Values: `('210',)`, `('185',)`, `('153',)` | Value Statics: Total count 7336 - Distinct count 120 - Null count 425 | Column Description: weight \n\tshootCatch TEXT, -- Example Values: `L`, `R`, `B` | Value Statics: Total count 7048 - Distinct count 3 - Null count 713 | Column Name Meaning: shoot catch | Column Description: Shooting hand (or catching hand for goalies) | Value Description: Shooting hand (or catching hand for goalies) L: left hand R: right hand if null or 'empty', it means this player is good at both left and right hand\n\tlegendsID TEXT, -- Example Values: `('14862',)`, `('18411',)`, `('11801',)` | Value Statics: Total count 6577 - Distinct count 6577 - Null count 1184 | Column Name Meaning: legends ID | Column Description: ID at Legends Of Hockey \n\tihdbID TEXT, -- Example Values: `('5928',)`, `('11918',)`, `('14591',)` | Value Statics: Total count 7125 - Distinct count 7125 - Null count 636 | Column Name Meaning: Internet Hockey Database ID | Column Description: ID at the Internet Hockey Database \n\threfID TEXT, -- Example Values: `('aaltoan01',)`, `('abbeybr01',)`, `('abbotge01',)` | Value Statics: Total count 7457 - Distinct count 7457 - Null count 304 | Column Name Meaning: Hockey-Reference.com ID | Column Description: ID at Hockey-Reference.com \n\tfirstNHL TEXT, -- Example Values: `('1997',)`, `('1943',)`, `('1952',)` | Value Statics: Total count 6851 - Distinct count 94 - Null count 910 | Column Name Meaning: First NHL season | Column Description: First NHL season \n\tlastNHL TEXT, -- Example Values: `('2000',)`, `('1943',)`, `('1952',)` | Value Statics: Total count 6851 - Distinct count 94 - Null count 910 | Column Name Meaning: Last NHL season | Column Description: Last NHL season \n\tfirstWHA TEXT, -- Example Values: `1975`, `1976`, `1974`, `1973`, `1978` | Value Statics: Total count 903 - Distinct count 7 - Null count 6858 | Column Name Meaning: First WHA season | Column Description: First WHA season \n\tlastWHA TEXT, -- Example Values: `1975`, `1977`, `1976`, `1973`, `1978` | Value Statics: Total count 903 - Distinct count 7 - Null count 6858 | Column Name Meaning: Last WHA season | Column Description: Last WHA season \n\tpos TEXT, -- Example Values: `C`, `D`, `G`, `L`, `R` | Value Statics: Total count 7447 - Distinct count 18 - Null count 314 | Column Name Meaning: position | Value Description: LW: left winger RW: right winger C: center G: goalie D: defenseman W: winger F: forward the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger) some players have two positions, which will be shown as \"L/D\". It means that LW + D --> left winger and defenseman\n\tbirthYear TEXT, -- Example Values: `('1975',)`, `('1951',)`, `('1911',)` | Value Statics: Total count 7543 - Distinct count 127 - Null count 218 | Column Name Meaning: birth Year | Column Description: birth Year \n\tbirthMon TEXT, -- Example Values: `3`, `8`, `2`, `5`, `12` | Value Statics: Total count 7506 - Distinct count 12 - Null count 255 | Column Name Meaning: birth Month | Column Description: birth Month \n\tbirthDay TEXT, -- Example Values: `('4',)`, `('18',)`, `('3',)` | Value Statics: Total count 7504 - Distinct count 31 - Null count 257 | Column Name Meaning: birth Day | Column Description: birth Day | Value Description: the entire / detail birth date in this table is \"year\" / \"month\" / \"date\"\n\tbirthCountry TEXT, -- Example Values: `('Finland',)`, `('Canada',)`, `('USA',)` | Value Statics: Total count 7396 - Distinct count 49 - Null count 365 | Column Name Meaning: birth Country | Column Description: birth Country \n\tbirthState TEXT, -- Example Values: `('ON',)`, `('MB',)`, `('MI',)` | Value Statics: Total count 6324 - Distinct count 57 - Null count 1437 | Column Name Meaning: birth State | Column Description: birth State \n\tbirthCity TEXT, -- Example Values: `('Lappeenranta',)`, `('Toronto',)`, `('Synenham',)` | Value Statics: Total count 7388 - Distinct count 1913 - Null count 373 | Column Name Meaning: birth city | Column Description: birth city \n\tdeathYear TEXT, -- Example Values: `('1964',)`, `('2000',)`, `('2001',)` | Value Statics: Total count 1320 - Distinct count 97 - Null count 6441 | Column Name Meaning: death year | Column Description: death year \n\tdeathMon TEXT, -- Example Values: `8`, `2`, `12`, `5`, `3` | Value Statics: Total count 1173 - Distinct count 12 - Null count 6588 | Column Name Meaning: death month | Column Description: death month \n\tdeathDay TEXT, -- Example Values: `('1',)`, `('7',)`, `('24',)` | Value Statics: Total count 1168 - Distinct count 31 - Null count 6593 | Column Name Meaning: death day | Column Description: death day \n\tdeathCountry TEXT, -- Example Values: `USA`, `Canada`, `France`, `Belgium`, `Russia` | Value Statics: Total count 498 - Distinct count 14 - Null count 7263 | Column Name Meaning: death country | Column Description: death country \n\tdeathState TEXT, -- Example Values: `('MI',)`, `('AB',)`, `('SK',)` | Value Statics: Total count 471 - Distinct count 44 - Null count 7290 | Column Name Meaning: death state | Column Description: death state \n\tdeathCity TEXT, -- Example Values: `('Sault Ste. Marie',)`, `('Farmington',)`, `('Calgary',)` | Value Statics: Total count 483 - Distinct count 239 - Null count 7278 | Column Name Meaning: death city | Column Description: death city \n\tforeign key (coachID) references Coaches (coachID) on update cascade on delete cascade,\n);\n\nCREATE TABLE AwardsPlayers\n(\n\tplayerID TEXT not null, -- Example Values: `('abelsi01',)`, `('alfreda01',)`, `('amontto01',)` | Value Statics: Total count 2091 - Distinct count 646 - Null count 0 | Column Name Meaning: player id | Column Description: string ID of players | Value Description: unique string ID of the player\n\taward TEXT not null, -- Example Values: `('First Team All-Star',)`, `('Hart',)`, `('Second Team All-Star',)` | Value Statics: Total count 2091 - Distinct count 28 - Null count 0 | Column Description: award name \n\tyear INTEGER not null, -- Example Values: `(1948,)`, `(1949,)`, `(1941,)` | Value Statics: Total count 2091 - Distinct count 94 - Null count 0 | Column Description: year of award \n\tlgID TEXT, -- Example Values: `NHL`, `WHA` | Value Statics: Total count 2091 - Distinct count 2 - Null count 0 | Column Name Meaning: league ID | Column Description: league abbreviated name \n\tnote TEXT, -- Example Values: `tie`, `shared`, `Most Gentlemanly`, `Rookie`, `Best Goaltender` | Value Statics: Total count 127 - Distinct count 8 - Null count 1964 | Column Description: note if needed \n\tpos TEXT, -- Example Values: `C`, `LW`, `F`, `RW`, `D` | Value Statics: Total count 1231 - Distinct count 7 - Null count 860 | Column Name Meaning: position | Column Description: position of players | Value Description: LW: left winger RW: right winger C: center G: goalie D: defenseman W: winger F: forward the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger)\n\tprimary key (playerID, award, year),\n\tforeign key (playerID) references Master (playerID) on update cascade on delete cascade,\n);\n\nCREATE TABLE CombinedShutouts\n(\n\tyear INTEGER, -- Example Values: `(1929,)`, `(1941,)`, `(1955,)` | Value Statics: Total count 54 - Distinct count 33 - Null count 0 | Column Description: year \n\tmonth INTEGER, -- Example Values: `3`, `2`, `11`, `1`, `12` | Value Statics: Total count 54 - Distinct count 8 - Null count 0 | Column Description: month \n\tdate INTEGER, -- Example Values: `(14,)`, `(15,)`, `(22,)` | Value Statics: Total count 54 - Distinct count 27 - Null count 0 | Column Description: day | Value Description: the entire date in this table is \"year\" / \"month\" / \"date\"\n\ttmID TEXT, -- Example Values: `('TOR',)`, `('MTL',)`, `('OAK',)` | Value Statics: Total count 54 - Distinct count 26 - Null count 0 | Column Name Meaning: team ID | Column Description: team abbreviated name \n\toppID TEXT, -- Example Values: `('NYA',)`, `('BOS',)`, `('PHI',)` | Value Statics: Total count 54 - Distinct count 31 - Null count 0 | Column Name Meaning: opposite team ID | Column Description: Team ID of opponent \n\t\"R/P\" TEXT, -- Example Values: `R`, `P` | Value Statics: Total count 54 - Distinct count 2 - Null count 0 | Column Name Meaning: regular / postseason | Column Description: regular / postseason | Value Description: R\" for regular season, or \"P\" for postseason\n\tIDgoalie1 TEXT, -- Example Values: `('chabolo01',)`, `('bibeapa01',)`, `('plantja01',)` | Value Statics: Total count 54 - Distinct count 42 - Null count 0 | Column Name Meaning: ID of goalie 1 | Column Description: ID of first goalie \n\tIDgoalie2 TEXT, -- Example Values: `('grantbe01',)`, `('gardibe01',)`, `('hodgech01',)` | Value Statics: Total count 54 - Distinct count 48 - Null count 0 | Column Name Meaning: ID of goalie 2 | Column Description: ID of second goalie \n\tforeign key (IDgoalie1) references Master (playerID) on update cascade on delete cascade,\n\tforeign key (IDgoalie2) references Master (playerID) on update cascade on delete cascade,\n);\n\nCREATE TABLE Goalies\n(\n\tplayerID TEXT not null, -- Example Values: `('abbotge01',)`, `('abrahch01',)`, `('adamsjo02',)` | Value Statics: Total count 4278 - Distinct count 788 - Null count 0 | Column Description: id number identifying the player | Value Description: number identifying players\n\tyear INTEGER not null, -- Example Values: `(1943,)`, `(1974,)`, `(1975,)` | Value Statics: Total count 4278 - Distinct count 102 - Null count 0 | Column Description: year | Value Description: 2005-06 listed as \"2005\"\n\tstint INTEGER not null, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 4278 - Distinct count 3 - Null count 0 | Column Description: order of appearance in a season | Value Description: the entire date in this table is \"year\" / \"month\" / \"date\"\n\ttmID TEXT, -- Example Values: `('BOS',)`, `('NEW',)`, `('WAS',)` | Value Statics: Total count 4278 - Distinct count 115 - Null count 0 | Column Name Meaning: team ID | Column Description: team abbreviated name \n\tlgID TEXT, -- Example Values: `NHL`, `WHA`, `NHA`, `WCHL`, `PCHA` | Value Statics: Total count 4278 - Distinct count 5 - Null count 0 | Column Name Meaning: league ID | Column Description: league abbreviated name \n\tGP TEXT, -- Example Values: `('1',)`, `('16',)`, `('41',)` | Value Statics: Total count 4257 - Distinct count 79 - Null count 21 | Column Name Meaning: Games played | Column Description: Games played \n\tMin TEXT, -- Example Values: `('60',)`, `('870',)`, `('2385',)` | Value Statics: Total count 4257 - Distinct count 2312 - Null count 21 | Column Name Meaning: Minutes | Column Description: Minutes of appearance \n\tW TEXT, -- Example Values: `('0',)`, `('8',)`, `('18',)` | Value Statics: Total count 4257 - Distinct count 49 - Null count 21 | Column Name Meaning: wins | Column Description: wins \n\tL TEXT, -- Example Values: `('1',)`, `('6',)`, `('18',)` | Value Statics: Total count 4257 - Distinct count 45 - Null count 21 | Column Name Meaning: loses | Column Description: loses \n\t\"T/OL\" TEXT, -- Example Values: `('0',)`, `('1',)`, `('2',)` | Value Statics: Total count 4257 - Distinct count 23 - Null count 21 | Column Name Meaning: Ties / overtime losses | Column Description: Ties / overtime losses \n\tENG TEXT, -- Example Values: `0`, `1`, `3`, `4`, `5` | Value Statics: Total count 3533 - Distinct count 13 - Null count 745 | Column Name Meaning: Empty net goals | Column Description: Empty net goals | Value Description: An empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered “empty\"\n\tSHO TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 4257 - Distinct count 17 - Null count 21 | Column Name Meaning: Shutouts | Column Description: Shutouts | Value Description: In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n\tGA TEXT, -- Example Values: `('7',)`, `('47',)`, `('136',)` | Value Statics: Total count 4257 - Distinct count 247 - Null count 21 | Column Name Meaning: Goals against | Column Description: Goals against | Value Description: “Goals Against” are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n\tSA TEXT, -- Example Values: `('504',)`, `('1221',)`, `('1438',)` | Value Statics: Total count 2685 - Distinct count 1388 - Null count 1593 | Column Name Meaning: Shots against | Column Description: Shots against | Value Description: “Shot Against” are the number of shots recorded while the goalie is on the ice\n\tPostGP TEXT, -- Example Values: `('1',)`, `('2',)`, `('11',)` | Value Statics: Total count 1439 - Distinct count 26 - Null count 2839 | Column Name Meaning: Postseason games played | Column Description: Postseason games played \n\tPostMin TEXT, -- Example Values: `('1',)`, `('90',)`, `('34',)` | Value Statics: Total count 1439 - Distinct count 657 - Null count 2839 | Column Name Meaning: Postseason minutes | Column Description: Postseason minutes \n\tPostW TEXT, -- Example Values: `0`, `6`, `1`, `2`, `3` | Value Statics: Total count 1439 - Distinct count 17 - Null count 2839 | Column Name Meaning: Postseason wins | Column Description: Postseason wins \n\tPostL TEXT, -- Example Values: `0`, `1`, `5`, `3`, `4` | Value Statics: Total count 1439 - Distinct count 12 - Null count 2839 | Column Name Meaning: Postseason loses | Column Description: Postseason loses \n\tPostT TEXT, -- Example Values: `1`, `0`, `2`, `3`, `4` | Value Statics: Total count 106 - Distinct count 5 - Null count 4172 | Column Name Meaning: Postseason ties | Column Description: Postseason ties \n\tPostENG TEXT, -- Example Values: `0`, `1`, `2`, `3`, `5` | Value Statics: Total count 1187 - Distinct count 6 - Null count 3091 | Column Name Meaning: Postseason empty net goals | Column Description: Postseason empty net goals | Value Description: An empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered “empty\"\n\tPostSHO TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 1439 - Distinct count 8 - Null count 2839 | Column Name Meaning: Postseason Shutouts | Column Description: Postseason Shutouts | Value Description: In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n\tPostGA TEXT, -- Example Values: `('0',)`, `('5',)`, `('1',)` | Value Statics: Total count 1439 - Distinct count 66 - Null count 2839 | Column Name Meaning: Postseason Goals against | Column Description: Postseason Goals against | Value Description: “Goals Against” are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n\tPostSA TEXT, -- Example Values: `('51',)`, `('0',)`, `('14',)` | Value Statics: Total count 815 - Distinct count 373 - Null count 3463 | Column Name Meaning: Postseason Shots against | Column Description: Postseason Shots against | Value Description: “Shot Against” are the number of shots recorded while the goalie is on the ice.\n\tprimary key (playerID, year, stint),\n\tforeign key (year, tmID) references Teams (year, tmID) on update cascade on delete cascade,\n\tforeign key (playerID) references Master (playerID) on update cascade on delete cascade,\n);\n\nCREATE TABLE GoaliesSC\n(\n\tplayerID TEXT not null, -- Example Values: `benedcl01`, `clancki01`, `holmeha01`, `lehmahu01`, `lindsbe01` | Value Statics: Total count 31 - Distinct count 11 - Null count 0 | Column Description: id number identifying the player | Value Description: number identifying players\n\tyear INTEGER not null, -- Example Values: `1914`, `1919`, `1920`, `1922`, `1925` | Value Statics: Total count 31 - Distinct count 14 - Null count 0 | Column Description: year | Value Description: 2005-06 listed as \"2005\"\n\ttmID TEXT, -- Example Values: `OT1`, `OTS`, `MTM`, `TBS`, `SEA` | Value Statics: Total count 31 - Distinct count 17 - Null count 0 | Column Name Meaning: team ID | Column Description: team abbreviated name \n\tlgID TEXT, -- Example Values: `NHA`, `NHL`, `PCHA`, `WCHL` | Value Statics: Total count 31 - Distinct count 4 - Null count 0 | Column Name Meaning: league ID | Column Description: league abbreviated name \n\tGP INTEGER, -- Example Values: `3`, `5`, `6`, `4`, `1` | Value Statics: Total count 31 - Distinct count 6 - Null count 0 | Column Name Meaning: Games played | Column Description: Games played \n\tMin INTEGER, -- Example Values: `180`, `300`, `361`, `240`, `2` | Value Statics: Total count 31 - Distinct count 11 - Null count 0 | Column Name Meaning: Minutes | Column Description: Minutes of appearance \n\tW INTEGER, -- Example Values: `0`, `3`, `5`, `2`, `1` | Value Statics: Total count 31 - Distinct count 6 - Null count 0 | Column Name Meaning: Wins | Column Description: Wins \n\tL INTEGER, -- Example Values: `3`, `2`, `1`, `0` | Value Statics: Total count 31 - Distinct count 4 - Null count 0 | Column Name Meaning: Loses | Column Description: Loses \n\tT INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 31 - Distinct count 2 - Null count 0 | Column Name Meaning: Ties | Column Description: Ties \n\tSHO INTEGER, -- Example Values: `0`, `1`, `3`, `2` | Value Statics: Total count 31 - Distinct count 4 - Null count 0 | Column Name Meaning: Shutouts | Column Description: Shutouts | Value Description: In ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\n\tGA INTEGER, -- Example Values: `26`, `11`, `12`, `8`, `3` | Value Statics: Total count 31 - Distinct count 17 - Null count 0 | Column Name Meaning: Goals against | Column Description: Goals against | Value Description: “Goals Against” are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n\tprimary key (playerID, year),\n\tforeign key (year, tmID) references Teams (year, tmID) on update cascade on delete cascade,\n\tforeign key (playerID) references Master (playerID) on update cascade on delete cascade,\n);\n\nCREATE TABLE GoaliesShootout\n(\n\tplayerID TEXT, -- Example Values: `('aebisda01',)`, `('andercr01',)`, `('aubinje01',)` | Value Statics: Total count 480 - Distinct count 130 - Null count 0 \n\tyear INTEGER, -- Example Values: `2005`, `2006`, `2008`, `2009`, `2010` | Value Statics: Total count 480 - Distinct count 7 - Null count 0 | Column Description: year | Value Description: 2005-06 listed as \"2005\"\n\tstint INTEGER, -- Example Values: `1`, `2` | Value Statics: Total count 480 - Distinct count 2 - Null count 0 | Column Description: stint \n\ttmID TEXT, -- Example Values: `('COL',)`, `('MTL',)`, `('CHI',)` | Value Statics: Total count 480 - Distinct count 32 - Null count 0 | Column Name Meaning: team ID | Column Description: team abbreviated name \n\tW INTEGER, -- Example Values: `2`, `0`, `1`, `7`, `6` | Value Statics: Total count 480 - Distinct count 11 - Null count 0 | Column Name Meaning: Wins | Column Description: Wins \n\tL INTEGER, -- Example Values: `1`, `2`, `3`, `0`, `4` | Value Statics: Total count 480 - Distinct count 10 - Null count 0 | Column Name Meaning: Loses | Column Description: Loses \n\tSA INTEGER, -- Example Values: `(10,)`, `(18,)`, `(7,)` | Value Statics: Total count 480 - Distinct count 53 - Null count 0 | Column Name Meaning: Shots against | Column Description: Shots against | Value Description: “Shot Against” are the number of shots recorded while the goalie is on the ice.\n\tGA INTEGER, -- Example Values: `(2,)`, `(6,)`, `(5,)` | Value Statics: Total count 480 - Distinct count 21 - Null count 0 | Column Name Meaning: Goals against | Column Description: Goals against | Value Description: “Goals Against” are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\n\tforeign key (year, tmID) references Teams (year, tmID) on update cascade on delete cascade,\n\tforeign key (playerID) references Master (playerID) on update cascade on delete cascade,\n);\n\nCREATE TABLE Scoring\n(\n\tplayerID TEXT, -- Example Values: `('aaltoan01',)`, `('abbeybr01',)`, `('abbotge01',)` | Value Statics: Total count 45967 - Distinct count 7520 - Null count 0 | Column Description: player ID \n\tyear INTEGER, -- Example Values: `(1997,)`, `(1998,)`, `(1999,)` | Value Statics: Total count 45967 - Distinct count 102 - Null count 0 | Column Description: play year \n\tstint INTEGER, -- Example Values: `1`, `2`, `3`, `4` | Value Statics: Total count 45967 - Distinct count 4 - Null count 0 | Column Description: Stint (order of appearance in a season) \n\ttmID TEXT, -- Example Values: `('ANA',)`, `('CIN',)`, `('BOS',)` | Value Statics: Total count 45967 - Distinct count 115 - Null count 0 | Column Name Meaning: team id | Column Description: team id \n\tlgID TEXT, -- Example Values: `NHL`, `WHA`, `PCHA`, `WCHL`, `NHA` | Value Statics: Total count 45967 - Distinct count 5 - Null count 0 | Column Name Meaning: league id | Column Description: league id \n\tpos TEXT, -- Example Values: `('C',)`, `('D',)`, `('G',)` | Value Statics: Total count 45385 - Distinct count 24 - Null count 582 | Column Name Meaning: position | Column Description: position | Value Description: LW: left winger RW: right winger C: center G: goalie D: defenseman W: winger F: forward the player with W (winger) means he can play the role as both LW (left winger) and RW (right winger) some players have two positions, which will be shown as \"L/D\". It means that LW + D --> left winger and defenseman\n\tGP INTEGER, -- Example Values: `(3,)`, `(73,)`, `(63,)` | Value Statics: Total count 45699 - Distinct count 84 - Null count 268 | Column Name Meaning: game played | Column Description: game played \n\tG INTEGER, -- Example Values: `(0,)`, `(3,)`, `(7,)` | Value Statics: Total count 45699 - Distinct count 80 - Null count 268 | Column Name Meaning: goals | Column Description: goals \n\tA INTEGER, -- Example Values: `(0,)`, `(5,)`, `(11,)` | Value Statics: Total count 45699 - Distinct count 108 - Null count 268 | Column Name Meaning: assists | Column Description: assists \n\tPts INTEGER, -- Example Values: `(0,)`, `(8,)`, `(18,)` | Value Statics: Total count 45699 - Distinct count 161 - Null count 268 | Column Name Meaning: points | Column Description: points \n\tPIM INTEGER, -- Example Values: `(0,)`, `(24,)`, `(26,)` | Value Statics: Total count 45699 - Distinct count 343 - Null count 268 | Column Name Meaning: Penalty minutes | Column Description: Penalty minutes \n\t\"+/-\" TEXT, -- Example Values: `('-1',)`, `('-12',)`, `('-13',)` | Value Statics: Total count 36265 - Distinct count 150 - Null count 9702 | Column Name Meaning: Plus / minus | Column Description: Plus / minus | Value Description: The plus minus stat is used to determine how often a player is on the ice when a goal is scored for the team versus against the team. A positive plus minus means that the player has been on for more goals scored than against, while a negative number means they have been on for more against. In another words, higher \"+ / -\" means more importance to the team, lower means less importance\n\tPPG TEXT, -- Example Values: `('0',)`, `('2',)`, `('1',)` | Value Statics: Total count 37748 - Distinct count 32 - Null count 8219 | Column Name Meaning: Power play goals | Column Description: Power play goals | Value Description: When a team with more players on the ice scores a goal it is known as a power play goal. Many goals are scored in power play situations as the team is able to keep possession of the puck and have more scoring chances.\n\tPPA TEXT, -- Example Values: `('0',)`, `('1',)`, `('2',)` | Value Statics: Total count 23040 - Distinct count 53 - Null count 22927 | Column Name Meaning: Power play assists | Column Description: Power play assists \n\tSHG TEXT, -- Example Values: `0`, `2`, `1`, `5`, `7` | Value Statics: Total count 37744 - Distinct count 14 - Null count 8223 | Column Name Meaning: Shorthanded goals | Column Description: Shorthanded goals | Value Description: Sometimes the team with fewer players on the ice known as the short-handed team will score a goal.\n\tSHA TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 23214 - Distinct count 11 - Null count 22753 | Column Name Meaning: Shorthanded assists | Column Description: Shorthanded assists \n\tGWG TEXT, -- Example Values: `0`, `1`, `3`, `2`, `5` | Value Statics: Total count 36567 - Distinct count 16 - Null count 9400 | Column Name Meaning: Game-winning goals | Column Description: Game-winning goals | Value Description: A game-winning goal (GWG) is the goal scored to put the winning team in excess of the losing team's final score. if a player gets more GWG, it means this player is more trustworthy in the critical moment.\n\tGTG TEXT, -- Example Values: `0`, `1`, `3`, `2`, `5` | Value Statics: Total count 28106 - Distinct count 8 - Null count 17861 | Column Name Meaning: Game-tying goals | Column Description: Game-tying goals | Value Description: A game-tying goal (GWG) is the goal scored to put the winning team in the ties of the losing team's final score\n\tSOG TEXT, -- Example Values: `('1',)`, `('61',)`, `('102',)` | Value Statics: Total count 36364 - Distinct count 397 - Null count 9603 | Column Name Meaning: Shots on goal | Column Description: Shots on goal | Value Description: a shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\n\tPostGP TEXT, -- Example Values: `('4',)`, `('10',)`, `('11',)` | Value Statics: Total count 19153 - Distinct count 26 - Null count 26814 | Column Name Meaning: Postseason games played | Column Description: Postseason games played \n\tPostG TEXT, -- Example Values: `('0',)`, `('2',)`, `('1',)` | Value Statics: Total count 19153 - Distinct count 20 - Null count 26814 | Column Name Meaning: Postseason goals | Column Description: Postseason goals \n\tPostA TEXT, -- Example Values: `('0',)`, `('1',)`, `('3',)` | Value Statics: Total count 19094 - Distinct count 31 - Null count 26873 | Column Name Meaning: Postseason assists | Column Description: Postseason assists \n\tPostPts TEXT, -- Example Values: `('0',)`, `('3',)`, `('2',)` | Value Statics: Total count 19094 - Distinct count 43 - Null count 26873 | Column Name Meaning: Postseason points | Column Description: Postseason points \n\tPostPIM TEXT, -- Example Values: `('2',)`, `('0',)`, `('36',)` | Value Statics: Total count 19094 - Distinct count 99 - Null count 26873 | Column Name Meaning: Postseason penalty minutes | Column Description: Postseason penalty minutes \n\t\"Post+/-\" TEXT, -- Example Values: `('0',)`, `('2',)`, `('1',)` | Value Statics: Total count 11004 - Distinct count 40 - Null count 34963 | Column Name Meaning: Postseason Plus / minus | Column Description: Postseason Plus / minus \n\tPostPPG TEXT, -- Example Values: `0`, `1`, `5`, `2`, `3` | Value Statics: Total count 14492 - Distinct count 10 - Null count 31475 | Column Name Meaning: Postseason power play goals | Column Description: Postseason power play goals \n\tPostPPA TEXT, -- Example Values: `0`, `1`, `3`, `2`, `4` | Value Statics: Total count 8854 - Distinct count 17 - Null count 37113 | Column Name Meaning: Postseason power play assists | Column Description: Postseason power play assists \n\tPostSHG TEXT, -- Example Values: `0`, `1`, `2`, `3` | Value Statics: Total count 14492 - Distinct count 4 - Null count 31475 | Column Name Meaning: Postseason Shorthanded goals | Column Description: Postseason Shorthanded goals \n\tPostSHA TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 8855 - Distinct count 5 - Null count 37112 | Column Name Meaning: Postseason Shorthanded assists | Column Description: Postseason Shorthanded assists \n\tPostGWG TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 15657 - Distinct count 8 - Null count 30310 | Column Name Meaning: Postseason game-winning goals | Column Description: Postseason game-winning goals \n\tPostSOG TEXT, -- Example Values: `('0',)`, `('11',)`, `('12',)` | Value Statics: Total count 10392 - Distinct count 97 - Null count 35575 | Column Name Meaning: Postseason shots on goal | Column Description: Postseason shots on goal \n\tforeign key (year, tmID) references Teams (year, tmID) on update cascade on delete cascade,\n\tforeign key (playerID) references Master (playerID) on update cascade on delete cascade,\n);\n\nCREATE TABLE ScoringSC\n(\n\tplayerID TEXT, -- Example Values: `('adamsbi01',)`, `('adamsja01',)`, `('anderer02',)` | Value Statics: Total count 284 - Distinct count 141 - Null count 0 | Column Description: id number identifying the player | Value Description: number identifying the player\n\tyear INTEGER, -- Example Values: `1920`, `1921`, `1923`, `1924`, `1925` | Value Statics: Total count 284 - Distinct count 14 - Null count 0 | Column Description: year | Value Description: 2005-06 listed as \"2005\"\n\ttmID TEXT, -- Example Values: `VML`, `CAT`, `VIC`, `TRS`, `MOC` | Value Statics: Total count 284 - Distinct count 17 - Null count 0 | Column Name Meaning: team ID | Column Description: team abbreviated name \n\tlgID TEXT, -- Example Values: `PCHA`, `WCHL`, `NHL`, `NHA` | Value Statics: Total count 284 - Distinct count 4 - Null count 0 | Column Name Meaning: league ID | Column Description: league abbreviated name \n\tpos TEXT, -- Example Values: `R`, `C`, `L`, `F`, `G` | Value Statics: Total count 284 - Distinct count 11 - Null count 0 | Column Name Meaning: position | Column Description: position \n\tGP INTEGER, -- Example Values: `4`, `5`, `2`, `1`, `3` | Value Statics: Total count 284 - Distinct count 6 - Null count 0 | Column Name Meaning: Games played | Column Description: Games played \n\tG INTEGER, -- Example Values: `0`, `2`, `6`, `1`, `3` | Value Statics: Total count 284 - Distinct count 11 - Null count 0 | Column Name Meaning: Goals | Column Description: goals \n\tA INTEGER, -- Example Values: `0`, `1`, `2`, `3`, `5` | Value Statics: Total count 284 - Distinct count 6 - Null count 0 | Column Name Meaning: assists | Column Description: assists \n\tPts INTEGER, -- Example Values: `0`, `3`, `7`, `1`, `2` | Value Statics: Total count 284 - Distinct count 11 - Null count 0 | Column Name Meaning: points | Column Description: points \n\tPIM INTEGER, -- Example Values: `(0,)`, `(6,)`, `(18,)` | Value Statics: Total count 284 - Distinct count 28 - Null count 0 | Column Name Meaning: Penalty minutes | Column Description: Penalty minutes \n\tforeign key (year, tmID) references Teams (year, tmID) on update cascade on delete cascade,\n\tforeign key (playerID) references Master (playerID) on update cascade on delete cascade,\n);\n\nCREATE TABLE ScoringShootout\n(\n\tplayerID TEXT, -- Example Values: `('adamske01',)`, `('afanadm01',)`, `('afinoma01',)` | Value Statics: Total count 2072 - Distinct count 669 - Null count 0 | Column Name Meaning: player id | Column Description: id number identifying the player | Value Description: number identifying the player\n\tyear INTEGER, -- Example Values: `2006`, `2005`, `2007`, `2009`, `2008` | Value Statics: Total count 2072 - Distinct count 7 - Null count 0 | Column Description: year | Value Description: 2005-06 listed as \"2005\"\n\tstint INTEGER, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 2072 - Distinct count 3 - Null count 0 | Column Description: stint \n\ttmID TEXT, -- Example Values: `('PHO',)`, `('TBL',)`, `('BUF',)` | Value Statics: Total count 2072 - Distinct count 32 - Null count 0 | Column Name Meaning: team ID | Column Description: team abbreviated name \n\tS INTEGER, -- Example Values: `1`, `2`, `5`, `6`, `3` | Value Statics: Total count 2072 - Distinct count 19 - Null count 0 | Column Name Meaning: shots | Column Description: shots \n\tG INTEGER, -- Example Values: `0`, `1`, `3`, `2`, `5` | Value Statics: Total count 2072 - Distinct count 16 - Null count 0 | Column Name Meaning: goals | Column Description: goals \n\tGDG INTEGER, -- Example Values: `0`, `1`, `2`, `6`, `3` | Value Statics: Total count 2072 - Distinct count 8 - Null count 0 | Column Name Meaning: game deciding goals | Column Description: game deciding goals \n\tforeign key (year, tmID) references Teams (year, tmID) on update cascade on delete cascade,\n\tforeign key (playerID) references Master (playerID) on update cascade on delete cascade,\n);\n\nCREATE TABLE ScoringSup\n(\n\tplayerID TEXT, -- Example Values: `('actonke01',)`, `('adamsgr01',)`, `('allismi01',)` | Value Statics: Total count 137 - Distinct count 119 - Null count 0 | Column Name Meaning: player id | Column Description: string ID of players | Value Description: unique string ID of the player\n\tyear INTEGER, -- Example Values: `1988`, `1989`, `1987`, `1990` | Value Statics: Total count 137 - Distinct count 4 - Null count 0 \n\tPPA TEXT, -- Example Values: `('1',)`, `('5',)`, `('4',)` | Value Statics: Total count 127 - Distinct count 26 - Null count 10 | Column Name Meaning: Power play assists | Column Description: Power play assists \n\tSHA TEXT, -- Example Values: `1`, `2`, `4`, `3` | Value Statics: Total count 41 - Distinct count 4 - Null count 96 | Column Name Meaning: Shorthanded assists | Column Description: Shorthanded assists \n\tforeign key (playerID) references Master (playerID) on update cascade on delete cascade,\n);\n\nCREATE TABLE SeriesPost\n(\n\tyear INTEGER, -- Example Values: `(1912,)`, `(1913,)`, `(1914,)` | Value Statics: Total count 832 - Distinct count 99 - Null count 0 | Column Description: year \n\tround TEXT, -- Example Values: `SCF`, `F`, `SF`, `SCSF`, `WP` | Value Statics: Total count 832 - Distinct count 13 - Null count 0 | Column Description: round | Value Description: see abbrev.csv for details\n\tseries TEXT, -- Example Values: `A`, `B`, `C`, `D`, `E` | Value Statics: Total count 739 - Distinct count 15 - Null count 93 | Column Description: series | Value Description: used for the NHL designations\n\ttmIDWinner TEXT, -- Example Values: `('VA1',)`, `('TBS',)`, `('OT1',)` | Value Statics: Total count 832 - Distinct count 62 - Null count 0 | Column Name Meaning: Team ID of winner | Column Description: Team ID of winner \n\tlgIDWinner TEXT, -- Example Values: `PCHA`, `NHA`, `NHL`, `WCHL`, `WHA` | Value Statics: Total count 832 - Distinct count 5 - Null count 0 | Column Name Meaning: League ID of winner | Column Description: League ID of winner \n\ttmIDLoser TEXT, -- Example Values: `('QU1',)`, `('MOC',)`, `('VA1',)` | Value Statics: Total count 832 - Distinct count 80 - Null count 0 | Column Name Meaning: Team ID of loser | Column Description: Team ID of winner \n\tlgIDLoser TEXT, -- Example Values: `NHA`, `PCHA`, `NHL`, `WCHL`, `WHA` | Value Statics: Total count 832 - Distinct count 5 - Null count 0 | Column Name Meaning: league id of loser | Column Description: league id of loser \n\tW INTEGER, -- Example Values: `2`, `1`, `3`, `4`, `0` | Value Statics: Total count 832 - Distinct count 5 - Null count 0 | Column Name Meaning: wins | Column Description: wins \n\tL INTEGER, -- Example Values: `1`, `0`, `2`, `3`, `4` | Value Statics: Total count 832 - Distinct count 5 - Null count 0 | Column Name Meaning: loses | Column Description: loses \n\tT INTEGER, -- Example Values: `0`, `1`, `2` | Value Statics: Total count 832 - Distinct count 3 - Null count 0 | Column Name Meaning: ties | Column Description: ties \n\tGoalsWinner INTEGER, -- Example Values: `(16,)`, `(6,)`, `(13,)` | Value Statics: Total count 832 - Distinct count 37 - Null count 0 | Column Name Meaning: goals for winner | Column Description: goals for winner \n\tGoalsLoser INTEGER, -- Example Values: `(12,)`, `(2,)`, `(8,)` | Value Statics: Total count 832 - Distinct count 32 - Null count 0 | Column Name Meaning: goals for loser | Column Description: goals for loser \n\tnote TEXT, -- Example Values: `EX`, `TG`, `ND`, `DEF` | Value Statics: Total count 59 - Distinct count 4 - Null count 773 | Column Description: note | Value Description: Note: EX = exhibition, ND = no decision, TG = total-goals series\n\tforeign key (year, tmIDWinner) references Teams (year, tmID) on update cascade on delete cascade,\n\tforeign key (year, tmIDLoser) references Teams (year, tmID) on update cascade on delete cascade,\n);\n\nCREATE TABLE TeamSplits\n(\n\tyear INTEGER not null, -- Example Values: `(1909,)`, `(1910,)`, `(1911,)` | Value Statics: Total count 1519 - Distinct count 102 - Null count 0 | Column Description: year \n\tlgID TEXT, -- Example Values: `NHA`, `PCHA`, `NHL`, `WCHL`, `WHA` | Value Statics: Total count 1519 - Distinct count 5 - Null count 0 | Column Name Meaning: league ID | Column Description: league ID number \n\ttmID TEXT not null, -- Example Values: `('COB',)`, `('HAI',)`, `('LES',)` | Value Statics: Total count 1519 - Distinct count 115 - Null count 0 | Column Name Meaning: team ID | Column Description: team ID \n\thW INTEGER, -- Example Values: `(2,)`, `(3,)`, `(6,)` | Value Statics: Total count 1519 - Distinct count 35 - Null count 0 | Column Name Meaning: home wins | Column Description: home wins \n\thL INTEGER, -- Example Values: `(4,)`, `(3,)`, `(2,)` | Value Statics: Total count 1519 - Distinct count 32 - Null count 0 | Column Name Meaning: home loses | Column Description: home loses \n\thT INTEGER, -- Example Values: `0`, `1`, `2`, `4`, `3` | Value Statics: Total count 1309 - Distinct count 14 - Null count 210 | Column Name Meaning: home ties | Column Description: home ties \n\thOTL TEXT, -- Example Values: `2`, `3`, `1`, `0`, `4` | Value Statics: Total count 358 - Distinct count 12 - Null count 1161 | Column Name Meaning: Home overtime losses | Column Description: Home overtime losses \n\trW INTEGER, -- Example Values: `(2,)`, `(1,)`, `(0,)` | Value Statics: Total count 1519 - Distinct count 30 - Null count 0 | Column Name Meaning: Road wins | Column Description: Road wins \n\trL INTEGER, -- Example Values: `(4,)`, `(5,)`, `(6,)` | Value Statics: Total count 1519 - Distinct count 39 - Null count 0 | Column Name Meaning: Road loses | Column Description: Road loses \n\trT INTEGER, -- Example Values: `0`, `1`, `2`, `3`, `6` | Value Statics: Total count 1309 - Distinct count 16 - Null count 210 | Column Name Meaning: Road ties | Column Description: Road ties \n\trOTL TEXT, -- Example Values: `1`, `5`, `3`, `4`, `0` | Value Statics: Total count 358 - Distinct count 11 - Null count 1161 | Column Name Meaning: road overtime loses | Column Description: road overtime loses \n\tSepW TEXT, -- Example Values: `1` | Value Statics: Total count 2 - Distinct count 1 - Null count 1517 | Column Name Meaning: September wins | Column Description: September wins \n\tSepL TEXT, -- Example Values: `1` | Value Statics: Total count 2 - Distinct count 1 - Null count 1517 | Column Name Meaning: September loses | Column Description: September loses \n\tSepT TEXT, --| Column Name Meaning: September ties | Column Description: September ties \n\tSepOL TEXT, -- Example Values: `0` | Value Statics: Total count 2 - Distinct count 1 - Null count 1517 | Column Name Meaning: September overtime loses | Column Description: September overtime loses \n\tOctW TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 1199 - Distinct count 12 - Null count 320 | Column Name Meaning: October wins | Column Description: October wins \n\tOctL TEXT, -- Example Values: `1`, `0`, `2`, `4`, `5` | Value Statics: Total count 1199 - Distinct count 13 - Null count 320 | Column Name Meaning: October loses | Column Description: October loses \n\tOctT TEXT, -- Example Values: `0`, `1`, `4`, `2`, `3` | Value Statics: Total count 989 - Distinct count 7 - Null count 530 | Column Name Meaning: October ties | Column Description: October ties \n\tOctOL TEXT, -- Example Values: `1`, `0`, `2`, `3`, `5` | Value Statics: Total count 358 - Distinct count 6 - Null count 1161 | Column Name Meaning: October overtime loses | Column Description: October overtime loses \n\tNovW TEXT, -- Example Values: `5`, `1`, `2`, `0`, `4` | Value Statics: Total count 1358 - Distinct count 13 - Null count 161 | Column Name Meaning: November wins | Column Description: November wins \n\tNovL TEXT, -- Example Values: `1`, `4`, `3`, `2`, `0` | Value Statics: Total count 1358 - Distinct count 14 - Null count 161 | Column Name Meaning: November loses | Column Description: November loses \n\tNovT TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 1148 - Distinct count 9 - Null count 371 | Column Name Meaning: November ties | Column Description: November ties \n\tNovOL TEXT, -- Example Values: `0`, `2`, `1`, `4`, `3` | Value Statics: Total count 358 - Distinct count 5 - Null count 1161 | Column Name Meaning: November overtime loses | Column Description: November overtime loses \n\tDecW TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 1473 - Distinct count 14 - Null count 46 | Column Name Meaning: December wins | Column Description: December wins \n\tDecL TEXT, -- Example Values: `1`, `0`, `2`, `3`, `4` | Value Statics: Total count 1473 - Distinct count 14 - Null count 46 | Column Name Meaning: December loses | Column Description: December loses \n\tDecT TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 1263 - Distinct count 8 - Null count 256 | Column Name Meaning: December ties | Column Description: December ties \n\tDecOL TEXT, -- Example Values: `0`, `2`, `1`, `3`, `4` | Value Statics: Total count 358 - Distinct count 6 - Null count 1161 | Column Name Meaning: December overtime loses | Column Description: December overtime loses \n\tJanW INTEGER, -- Example Values: `1`, `0`, `2`, `4`, `3` | Value Statics: Total count 1515 - Distinct count 14 - Null count 4 | Column Name Meaning: January wins | Column Description: January wins \n\tJanL INTEGER, -- Example Values: `1`, `3`, `2`, `0`, `6` | Value Statics: Total count 1515 - Distinct count 15 - Null count 4 | Column Name Meaning: January loses | Column Description: January loses \n\tJanT INTEGER, -- Example Values: `0`, `1`, `3`, `2`, `4` | Value Statics: Total count 1305 - Distinct count 9 - Null count 214 | Column Name Meaning: January ties | Column Description: January ties \n\tJanOL TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 358 - Distinct count 6 - Null count 1161 | Column Name Meaning: January overtime loses | Column Description: January overtime loses \n\tFebW INTEGER, -- Example Values: `2`, `1`, `6`, `5`, `4` | Value Statics: Total count 1510 - Distinct count 14 - Null count 9 | Column Name Meaning: February wins | Column Description: February wins \n\tFebL INTEGER, -- Example Values: `3`, `5`, `0`, `1`, `2` | Value Statics: Total count 1510 - Distinct count 13 - Null count 9 | Column Name Meaning: February loses | Column Description: February loses \n\tFebT INTEGER, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 1300 - Distinct count 8 - Null count 219 | Column Name Meaning: February ties | Column Description: February ties \n\tFebOL TEXT, -- Example Values: `0`, `1`, `4`, `2`, `3` | Value Statics: Total count 358 - Distinct count 6 - Null count 1161 | Column Name Meaning: February overtime loses | Column Description: February overtime loses \n\tMarW TEXT, -- Example Values: `1`, `3`, `0`, `2`, `5` | Value Statics: Total count 1485 - Distinct count 14 - Null count 34 | Column Name Meaning: March wins | Column Description: March wins \n\tMarL TEXT, -- Example Values: `4`, `0`, `2`, `1`, `3` | Value Statics: Total count 1485 - Distinct count 15 - Null count 34 | Column Name Meaning: March loses | Column Description: March loses \n\tMarT TEXT, -- Example Values: `0`, `1`, `2`, `4`, `3` | Value Statics: Total count 1275 - Distinct count 8 - Null count 244 | Column Name Meaning: March ties | Column Description: March ties \n\tMarOL TEXT, -- Example Values: `1`, `0`, `2`, `3`, `4` | Value Statics: Total count 358 - Distinct count 7 - Null count 1161 | Column Name Meaning: March overtime loses | Column Description: March overtime loses \n\tAprW TEXT, -- Example Values: `1`, `0`, `2`, `3`, `4` | Value Statics: Total count 1018 - Distinct count 11 - Null count 501 | Column Name Meaning: April wins | Column Description: April wins \n\tAprL TEXT, -- Example Values: `0`, `2`, `1`, `3`, `4` | Value Statics: Total count 1018 - Distinct count 11 - Null count 501 | Column Name Meaning: April loses | Column Description: April loses \n\tAprT TEXT, -- Example Values: `0`, `1`, `2`, `4`, `3` | Value Statics: Total count 808 - Distinct count 6 - Null count 711 | Column Name Meaning: April ties | Column Description: April ties \n\tAprOL TEXT, -- Example Values: `1`, `0`, `2`, `3` | Value Statics: Total count 358 - Distinct count 4 - Null count 1161 | Column Name Meaning: April overtime loses | Column Description: April overtime loses \n\tprimary key (year, tmID),\n\tforeign key (year, tmID) references Teams (year, tmID) on update cascade on delete cascade,\n);\n\nCREATE TABLE TeamVsTeam\n(\n\tyear INTEGER not null, -- Example Values: `(1909,)`, `(1910,)`, `(1911,)` | Value Statics: Total count 25602 - Distinct count 102 - Null count 0 | Column Description: year \n\tlgID TEXT, -- Example Values: `NHA`, `PCHA`, `NHL`, `WCHL`, `WHA` | Value Statics: Total count 25602 - Distinct count 5 - Null count 0 | Column Name Meaning: league ID | Column Description: league ID number \n\ttmID TEXT not null, -- Example Values: `('COB',)`, `('HAI',)`, `('LES',)` | Value Statics: Total count 25602 - Distinct count 115 - Null count 0 | Column Name Meaning: team ID | Column Description: team ID \n\toppID TEXT not null, -- Example Values: `('HAI',)`, `('LES',)`, `('MOS',)` | Value Statics: Total count 25602 - Distinct count 115 - Null count 0 | Column Name Meaning: opponent ID | Column Description: opponent ID \n\tW INTEGER, -- Example Values: `1`, `2`, `0`, `3`, `4` | Value Statics: Total count 25602 - Distinct count 14 - Null count 0 | Column Name Meaning: wins | Column Description: wins \n\tL INTEGER, -- Example Values: `1`, `0`, `2`, `4`, `3` | Value Statics: Total count 25602 - Distinct count 14 - Null count 0 | Column Name Meaning: loses | Column Description: loses \n\tT INTEGER, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 19962 - Distinct count 9 - Null count 5640 | Column Name Meaning: ties | Column Description: ties \n\tOTL TEXT, -- Example Values: `0`, `1`, `3`, `2`, `4` | Value Statics: Total count 9874 - Distinct count 5 - Null count 15728 | Column Name Meaning: overtime loses | Column Description: overtime loses \n\tprimary key (year, tmID, oppID),\n\tforeign key (year, tmID) references Teams (year, tmID) on update cascade on delete cascade,\n\tforeign key (oppID, year) references Teams (tmID, year) on update cascade on delete cascade,\n);\n\nCREATE TABLE TeamsHalf\n(\n\tyear INTEGER not null, -- Example Values: `1916`, `1917`, `1918`, `1919`, `1920` | Value Statics: Total count 41 - Distinct count 5 - Null count 0 | Column Description: year \n\tlgID TEXT, -- Example Values: `NHA`, `NHL` | Value Statics: Total count 41 - Distinct count 2 - Null count 0 | Column Name Meaning: league ID | Column Description: league ID number \n\ttmID TEXT not null, -- Example Values: `MOC`, `MOW`, `OT1`, `QU1`, `TBS` | Value Statics: Total count 41 - Distinct count 13 - Null count 0 | Column Name Meaning: team ID | Column Description: team ID \n\thalf INTEGER not null, -- Example Values: `1`, `2` | Value Statics: Total count 41 - Distinct count 2 - Null count 0 | Column Description: First or second half of season \n\trank INTEGER, -- Example Values: `1`, `3`, `5`, `4`, `2` | Value Statics: Total count 41 - Distinct count 6 - Null count 0 | Column Description: Final standing for the half \n\tG INTEGER, -- Example Values: `10`, `4`, `14`, `8`, `6` | Value Statics: Total count 41 - Distinct count 6 - Null count 0 | Column Name Meaning: Games | Column Description: Games \n\tW INTEGER, -- Example Values: `7`, `3`, `2`, `8`, `5` | Value Statics: Total count 41 - Distinct count 10 - Null count 0 | Column Name Meaning: wins | Column Description: wins \n\tL INTEGER, -- Example Values: `3`, `7`, `8`, `2`, `5` | Value Statics: Total count 41 - Distinct count 11 - Null count 0 | Column Name Meaning: loses | Column Description: loses \n\tT INTEGER, -- Example Values: `0` | Value Statics: Total count 41 - Distinct count 1 - Null count 0 | Column Name Meaning: ties | Column Description: ties \n\tGF INTEGER, -- Example Values: `(58,)`, `(31,)`, `(56,)` | Value Statics: Total count 41 - Distinct count 32 - Null count 0 | Column Name Meaning: goals for | Column Description: goals for \n\tGA INTEGER, -- Example Values: `(38,)`, `(42,)`, `(72,)` | Value Statics: Total count 41 - Distinct count 34 - Null count 0 | Column Name Meaning: goals against | Column Description: goal against \n\tprimary key (year, tmID, half),\n\tforeign key (tmID, year) references Teams (tmID, year) on update cascade on delete cascade,\n);\n\nCREATE TABLE TeamsPost\n(\n\tyear INTEGER not null, -- Example Values: `(1913,)`, `(1914,)`, `(1916,)` | Value Statics: Total count 927 - Distinct count 97 - Null count 0 | Column Description: year \n\tlgID TEXT, -- Example Values: `NHA`, `NHL`, `PCHA`, `WCHL`, `WHA` | Value Statics: Total count 927 - Distinct count 5 - Null count 0 | Column Name Meaning: league ID | Column Description: league ID number \n\ttmID TEXT not null, -- Example Values: `('MOC',)`, `('TBS',)`, `('MOW',)` | Value Statics: Total count 927 - Distinct count 77 - Null count 0 | Column Name Meaning: team ID | Column Description: team ID \n\tG INTEGER, -- Example Values: `(2,)`, `(5,)`, `(6,)` | Value Statics: Total count 927 - Distinct count 25 - Null count 0 | Column Name Meaning: Games | Column Description: Games \n\tW INTEGER, -- Example Values: `1`, `0`, `4`, `2`, `3` | Value Statics: Total count 927 - Distinct count 17 - Null count 0 | Column Name Meaning: wins | Column Description: wins \n\tL INTEGER, -- Example Values: `1`, `0`, `4`, `2`, `3` | Value Statics: Total count 927 - Distinct count 12 - Null count 0 | Column Name Meaning: loses | Column Description: loses \n\tT INTEGER, -- Example Values: `0`, `1`, `2`, `4`, `3` | Value Statics: Total count 927 - Distinct count 5 - Null count 0 | Column Name Meaning: ties | Column Description: ties \n\tGF INTEGER, -- Example Values: `(2,)`, `(6,)`, `(1,)` | Value Statics: Total count 927 - Distinct count 91 - Null count 0 | Column Name Meaning: goals for | Column Description: goals for \n\tGA INTEGER, -- Example Values: `(6,)`, `(2,)`, `(4,)` | Value Statics: Total count 927 - Distinct count 77 - Null count 0 | Column Name Meaning: goals against | Column Description: goals against \n\tPIM TEXT, -- Example Values: `('59',)`, `('68',)`, `('87',)` | Value Statics: Total count 841 - Distinct count 342 - Null count 86 | Column Name Meaning: penalty minutes | Column Description: penalty minutes \n\tBenchMinor TEXT, -- Example Values: `0`, `6`, `2`, `4`, `10` | Value Statics: Total count 572 - Distinct count 8 - Null count 355 | Column Name Meaning: Bench minors (minutes) | Column Description: Bench minors (minutes) \n\tPPG TEXT, -- Example Values: `('1',)`, `('5',)`, `('9',)` | Value Statics: Total count 636 - Distinct count 31 - Null count 291 | Column Name Meaning: Power play goals | Column Description: Power play goals \n\tPPC TEXT, -- Example Values: `('39',)`, `('27',)`, `('25',)` | Value Statics: Total count 580 - Distinct count 115 - Null count 347 | Column Name Meaning: Power play chances | Column Description: Power play chances \n\tSHA TEXT, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 604 - Distinct count 9 - Null count 323 | Column Name Meaning: Shorthanded goals against | Column Description: Shorthanded goals against \n\tPKG TEXT, -- Example Values: `('3',)`, `('8',)`, `('4',)` | Value Statics: Total count 636 - Distinct count 27 - Null count 291 | Column Name Meaning: Power play goals against | Column Description: Power play goals against \n\tPKC TEXT, -- Example Values: `('55',)`, `('45',)`, `('20',)` | Value Statics: Total count 580 - Distinct count 113 - Null count 347 | Column Name Meaning: Penalty kill chances | Column Description: Penalty kill chances \n\tSHF TEXT, -- Example Values: `0`, `1`, `3`, `5`, `2` | Value Statics: Total count 636 - Distinct count 11 - Null count 291 | Column Name Meaning: Shorthanded goals for | Column Description: Shorthanded goals for \n\tprimary key (year, tmID),\n\tforeign key (year, tmID) references Teams (year, tmID) on update cascade on delete cascade,\n);\n\nCREATE TABLE TeamsSC\n(\n\tyear INTEGER not null, -- Example Values: `1912`, `1913`, `1914`, `1915`, `1916` | Value Statics: Total count 30 - Distinct count 14 - Null count 0 | Column Description: year \n\tlgID TEXT, -- Example Values: `NHA`, `PCHA`, `NHL`, `WCHL` | Value Statics: Total count 30 - Distinct count 4 - Null count 0 | Column Name Meaning: league ID | Column Description: league ID number \n\ttmID TEXT not null, -- Example Values: `QU1`, `VA1`, `TBS`, `OT1`, `VML` | Value Statics: Total count 30 - Distinct count 17 - Null count 0 | Column Name Meaning: team ID | Column Description: team ID \n\tG INTEGER, -- Example Values: `3`, `5`, `4`, `2`, `6` | Value Statics: Total count 30 - Distinct count 5 - Null count 0 | Column Name Meaning: Games | Column Description: Games \n\tW INTEGER, -- Example Values: `1`, `2`, `3`, `0`, `5` | Value Statics: Total count 30 - Distinct count 6 - Null count 0 | Column Name Meaning: wins | Column Description: wins \n\tL INTEGER, -- Example Values: `2`, `1`, `0`, `3` | Value Statics: Total count 30 - Distinct count 4 - Null count 0 | Column Name Meaning: loses | Column Description: loses \n\tT INTEGER, -- Example Values: `0`, `1` | Value Statics: Total count 30 - Distinct count 2 - Null count 0 | Column Name Meaning: ties | Column Description: ties \n\tGF INTEGER, -- Example Values: `12`, `16`, `13`, `8`, `26` | Value Statics: Total count 30 - Distinct count 17 - Null count 0 | Column Name Meaning: goals for | Column Description: goals for \n\tGA INTEGER, -- Example Values: `16`, `12`, `8`, `13`, `26` | Value Statics: Total count 30 - Distinct count 16 - Null count 0 | Column Name Meaning: goals against | Column Description: goals against \n\tPIM TEXT, -- Example Values: `24`, `20`, `75`, `53`, `50` | Value Statics: Total count 8 - Distinct count 7 - Null count 22 | Column Name Meaning: penalty minutes | Column Description: penalty minutes \n\tprimary key (year, tmID),\n\tforeign key (year, tmID) references Teams (year, tmID) on update cascade on delete cascade,\n);\n\nCREATE TABLE abbrev\n(\n\tType TEXT not null, -- Example Values: `Conference`, `Division`, `Playoffs`, `Round` | Value Statics: Total count 58 - Distinct count 4 - Null count 0 | Column Description: type of hockey games \n\tCode TEXT not null, -- Example Values: `('CC',)`, `('EC',)`, `('WA',)` | Value Statics: Total count 58 - Distinct count 49 - Null count 0 | Column Description: abbreviated codes \n\tFullname TEXT, -- Example Values: `('Campbell Conference',)`, `('Eastern Conference',)`, `('Wales Conference',)` | Value Statics: Total count 58 - Distinct count 58 - Null count 0 | Column Description: full names of code \n\tprimary key (Type, Code),\n);" }
world
{ "db_schema": "CREATE TABLE City\n(\n\t`ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,\n\t`Name` TEXT NOT NULL DEFAULT '', -- Example Values: `('Kabul',)`, `('Qandahar',)`, `('Herat',)` | Value Statics: Total count 4079 - Distinct count 4001 - Null count 0 | Column Description: the name of the city \n\t`CountryCode` TEXT NOT NULL DEFAULT '', -- Example Values: `('AFG',)`, `('NLD',)`, `('ANT',)` | Value Statics: Total count 4079 - Distinct count 232 - Null count 0 | Column Name Meaning: Country Code | Column Description: the country code of the country that the city is belonged \n\t`District` TEXT NOT NULL DEFAULT '', -- Example Values: `('Kabol',)`, `('Qandahar',)`, `('Herat',)` | Value Statics: Total count 4079 - Distinct count 1367 - Null count 0 | Column Description: the district where the city locates \n\t`Population` INTEGER NOT NULL DEFAULT 0, -- Example Values: `(1780000,)`, `(237500,)`, `(186800,)` | Value Statics: Total count 4079 - Distinct count 3897 - Null count 0 | Column Description: the number of the population in the area | Value Description: more population --> more crowded\n\tFOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),\n);\n\nCREATE TABLE Country\n(\n\t`Code` TEXT NOT NULL DEFAULT '', -- Example Values: `('ABW',)`, `('AFG',)`, `('AGO',)` | Value Statics: Total count 239 - Distinct count 239 - Null count 0 | Column Description: the unique country code of the country \n\t`Name` TEXT NOT NULL DEFAULT '', -- Example Values: `('Aruba',)`, `('Afghanistan',)`, `('Angola',)` | Value Statics: Total count 239 - Distinct count 239 - Null count 0 | Column Description: the country name \n\t`Continent` TEXT NOT NULL DEFAULT 'Asia', -- Example Values: `North America`, `Asia`, `Africa`, `Europe`, `South America` | Value Statics: Total count 239 - Distinct count 7 - Null count 0 | Column Description: the continent that the country locates \n\t`Region` TEXT NOT NULL DEFAULT '', -- Example Values: `('Caribbean',)`, `('Southern and Central Asia',)`, `('Central Africa',)` | Value Statics: Total count 239 - Distinct count 25 - Null count 0 | Column Description: the region that the country locates \n\t`SurfaceArea` REAL NOT NULL DEFAULT 0.00, -- Example Values: `(193.0,)`, `(652090.0,)`, `(1246700.0,)` | Value Statics: Total count 239 - Distinct count 238 - Null count 0 | Column Name Meaning: Surface Area | Column Description: the surface area of the country \n\t`IndepYear` INTEGER DEFAULT NULL, -- Example Values: `(1919,)`, `(1975,)`, `(1912,)` | Value Statics: Total count 192 - Distinct count 88 - Null count 47 | Column Name Meaning: Independence Year | Column Description: the year that the country declared independence \n\t`Population` INTEGER NOT NULL DEFAULT 0, -- Example Values: `(103000,)`, `(22720000,)`, `(12878000,)` | Value Statics: Total count 239 - Distinct count 226 - Null count 0 | Column Description: the number of the population in the area | Value Description: more population --> more crowded\n\t`LifeExpectancy` REAL DEFAULT NULL, -- Example Values: `(78.4,)`, `(45.9,)`, `(38.3,)` | Value Statics: Total count 222 - Distinct count 160 - Null count 17 | Column Name Meaning: Life Expectancy | Column Description: the life expectancy at birth of the country | Value Description: Life expectancy at birth is defined as how long, on average, a newborn can expect to live if current death rates do not change\n\t`GNP` REAL DEFAULT NULL, -- Example Values: `(828.0,)`, `(5976.0,)`, `(6648.0,)` | Value Statics: Total count 239 - Distinct count 214 - Null count 0 | Column Name Meaning: Gross National Product | Column Description: the GNP of the country | Value Description: GNP measures the total monetary value of the output produced by a country's residents.\n\t`GNPOld` REAL DEFAULT NULL, -- Example Values: `(793.0,)`, `(7984.0,)`, `(2500.0,)` | Value Statics: Total count 178 - Distinct count 178 - Null count 61 | Column Name Meaning: Gross National Product Old | Column Description: Gross national product - old value. \n\t`LocalName` TEXT NOT NULL DEFAULT '', -- Example Values: `('Aruba',)`, `('Afganistan/Afqanestan',)`, `('Angola',)` | Value Statics: Total count 239 - Distinct count 239 - Null count 0 | Column Name Meaning: Local Name | Column Description: The country's local name \n\t`GovernmentForm` TEXT NOT NULL DEFAULT '', -- Example Values: `('Nonmetropolitan Territory of The Netherlands',)`, `('Islamic Emirate',)`, `('Republic',)` | Value Statics: Total count 239 - Distinct count 35 - Null count 0 | Column Name Meaning: Government Form | Column Description: The country's goverment form. | Value Description: Republic: governmentform contains \"Republic\"\n\t`HeadOfState` TEXT DEFAULT NULL, -- Example Values: `('Beatrix',)`, `('Mohammad Omar',)`, `('José Eduardo dos Santos',)` | Value Statics: Total count 238 - Distinct count 179 - Null count 1 | Column Name Meaning: Head Of State | Column Description: The head of state full name. \n\t`Capital` INTEGER DEFAULT NULL, -- Example Values: `(129,)`, `(1,)`, `(56,)` | Value Statics: Total count 232 - Distinct count 232 - Null count 7 | Column Description: The country's capital | Value Description: if the capital is null, it means this country doesn't have a city where a region's government is located\n\t`Code2` TEXT NOT NULL DEFAULT '', -- Example Values: `('AW',)`, `('AF',)`, `('AO',)` | Value Statics: Total count 239 - Distinct count 239 - Null count 0 | Column Description: The second country code. \n\tPRIMARY KEY (`Code`),\n);\n\nCREATE TABLE CountryLanguage\n(\n\t`CountryCode` TEXT NOT NULL DEFAULT '', -- Example Values: `('ABW',)`, `('AFG',)`, `('AGO',)` | Value Statics: Total count 984 - Distinct count 233 - Null count 0 | Column Name Meaning: Country Code | Column Description: The unique code for country \n\t`Language` TEXT NOT NULL DEFAULT '', -- Example Values: `('Dutch',)`, `('English',)`, `('Papiamento',)` | Value Statics: Total count 984 - Distinct count 457 - Null count 0 | Column Description: Country language \n\t`IsOfficial`TEXT NOT NULL DEFAULT 'F', -- Example Values: `T`, `F` | Value Statics: Total count 984 - Distinct count 2 - Null count 0 | Column Name Meaning: Is Official | Column Description: Information on whether the language is official in a given country | Value Description: T / F\n\t`Percentage` REAL NOT NULL DEFAULT 0.0, -- Example Values: `(5.3,)`, `(9.5,)`, `(76.7,)` | Value Statics: Total count 984 - Distinct count 357 - Null count 0 | Column Description: Percentage of language use \n\tPRIMARY KEY (`CountryCode`,`Language`),\n\tFOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`),\n);" }
music_platform_2
{ "db_schema": "CREATE TABLE runs\n(\n\trun_at text not null, -- Example Values: `2021-05-10 02:53:00`, `2021-06-06 21:34:36`, `2021-07-02 18:04:55`, `2021-08-01 17:54:42`, `2021-09-02 18:00:30` | Value Statics: Total count 12 - Distinct count 12 - Null count 0 | Column Name Meaning: run at | Column Description: The date and time of the podcast review creation. \n\tmax_rowid integer not null, -- Example Values: `3266481`, `3300773`, `3329699`, `3360315`, `3390165` | Value Statics: Total count 12 - Distinct count 11 - Null count 0 | Column Name Meaning: max row id | Column Description: The id of max row of this run. \n\treviews_added integer not null, -- Example Values: `1215223`, `13139`, `11561`, `11855`, `11714` | Value Statics: Total count 12 - Distinct count 12 - Null count 0 | Column Name Meaning: reviews added | Column Description: The number of reviews added in this run. \n);\n\nCREATE TABLE podcasts\n(\n\tpodcast_id text primary key,\n\titunes_id integer not null, -- Example Values: `(1313466221,)`, `(158973461,)`, `(139076942,)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 | Column Name Meaning: itunes id | Column Description: The unique id of the itunes. \n\tslug text not null, -- Example Values: `('scaling-global',)`, `('cornerstone-baptist-church-of-orlando',)`, `('mystery-dancing-in-the-dark',)` | Value Statics: Total count 100000 - Distinct count 99094 - Null count 0 | Column Description: The slug of the podcast. | Value Description: It usually has the same name with the \"title\" column.\n\titunes_url text not null, --| Column Name Meaning: itunes url | Column Description: The iTunes url of the podcast. | Value Description: Can visit the webpage of the podcast by clicking the itunes_url.\n\ttitle text not null, -- Example Values: `('Scaling Global',)`, `('Cornerstone Baptist Church of Orlando',)`, `('Mystery: Dancing in the Dark',)` | Value Statics: Total count 100000 - Distinct count 99395 - Null count 0 | Column Description: The title of the podcast. | Value Description: It usually has a very similar name to the \"slug\" column.\n);\n\nCREATE TABLE reviews\n(\n\tpodcast_id TEXT not null constraint reviews_podcasts_podcast_id_fk references podcasts, -- Example Values: `('c61aa81c9b929a66f0c1db6cbe5d8548',)`, `('ad4f2bf69c72b8db75978423c25f379e',)`, `('f2970432aad718a000ebac10e48ae6b0',)` | Value Statics: Total count 100000 - Distinct count 4761 - Null count 0 | Column Name Meaning: podcast id | Column Description: The unique id of the podcast \n\ttitle TEXT not null, -- Example Values: `('really interesting!',)`, `('Must listen for anyone interested in the arts!!!`, `('nauseatingly left',)` | Value Statics: Total count 100000 - Distinct count 70419 - Null count 0 | Column Description: The title of the podcast review. | Value Description: This usually is the abstract of the whole review.\n\tcontent TEXT not null, -- | Column Description: The content of the podcast review. | Value Description: This usually is the detailed explanation of the podcast review title.\n\trating INTEGER not null, -- Example Values: `5`, `1`, `3`, `4`, `2` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0 | Column Description: The rating of the podcast review. | Value Description: Allowed values: 0 to 5. This rating is highly related with \"title\" and \"content\".\n\tauthor_id TEXT not null, -- Example Values: `('F7E5A318989779D',)`, `('F6BF5472689BD12',)`, `('1AB95B8E6E1309E',)` | Value Statics: Total count 100000 - Distinct count 88805 - Null count 0 | Column Name Meaning: author id | Column Description: The author id of the podcast review. \n\tcreated_at TEXT not null, -- Example Values: `('2018-04-24T12:05:16-07:00',)`, `('2018-05-09T18:14:32-07:00',)`, `('2019-06-11T14:53:39-07:00',)` | Value Statics: Total count 100000 - Distinct count 99901 - Null count 0 | Column Name Meaning: created at | Column Description: The date and time of the podcast review creation. | Value Description: In the format of \"Date time\". e.g., 2018-05-09T18:14:32-07:00\n);\n\nCREATE TABLE categories\n(\n\tpodcast_id TEXT not null constraint categories_podcasts_podcast_id_fk references podcasts, -- Example Values: `('a00018b54eb342567c94dacfb2a3e504',)`, `('a00043d34e734b09246d17dc5d56f63c',)`, `('a0004b1ef445af9dc84dad1e7821b1e3',)` | Value Statics: Total count 100000 - Distinct count 51486 - Null count 0 | Column Name Meaning: podcast id | Column Description: The unique id of the podcast \n\tcategory TEXT not null, -- Example Values: `('arts',)`, `('arts-performing-arts',)`, `('music',)` | Value Statics: Total count 100000 - Distinct count 110 - Null count 0 | Column Description: category of the podcast | Value Description: This usually represents the topic of the podcast.\n\tconstraint \"PRIMARY\" primary key (podcast_id, category),\n);" }
university
{ "db_schema": "CREATE TABLE country\n(\n\tid INTEGER not null primary key,\n\tcountry_name TEXT default NULL, -- Example Values: `('Argentina',)`, `('Australia',)`, `('Austria',)` | Value Statics: Total count 74 - Distinct count 74 - Null count 0 | Column Name Meaning: country name | Column Description: the name of the country \n);\n\nCREATE TABLE ranking_system\n(\n\tid INTEGER not null primary key,\n\tsystem_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0 | Column Name Meaning: system name | Column Description: id number identifying ranking system \n);\n\nCREATE TABLE ranking_criteria\n(\n\tid INTEGER not null primary key,\n\tranking_system_id INTEGER default NULL, -- Example Values: `1`, `2`, `3` | Value Statics: Total count 21 - Distinct count 3 - Null count 0 | Column Name Meaning: ranking system id | Column Description: id number identifying ranking system \n\tcriteria_name TEXT default NULL, -- Example Values: `('Teaching',)`, `('International',)`, `('Research',)` | Value Statics: Total count 21 - Distinct count 21 - Null count 0 | Column Name Meaning: criteria name | Column Description: name of the criteria \n\tforeign key (ranking_system_id) references ranking_system(id),\n);\n\nCREATE TABLE university\n(\n\tid INTEGER not null primary key,\n\tcountry_id INTEGER default NULL, -- Example Values: `(73,)`, `(72,)`, `(33,)` | Value Statics: Total count 1247 - Distinct count 74 - Null count 0 | Column Name Meaning: country id | Column Description: the country where the university locates \n\tuniversity_name TEXT default NULL, -- Example Values: `('Harvard University',)`, `('Massachusetts Institute of Technology',)`, `('Stanford University',)` | Value Statics: Total count 1247 - Distinct count 1247 - Null count 0 | Column Name Meaning: university name | Column Description: name of the university \n\tforeign key (country_id) references country(id),\n);\n\nCREATE TABLE university_ranking_year\n(\n\tuniversity_id INTEGER default NULL, -- Example Values: `(1,)`, `(5,)`, `(2,)` | Value Statics: Total count 29612 - Distinct count 1065 - Null count 0 | Column Name Meaning: university id | Column Description: the id of the university \n\tranking_criteria_id INTEGER default NULL, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 29612 - Distinct count 21 - Null count 0 | Column Name Meaning: ranking criteria id | Column Description: the id of the ranking criteria \n\tyear INTEGER default NULL, -- Example Values: `2011`, `2012`, `2013`, `2014`, `2015` | Value Statics: Total count 29612 - Distinct count 12 - Null count 0 | Column Description: ranking year \n\tscore INTEGER default NULL, -- Example Values: `(100,)`, `(98,)`, `(91,)` | Value Statics: Total count 29482 - Distinct count 997 - Null count 130 | Column Description: ranking score \n\tforeign key (ranking_criteria_id) references ranking_criteria(id),\n\tforeign key (university_id) references university(id),\n);\n\nCREATE TABLE university_year\n(\n\tuniversity_id INTEGER default NULL, -- Example Values: `(1,)`, `(5,)`, `(2,)` | Value Statics: Total count 1085 - Distinct count 245 - Null count 0 | Column Name Meaning: university id | Column Description: id of the university \n\tyear INTEGER default NULL, -- Example Values: `2011`, `2012`, `2013`, `2014`, `2015` | Value Statics: Total count 1085 - Distinct count 6 - Null count 0 \n\tnum_students INTEGER default NULL, -- Example Values: `(20152,)`, `(2243,)`, `(11074,)` | Value Statics: Total count 1085 - Distinct count 245 - Null count 0 | Column Name Meaning: number of students | Column Description: the total number of students for the year \n\tstudent_staff_ratio REAL default NULL, -- Example Values: `(8.9,)`, `(6.9,)`, `(9.0,)` | Value Statics: Total count 1085 - Distinct count 158 - Null count 0 | Column Name Meaning: student staff ratio | Value Description: student_staff_ratio = number of students / number of staff\n\tpct_international_students INTEGER default NULL, -- Example Values: `(25,)`, `(27,)`, `(33,)` | Value Statics: Total count 1085 - Distinct count 44 - Null count 0 | Column Name Meaning: pct internation student | Column Description: the percentage of international students among all students | Value Description: pct_international_student = number of interbational students / number of students\n\tpct_female_students INTEGER default NULL, -- Example Values: `(33,)`, `(37,)`, `(42,)` | Value Statics: Total count 989 - Distinct count 43 - Null count 96 | Column Name Meaning: pct female students | Column Description: the percentage of female students | Value Description: pct_female_students = number of female students / number of students\n\tforeign key (university_id) references university(id),\n);" }
sales_in_weather
{ "db_schema": "CREATE TABLE sales_in_weather\n(\n\tdate DATE, -- Example Values: `('2012-01-01',)`, `('2012-01-02',)`, `('2012-01-03',)` | Value Statics: Total count 100000 - Distinct count 901 - Null count 0 | Column Description: the date of sales \n\tstore_nbr INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Name Meaning: store number | Column Description: store number \n\titem_nbr INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 100000 - Distinct count 111 - Null count 0 | Column Name Meaning: item number | Column Description: item / product number \n\tunits INTEGER, -- Example Values: `(0,)`, `(29,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 92 - Null count 0 | Column Description: the quantity sold of an item on a given day \n\tprimary key (store_nbr, date, item_nbr),\n);\n\nCREATE TABLE weather\n(\n\tstation_nbr INTEGER, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 20517 - Distinct count 20 - Null count 0 | Column Name Meaning: station number | Column Description: the id of weather stations \n\tdate DATE, -- Example Values: `('2012-01-01',)`, `('2012-01-02',)`, `('2012-01-03',)` | Value Statics: Total count 20517 - Distinct count 1035 - Null count 0 | Column Description: date \n\ttmax INTEGER, -- Example Values: `(52,)`, `(50,)`, `(32,)` | Value Statics: Total count 19611 - Distinct count 120 - Null count 906 | Column Name Meaning: temperature max | Column Description: max temperature \n\ttmin INTEGER, -- Example Values: `(31,)`, `(11,)`, `(9,)` | Value Statics: Total count 19609 - Distinct count 107 - Null count 908 | Column Name Meaning: temperature min | Column Description: min temperature | Value Description: temperature range / difference = tmax - tmin\n\ttavg INTEGER, -- Example Values: `(42,)`, `(41,)`, `(22,)` | Value Statics: Total count 19048 - Distinct count 111 - Null count 1469 | Column Name Meaning: temperature average | Column Description: average temperature \n\tdepart INTEGER, -- Example Values: `(16,)`, `(12,)`, `(-6,)` | Value Statics: Total count 9006 - Distinct count 65 - Null count 11511 | Column Name Meaning: departure from normal | Value Description: Temperature departure from the normal indicates if the dekadal average temperatures were above or below the 30-year normal. • if null: the temperature is 30-year normal • if the value is positive: the temperature is above the 30-year normal, • if the value is negative: the temperature is below the 30-year normal,\n\tdewpoint INTEGER, -- Example Values: `(36,)`, `(26,)`, `(4,)` | Value Statics: Total count 19851 - Distinct count 98 - Null count 666 | Column Name Meaning: dew point | Value Description: The dew point is the temperature to which air must be cooled to become saturated with water vapor, assuming constant air pressure and water content.\n\twetbulb INTEGER, -- Example Values: `(40,)`, `(35,)`, `(18,)` | Value Statics: Total count 19265 - Distinct count 92 - Null count 1252 | Column Name Meaning: wet bulb | Value Description: • The wet-bulb temperature (WBT) is the temperature read by a thermometer covered in water-soaked (water at ambient temperature) cloth (a wet-bulb thermometer) over which air is passed. • At 100% relative humidity, the wet-bulb temperature is equal to the air temperature (dry-bulb temperature); • at lower humidity the wet-bulb temperature is lower than dry-bulb temperature because of evaporative cooling.\n\theat INTEGER, -- Example Values: `(23,)`, `(24,)`, `(43,)` | Value Statics: Total count 19048 - Distinct count 76 - Null count 1469 | Column Description: calculated heating degree \n\tcool INTEGER, -- Example Values: `(0,)`, `(5,)`, `(6,)` | Value Statics: Total count 19048 - Distinct count 36 - Null count 1469 | Column Description: calculated cooling degree \n\tsunrise TEXT, -- Example Values: `('07:16:00',)`, `('07:15:00',)`, `('07:14:00',)` | Value Statics: Total count 10861 - Distinct count 215 - Null count 9656 | Column Description: calculated sunrise \n\tsunset TEXT, -- Example Values: `('16:26:00',)`, `('16:27:00',)`, `('16:28:00',)` | Value Statics: Total count 10861 - Distinct count 219 - Null count 9656 | Column Description: calculated sunset \n\tcodesum TEXT, -- Example Values: `('RA FZFG BR',)`, `(' ',)`, `('SN',)` | Value Statics: Total count 20517 - Distinct count 449 - Null count 0 | Column Name Meaning: code summarization | Column Description: code summarization for the weather | Value Description: • PY SPRAY • SQ SQUALL • DR LOW DRIFTING • SH SHOWER • FZ FREEZING • MI SHALLOW • PR PARTIAL • BC PATCHES • BL BLOWING • VC VICINITY • - LIGHT • + HEAVY • \"NO SIGN\" MODERATE\n\tsnowfall REAL, -- Example Values: `(0.0,)`, `(0.05,)`, `(0.2,)` | Value Statics: Total count 13293 - Distinct count 76 - Null count 7224 | Column Description: snowfall | Value Description: snowfall (inches AND tenths)\n\tpreciptotal REAL, -- Example Values: `(0.05,)`, `(0.01,)`, `(0.0,)` | Value Statics: Total count 19657 - Distinct count 283 - Null count 860 | Column Description: precipitation total | Value Description: inches (240hr period ending at indicated local standard time)\n\tstnpressure REAL, -- Example Values: `(29.78,)`, `(29.44,)`, `(29.67,)` | Value Statics: Total count 19588 - Distinct count 321 - Null count 929 | Column Name Meaning: station pressure | Column Description: station pressure \n\tsealevel REAL, -- Example Values: `(29.92,)`, `(29.62,)`, `(29.87,)` | Value Statics: Total count 18793 - Distinct count 152 - Null count 1724 | Column Name Meaning: sea level | Column Description: sea level \n\tresultspeed REAL, -- Example Values: `(3.6,)`, `(9.8,)`, `(10.8,)` | Value Statics: Total count 19928 - Distinct count 247 - Null count 589 | Column Name Meaning: resultant speed | Column Description: resultant wind speed \n\tresultdir INTEGER, -- Example Values: `(20,)`, `(24,)`, `(31,)` | Value Statics: Total count 19928 - Distinct count 36 - Null count 589 | Column Name Meaning: resultant direction | Column Description: resultant wind direction | Value Description: who degree\n\tavgspeed REAL, -- Example Values: `(4.6,)`, `(10.3,)`, `(11.6,)` | Value Statics: Total count 19642 - Distinct count 253 - Null count 875 | Column Name Meaning: average speed | Column Description: average wind speed | Value Description: if avgspeed is larger: much more wind\n\tprimary key (station_nbr, date),\n);\n\nCREATE TABLE relation\n(\n\tstore_nbr INTEGER primary key,\n\tstation_nbr INTEGER, -- Example Values: `(1,)`, `(14,)`, `(7,)` | Value Statics: Total count 45 - Distinct count 20 - Null count 0 | Column Name Meaning: station number | Column Description: the id of weather stations \n\tforeign key (store_nbr) references sales_in_weather(store_nbr),\n\tforeign key (store_nbr) references sales_in_weather(store_nbr),\n\tforeign key (station_nbr) references weather(station_nbr),\n);" }
mondial_geo
{ "db_schema": "CREATE TABLE borders\n(\n\tCountry1 TEXT default '' not null constraint borders_ibfk_1 references country, -- Example Values: `('A',)`, `('AFG',)`, `('AL',)` | Value Statics: Total count 320 - Distinct count 121 - Null count 0 | Column Description: a country code \n\tCountry2 TEXT default '' not null constraint borders_ibfk_2 references country, -- Example Values: `('CH',)`, `('CZ',)`, `('D',)` | Value Statics: Total count 320 - Distinct count 122 - Null count 0 | Column Description: a country code \n\tLength REAL, -- Example Values: `(164.0,)`, `(362.0,)`, `(784.0,)` | Value Statics: Total count 320 - Distinct count 277 - Null count 0 | Column Description: length of the border between country1 and country2 \n\tprimary key (Country1, Country2),\n);\n\nCREATE TABLE city\n(\n\tName TEXT default '' not null, -- Example Values: `('Aachen',)`, `('Aalborg',)`, `('Aarau',)` | Value Statics: Total count 3111 - Distinct count 3044 - Null count 0 | Column Description: name of city \n\tCountry TEXT default '' not null constraint city_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('D',)`, `('DK',)`, `('CH',)` | Value Statics: Total count 3111 - Distinct count 238 - Null count 0 | Column Description: the code of the country where it belongs to \n\tProvince TEXT default '' not null, -- Example Values: `('Nordrhein Westfalen',)`, `('Denmark',)`, `('AG',)` | Value Statics: Total count 3111 - Distinct count 1414 - Null count 0 | Column Description: the name of the province where it belongs to \n\tPopulation INTEGER, -- Example Values: `(247113,)`, `(113865,)`, `(194345,)` | Value Statics: Total count 2646 - Distinct count 2384 - Null count 465 | Column Description: population of the city \n\tLongitude REAL, -- Example Values: `(10.0,)`, `(10.1,)`, `(-4.0,)` | Value Statics: Total count 801 - Distinct count 706 - Null count 2310 | Column Description: geographic longitude \n\tLatitude REAL, -- Example Values: `(57.0,)`, `(56.1,)`, `(5.3,)` | Value Statics: Total count 801 - Distinct count 631 - Null count 2310 | Column Description: geographic latitude \n\tprimary key (Name, Province),\n\tconstraint city_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint city_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint city_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE continent\n(\n\tName TEXT default '' not null primary key,\n\tArea REAL, -- Example Values: `30254700.0`, `39872000.0`, `45095300.0`, `8503470.0`, `9562490.0` | Value Statics: Total count 5 - Distinct count 5 - Null count 0 | Column Description: total area of the continent. \n);\n\nCREATE TABLE country\n(\n\tName TEXT not null constraint ix_county_Name unique, -- Example Values: `('Afghanistan',)`, `('Albania',)`, `('Algeria',)` | Value Statics: Total count 238 - Distinct count 238 - Null count 0 | Column Description: the country name \n\tCode TEXT default '' not null primary key,\n\tCapital TEXT, -- Example Values: `('Vienna',)`, `('Kabul',)`, `('Saint Johns',)` | Value Statics: Total count 236 - Distinct count 235 - Null count 2 | Column Description: the name of the capital, \n\tProvince TEXT, -- Example Values: `('Vienna',)`, `('Afghanistan',)`, `('Antigua and Barbuda',)` | Value Statics: Total count 236 - Distinct count 233 - Null count 2 | Column Description: the province where the capital belongs to, \n\tArea REAL, -- Example Values: `(83850.0,)`, `(647500.0,)`, `(442.0,)` | Value Statics: Total count 238 - Distinct count 235 - Null count 0 | Column Description: the total area, \n\tPopulation INTEGER, -- Example Values: `(8023244,)`, `(22664136,)`, `(65647,)` | Value Statics: Total count 238 - Distinct count 238 - Null count 0 | Column Description: the population number. \n);\n\nCREATE TABLE desert\n(\n\tName TEXT default '' not null primary key,\n\tArea REAL, -- Example Values: `(50000.0,)`, `(181300.0,)`, `(80000.0,)` | Value Statics: Total count 63 - Distinct count 45 - Null count 0 | Column Description: the total area of the desert \n\tLongitude REAL, -- Example Values: `(26.0,)`, `(-69.25,)`, `(0.0,)` | Value Statics: Total count 61 - Distinct count 52 - Null count 2 | Column Description: Longitude \n\tLatitude REAL, -- Example Values: `(33.0,)`, `(-24.5,)`, `(20.0,)` | Value Statics: Total count 61 - Distinct count 37 - Null count 2 | Column Description: Latitude | Value Description: coordinate: (Longitude, Latitude)\n);\n\nCREATE TABLE economy\n(\n\tCountry TEXT default '' not null primary key constraint economy_ibfk_1 references country on update cascade on delete cascade,\n\tGDP REAL, -- Example Values: `(152000.0,)`, `(12800.0,)`, `(425.0,)` | Value Statics: Total count 228 - Distinct count 204 - Null count 10 | Column Name Meaning: gross domestic product | Column Description: gross domestic product \n\tAgriculture REAL, -- Example Values: `(2.0,)`, `(65.0,)`, `(3.5,)` | Value Statics: Total count 165 - Distinct count 101 - Null count 73 | Column Description: percentage of agriculture of the GDP \n\tService REAL, -- Example Values: `(34.0,)`, `(15.0,)`, `(19.3,)` | Value Statics: Total count 160 - Distinct count 108 - Null count 78 | Column Description: percentage of services of the GDP, \n\tIndustry REAL, -- Example Values: `(64.0,)`, `(20.0,)`, `(77.2,)` | Value Statics: Total count 160 - Distinct count 111 - Null count 78 | Column Description: percentage of industry of the GDP \n\tInflation REAL, -- Example Values: `(2.3,)`, `(3.5,)`, `(16.0,)` | Value Statics: Total count 209 - Distinct count 121 - Null count 29 | Column Description: inflation rate (per annum), \n);\n\nCREATE TABLE encompasses\n(\n\tCountry TEXT not null constraint encompasses_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('A',)`, `('AFG',)`, `('AG',)` | Value Statics: Total count 242 - Distinct count 238 - Null count 0 | Column Description: a country code \n\tContinent TEXT not null constraint encompasses_ibfk_2 references continent on update cascade on delete cascade, -- Example Values: `Europe`, `Asia`, `America`, `Australia/Oceania`, `Africa` | Value Statics: Total count 242 - Distinct count 5 - Null count 0 | Column Description: the continent name. \n\tPercentage REAL, -- Example Values: `100.0`, `90.0`, `10.0`, `80.0`, `20.0` | Value Statics: Total count 242 - Distinct count 7 - Null count 0 | Column Description: how much of the area of a country belongs to the continent | Value Description: %\n\tprimary key (Country, Continent),\n);\n\nCREATE TABLE ethnicGroup\n(\n\tCountry TEXT default '' not null constraint ethnicGroup_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('GE',)`, `('EAU',)`, `('DJI',)` | Value Statics: Total count 540 - Distinct count 189 - Null count 0 | Column Description: the country code \n\tName TEXT default '' not null, -- Example Values: `('Abkhaz',)`, `('Acholi',)`, `('Afar',)` | Value Statics: Total count 540 - Distinct count 262 - Null count 0 | Column Description: name of the language \n\tPercentage REAL, -- Example Values: `(1.8,)`, `(4.0,)`, `(35.0,)` | Value Statics: Total count 540 - Distinct count 191 - Null count 0 | Column Description: percentage of the language in this country. | Value Description: %\n\tprimary key (Name, Country),\n);\n\nCREATE TABLE geo_desert\n(\n\tDesert TEXT default '' not null constraint geo_desert_ibfk_3 references desert on update cascade on delete cascade, -- Example Values: `('Desert',)`, `('Rub Al Chali',)`, `('Dascht-e-Margoh',)` | Value Statics: Total count 155 - Distinct count 64 - Null count 0 | Column Description: the name of the desert \n\tCountry TEXT default '' not null constraint geo_desert_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('Coun',)`, `('UAE',)`, `('AFG',)` | Value Statics: Total count 155 - Distinct count 40 - Null count 0 | Column Description: the country code where it is located \n\tProvince TEXT default '' not null, -- Example Values: `('Abu Dhabi',)`, `('Afghanistan',)`, `('Ahal',)` | Value Statics: Total count 155 - Distinct count 96 - Null count 0 | Column Description: the province of this country \n\tprimary key (Province, Country, Desert),\n\tconstraint geo_desert_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_desert_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_desert_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_desert_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE geo_estuary\n(\n\tRiver TEXT default '' not null constraint geo_estuary_ibfk_3 references river on update cascade on delete cascade, -- Example Values: `('River',)`, `('Bahr el-Djebel/Albert-Nil',)`, `('Bahr el-Ghasal',)` | Value Statics: Total count 266 - Distinct count 217 - Null count 0 | Column Description: the name of the river \n\tCountry TEXT default '' not null constraint geo_estuary_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('Coun',)`, `('SUD',)`, `('AFG',)` | Value Statics: Total count 266 - Distinct count 77 - Null count 0 | Column Description: the country code where it is located \n\tProvince TEXT default '' not null, -- Example Values: `('AG',)`, `('Aali an Nil',)`, `('Afghanistan',)` | Value Statics: Total count 266 - Distinct count 183 - Null count 0 | Column Description: the province of this country \n\tprimary key (Province, Country, River),\n\tconstraint geo_estuary_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_estuary_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_estuary_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE geo_island\n(\n\tIsland TEXT default '' not null constraint geo_island_ibfk_3 references island on update cascade on delete cascade, -- Example Values: `('Aland',)`, `('Alicudi',)`, `('Ambon',)` | Value Statics: Total count 202 - Distinct count 202 - Null count 0 | Column Description: the name of the island \n\tCountry TEXT default '' not null constraint geo_island_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('Alan',)`, `('Lipa',)`, `('Molu',)` | Value Statics: Total count 202 - Distinct count 59 - Null count 0 | Column Description: the country code where it is located \n\tProvince TEXT default '' not null, -- Example Values: `('101',)`, `('102',)`, `('10244',)` | Value Statics: Total count 202 - Distinct count 192 - Null count 0 | Column Description: the province of this country \n\tprimary key (Province, Country, Island),\n\tconstraint geo_island_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_island_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_island_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_island_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE geo_lake\n(\n\tLake TEXT default '' not null constraint geo_lake_ibfk_3 references lake on update cascade on delete cascade, -- Example Values: `('Lake',)`, `('Barrage de Mbakaou',)`, `('Lake Nicaragua',)` | Value Statics: Total count 254 - Distinct count 131 - Null count 0 | Column Description: the name of the lake \n\tCountry TEXT default '' not null constraint geo_lake_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('Coun',)`, `('CAM',)`, `('CR',)` | Value Statics: Total count 254 - Distinct count 64 - Null count 0 | Column Description: the country code where it is located \n\tProvince TEXT default '' not null, -- Example Values: `('Adamaoua',)`, `('Alajuela',)`, `('Albania',)` | Value Statics: Total count 254 - Distinct count 194 - Null count 0 | Column Description: the province of this country \n\tprimary key (Province, Country, Lake),\n\tconstraint geo_lake_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_lake_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_lake_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_lake_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE geo_mountain\n(\n\tMountain TEXT default '' not null constraint geo_mountain_ibfk_3 references mountain on update cascade on delete cascade, -- Example Values: `('Mountain',)`, `('Gran Sasso',)`, `('Tirich Mir',)` | Value Statics: Total count 296 - Distinct count 239 - Null count 0 | Column Description: the name of the mountain \n\tCountry TEXT default '' not null constraint geo_mountain_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('Coun',)`, `('I',)`, `('AFG',)` | Value Statics: Total count 296 - Distinct count 95 - Null count 0 | Column Description: the country code where it is located \n\tProvince TEXT default '' not null, -- Example Values: `('Abruzzo',)`, `('Afghanistan',)`, `('Agri',)` | Value Statics: Total count 296 - Distinct count 190 - Null count 0 | Column Description: the province of this country \n\tprimary key (Province, Country, Mountain),\n\tconstraint geo_mountain_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_mountain_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_mountain_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_mountain_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE geo_river\n(\n\tRiver TEXT default '' not null constraint geo_river_ibfk_3 references river on update cascade on delete cascade, -- Example Values: `('River',)`, `('Bahr el-Djebel/Albert-Nil',)`, `('Bahr el-Ghasal',)` | Value Statics: Total count 852 - Distinct count 219 - Null count 0 | Column Description: the name of the river \n\tCountry TEXT default '' not null constraint geo_river_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('Coun',)`, `('SUD',)`, `('IRQ',)` | Value Statics: Total count 852 - Distinct count 108 - Null count 0 | Column Description: the country code where it is located \n\tProvince TEXT default '' not null, -- Example Values: `('AG',)`, `('Aali an Nil',)`, `('Ad Tamim',)` | Value Statics: Total count 852 - Distinct count 586 - Null count 0 | Column Description: the province of this country \n\tprimary key (Province, Country, River),\n\tconstraint geo_river_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_river_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_river_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_river_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE geo_sea\n(\n\tSea TEXT default '' not null constraint geo_sea_ibfk_3 references sea on update cascade on delete cascade, -- Example Values: `('Sea',)`, `('Mediterranean Sea',)`, `('Persian Gulf',)` | Value Statics: Total count 736 - Distinct count 35 - Null count 0 | Column Description: the name of the sea \n\tCountry TEXT default '' not null constraint geo_sea_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('Coun',)`, `('I',)`, `('UAE',)` | Value Statics: Total count 736 - Distinct count 194 - Null count 0 | Column Description: the country code where it is located \n\tProvince TEXT default '' not null, -- Example Values: `('Abruzzo',)`, `('Abu Dhabi',)`, `('Adana',)` | Value Statics: Total count 736 - Distinct count 609 - Null count 0 | Column Description: the province of this country \n\tprimary key (Province, Country, Sea),\n\tconstraint geo_sea_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_sea_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_sea_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_sea_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE geo_source\n(\n\tRiver TEXT default '' not null constraint geo_source_ibfk_3 references river on update cascade on delete cascade, -- Example Values: `('River',)`, `('White Nile',)`, `('Amudarja',)` | Value Statics: Total count 220 - Distinct count 212 - Null count 0 | Column Description: the name of the river \n\tCountry TEXT default '' not null constraint geo_source_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('Coun',)`, `('SUD',)`, `('AFG',)` | Value Statics: Total count 220 - Distinct count 58 - Null count 0 | Column Description: the country code where it is located \n\tProvince TEXT default '' not null, -- Example Values: `('Aali an Nil',)`, `('Afghanistan',)`, `('Agri',)` | Value Statics: Total count 220 - Distinct count 151 - Null count 0 | Column Description: the province of this country \n\tprimary key (Province, Country, River),\n\tconstraint geo_source_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_source_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint geo_source_ibfk_2 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE island\n(\n\tName TEXT default '' not null primary key,\n\tIslands TEXT, -- Example Values: `('Aland Islands',)`, `('Lipari Islands',)`, `('Moluccan Islands',)` | Value Statics: Total count 207 - Distinct count 63 - Null count 69 | Column Description: the group of islands where it belongs to \n\tArea REAL, -- Example Values: `(650.0,)`, `(5.2,)`, `(775.0,)` | Value Statics: Total count 271 - Distinct count 254 - Null count 5 | Column Description: the area of the island \n\tHeight REAL, -- Example Values: `(675.0,)`, `(1225.0,)`, `(32.0,)` | Value Statics: Total count 195 - Distinct count 183 - Null count 81 | Column Description: the maximal elevation of the island \n\tType TEXT, -- Example Values: `volcanic`, `lime`, `coral`, `atoll` | Value Statics: Total count 91 - Distinct count 4 - Null count 185 | Column Description: the type of the island \n\tLongitude REAL, -- Example Values: `(20.0,)`, `(14.4,)`, `(128.2,)` | Value Statics: Total count 275 - Distinct count 246 - Null count 1 | Column Description: Longitude \n\tLatitude REAL, -- Example Values: `(60.1,)`, `(38.6,)`, `(-3.7,)` | Value Statics: Total count 275 - Distinct count 229 - Null count 1 | Column Description: Latitude \n);\n\nCREATE TABLE islandIn\n(\n\tIsland TEXT constraint islandIn_ibfk_4 references island on update cascade on delete cascade, -- Example Values: `('Island',)`, `('Svalbard',)`, `('Greenland',)` | Value Statics: Total count 350 - Distinct count 277 - Null count 0 \n\tSea TEXT constraint islandIn_ibfk_3 references sea on update cascade on delete cascade, -- Example Values: `('Sea',)`, `('Norwegian Sea',)`, `('Barents Sea',)` | Value Statics: Total count 345 - Distinct count 28 - Null count 5 \n\tLake TEXT constraint islandIn_ibfk_1 references lake on update cascade on delete cascade, -- Example Values: `Lake`, `Ozero Baikal`, `Lake Toba`, `Lake Manicouagan`, `Lake Huron` | Value Statics: Total count 6 - Distinct count 6 - Null count 344 \n\tRiver TEXT constraint islandIn_ibfk_2 references river on update cascade on delete cascade, -- Example Values: `River` | Value Statics: Total count 1 - Distinct count 1 - Null count 349 \n);\n\nCREATE TABLE isMember\n(\n\tCountry TEXT default '' not null constraint isMember_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('A',)`, `('AFG',)`, `('AG',)` | Value Statics: Total count 8009 - Distinct count 226 - Null count 0 \n\tOrganization TEXT default '' not null constraint isMember_ibfk_2 references organization on update cascade on delete cascade, -- Example Values: `('AG',)`, `('ANC',)`, `('AfDB',)` | Value Statics: Total count 8009 - Distinct count 154 - Null count 0 \n\tType TEXT default 'member', -- Example Values: `('Type',)`, `('nonregional member',)`, `('observer',)` | Value Statics: Total count 8009 - Distinct count 24 - Null count 0 \n\tprimary key (Country, Organization),\n);\n\nCREATE TABLE lake\n(\n\tName TEXT default '' not null primary key,\n\tArea REAL, -- Example Values: `(46.6,)`, `(40.2,)`, `(798.0,)` | Value Statics: Total count 128 - Distinct count 124 - Null count 2 | Column Description: the total area of the lake \n\tDepth REAL, -- Example Values: `(81.1,)`, `(5.6,)`, `(283.0,)` | Value Statics: Total count 109 - Distinct count 90 - Null count 21 | Column Description: the depth of the lake \n\tAltitude REAL, -- Example Values: `(533.0,)`, `(668.0,)`, `(104.0,)` | Value Statics: Total count 109 - Distinct count 101 - Null count 21 | Column Description: the altitude (above sea level) of the lake \n\tType TEXT, -- Example Values: `artificial`, `salt`, `caldera`, `impact`, `acid` | Value Statics: Total count 56 - Distinct count 6 - Null count 74 | Column Description: the type of the lake \n\tRiver TEXT, -- Example Values: `('Ammer',)`, `('Yukon River',)`, `('Sanaga',)` | Value Statics: Total count 70 - Distinct count 61 - Null count 60 | Column Description: the river that flows out of the lake \n\tLongitude REAL, -- Example Values: `(11.6,)`, `(12.1,)`, `(-133.75,)` | Value Statics: Total count 130 - Distinct count 126 - Null count 0 | Column Description: longitude of lake \n\tLatitude REAL, -- Example Values: `(48.0,)`, `(56.0,)`, `(59.5,)` | Value Statics: Total count 130 - Distinct count 126 - Null count 0 | Column Description: latitude of lake \n);\n\nCREATE TABLE language\n(\n\tCountry TEXT default '' not null constraint language_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('AFG',)`, `('NAM',)`, `('MK',)` | Value Statics: Total count 144 - Distinct count 80 - Null count 0 | Column Description: the country code \n\tName TEXT default '' not null, -- Example Values: `('Afghan Persian',)`, `('Afrikaans',)`, `('Albanian',)` | Value Statics: Total count 144 - Distinct count 74 - Null count 0 | Column Description: name of the language \n\tPercentage REAL, -- Example Values: `(50.0,)`, `(60.0,)`, `(21.0,)` | Value Statics: Total count 144 - Distinct count 74 - Null count 0 | Column Description: percentage of the language in this country | Value Description: %\n\tprimary key (Name, Country),\n);\n\nCREATE TABLE located\n(\n\tCity TEXT, -- Example Values: `('City',)`, `('Shkoder',)`, `('Durres',)` | Value Statics: Total count 858 - Distinct count 831 - Null count 0 | Column Description: the name of the city \n\tProvince TEXT, -- Example Values: `('Province',)`, `('Albania',)`, `('Anatoliki Makedhonia kai Thraki',)` | Value Statics: Total count 858 - Distinct count 575 - Null count 0 | Column Description: the province where the city belongs to \n\tCountry TEXT constraint located_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('Coun',)`, `('AL',)`, `('GR',)` | Value Statics: Total count 858 - Distinct count 187 - Null count 0 | Column Description: the country code where the city belongs to \n\tRiver TEXT constraint located_ibfk_3 references river on update cascade on delete cascade, -- Example Values: `('River',)`, `('Donau',)`, `('Save',)` | Value Statics: Total count 373 - Distinct count 134 - Null count 485 | Column Description: the river where it is located at \n\tLake TEXT constraint located_ibfk_4 references lake on update cascade on delete cascade, -- Example Values: `('Lake',)`, `('Lake Skutari',)`, `('Bodensee',)` | Value Statics: Total count 50 - Distinct count 28 - Null count 808 | Column Description: the lake where it is located at \n\tSea TEXT constraint located_ibfk_5 references sea on update cascade on delete cascade, -- Example Values: `('Sea',)`, `('Mediterranean Sea',)`, `('Atlantic Ocean',)` | Value Statics: Total count 466 - Distinct count 30 - Null count 392 | Column Description: the sea where it is located at | Value Description: Note that for a given city, there can be several lakes/seas/rivers where it is located at.\n\tconstraint located_ibfk_2 foreign key (City, Province) references city on update cascade on delete cascade,\n\tconstraint located_ibfk_2 foreign key (City, Province) references city on update cascade on delete cascade,\n\tconstraint located_ibfk_2 foreign key (City, Province) references city on update cascade on delete cascade,\n\tconstraint located_ibfk_6 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint located_ibfk_6 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint located_ibfk_6 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE locatedOn\n(\n\tCity TEXT default '' not null, -- Example Values: `('Aberdeen',)`, `('Aberystwyth',)`, `('Adamstown',)` | Value Statics: Total count 435 - Distinct count 429 - Null count 0 | Column Description: the name of the city \n\tProvince TEXT default '' not null, -- Example Values: `('Province',)`, `('Grampian',)`, `('Ceredigion',)` | Value Statics: Total count 435 - Distinct count 246 - Null count 0 | Column Description: the province where the city belongs to \n\tCountry TEXT default '' not null constraint locatedOn_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('Coun',)`, `('GB',)`, `('PITC',)` | Value Statics: Total count 435 - Distinct count 97 - Null count 0 | Column Description: the country code where the city belongs to \n\tIsland TEXT default '' not null constraint locatedOn_ibfk_2 references island on update cascade on delete cascade, -- Example Values: `('Island',)`, `('Great Britain',)`, `('Pitcairn',)` | Value Statics: Total count 435 - Distinct count 121 - Null count 0 | Column Description: the island it is (maybe only partially) located on \n\tprimary key (City, Province, Country, Island),\n\tconstraint locatedOn_ibfk_3 foreign key (City, Province) references city on update cascade on delete cascade,\n\tconstraint locatedOn_ibfk_3 foreign key (City, Province) references city on update cascade on delete cascade,\n\tconstraint locatedOn_ibfk_3 foreign key (City, Province) references city on update cascade on delete cascade,\n\tconstraint locatedOn_ibfk_3 foreign key (City, Province) references city on update cascade on delete cascade,\n\tconstraint locatedOn_ibfk_4 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint locatedOn_ibfk_4 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint locatedOn_ibfk_4 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint locatedOn_ibfk_4 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE mergesWith\n(\n\tSea1 TEXT default '' not null constraint mergesWith_ibfk_1 references sea on update cascade on delete cascade, -- Example Values: `('Andaman Sea',)`, `('Arabian Sea',)`, `('Arctic Ocean',)` | Value Statics: Total count 55 - Distinct count 22 - Null count 0 | Column Description: the name of the mountain \n\tSea2 TEXT default '' not null constraint mergesWith_ibfk_2 references sea on update cascade on delete cascade, -- Example Values: `('Sea2',)`, `('Gulf of Bengal',)`, `('Indian Ocean',)` | Value Statics: Total count 55 - Distinct count 28 - Null count 0 | Column Description: the country code where it is located \n\tprimary key (Sea1, Sea2),\n);\n\nCREATE TABLE mountain\n(\n\tName TEXT default '' not null primary key,\n\tMountains TEXT, -- | Column Description: the mountains where it belongs to \n\tHeight REAL, -- | Column Description: the maximal elevation of the summit of the mountain \n\tType TEXT, -- | Column Description: the sea where it finally flows to | Value Description: (note that at most one out of {river,lake,sea} can be non-null\n\tLongitude REAL, -- | Column Description: the length of the river \n\tLatitude REAL, -- | Column Description: the longitude of its source \n);\n\nCREATE TABLE mountainOnIsland\n(\n\tMountain TEXT default '' not null constraint mountainOnIsland_ibfk_2 references mountain on update cascade on delete cascade, -- Example Values: `('Andringitra',)`, `('Asahi-Dake',)`, `('Barbeau Peak',)` | Value Statics: Total count 68 - Distinct count 68 - Null count 0 | Column Description: the name of the mountain \n\tIsland TEXT default '' not null constraint mountainOnIsland_ibfk_1 references island on update cascade on delete cascade, -- Example Values: `('Island',)`, `('Madagaskar',)`, `('Hokkaido',)` | Value Statics: Total count 68 - Distinct count 58 - Null count 0 | Column Description: the name of the island \n\tprimary key (Mountain, Island),\n);\n\nCREATE TABLE organization\n(\n\tAbbreviation TEXT not null primary key,\n\tName TEXT not null constraint ix_organization_OrgNameUnique unique, -- Example Values: `('ASEAN-Mekong Basin Development Group',)`, `('African Development Bank',)`, `('African, Caribbean, and Pacific Countries',)` | Value Statics: Total count 154 - Distinct count 154 - Null count 0 | Column Description: the full name of the organization \n\tCity TEXT, -- Example Values: `('City',)`, `('Khartoum',)`, `('Paris',)` | Value Statics: Total count 125 - Distinct count 62 - Null count 29 | Column Description: the city where the headquarters are located \n\tCountry TEXT constraint organization_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('Coun',)`, `('SUD',)`, `('F',)` | Value Statics: Total count 125 - Distinct count 55 - Null count 29 | Column Description: the code of the country where the headquarters are located \n\tProvince TEXT, -- Example Values: `('Province',)`, `('al Khartum',)`, `('Ile de France',)` | Value Statics: Total count 125 - Distinct count 59 - Null count 29 | Column Description: the name of the province where the headquarters are located, \n\tEstablished DATE, -- Example Values: `('Established',)`, `('1974-02-18',)`, `('1989-02-16',)` | Value Statics: Total count 148 - Distinct count 142 - Null count 6 | Column Description: date of establishment \n\tconstraint organization_ibfk_2 foreign key (City, Province) references city on update cascade on delete cascade,\n\tconstraint organization_ibfk_2 foreign key (City, Province) references city on update cascade on delete cascade,\n\tconstraint organization_ibfk_2 foreign key (City, Province) references city on update cascade on delete cascade,\n\tconstraint organization_ibfk_3 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint organization_ibfk_3 foreign key (Province, Country) references province on update cascade on delete cascade,\n\tconstraint organization_ibfk_3 foreign key (Province, Country) references province on update cascade on delete cascade,\n);\n\nCREATE TABLE politics\n(\n\tCountry TEXT default '' not null primary key constraint politics_ibfk_1 references country on update cascade on delete cascade,\n\tIndependence DATE, -- Example Values: `('Independence',)`, `('1918-11-12',)`, `('1919-08-19',)` | Value Statics: Total count 184 - Distinct count 174 - Null count 55 | Column Description: date of independence | Value Description: Commonsense evidence:\r \r if the value is null or empty, it means this country is not independent\n\tDependent TEXT constraint politics_ibfk_2 references country on update cascade on delete cascade, -- Example Values: `Depe`, `USA`, `NL`, `GB`, `AUS` | Value Statics: Total count 39 - Distinct count 10 - Null count 200 | Column Description: the country code where the area belongs to \n\tGovernment TEXT, -- Example Values: `('Government',)`, `('federal republic',)`, `('transitional government',)` | Value Statics: Total count 237 - Distinct count 74 - Null count 2 | Column Description: type of government \n);\n\nCREATE TABLE population\n(\n\tCountry TEXT default '' not null primary key constraint population_ibfk_1 references country on update cascade on delete cascade,\n\tPopulation_Growth REAL, -- Example Values: `(0.41,)`, `(4.78,)`, `(0.76,)` | Value Statics: Total count 229 - Distinct count 183 - Null count 9 | Column Name Meaning: population growth | Column Description: population growth rate | Value Description: per annum\n\tInfant_Mortality REAL, -- Example Values: `(6.2,)`, `(149.7,)`, `(17.2,)` | Value Statics: Total count 227 - Distinct count 200 - Null count 11 | Column Name Meaning: infant mortality | Column Description: infant mortality | Value Description: per thousand\n);\n\nCREATE TABLE province\n(\n\tName TEXT not null, -- Example Values: `('AG',)`, `('AI',)`, `('AR',)` | Value Statics: Total count 1450 - Distinct count 1430 - Null count 0 | Column Description: the name of the administrative division \n\tCountry TEXT not null constraint province_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('CH',)`, `('SUD',)`, `('GB',)` | Value Statics: Total count 1450 - Distinct count 238 - Null count 0 | Column Description: the country code where it belongs to \n\tPopulation INTEGER, -- Example Values: `(1599605,)`, `(110700,)`, `(1263000,)` | Value Statics: Total count 1450 - Distinct count 1434 - Null count 0 | Column Description: the population of the province \n\tArea REAL, -- Example Values: `(238792.0,)`, `(1130.0,)`, `(10794.0,)` | Value Statics: Total count 1240 - Distinct count 1213 - Null count 210 | Column Description: the total area of the province, \n\tCapital TEXT, -- Example Values: `('Malakal',)`, `('Colwyn Bay',)`, `('LAquila',)` | Value Statics: Total count 1441 - Distinct count 1405 - Null count 9 | Column Description: the name of the capital | Value Description: if null, doesn't have capital\n\tCapProv TEXT, -- Example Values: `('Aali an Nil',)`, `('Aberconwy and Colwyn',)`, `('Abruzzo',)` | Value Statics: Total count 1441 - Distinct count 1404 - Null count 9 | Column Name Meaning: capital province | Column Description: the name of the province where the capital belongs to | Value Description: note that capprov is not necessarily equal to name\n\tprimary key (Name, Country),\n);\n\nCREATE TABLE religion\n(\n\tCountry TEXT default '' not null constraint religion_ibfk_1 references country on update cascade on delete cascade, -- Example Values: `('BERM',)`, `('AUS',)`, `('AXA',)` | Value Statics: Total count 454 - Distinct count 206 - Null count 0 | Column Description: the country code \n\tName TEXT default '' not null, -- Example Values: `('African Methodist Episcopal',)`, `('Anglican',)`, `('Armenian Apostolic',)` | Value Statics: Total count 454 - Distinct count 37 - Null count 0 | Column Description: name of the religion \n\tPercentage REAL, -- Example Values: `(11.0,)`, `(26.1,)`, `(29.0,)` | Value Statics: Total count 454 - Distinct count 147 - Null count 0 | Column Description: percentage of the language in this country | Value Description: %\n\tprimary key (Name, Country),\n);\n\nCREATE TABLE river\n(\n\tName TEXT default '' not null primary key,\n\tRiver TEXT, -- Example Values: `('Rhein',)`, `('Po',)`, `('Ohio River',)` | Value Statics: Total count 107 - Distinct count 50 - Null count 111 | Column Description: the river where it finally flows to \n\tLake TEXT constraint river_ibfk_1 references lake on update cascade on delete cascade, -- Example Values: `('Brienzersee',)`, `('Lago di Como',)`, `('Lake Victoria',)` | Value Statics: Total count 49 - Distinct count 43 - Null count 169 | Column Description: the lake where it finally flows to \n\tSea TEXT, -- Example Values: `('Atlantic Ocean',)`, `('Sea of Okhotsk',)`, `('Mediterranean Sea',)` | Value Statics: Total count 89 - Distinct count 28 - Null count 129 | Column Description: the sea where it finally flows to | Value Description: (note that at most one out of {river,lake,sea} can be non-null\n\tLength REAL, -- Example Values: `(288.0,)`, `(313.0,)`, `(275.0,)` | Value Statics: Total count 211 - Distinct count 191 - Null count 7 | Column Description: the length of the river \n\tSourceLongitude REAL, -- Example Values: `(8.2,)`, `(10.3,)`, `(29.3,)` | Value Statics: Total count 211 - Distinct count 191 - Null count 7 | Column Description: the longitude of its source \n\tSourceLatitude REAL, -- Example Values: `(46.55,)`, `(-2.5,)`, `(41.9,)` | Value Statics: Total count 211 - Distinct count 187 - Null count 7 | Column Description: the latitude of its source \n\tMountains TEXT, -- Example Values: `('Alps',)`, `('East African Rift',)`, `('Appalachian Mountains',)` | Value Statics: Total count 93 - Distinct count 35 - Null count 125 | Column Description: the mountains where its source is located \n\tSourceAltitude REAL, -- Example Values: `(2310.0,)`, `(2235.0,)`, `(2700.0,)` | Value Statics: Total count 136 - Distinct count 125 - Null count 82 | Column Description: the elevation (above sea level) of its source \n\tEstuaryLongitude REAL, -- Example Values: `(8.22,)`, `(9.88,)`, `(33.0,)` | Value Statics: Total count 216 - Distinct count 192 - Null count 2 | Column Description: the coordinates of its estuary \n\tEstuaryLatitude REAL, -- Example Values: `(47.61,)`, `(45.13,)`, `(-1.0,)` | Value Statics: Total count 216 - Distinct count 181 - Null count 2 | Column Description: the latitude of its estuary \n);\n\nCREATE TABLE sea\n(\n\tName TEXT default '' not null primary key,\n\tDepth REAL, -- Example Values: `(3113.0,)`, `(5203.0,)`, `(5608.0,)` | Value Statics: Total count 35 - Distinct count 34 - Null count 0 | Column Description: the maximal depth of the sea \n);\n\nCREATE TABLE target\n(\n\tCountry TEXT not null primary key constraint target_Country_fkey references country on update cascade on delete cascade,\n\tTarget TEXT, -- Example Values: `Target`, `Christian`, `non-Christian` | Value Statics: Total count 205 - Distinct count 3 - Null count 0 \n);" }
software_company
{ "db_schema": "CREATE TABLE Demog\n(\n\tGEOID INTEGER constraint Demog_pk primary key,\n\tINHABITANTS_K REAL, -- Example Values: `(30.046,)`, `(36.25,)`, `(47.645,)` | Value Statics: Total count 200 - Distinct count 200 - Null count 0 | Column Name Meaning: INHABITANTS (THOUSANDS) | Column Description: number of inhabitants | Value Description: the unit is K (thousands)\n\tINCOME_K REAL, -- Example Values: `(2631.47,)`, `(3012.75,)`, `(2192.41,)` | Value Statics: Total count 200 - Distinct count 200 - Null count 0 | Column Name Meaning: INCOME (THOUSANDS) | Column Description: average income per inhabitant per month | Value Description: the unit is dollar, it indicates the average income per inhabitant per month. some computation like: total income per year = INHABITANTS_K x INCOME_K x 12\n\tA_VAR1 REAL, -- Example Values: `(6.084,)`, `(4.604,)`, `(4.911,)` | Value Statics: Total count 200 - Distinct count 191 - Null count 0 \n\tA_VAR2 REAL, -- Example Values: `(5.79,)`, `(8.309,)`, `(8.557,)` | Value Statics: Total count 200 - Distinct count 191 - Null count 0 \n\tA_VAR3 REAL, -- Example Values: `(8.595,)`, `(6.007,)`, `(5.934,)` | Value Statics: Total count 200 - Distinct count 191 - Null count 0 \n\tA_VAR4 REAL, -- Example Values: `(3.935,)`, `(5.938,)`, `(6.494,)` | Value Statics: Total count 200 - Distinct count 192 - Null count 0 \n\tA_VAR5 REAL, -- Example Values: `(6.362,)`, `(8.773,)`, `(9.172,)` | Value Statics: Total count 200 - Distinct count 190 - Null count 0 \n\tA_VAR6 REAL, -- Example Values: `(8.626,)`, `(3.579,)`, `(3.202,)` | Value Statics: Total count 200 - Distinct count 194 - Null count 0 \n\tA_VAR7 REAL, -- Example Values: `(4.624,)`, `(6.349,)`, `(6.157,)` | Value Statics: Total count 200 - Distinct count 191 - Null count 0 \n\tA_VAR8 REAL, -- Example Values: `(8.324,)`, `(4.694,)`, `(4.822,)` | Value Statics: Total count 200 - Distinct count 194 - Null count 0 \n\tA_VAR9 REAL, -- Example Values: `(5.233,)`, `(6.884,)`, `(7.942,)` | Value Statics: Total count 200 - Distinct count 192 - Null count 0 \n\tA_VAR10 REAL, -- Example Values: `(6.232,)`, `(7.062,)`, `(7.901,)` | Value Statics: Total count 200 - Distinct count 195 - Null count 0 \n\tA_VAR11 REAL, -- Example Values: `(5.205,)`, `(7.319,)`, `(7.928,)` | Value Statics: Total count 200 - Distinct count 192 - Null count 0 \n\tA_VAR12 REAL, -- Example Values: `(8.231,)`, `(3.72,)`, `(2.33,)` | Value Statics: Total count 200 - Distinct count 192 - Null count 0 \n\tA_VAR13 REAL, -- Example Values: `(6.746,)`, `(6.405,)`, `(6.029,)` | Value Statics: Total count 200 - Distinct count 195 - Null count 0 \n\tA_VAR14 REAL, -- Example Values: `(8.679,)`, `(7.202,)`, `(6.455,)` | Value Statics: Total count 200 - Distinct count 195 - Null count 0 \n\tA_VAR15 REAL, -- Example Values: `(5.292,)`, `(4.932,)`, `(4.72,)` | Value Statics: Total count 200 - Distinct count 195 - Null count 0 \n\tA_VAR16 REAL, -- Example Values: `(3.5,)`, `(7.969,)`, `(8.564,)` | Value Statics: Total count 200 - Distinct count 195 - Null count 0 \n\tA_VAR17 REAL, -- Example Values: `(5.512,)`, `(8.15,)`, `(8.342,)` | Value Statics: Total count 200 - Distinct count 193 - Null count 0 \n\tA_VAR18 REAL, -- Example Values: `(5.783,)`, `(5.633,)`, `(4.938,)` | Value Statics: Total count 200 - Distinct count 194 - Null count 0 \n);\n\nCREATE TABLE mailings3\n(\n\tREFID INTEGER constraint mailings3_pk primary key,\n\tREF_DATE DATETIME, -- Example Values: `('2007-07-01 12:00:00.0',)` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Name Meaning: REFERENCE DATE | Column Description: indicating the date when the mailing was sent \n\tRESPONSE TEXT, -- Example Values: `false`, `true` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: Actual response to the marketing incentive email | Value Description: • True • False 1. any person who has not responded to a mailing within two months is considered to have responded negatively. 2. true respond to the mailing, otherwise, no\n);\n\nCREATE TABLE Customers\n(\n\tID INTEGER constraint Customers_pk primary key,\n\tSEX TEXT, -- Example Values: `Male`, `Female` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: the sex of the customer \n\tMARITAL_STATUS TEXT, -- Example Values: `Never-married`, `Married-civ-spouse`, `Divorced`, `Widowed`, `Other` | Value Statics: Total count 100000 - Distinct count 5 - Null count 0 | Column Name Meaning: MARITAL STATUS | Value Description: � Never-married � Married-civ-spouse � Divorced � Widowed � Other \"Married-civ-spouse\", \"Divorced\", \"Widowed\" mean customer has been married.\n\tGEOID INTEGER constraint Customers_Demog_GEOID_fk references Demog, -- Example Values: `(61,)`, `(70,)`, `(53,)` | Value Statics: Total count 100000 - Distinct count 120 - Null count 0 | Column Name Meaning: GEOGRAPHIC ID | Column Description: geographic identifier \n\tEDUCATIONNUM INTEGER, -- Example Values: `7`, `3`, `4`, `11`, `5` | Value Statics: Total count 100000 - Distinct count 17 - Null count 0 | Column Name Meaning: EDUCATION NUMBER | Column Description: the level of education | Value Description: higher education number refers to higher education\n\tOCCUPATION TEXT, -- Example Values: `Machine-op-inspct`, `Handlers-cleaners`, `Exec-managerial`, `Farming-fishing`, `Other-service` | Value Statics: Total count 100000 - Distinct count 8 - Null count 0 | Column Description: occupation of customers \n\tage INTEGER, -- Example Values: `(62,)`, `(78,)`, `(69,)` | Value Statics: Total count 100000 - Distinct count 69 - Null count 0 | Column Description: age of customers | Value Description: � teenager: 13-19 years old. � elder: people aged over 65\n);\n\nCREATE TABLE Mailings1_2\n(\n\tREFID INTEGER constraint Mailings1_2_pk primary key constraint Mailings1_2_Customers_ID_fk references Customers,\n\tREF_DATE DATETIME, -- Example Values: `('2007-02-01 12:00:00.0',)`, `('2007-03-01 12:00:00.0',)` | Value Statics: Total count 60000 - Distinct count 2 - Null count 0 | Column Name Meaning: REFERENCE DATE | Column Description: indicating the date when the mailing was sent \n\tRESPONSE TEXT, -- Example Values: `false`, `true` | Value Statics: Total count 60000 - Distinct count 2 - Null count 0 | Column Description: Response to the incentive mailing that marketing department sent | Value Description: • True • False 1. any person who has not responded to a mailing within two months is considered to have responded negatively. 2. true respond to the mailing, otherwise, no\n);\n\nCREATE TABLE Sales\n(\n\tEVENTID INTEGER constraint Sales_pk primary key,\n\tREFID INTEGER references Customers, -- Example Values: `(0,)`, `(1,)`, `(2,)` | Value Statics: Total count 100000 - Distinct count 10530 - Null count 0 | Column Name Meaning: REFERENCE ID | Column Description: Reference to customer ID \n\tEVENT_DATE DATETIME, -- Example Values: `('2006-12-21 12:00:00.0',)`, `('2006-12-25 12:00:00.0',)`, `('2007-01-26 12:00:00.0',)` | Value Statics: Total count 100000 - Distinct count 84 - Null count 0 | Column Name Meaning: EVENT DATE | Column Description: date of sales \n\tAMOUNT REAL, -- Example Values: `(17.907,)`, `(17.401,)`, `(13.277,)` | Value Statics: Total count 100000 - Distinct count 10001 - Null count 0 | Column Description: amount of sales \n);" }
chicago_crime
{ "db_schema": "CREATE TABLE Community_Area\n(\n\tcommunity_area_no INTEGER primary key,\n\tcommunity_area_name TEXT, -- Example Values: `('Rogers Park',)`, `('West Ridge',)`, `('Uptown',)` | Value Statics: Total count 77 - Distinct count 77 - Null count 0 | Column Name Meaning: community area name | Column Description: community area name \n\tside TEXT, -- Example Values: `Far North `, `North `, `Central`, `Northwest `, `West ` | Value Statics: Total count 77 - Distinct count 9 - Null count 0 | Column Description: district \n\tpopulation TEXT, -- Example Values: `('54,991',)`, `('71,942',)`, `('56,362',)` | Value Statics: Total count 77 - Distinct count 77 - Null count 0 | Column Description: population of the community \n);\n\nCREATE TABLE District\n(\n\tdistrict_no INTEGER primary key,\n\tdistrict_name TEXT, -- Example Values: `('Central',)`, `('Wentworth',)`, `('Grand Crossing',)` | Value Statics: Total count 22 - Distinct count 22 - Null count 0 | Column Name Meaning: district name | Column Description: name of the district \n\taddress TEXT, -- Example Values: `('1718 South State Street',)`, `('5101 South Wentworh Avenue',)`, `('7040 South Cottage Grove Ave',)` | Value Statics: Total count 22 - Distinct count 22 - Null count 0 | Column Description: Street address of the police district building \n\tzip_code INTEGER, -- Example Values: `(60616,)`, `(60609,)`, `(60637,)` | Value Statics: Total count 22 - Distinct count 20 - Null count 0 | Column Name Meaning: zip code | Column Description: ZIP code of the police district building \n\tcommander TEXT, -- Example Values: `('Jake M. Alderden',)`, `('Joshua Wallace',)`, `('Eve T. Quarterman',)` | Value Statics: Total count 22 - Distinct count 22 - Null count 0 | Column Description: Name of the district's commanding officer | Value Description: the person who should be responsible for the crime case.\n\temail TEXT, -- Example Values: `('\\xa0CAPS001District@chicagopolice.org',)`, `('\\xa0CAPS002District@chicagopolice.org',)`, `('\\xa0CAPS003District@chicagopolice.org',)` | Value Statics: Total count 22 - Distinct count 22 - Null count 0 | Column Description: Email address to contact district administrators \n\tphone TEXT, -- Example Values: `('312-745-4290',)`, `('312-747-8366',)`, `('312-747-8201',)` | Value Statics: Total count 22 - Distinct count 22 - Null count 0 | Column Description: Main telephone number for the district \n\tfax TEXT, -- Example Values: `('312-745-3694',)`, `('312-747-5396',)`, `('312-747-5479',)` | Value Statics: Total count 22 - Distinct count 22 - Null count 0 | Column Description: Fax number for the district \n\ttty TEXT, -- Example Values: `('312-745-3693',)`, `('312-747-6656',)`, `('312-747-9168',)` | Value Statics: Total count 21 - Distinct count 21 - Null count 1 | Column Description: Number of the district teletype machine. | Value Description: A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\n\ttwitter TEXT, -- Example Values: `('\\xa0ChicagoCAPS01',)`, `('\\xa0ChicagoCAPS02',)`, `('\\xa0ChicagoCAPS03',)` | Value Statics: Total count 22 - Distinct count 22 - Null count 0 | Column Description: The district twitter handle. | Value Description: Twitter is a social networking service on which users post and interact with brief messages known as \"tweets\"\n);\n\nCREATE TABLE FBI_Code\n(\n\tfbi_code_no TEXT primary key,\n\ttitle TEXT, -- Example Values: `('Homicide 1st & 2nd Degree',)`, `('Involuntary Manslaughter',)`, `('Criminal Sexual Assault',)` | Value Statics: Total count 26 - Distinct count 26 - Null count 0 | Column Description: Short description of the kind of crime \n\tdescription TEXT, -- Example Values: `('The killing of one human being by another.',)`, `('The killing of another person through negligence`, `(\"Any sexual act directed against another person, ` | Value Statics: Total count 26 - Distinct count 26 - Null count 0 | Column Description: Detailed description of the kind of crime \n\tcrime_against TEXT, -- Example Values: `Persons`, `Property`, `Society`, `Persons and Society` | Value Statics: Total count 26 - Distinct count 4 - Null count 0 | Column Name Meaning: crime against | Column Description: States who the crime is against. | Value Description: Values are Persons, Property, Society, or \"Persons and Society\"\n);\n\nCREATE TABLE IUCR\n(\n\tiucr_no TEXT primary key,\n\tprimary_description TEXT, -- Example Values: `('HOMICIDE',)`, `('CRIM SEXUAL ASSAULT',)`, `('BATTERY',)` | Value Statics: Total count 401 - Distinct count 33 - Null count 0 | Column Name Meaning: primary description | Column Description: The general description of the incident classification | Value Description: It's the general description\n\tsecondary_description TEXT, -- Example Values: `('FIRST DEGREE MURDER',)`, `('SECOND DEGREE MURDER',)`, `('INVOLUNTARY MANSLAUGHTER',)` | Value Statics: Total count 401 - Distinct count 377 - Null count 0 | Column Name Meaning: secondary description | Column Description: The specific description of the incident classification | Value Description: It's the specific description\n\tindex_code TEXT, -- Example Values: `I`, `N` | Value Statics: Total count 401 - Distinct count 2 - Null count 0 | Column Name Meaning: index code | Column Description: Uses values \"I\" and \"N\" to indicate crimes | Value Description: • \"Indexed\" (severe, such as murder, rape, arson, and robbery) • \"Non-Indexed\" (less severe, such as vandalism, weapons violations, and peace disturbance)\n);\n\nCREATE TABLE Neighborhood\n(\n\tneighborhood_name TEXT primary key,\n\tcommunity_area_no INTEGER, -- Example Values: `(14,)`, `(54,)`, `(77,)` | Value Statics: Total count 246 - Distinct count 77 - Null count 0 | Column Name Meaning: community area number | Column Description: The community area in which most of the neighborhood is located \n\tforeign key (community_area_no) references Community_Area(community_area_no),\n);\n\nCREATE TABLE Ward\n(\n\tward_no INTEGER primary key,\n\talderman_first_name TEXT, -- Example Values: `('Daniel',)`, `('Brian',)`, `('Pat',)` | Value Statics: Total count 50 - Distinct count 46 - Null count 0 \n\talderman_last_name TEXT, -- Example Values: `('La Spata',)`, `('Hopkins',)`, `('Dowell',)` | Value Statics: Total count 50 - Distinct count 49 - Null count 0 \n\talderman_name_suffix TEXT, -- Example Values: `Jr.` | Value Statics: Total count 5 - Distinct count 1 - Null count 45 \n\tward_office_address TEXT, -- Example Values: `('1958 N. Milwaukee Ave.',)`, `('1400 N. Ashland',)`, `('5046 S. State St.',)` | Value Statics: Total count 49 - Distinct count 49 - Null count 1 \n\tward_office_zip TEXT, -- Example Values: `('60647',)`, `('60622',)`, `('60609',)` | Value Statics: Total count 49 - Distinct count 33 - Null count 1 \n\tward_email TEXT, -- Example Values: `('info@the1stward.com',)`, `('ward02@cityofchicago.org',)`, `('ward03@cityofchicago.org',)` | Value Statics: Total count 45 - Distinct count 45 - Null count 5 \n\tward_office_phone TEXT, -- Example Values: `('872.206.2685',)`, `('312.643.2299',)`, `('773.373.9273',)` | Value Statics: Total count 47 - Distinct count 47 - Null count 3 \n\tward_office_fax TEXT, -- Example Values: `('312.448.8829',)`, `('773.536.7296',)`, `('773.324.1585',)` | Value Statics: Total count 22 - Distinct count 22 - Null count 28 \n\tcity_hall_office_room INTEGER, -- Example Values: `200`, `305`, `300`, `302` | Value Statics: Total count 50 - Distinct count 4 - Null count 0 \n\tcity_hall_office_phone TEXT, -- Example Values: `('312.744.6836',)`, `('312.744.8734',)`, `('312.744.2690',)` | Value Statics: Total count 38 - Distinct count 38 - Null count 12 \n\tcity_hall_office_fax TEXT, -- Example Values: `('312.744.6712',)`, `('312.744.7738',)`, `('312.744.3195',)` | Value Statics: Total count 27 - Distinct count 27 - Null count 23 \n\tPopulation INTEGER, -- Example Values: `(56149,)`, `(55805,)`, `(53039,)` | Value Statics: Total count 50 - Distinct count 50 - Null count 0 \n);\n\nCREATE TABLE Crime\n(\n\treport_no INTEGER primary key,\n\tcase_number TEXT, -- Example Values: `('JB100159',)`, `('JB100522',)`, `('JB100839',)` | Value Statics: Total count 100000 - Distinct count 99975 - Null count 0 | Column Name Meaning: case number | Column Description: Case number assigned to the reported crime. | Value Description: There is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim if case_number appears > 1, it means this is a multiple homicide\n\tdate TEXT, -- Example Values: `('1/1/2018 2:46',)`, `('1/1/2018 11:33',)`, `('1/1/2018 18:27',)` | Value Statics: Total count 100000 - Distinct count 47863 - Null count 0 | Column Description: Date of the occurrence of the incident being reported \n\tblock TEXT, -- Example Values: `('039XX W CORNELIA AVE',)`, `('026XX N HAMPDEN CT',)`, `('047XX S PRINCETON AVE',)` | Value Statics: Total count 100000 - Distinct count 21697 - Null count 0 | Column Description: A redacted address indicating in which city block the incident occurred \n\tiucr_no TEXT, -- Example Values: `('110',)`, `('143B',)`, `('1310',)` | Value Statics: Total count 100000 - Distinct count 295 - Null count 0 | Column Name Meaning: Illinois Uniform Crime Reporting number | Column Description: Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports. \n\tlocation_description TEXT, -- Example Values: `('AUTO',)`, `('APARTMENT',)`, `('ALLEY',)` | Value Statics: Total count 99791 - Distinct count 139 - Null count 209 | Column Name Meaning: location description | Column Description: A description of the kind of area where incident occurred \n\tarrest TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: A true/false value indicating if an arrest has been made \n\tdomestic TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Description: A true/false value indicating if the incident is as case of domestic violence \n\tbeat INTEGER, -- Example Values: `(1732,)`, `(1935,)`, `(935,)` | Value Statics: Total count 100000 - Distinct count 274 - Null count 0 \n\tdistrict_no INTEGER, -- Example Values: `(17,)`, `(19,)`, `(9,)` | Value Statics: Total count 100000 - Distinct count 23 - Null count 0 | Column Name Meaning: district number | Column Description: A number indicating the geographic subdivision of the police district where the incident occurred \n\tward_no INTEGER, -- Example Values: `(30,)`, `(43,)`, `(3,)` | Value Statics: Total count 99999 - Distinct count 50 - Null count 1 | Column Name Meaning: ward number | Column Description: A two digit number identifying the legislative district (ward) where the incident occurred. \n\tcommunity_area_no INTEGER, -- Example Values: `(21,)`, `(7,)`, `(37,)` | Value Statics: Total count 100000 - Distinct count 77 - Null count 0 | Column Name Meaning: community area number | Column Description: A number identifying one of 77 geographic areas where the incident occurred \n\tfbi_code_no TEXT, -- Example Values: `('01A',)`, `('15',)`, `('14',)` | Value Statics: Total count 100000 - Distinct count 26 - Null count 0 | Column Name Meaning: fbi code number | Column Description: A code identifying the type of crime reported according to the classification scheme used by the FBI. \n\tlatitude TEXT, -- Example Values: `('41.94456125',)`, `('41.92972657',)`, `('41.808168',)` | Value Statics: Total count 99668 - Distinct count 60244 - Null count 332 | Column Description: The latitude where incident is reported to have occurred. \n\tlongitude TEXT, -- Example Values: `('-87.72668181',)`, `('-87.64092074',)`, `('-87.63333646',)` | Value Statics: Total count 99668 - Distinct count 60209 - Null count 332 | Column Description: The longitude where incident is reported to have occurred. | Value Description: The precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude)\n\tforeign key (ward_no) references Ward(ward_no),\n\tforeign key (iucr_no) references IUCR(iucr_no),\n\tforeign key (district_no) references District(district_no),\n\tforeign key (community_area_no) references Community_Area(community_area_no),\n\tforeign key (fbi_code_no) references FBI_Code(fbi_code_no),\n);" }
food_inspection
{ "db_schema": "CREATE TABLE businesses\n(\n\t`business_id` INTEGER NOT NULL, -- Example Values: `(10,)`, `(24,)`, `(31,)` | Value Statics: Total count 6358 - Distinct count 6358 - Null count 0 | Column Name Meaning: business id | Column Description: the unique id of the business \n\t`name` TEXT NOT NULL, -- Example Values: `('Tiramisu Kitchen',)`, `('OMNI S.F. Hotel - 2nd Floor Pantry',)`, `(\"Norman's Ice Cream and Freezes\",)` | Value Statics: Total count 6358 - Distinct count 5869 - Null count 0 | Column Description: the name of the eatery \n\t`address` TEXT DEFAULT NULL, -- Example Values: `('033 Belden Pl',)`, `('500 California St, 2nd Floor',)`, `('2801 Leavenworth St',)` | Value Statics: Total count 6357 - Distinct count 5684 - Null count 1 | Column Description: the eatery address \n\t`city` TEXT DEFAULT NULL, -- Example Values: `('San Francisco',)`, `('S.F.',)`, `('SAN FRANCISCO',)` | Value Statics: Total count 4711 - Distinct count 30 - Null count 1647 | Column Description: the city where the eatery is located in \n\t`postal_code` TEXT DEFAULT NULL, -- Example Values: `('94104',)`, `('94133',)`, `('94110',)` | Value Statics: Total count 6138 - Distinct count 40 - Null count 220 | Column Name Meaning: postal code | Column Description: the postal code of the eatery \n\t`latitude` REAL DEFAULT NULL, -- Example Values: `(37.7911,)`, `(37.7929,)`, `(37.8072,)` | Value Statics: Total count 3631 - Distinct count 798 - Null count 2727 | Column Description: the latitude of the position \n\t`longitude` REAL DEFAULT NULL, -- Example Values: `(-122.404,)`, `(-122.403,)`, `(-122.419,)` | Value Statics: Total count 3631 - Distinct count 138 - Null count 2727 | Column Description: the longitude of the position | Value Description: the distance between eatery A and eatery B = \\sqrt{(latitude_A-latitude_B)^2 + (longitude_A-longitude_B)^2}\n\t`phone_number` INTEGER DEFAULT NULL, -- Example Values: `(14155345060,)`, `(14155823535,)`, `(14155344645,)` | Value Statics: Total count 1767 - Distinct count 1672 - Null count 4591 | Column Name Meaning: phone number | Column Description: the phone number of the eatery \n\t`tax_code` TEXT DEFAULT NULL, -- Example Values: `('H24',)`, `('H01',)`, `('H25',)` | Value Statics: Total count 6357 - Distinct count 45 - Null count 1 | Column Name Meaning: tax code | Column Description: the tax code of the eatery \n\t`business_certificate` INTEGER NOT NULL, -- Example Values: `(779059,)`, `(352312,)`, `(346882,)` | Value Statics: Total count 6358 - Distinct count 5180 - Null count 0 | Column Name Meaning: business certificate | Column Description: the business certificate number \n\t`application_date` DATE DEFAULT NULL, -- Example Values: `('2001-10-10',)`, `('1989-02-01',)`, `('2003-05-23',)` | Value Statics: Total count 5149 - Distinct count 2590 - Null count 1209 | Column Name Meaning: application date | Column Description: the application date of the eatery \n\t`owner_name` TEXT NOT NULL, -- Example Values: `('Tiramisu LLC',)`, `('OMNI San Francisco Hotel Corp',)`, `('Norman Antiforda',)` | Value Statics: Total count 6358 - Distinct count 5698 - Null count 0 | Column Name Meaning: owner name | Column Description: the owner's name \n\t`owner_address` TEXT DEFAULT NULL, -- Example Values: `('33 Belden St',)`, `('500 California St, 2nd Floor',)`, `('2801 Leavenworth St',)` | Value Statics: Total count 6358 - Distinct count 5758 - Null count 0 | Column Name Meaning: owner address | Column Description: the owner's address \n\t`owner_city` TEXT DEFAULT NULL, -- Example Values: `('San Francisco',)`, `('S.F.',)`, `('SAN FRANCISCO',)` | Value Statics: Total count 6356 - Distinct count 355 - Null count 2 | Column Name Meaning: owner city | Column Description: the city where the owner is located \n\t`owner_state` TEXT DEFAULT NULL, -- Example Values: `('CA',)`, `('DC',)`, `('WA',)` | Value Statics: Total count 6357 - Distinct count 52 - Null count 1 | Column Name Meaning: owner state | Column Description: the state where the owner is located \n\t`owner_zip` TEXT DEFAULT NULL, -- Example Values: `('94104',)`, `('94133',)`, `('94114',)` | Value Statics: Total count 6358 - Distinct count 433 - Null count 0 | Column Name Meaning: owner zip | Column Description: the zip code of the owner \n\tPRIMARY KEY (`business_id`),\n);\n\nCREATE TABLE inspections\n(\n\t`business_id` INTEGER NOT NULL, -- Example Values: `(10,)`, `(24,)`, `(31,)` | Value Statics: Total count 23764 - Distinct count 5219 - Null count 0 | Column Name Meaning: business id | Column Description: the unique id of the business \n\t`score` INTEGER DEFAULT NULL, -- Example Values: `(92,)`, `(94,)`, `(82,)` | Value Statics: Total count 12887 - Distinct count 48 - Null count 10877 | Column Description: the inspection score | Value Description: The scores range from 1 to 100, where 100 means that the establishment meets all required standards.\n\t`date` DATE NOT NULL, -- Example Values: `('2014-01-14',)`, `('2014-01-24',)`, `('2014-07-29',)` | Value Statics: Total count 23764 - Distinct count 823 - Null count 0 | Column Description: the inspection date \n\t`type` TEXT NOT NULL, -- Example Values: `Routine - Unscheduled`, `Reinspection/Followup`, `Complaint Reinspection/Followup`, `Non-inspection site visit`, `Complaint` | Value Statics: Total count 23764 - Distinct count 13 - Null count 0 | Column Description: the inspection type \n\tFOREIGN KEY (`business_id`) REFERENCES `businesses` (`business_id`),\n);\n\nCREATE TABLE violations\n(\n\t`business_id` INTEGER NOT NULL, -- Example Values: `(10,)`, `(24,)`, `(31,)` | Value Statics: Total count 36050 - Distinct count 4473 - Null count 0 | Column Name Meaning: business id | Column Description: the unique id of the business \n\t`date` DATE NOT NULL, -- Example Values: `('2014-07-29',)`, `('2014-01-14',)`, `('2016-05-03',)` | Value Statics: Total count 36050 - Distinct count 793 - Null count 0 | Column Description: the date of the violation \n\t`violation_type_id` TEXT NOT NULL, -- Example Values: `('103129',)`, `('103144',)`, `('103119',)` | Value Statics: Total count 36050 - Distinct count 68 - Null count 0 | Column Name Meaning: violation type id | Column Description: the unique type id of the violation \n\t`risk_category` TEXT NOT NULL, -- Example Values: `Moderate Risk`, `Low Risk`, `High Risk` | Value Statics: Total count 36050 - Distinct count 3 - Null count 0 | Column Name Meaning: risk category | Column Description: risk category High / Moderate / Low risk | Value Description: High risks have more safety and health hazards than low risks\n\t`description` TEXT NOT NULL, -- Example Values: `('Insufficient hot water or running water',)`, `('Unapproved or unmaintained equipment or utensils`, `('Inadequate and inaccessible handwashing faciliti` | Value Statics: Total count 36050 - Distinct count 68 - Null count 0 | Column Description: the description of the violation \n\tFOREIGN KEY (`business_id`) REFERENCES `businesses` (`business_id`),\n);" }
cookbook
{ "db_schema": "CREATE TABLE Ingredient\n(\n\tingredient_id INTEGER primary key,\n\tcategory TEXT, -- Example Values: `('dairy',)`, `('Mexican products',)`, `('cereals',)` | Value Statics: Total count 3346 - Distinct count 69 - Null count 0 | Column Description: the category of the ingredient \n\tname TEXT, -- Example Values: `('1% lowfat cottage cheese',)`, `('1% lowfat milk',)`, `('10-inch flour tortilla',)` | Value Statics: Total count 3346 - Distinct count 3346 - Null count 0 | Column Description: the name of the ingredient \n\tplural TEXT, -- Example Values: `s`, `#NAME?`, `es` | Value Statics: Total count 729 - Distinct count 3 - Null count 2617 | Column Description: the plural suffix of the ingredient \n);\n\nCREATE TABLE Recipe\n(\n\trecipe_id INTEGER primary key,\n\ttitle TEXT, -- Example Values: `('Raspberry Chiffon Pie',)`, `('Apricot Yogurt Parfaits',)`, `('Fresh Apricot Bavarian',)` | Value Statics: Total count 878 - Distinct count 878 - Null count 153 | Column Description: the title of the recipe \n\tsubtitle TEXT, -- Example Values: `('with Banana Cream Whip',)`, `('a La Creme',)`, `('with Raspberry Yogurt Mint Sauce',)` | Value Statics: Total count 35 - Distinct count 35 - Null count 996 | Column Description: the subtitle of the recipe \n\tservings INTEGER, -- Example Values: `(10,)`, `(4,)`, `(8,)` | Value Statics: Total count 878 - Distinct count 22 - Null count 153 | Column Description: the number of people the recipe can serve \n\tyield_unit TEXT, -- Example Values: `('1 pie',)`, `('8 tarts',)`, `('2 quarts',)` | Value Statics: Total count 119 - Distinct count 57 - Null count 912 | Column Name Meaning: yield unit | Column Description: the unit of the yield for the recipe \n\tprep_min INTEGER, -- Example Values: `(20,)`, `(5,)`, `(10,)` | Value Statics: Total count 878 - Distinct count 42 - Null count 153 | Column Name Meaning: preparation minute | Column Description: the preparation minute of the recipe \n\tcook_min INTEGER, -- Example Values: `(8,)`, `(2,)`, `(13,)` | Value Statics: Total count 878 - Distinct count 62 - Null count 153 | Column Name Meaning: cooked minute | Column Description: the cooked minute of the recipe \n\tstnd_min INTEGER, -- Example Values: `(305,)`, `(65,)`, `(0,)` | Value Statics: Total count 878 - Distinct count 38 - Null count 153 | Column Name Meaning: stand minute | Column Description: the stand minute of the price | Value Description: The stand minute stands for the time to take the dish away from the heat source. the total time of the recipe = prep_min + cook_min + stnd_min\n\tsource TEXT, -- Example Values: `('The California Tree Fruit Agreement',)`, `('Produce for Better Health Foundation and 5 a Day`, `('The California Apricot Advisory Board',)` | Value Statics: Total count 639 - Distinct count 109 - Null count 392 | Column Description: the source of the recipe \n\tintro TEXT, --| Column Name Meaning: introduction | Column Description: the introduction of the recipe \n\tdirections TEXT, -- | Column Description: the directions of the recipe \n);\n\nCREATE TABLE Nutrition\n(\n\trecipe_id INTEGER primary key,\n\tprotein REAL, -- Example Values: `(5.47,)`, `(5.7,)`, `(4.9,)` | Value Statics: Total count 878 - Distinct count 708 - Null count 0 | Column Description: the protein content in the recipe \n\tcarbo REAL, -- Example Values: `(41.29,)`, `(23.75,)`, `(26.88,)` | Value Statics: Total count 878 - Distinct count 815 - Null count 0 | Column Description: the carbo content in the recipe \n\talcohol REAL, -- Example Values: `(0.0,)`, `(1.93,)`, `(2.7,)` | Value Statics: Total count 878 - Distinct count 51 - Null count 0 | Column Description: the alcohol content in the recipe \n\ttotal_fat REAL, -- Example Values: `(11.53,)`, `(1.08,)`, `(1.1,)` | Value Statics: Total count 878 - Distinct count 614 - Null count 0 | Column Name Meaning: total fat | Column Description: the total fat content in the recipe | Value Description: higher --> higher possibility to gain weight\n\tsat_fat REAL, -- Example Values: `(2.21,)`, `(0.58,)`, `(0.06,)` | Value Statics: Total count 878 - Distinct count 395 - Null count 0 | Column Name Meaning: saturated fat | Column Description: the saturated fat content in the recipe | Value Description: unsaturated fat = total_fat - saturated fat\n\tcholestrl REAL, -- Example Values: `(1.39,)`, `(3.48,)`, `(3.46,)` | Value Statics: Total count 878 - Distinct count 444 - Null count 0 | Column Name Meaning: cholesterol | Column Description: the cholesterol content in the recipe \n\tsodium REAL, -- Example Values: `(260.78,)`, `(46.17,)`, `(41.79,)` | Value Statics: Total count 878 - Distinct count 827 - Null count 0 | Column Description: the sodium content in the recipe | Value Description: Salt/Sodium-Free - Less than 5 mg of sodium per serving Very Low Sodium - 35 mg of sodium or less per serving Low Sodium -140 mg of sodium or less per serving Reduced Sodium - At least 25% less sodium than the regular product Light in Sodium or Lightly Salted - At least 50% less sodium than the regular product No-Salt-Added or Unsalted - No salt is added during processing - but these products may not be salt/sodium-free unless stated\n\tiron REAL, -- Example Values: `(0.81,)`, `(0.57,)`, `(0.37,)` | Value Statics: Total count 878 - Distinct count 405 - Null count 0 | Column Description: the iron content in the recipe | Value Description: if iron > 20mg, it will lead to • constipation • feeling sick • being sick • stomach pain question could mention any of functions listed before.\n\tvitamin_c REAL, -- Example Values: `(8.89,)`, `(13.02,)`, `(6.13,)` | Value Statics: Total count 878 - Distinct count 716 - Null count 0 | Column Name Meaning: vitamin c | Column Description: the vitamin c content in the recipe | Value Description: Vitamin C, also known as ascorbic acid, if the VC is higher, it will: • helping to protect cells and keeping them healthy • maintaining healthy skin, blood vessels, bones and cartilage • helping with wound healing question could mention any of functions listed before.\n\tvitamin_a REAL, -- Example Values: `(586.2,)`, `(2738.24,)`, `(1521.1,)` | Value Statics: Total count 878 - Distinct count 785 - Null count 0 | Column Name Meaning: vitamin a | Column Description: the vitamin a content in the recipe | Value Description: higher --> beneficial to • helping your body's natural defense against illness and infection (the immune system) work properly • helping vision in dim light • keeping skin and the lining of some parts of the body, such as the nose, healthy question could mention any of functions listed before.\n\tfiber REAL, -- Example Values: `(0.87,)`, `(0.62,)`, `(0.34,)` | Value Statics: Total count 878 - Distinct count 299 - Null count 0 | Column Description: the fiber a content in the recipe \n\tpcnt_cal_carb REAL, -- Example Values: `(56.8,)`, `(67.38,)`, `(78.45,)` | Value Statics: Total count 878 - Distinct count 830 - Null count 0 | Column Name Meaning: percentage calculation carbo | Column Description: percentage of carbo in total nutrient composition \n\tpcnt_cal_fat REAL, -- Example Values: `(35.68,)`, `(6.89,)`, `(7.24,)` | Value Statics: Total count 878 - Distinct count 800 - Null count 0 | Column Name Meaning: percentage calculation fat | Column Description: percentage of fat in total nutrient composition \n\tpcnt_cal_prot REAL, -- Example Values: `(7.53,)`, `(16.17,)`, `(14.3,)` | Value Statics: Total count 878 - Distinct count 775 - Null count 0 | Column Name Meaning: percentage calculation protein | Column Description: percentage of protein in total nutrient composition \n\tcalories REAL, -- Example Values: `(290.79,)`, `(141.01,)`, `(137.06,)` | Value Statics: Total count 878 - Distinct count 864 - Null count 0 | Column Description: the calories of the recipe \n\tforeign key (recipe_id) references Recipe(recipe_id),\n);\n\nCREATE TABLE Quantity\n(\n\tquantity_id INTEGER primary key,\n\trecipe_id INTEGER, -- Example Values: `(214,)`, `(215,)`, `(216,)` | Value Statics: Total count 5092 - Distinct count 843 - Null count 24 | Column Name Meaning: recipe id | Column Description: the id of the recipe \n\tingredient_id INTEGER, -- Example Values: `(1613,)`, `(3334,)`, `(2222,)` | Value Statics: Total count 5092 - Distinct count 1103 - Null count 24 | Column Name Meaning: ingredient id | Column Description: the id of the ingredient \n\tmax_qty REAL, -- Example Values: `(2.0,)`, `(0.25,)`, `(0.5,)` | Value Statics: Total count 5092 - Distinct count 62 - Null count 24 | Column Name Meaning: maximum quantity | Column Description: the max quantity of the ingredient \n\tmin_qty REAL, -- Example Values: `(2.0,)`, `(0.25,)`, `(0.5,)` | Value Statics: Total count 5092 - Distinct count 62 - Null count 24 | Column Name Meaning: minimum quantity | Column Description: the min quantity of the ingredient | Value Description: If max_qty equals to min_qty, it means that the ingredient must be rationed.\n\tunit TEXT, -- Example Values: `('cup(s)',)`, `('teaspoon(s)',)`, `('14 oz. can(s)',)` | Value Statics: Total count 5092 - Distinct count 46 - Null count 24 | Column Description: the unit of the ingredient \n\tpreparation TEXT, -- Example Values: `('melted',)`, `('or water',)`, `('divided',)` | Value Statics: Total count 1902 - Distinct count 567 - Null count 3214 | Value Description: 'No data' means the ingredient doesn't need preprocessing.\n\toptional TEXT, -- Example Values: `FALSE`, `TRUE` | Value Statics: Total count 5092 - Distinct count 2 - Null count 24 | Column Description: whether the ingredient is optional \n\tforeign key (recipe_id) references Recipe(recipe_id),\n\tforeign key (ingredient_id) references Ingredient(ingredient_id),\n\tforeign key (recipe_id) references Nutrition(recipe_id),\n\tforeign key (recipe_id) references Nutrition(recipe_id),\n);" }
human_resources
{ "db_schema": "CREATE TABLE location\n(\n\tlocationID INTEGER constraint location_pk primary key,\n\tlocationcity TEXT, -- Example Values: `Atlanta`, `Boston`, `Chicago`, `Miami`, `New York City` | Value Statics: Total count 8 - Distinct count 8 - Null count 0 | Column Name Meaning: location city | Column Description: the location city \n\taddress TEXT, -- Example Values: `450 Peachtree Rd`, `3 Commons Blvd`, `500 Loop Highway`, `210 Biscayne Blvd`, `1650 Washington Blvd` | Value Statics: Total count 8 - Distinct count 8 - Null count 0 | Column Description: the detailed address of the location \n\tstate TEXT, -- Example Values: `GA`, `MA`, `IL`, `FL`, `NY` | Value Statics: Total count 8 - Distinct count 8 - Null count 0 | Column Description: the state abbreviation \n\tzipcode INTEGER, -- Example Values: `30316`, `2190`, `60620`, `33103`, `15648` | Value Statics: Total count 8 - Distinct count 8 - Null count 0 | Column Name Meaning: zip code | Column Description: zip code of the location \n\tofficephone TEXT, -- Example Values: `(404)333-5555`, `(617)123-4444`, `(312)444-6666`, `(305)787-9999`, `(518)256-3100` | Value Statics: Total count 8 - Distinct count 8 - Null count 0 | Column Name Meaning: office phone | Column Description: the office phone number of the location \n);\n\nCREATE TABLE position\n(\n\tpositionID INTEGER constraint position_pk primary key,\n\tpositiontitle TEXT, -- Example Values: `Account Representative`, `Manager`, `Trainee`, `Regional Manager` | Value Statics: Total count 4 - Distinct count 4 - Null count 0 | Column Name Meaning: position title | Column Description: the position title \n\teducationrequired TEXT, -- Example Values: `4 year degree`, `2 year degree`, `6 year degree` | Value Statics: Total count 4 - Distinct count 3 - Null count 0 | Column Name Meaning: education required | Column Description: the required education year | Value Description: Generally, more complex work requires more education year.\n\tminsalary TEXT, -- Example Values: `US$25,000.00`, `US$50,000.00`, `US$18,000.00`, `US$100,000.00` | Value Statics: Total count 4 - Distinct count 4 - Null count 0 | Column Name Meaning: minimum salary | Column Description: minimum salary of this position \n\tmaxsalary TEXT, -- Example Values: `US$75,000.00`, `US$150,000.00`, `US$25,000.00`, `US$250,000.00` | Value Statics: Total count 4 - Distinct count 4 - Null count 0 | Column Name Meaning: maximum salary | Column Description: maximum salary of this position \n);\n\nCREATE TABLE employee\n(\n\tssn TEXT primary key,\n\tlastname TEXT, -- Example Values: `('Milgrom',)`, `('Adams',)`, `('Wood',)` | Value Statics: Total count 25 - Distinct count 24 - Null count 0 | Column Name Meaning: last name | Column Description: employee's last name \n\tfirstname TEXT, -- Example Values: `Patricia`, `Sandy`, `Emily`, `Harold`, `James` | Value Statics: Total count 25 - Distinct count 19 - Null count 0 | Column Name Meaning: first name | Column Description: employee's first name | Value Description: employee's full name is firstname lastname .\n\thiredate TEXT, -- Example Values: `('10/1/04',)`, `('1/15/01',)`, `('3/12/97',)` | Value Statics: Total count 25 - Distinct count 24 - Null count 0 | Column Name Meaning: hire date | Column Description: employee's hire date | Value Description: yyyy-mm-dd\n\tsalary TEXT, -- Example Values: `('US$57,500.00',)`, `('US$19,500.00',)`, `('US$69,000.00',)` | Value Statics: Total count 25 - Distinct count 22 - Null count 0 | Column Description: employee's salary | Value Description: the unit is dollar per year\n\tgender TEXT, -- Example Values: `F`, `M` | Value Statics: Total count 24 - Distinct count 2 - Null count 1 | Column Description: employee's gender \n\tperformance TEXT, -- Example Values: `Average`, `Good`, `Poor` | Value Statics: Total count 23 - Distinct count 3 - Null count 2 | Column Description: employee's performance | Value Description: Good / Average/ Poor\n\tpositionID INTEGER, -- Example Values: `2`, `3`, `1`, `4` | Value Statics: Total count 25 - Distinct count 4 - Null count 0 | Column Name Meaning: position id | Column Description: the unique id for position \n\tlocationID INTEGER, -- Example Values: `2`, `1`, `5`, `3`, `4` | Value Statics: Total count 25 - Distinct count 7 - Null count 0 | Column Name Meaning: location id | Column Description: the unique id for location \n\tforeign key (locationID) references location(locationID),\n\tforeign key (positionID) references position(positionID),\n);" }
bike_share_1
{ "db_schema": "CREATE TABLE station\n(\n\tid INTEGER not null primary key,\n\tname TEXT, -- Example Values: `('San Jose Diridon Caltrain Station',)`, `('San Jose Civic Center',)`, `('Santa Clara at Almaden',)` | Value Statics: Total count 70 - Distinct count 70 - Null count 0 | Column Description: Station name \n\tlat REAL, -- Example Values: `(37.329732,)`, `(37.330698,)`, `(37.333988,)` | Value Statics: Total count 70 - Distinct count 70 - Null count 0 | Column Name Meaning: latitude | Column Description: latitude | Value Description: Can represent the location of the station when combined with longitude.\n\tlong REAL, -- Example Values: `(-121.90178200000001,)`, `(-121.888979,)`, `(-121.894902,)` | Value Statics: Total count 70 - Distinct count 70 - Null count 0 | Column Name Meaning: longitude | Column Description: longitude | Value Description: Can represent the location of the station when combined with latitude.\n\tdock_count INTEGER, -- Example Values: `27`, `15`, `11`, `19`, `25` | Value Statics: Total count 70 - Distinct count 6 - Null count 0 | Column Name Meaning: dock count | Column Description: number of bikes the station can hold \n\tcity TEXT, -- Example Values: `San Jose`, `Redwood City`, `Mountain View`, `Palo Alto`, `San Francisco` | Value Statics: Total count 70 - Distinct count 5 - Null count 0 \n\tinstallation_date TEXT, -- Example Values: `('8/6/2013',)`, `('8/5/2013',)`, `('8/7/2013',)` | Value Statics: Total count 70 - Distinct count 17 - Null count 0 | Column Name Meaning: installation date | Column Description: installation date \n);\n\nCREATE TABLE status\n(\n\tstation_id INTEGER, -- Example Values: `(2,)`, `(3,)`, `(4,)` | Value Statics: Total count 100000 - Distinct count 1 - Null count 0 | Column Name Meaning: station id | Column Description: station id \n\tbikes_available INTEGER, -- Example Values: `(2,)`, `(3,)`, `(4,)` | Value Statics: Total count 100000 - Distinct count 24 - Null count 0 | Column Description: number of available bikes | Value Description: 0 means no bike can be borrowed.\n\tdocks_available INTEGER, -- Example Values: `(25,)`, `(24,)`, `(23,)` | Value Statics: Total count 100000 - Distinct count 24 - Null count 0 | Column Description: number of available docks | Value Description: 0 means no bike can be returned to this station.\n\ttime TEXT, -- Example Values: `('2013/08/29 12:06:01',)`, `('2013/08/29 12:07:01',)`, `('2013/08/29 12:08:01',)` | Value Statics: Total count 100000 - Distinct count 100000 - Null count 0 \n);\n\nCREATE TABLE trip\n(\n\tid INTEGER not null primary key,\n\tduration INTEGER, -- Example Values: `(174,)`, `(1067,)`, `(1131,)` | Value Statics: Total count 100000 - Distinct count 6905 - Null count 0 | Column Description: The duration of the trip in seconds. | Value Description: duration = end_date - start_date\n\tstart_date TEXT, -- Example Values: `('8/29/2013 9:08',)`, `('8/29/2013 9:24',)`, `('8/29/2013 9:25',)` | Value Statics: Total count 100000 - Distinct count 59885 - Null count 0 | Column Name Meaning: start date | Column Description: start date \n\tstart_station_name TEXT, -- Example Values: `('2nd at South Park',)`, `('South Van Ness at Market',)`, `('Redwood City Caltrain Station',)` | Value Statics: Total count 100000 - Distinct count 64 - Null count 0 | Column Name Meaning: start station name | Column Description: The name of the start station | Value Description: It represents the station name the bike borrowed from.\n\tstart_station_id INTEGER, -- Example Values: `(64,)`, `(66,)`, `(22,)` | Value Statics: Total count 100000 - Distinct count 64 - Null count 0 | Column Name Meaning: start station id | Column Description: The ID of the start station \n\tend_date TEXT, -- Example Values: `('8/29/2013 9:11',)`, `('8/29/2013 9:42',)`, `('8/29/2013 9:43',)` | Value Statics: Total count 100000 - Distinct count 58842 - Null count 0 | Column Name Meaning: end date | Column Description: end date \n\tend_station_name TEXT, -- Example Values: `('2nd at South Park',)`, `('San Francisco Caltrain 2 (330 Townsend)',)`, `('Redwood City Caltrain Station',)` | Value Statics: Total count 100000 - Distinct count 64 - Null count 0 | Column Name Meaning: end station name | Column Description: The name of the end station | Value Description: It represents the station name the bike returned to.\n\tend_station_id INTEGER, -- Example Values: `(64,)`, `(69,)`, `(22,)` | Value Statics: Total count 100000 - Distinct count 64 - Null count 0 | Column Name Meaning: end station id | Column Description: The ID of the end station \n\tbike_id INTEGER, -- Example Values: `(288,)`, `(321,)`, `(317,)` | Value Statics: Total count 100000 - Distinct count 689 - Null count 0 | Column Name Meaning: bike id | Column Description: The ID of the bike \n\tsubscription_type TEXT, -- Example Values: `Subscriber`, `Customer` | Value Statics: Total count 100000 - Distinct count 2 - Null count 0 | Column Name Meaning: subscription type | Column Description: subscription type | Value Description: Allowed input: Subscriber, Customer.\n\tzip_code INTEGER, -- Example Values: `(94114,)`, `(94703,)`, `(94115,)` | Value Statics: Total count 95103 - Distinct count 2425 - Null count 4897 | Column Name Meaning: zip code | Column Description: zip code \n);\n\nCREATE TABLE weather\n(\n\tdate TEXT, -- Example Values: `('8/29/2013',)`, `('8/30/2013',)`, `('8/31/2013',)` | Value Statics: Total count 3665 - Distinct count 733 - Null count 0 \n\tmax_temperature_f INTEGER, -- Example Values: `(74,)`, `(78,)`, `(71,)` | Value Statics: Total count 3661 - Distinct count 55 - Null count 4 | Column Name Meaning: max temperature in Fahrenheit degree | Column Description: max temperature in Fahrenheit degree | Value Description: It represents the hottest temperature.\n\tmean_temperature_f INTEGER, -- Example Values: `(68,)`, `(69,)`, `(64,)` | Value Statics: Total count 3661 - Distinct count 46 - Null count 4 | Column Name Meaning: mean temperature in Fahrenheit degree | Column Description: mean temperature in Fahrenheit degree \n\tmin_temperature_f INTEGER, -- Example Values: `(61,)`, `(60,)`, `(57,)` | Value Statics: Total count 3661 - Distinct count 45 - Null count 4 | Column Name Meaning: min temperature in Fahrenheit degree | Column Description: min temperature in Fahrenheit degree | Value Description: It represents the coldest temperature.\n\tmax_dew_point_f INTEGER, -- Example Values: `(61,)`, `(57,)`, `(60,)` | Value Statics: Total count 3611 - Distinct count 45 - Null count 54 | Column Name Meaning: max dew point in Fahrenheit degree | Column Description: max dew point in Fahrenheit degree \n\tmean_dew_point_f INTEGER, -- Example Values: `(58,)`, `(56,)`, `(60,)` | Value Statics: Total count 3611 - Distinct count 51 - Null count 54 | Column Name Meaning: mean dew point in Fahrenheit degree | Column Description: mean dew point in Fahrenheit degree \n\tmin_dew_point_f INTEGER, -- Example Values: `(56,)`, `(54,)`, `(53,)` | Value Statics: Total count 3611 - Distinct count 56 - Null count 54 | Column Name Meaning: min dew point in Fahrenheit degree | Column Description: min dew point in Fahrenheit degree \n\tmax_humidity INTEGER, -- Example Values: `(93,)`, `(90,)`, `(87,)` | Value Statics: Total count 3611 - Distinct count 60 - Null count 54 | Column Name Meaning: max humidity | Column Description: max humidity \n\tmean_humidity INTEGER, -- Example Values: `(75,)`, `(70,)`, `(68,)` | Value Statics: Total count 3611 - Distinct count 72 - Null count 54 | Column Name Meaning: mean humidity | Column Description: mean humidity \n\tmin_humidity INTEGER, -- Example Values: `(57,)`, `(50,)`, `(49,)` | Value Statics: Total count 3611 - Distinct count 77 - Null count 54 | Column Name Meaning: min humidity | Column Description: min humidity \n\tmax_sea_level_pressure_inches REAL, -- Example Values: `(30.07,)`, `(30.05,)`, `(30.0,)` | Value Statics: Total count 3664 - Distinct count 82 - Null count 1 | Column Name Meaning: max sea level pressure in inches | Column Description: max sea level pressure in inches \n\tmean_sea_level_pressure_inches REAL, -- Example Values: `(30.02,)`, `(30.0,)`, `(29.96,)` | Value Statics: Total count 3664 - Distinct count 80 - Null count 1 | Column Name Meaning: mean sea level pressure in inches | Column Description: mean sea level pressure in inches \n\tmin_sea_level_pressure_inches REAL, -- Example Values: `(29.97,)`, `(29.93,)`, `(29.92,)` | Value Statics: Total count 3664 - Distinct count 89 - Null count 1 | Column Name Meaning: min sea level pressure in inches | Column Description: min sea level pressure in inches \n\tmax_visibility_miles INTEGER, -- Example Values: `10`, `9`, `8`, `20`, `15` | Value Statics: Total count 3652 - Distinct count 11 - Null count 13 | Column Name Meaning: max visibility in miles | Column Description: max visibility in miles \n\tmean_visibility_miles INTEGER, -- Example Values: `10`, `9`, `8`, `5`, `7` | Value Statics: Total count 3652 - Distinct count 17 - Null count 13 | Column Name Meaning: mean visibility in miles | Column Description: mean visibility in miles \n\tmin_visibility_miles INTEGER, -- Example Values: `10`, `7`, `6`, `9`, `2` | Value Statics: Total count 3652 - Distinct count 13 - Null count 13 | Column Name Meaning: min visibility in miles | Column Description: min visibility in miles \n\tmax_wind_Speed_mph INTEGER, -- Example Values: `(23,)`, `(29,)`, `(26,)` | Value Statics: Total count 3664 - Distinct count 49 - Null count 1 | Column Name Meaning: max wind Speed in mph | Column Description: max wind Speed in mph \n\tmean_wind_speed_mph INTEGER, -- Example Values: `(11,)`, `(13,)`, `(15,)` | Value Statics: Total count 3664 - Distinct count 24 - Null count 1 | Column Name Meaning: mean wind Speed in mph | Column Description: mean wind Speed in mph \n\tmax_gust_speed_mph INTEGER, -- Example Values: `(28,)`, `(35,)`, `(31,)` | Value Statics: Total count 2766 - Distinct count 45 - Null count 899 | Column Name Meaning: max gust Speed in mph | Column Description: max gust Speed in mph \n\tprecipitation_inches TEXT, -- Example Values: `('0',)`, `('0.23',)`, `('T',)` | Value Statics: Total count 3665 - Distinct count 86 - Null count 0 | Column Name Meaning: precipitation in inches | Column Description: precipitation in inches \n\tcloud_cover INTEGER, -- Example Values: `4`, `2`, `6`, `3`, `0` | Value Statics: Total count 3664 - Distinct count 9 - Null count 1 | Column Name Meaning: cloud cover | Column Description: cloud cover \n\tevents TEXT, -- Example Values: ``, `Fog`, `Rain`, `Fog-Rain`, `rain` | Value Statics: Total count 3665 - Distinct count 6 - Null count 0 | Value Description: Allowed input: [null], Rain, other\n\twind_dir_degrees INTEGER, -- Example Values: `(286,)`, `(291,)`, `(284,)` | Value Statics: Total count 3664 - Distinct count 330 - Null count 1 | Column Name Meaning: wind direction degrees | Column Description: wind direction degrees \n\tzip_code TEXT, -- Example Values: `94107`, `94063`, `94301`, `94041`, `95113` | Value Statics: Total count 3665 - Distinct count 5 - Null count 0 | Column Name Meaning: zip code | Column Description: zip code \n);" }
movie_3
{ "db_schema": "CREATE TABLE film_text\n(\n\tfilm_id INTEGER not null primary key,\n\ttitle TEXT not null, -- Example Values: `('ACADEMY DINOSAUR',)`, `('ACE GOLDFINGER',)`, `('ADAPTATION HOLES',)` | Value Statics: Total count 1000 - Distinct count 1000 - Null count 0 | Column Description: title of the film \n\tdescription TEXT null, -- | Column Description: main content of the film \n);\n\nCREATE TABLE actor\n(\n\tactor_id INTEGER primary key autoincrement,\n\tfirst_name TEXT not null, -- Example Values: `('PENELOPE',)`, `('NICK',)`, `('ED',)` | Value Statics: Total count 200 - Distinct count 128 - Null count 0 | Column Name Meaning: first name | Column Description: First name of the actor \n\tlast_name TEXT not null, -- Example Values: `('GUINESS',)`, `('WAHLBERG',)`, `('CHASE',)` | Value Statics: Total count 200 - Distinct count 121 - Null count 0 | Column Name Meaning: last name | Column Description: Last name of the actor \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 04:34:33.0',)` | Value Statics: Total count 200 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n);\n\nCREATE TABLE address\n(\n\taddress_id INTEGER primary key autoincrement,\n\taddress TEXT not null, -- Example Values: `('47 MySakila Drive',)`, `('28 MySQL Boulevard',)`, `('23 Workhaven Lane',)` | Value Statics: Total count 603 - Distinct count 603 - Null count 0 | Column Description: The first address line \n\taddress2 TEXT, -- Example Values: `` | Value Statics: Total count 599 - Distinct count 1 - Null count 4 | Column Name Meaning: address 2 | Column Description: the second address line | Value Description: address2 is the additional address if any\n\tdistrict TEXT not null, -- Example Values: `('Alberta',)`, `('QLD',)`, `('Nagasaki',)` | Value Statics: Total count 603 - Distinct count 378 - Null count 0 \n\tcity_id INTEGER not null references city on update cascade, -- Example Values: `(300,)`, `(576,)`, `(463,)` | Value Statics: Total count 603 - Distinct count 599 - Null count 0 \n\tpostal_code TEXT, -- Example Values: `('',)`, `('35200',)`, `('17886',)` | Value Statics: Total count 603 - Distinct count 597 - Null count 0 | Column Name Meaning: postal code | Value Description: a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\n\tphone TEXT not null, -- Example Values: `('',)`, `('14033335568',)`, `('6172235589',)` | Value Statics: Total count 603 - Distinct count 602 - Null count 0 | Column Description: phone number \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 04:45:30.0',)` | Value Statics: Total count 603 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n);\n\nCREATE TABLE category\n(\n\tcategory_id INTEGER primary key autoincrement,\n\tname TEXT not null, -- Example Values: `Action`, `Animation`, `Children`, `Classics`, `Comedy` | Value Statics: Total count 16 - Distinct count 16 - Null count 0 | Column Description: name of the category \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 04:46:27.0',)` | Value Statics: Total count 16 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n);\n\nCREATE TABLE city\n(\n\tcity_id INTEGER primary key autoincrement,\n\tcity TEXT not null, -- Example Values: `('A Corua (La Corua)',)`, `('Abha',)`, `('Abu Dhabi',)` | Value Statics: Total count 600 - Distinct count 599 - Null count 0 | Column Description: name of the city \n\tcountry_id INTEGER not null references country on update cascade, -- Example Values: `(87,)`, `(82,)`, `(101,)` | Value Statics: Total count 600 - Distinct count 109 - Null count 0 | Column Name Meaning: country id | Column Description: number identifying the country which the city belongs to \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 04:45:25.0',)` | Value Statics: Total count 600 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n);\n\nCREATE TABLE country\n(\n\tcountry_id INTEGER primary key autoincrement,\n\tcountry TEXT not null, -- Example Values: `('Afghanistan',)`, `('Algeria',)`, `('American Samoa',)` | Value Statics: Total count 109 - Distinct count 109 - Null count 0 | Column Name Meaning: the name of the country | Column Description: number identifying the country | Value Description: • Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...) • Asia: (Afghanistan, Armenia, Azerbaijan, Bahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...) • Oceania (American Samoa, Australia, French Polynesia...) • North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...) • South America (Argentina, Bolivia, Brazil, Chile, Colombia, Ecuador, French Guiana....) • Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...) details: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent question can mention i.e., Europe instead of Austria, etc.\n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 04:44:00.0',)` | Value Statics: Total count 109 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n);\n\nCREATE TABLE customer\n(\n\tcustomer_id INTEGER primary key autoincrement,\n\tstore_id INTEGER not null references store on update cascade, -- Example Values: `1`, `2` | Value Statics: Total count 599 - Distinct count 2 - Null count 0 | Column Name Meaning: store id | Column Description: unique id number identifying the store \n\tfirst_name TEXT not null, -- Example Values: `('MARY',)`, `('PATRICIA',)`, `('LINDA',)` | Value Statics: Total count 599 - Distinct count 591 - Null count 0 | Column Name Meaning: first name | Column Description: First name of the customer \n\tlast_name TEXT not null, -- Example Values: `('SMITH',)`, `('JOHNSON',)`, `('WILLIAMS',)` | Value Statics: Total count 599 - Distinct count 599 - Null count 0 | Column Name Meaning: last name | Column Description: Last name of the customer \n\temail TEXT, -- Example Values: `('MARY.SMITH@sakilacustomer.org',)`, `('PATRICIA.JOHNSON@sakilacustomer.org',)`, `('LINDA.WILLIAMS@sakilacustomer.org',)` | Value Statics: Total count 599 - Distinct count 599 - Null count 0 | Column Description: Email address of the customer \n\taddress_id INTEGER not null references address on update cascade, -- Example Values: `(5,)`, `(6,)`, `(7,)` | Value Statics: Total count 599 - Distinct count 599 - Null count 0 | Column Name Meaning: address id | Column Description: Address id number of the customer. \n\tactive INTEGER default 1 not null, -- Example Values: `1`, `0` | Value Statics: Total count 599 - Distinct count 2 - Null count 0 | Column Description: Wether the customer is active or not. | Value Description: 1: active 0: not active\n\tcreate_date DATETIME not null, -- Example Values: `('2006-02-14 22:04:36.0',)`, `('2006-02-14 22:04:37.0',)` | Value Statics: Total count 599 - Distinct count 2 - Null count 0 | Column Name Meaning: create date | Column Description: The date when the record is created. \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 04:57:20.0',)` | Value Statics: Total count 599 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n);\n\nCREATE TABLE film\n(\n\tfilm_id INTEGER primary key autoincrement,\n\ttitle TEXT not null, -- Example Values: `('ACADEMY DINOSAUR',)`, `('ACE GOLDFINGER',)`, `('ADAPTATION HOLES',)` | Value Statics: Total count 1000 - Distinct count 1000 - Null count 0 | Column Description: title of the film \n\tdescription TEXT, -- | Column Description: main content of the film \n\trelease_year TEXT, -- Example Values: `2006` | Value Statics: Total count 1000 - Distinct count 1 - Null count 0 | Column Name Meaning: release year | Column Description: the year when the film is released \n\tlanguage_id INTEGER not null references language on update cascade, -- Example Values: `1` | Value Statics: Total count 1000 - Distinct count 1 - Null count 0 | Column Name Meaning: language id | Column Description: the language id of the film \n\toriginal_language_id INTEGER references language on update cascade, --| Column Name Meaning: original language id | Column Description: the original language id of the film \n\trental_duration INTEGER default 3 not null, -- Example Values: `6`, `3`, `7`, `5`, `4` | Value Statics: Total count 1000 - Distinct count 5 - Null count 0 | Column Name Meaning: rental duration | Column Description: how long this film can be rent at once | Value Description: days price / day = rental_rate / retal_duration\n\trental_rate REAL default 4.99 not null, -- Example Values: `0.99`, `4.99`, `2.99` | Value Statics: Total count 1000 - Distinct count 3 - Null count 0 | Column Name Meaning: rental rate | Column Description: the rate of renting this film | Value Description: higher -> expensive\n\tlength INTEGER, -- Example Values: `(86,)`, `(48,)`, `(50,)` | Value Statics: Total count 1000 - Distinct count 140 - Null count 0 | Column Description: Duration time of the film screening | Value Description: minutes\n\treplacement_cost REAL default 19.99 not null, -- Example Values: `(20.99,)`, `(12.99,)`, `(18.99,)` | Value Statics: Total count 1000 - Distinct count 21 - Null count 0 | Column Name Meaning: replacement cost | Column Description: cost of replacing this film \n\trating TEXT default 'G', -- Example Values: `PG`, `G`, `NC-17`, `PG-13`, `R` | Value Statics: Total count 1000 - Distinct count 5 - Null count 0 | Column Description: The Motion Picture Association film rating | Value Description: G ?General Audiences PG ? Parental Guidance Suggested PG-13 ? Parents Strongly Cautioned R ? Restricted NC-17 ? Adults Only\n\tspecial_features TEXT, -- Example Values: `Deleted Scenes,Behind the Scenes`, `Trailers,Deleted Scenes`, `Commentaries,Behind the Scenes`, `Deleted Scenes`, `Trailers` | Value Statics: Total count 1000 - Distinct count 15 - Null count 0 | Column Name Meaning: special features | Column Description: features of this film \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 05:03:42.0',)` | Value Statics: Total count 1000 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n);\n\nCREATE TABLE film_actor\n(\n\tactor_id INTEGER not null references actor on update cascade, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 5462 - Distinct count 200 - Null count 0 | Column Name Meaning: actor id | Column Description: unique id number identifying the actor \n\tfilm_id INTEGER not null references film on update cascade, -- Example Values: `(1,)`, `(23,)`, `(25,)` | Value Statics: Total count 5462 - Distinct count 997 - Null count 0 | Column Name Meaning: film id | Column Description: id number identifying the film \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 05:05:03.0',)` | Value Statics: Total count 5462 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n\tprimary key (actor_id, film_id),\n);\n\nCREATE TABLE film_category\n(\n\tfilm_id INTEGER not null references film on update cascade, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 1000 - Distinct count 1000 - Null count 0 | Column Name Meaning: film id | Column Description: unique id number identifying the film \n\tcategory_id INTEGER not null references category on update cascade, -- Example Values: `6`, `11`, `8`, `9`, `5` | Value Statics: Total count 1000 - Distinct count 16 - Null count 0 | Column Name Meaning: category id | Column Description: id number identifying the category \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 05:07:09.0',)` | Value Statics: Total count 1000 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n\tprimary key (film_id, category_id),\n);\n\nCREATE TABLE inventory\n(\n\tinventory_id INTEGER primary key autoincrement,\n\tfilm_id INTEGER not null references film on update cascade, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 4581 - Distinct count 958 - Null count 0 | Column Name Meaning: film id | Column Description: unique id number identifying the film \n\tstore_id INTEGER not null references store on update cascade, -- Example Values: `1`, `2` | Value Statics: Total count 4581 - Distinct count 2 - Null count 0 | Column Name Meaning: store id | Column Description: id of the store \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 05:09:17.0',)` | Value Statics: Total count 4581 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: the last update time of the film \n);\n\nCREATE TABLE language\n(\n\tlanguage_id INTEGER primary key autoincrement,\n\tname TEXT not null, -- Example Values: `English`, `Italian`, `Japanese`, `Mandarin`, `French` | Value Statics: Total count 6 - Distinct count 6 - Null count 0 | Column Description: name of the language \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 05:02:19.0',)` | Value Statics: Total count 6 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n);\n\nCREATE TABLE payment\n(\n\tpayment_id INTEGER primary key autoincrement,\n\tcustomer_id INTEGER not null references customer on update cascade, -- Example Values: `(1,)`, `(2,)`, `(3,)` | Value Statics: Total count 16049 - Distinct count 599 - Null count 0 | Column Name Meaning: customer id | Column Description: unique id number identifying the customer \n\tstaff_id INTEGER not null references staff on update cascade, -- Example Values: `1`, `2` | Value Statics: Total count 16049 - Distinct count 2 - Null count 0 | Column Name Meaning: staff id | Column Description: unique id number identifying the staff \n\trental_id INTEGER references rental on update cascade on delete set null, -- Example Values: `(76,)`, `(573,)`, `(1185,)` | Value Statics: Total count 16044 - Distinct count 16044 - Null count 5 | Column Name Meaning: rental id | Column Description: unique id number identifying the rental \n\tamount REAL not null, -- Example Values: `2.99`, `0.99`, `5.99`, `9.99`, `4.99` | Value Statics: Total count 16049 - Distinct count 19 - Null count 0 | Column Description: unique id number identifying the amount \n\tpayment_date DATETIME not null, -- Example Values: `('2005-05-25 11:30:37.0',)`, `('2005-05-28 10:35:23.0',)`, `('2005-06-15 00:54:12.0',)` | Value Statics: Total count 16049 - Distinct count 15819 - Null count 0 | Column Name Meaning: payment date | Column Description: the date when the payment ocurs \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 22:12:30.0',)`, `('2006-02-15 22:12:31.0',)`, `('2006-02-15 22:12:32.0',)` | Value Statics: Total count 16049 - Distinct count 704 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n);\n\nCREATE TABLE rental\n(\n\trental_id INTEGER primary key autoincrement,\n\trental_date DATETIME not null, -- Example Values: `('2005-05-24 22:53:30.0',)`, `('2005-05-24 22:54:33.0',)`, `('2005-05-24 23:03:39.0',)` | Value Statics: Total count 16044 - Distinct count 15815 - Null count 0 | Column Name Meaning: rental date | Column Description: date when the rental occurs \n\tinventory_id INTEGER not null references inventory on update cascade, -- Example Values: `(367,)`, `(1525,)`, `(1711,)` | Value Statics: Total count 16044 - Distinct count 4580 - Null count 0 | Column Name Meaning: inventory id | Column Description: id number identifying the inventory \n\tcustomer_id INTEGER not null references customer on update cascade, -- Example Values: `(130,)`, `(459,)`, `(408,)` | Value Statics: Total count 16044 - Distinct count 599 - Null count 0 | Column Name Meaning: customer id | Column Description: id number identifying the customer \n\treturn_date DATETIME, -- Example Values: `('2005-05-26 22:04:30.0',)`, `('2005-05-28 19:40:33.0',)`, `('2005-06-01 22:12:39.0',)` | Value Statics: Total count 15861 - Distinct count 15836 - Null count 183 | Column Name Meaning: return date | Column Description: date when the rental returns \n\tstaff_id INTEGER not null references staff on update cascade, -- Example Values: `1`, `2` | Value Statics: Total count 16044 - Distinct count 2 - Null count 0 | Column Name Meaning: staff id | Column Description: id number identifying the staff \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 21:30:53.0',)`, `('2006-02-23 04:12:08.0',)` | Value Statics: Total count 16044 - Distinct count 2 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n\tunique (rental_date, inventory_id, customer_id),\n);\n\nCREATE TABLE staff\n(\n\tstaff_id INTEGER primary key autoincrement,\n\tfirst_name TEXT not null, -- Example Values: `Mike`, `Jon` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Name Meaning: first name | Column Description: First name of the actor \n\tlast_name TEXT not null, -- Example Values: `Hillyer`, `Stephens` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Name Meaning: last name | Column Description: Last name of the actor | Value Description: full name = (first name, last name)\n\taddress_id INTEGER not null references address on update cascade, -- Example Values: `3`, `4` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Name Meaning: address id | Column Description: id number identifying the address \n\tpicture BLOB, -- Example Values: `0x3F504E470D0A1A0A0000000D494844520000007900000075` | Value Statics: Total count 1 - Distinct count 1 - Null count 1 | Column Name Meaning: picture of the staff \n\temail TEXT, -- Example Values: `Mike.Hillyer@sakilastaff.com`, `Jon.Stephens@sakilastaff.com` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Name Meaning: email of the staff \n\tstore_id INTEGER not null references store on update cascade, -- Example Values: `1`, `2` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Name Meaning: store id | Column Description: id number identifying the store \n\tactive INTEGER default 1 not null, -- Example Values: `1` | Value Statics: Total count 2 - Distinct count 1 - Null count 0 | Column Description: Whether the staff is active or not. | Value Description: 1: active 0: not active\n\tusername TEXT not null, -- Example Values: `Mike`, `Jon` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Description: username to login the staff \n\tpassword TEXT, -- Example Values: `8cb2237d0679ca88db6464eac60da96345513964` | Value Statics: Total count 2 - Distinct count 1 - Null count 0 | Column Description: password to login the staff \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 04:57:16.0',)` | Value Statics: Total count 2 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n);\n\nCREATE TABLE store\n(\n\tstore_id INTEGER primary key autoincrement,\n\tmanager_staff_id INTEGER not null unique references staff on update cascade, -- Example Values: `1`, `2` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Name Meaning: manager staff id | Column Description: id number identifying the manager staff \n\taddress_id INTEGER not null references address on update cascade, -- Example Values: `1`, `2` | Value Statics: Total count 2 - Distinct count 2 - Null count 0 | Column Name Meaning: address id | Column Description: id number identifying the address \n\tlast_update DATETIME default CURRENT_TIMESTAMP not null, -- Example Values: `('2006-02-15 04:57:12.0',)` | Value Statics: Total count 2 - Distinct count 1 - Null count 0 | Column Name Meaning: last update | Column Description: The time of the latest update \n);" }