diff --git "a/file_copies_from_project_root/tables.json" "b/file_copies_from_project_root/tables.json" new file mode 100644--- /dev/null +++ "b/file_copies_from_project_root/tables.json" @@ -0,0 +1,50555 @@ +[ + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "perpetrator id" + ], + [ + 0, + "people id" + ], + [ + 0, + "date" + ], + [ + 0, + "year" + ], + [ + 0, + "location" + ], + [ + 0, + "country" + ], + [ + 0, + "killed" + ], + [ + 0, + "injured" + ], + [ + 1, + "people id" + ], + [ + 1, + "name" + ], + [ + 1, + "height" + ], + [ + 1, + "weight" + ], + [ + 1, + "home town" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Perpetrator_ID" + ], + [ + 0, + "People_ID" + ], + [ + 0, + "Date" + ], + [ + 0, + "Year" + ], + [ + 0, + "Location" + ], + [ + 0, + "Country" + ], + [ + 0, + "Killed" + ], + [ + 0, + "Injured" + ], + [ + 1, + "People_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Height" + ], + [ + 1, + "Weight" + ], + [ + 1, + "Home Town" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "text" + ], + "db_id": "perpetrator", + "foreign_keys": [ + [ + 2, + 9 + ] + ], + "primary_keys": [ + 1, + 9 + ], + "table_names": [ + "perpetrator", + "people" + ], + "table_names_original": [ + "perpetrator", + "people" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "building" + ], + [ + 0, + "room number" + ], + [ + 0, + "capacity" + ], + [ + 1, + "department name" + ], + [ + 1, + "building" + ], + [ + 1, + "budget" + ], + [ + 2, + "course id" + ], + [ + 2, + "title" + ], + [ + 2, + "department name" + ], + [ + 2, + "credits" + ], + [ + 3, + "id" + ], + [ + 3, + "name" + ], + [ + 3, + "department name" + ], + [ + 3, + "salary" + ], + [ + 4, + "course id" + ], + [ + 4, + "section id" + ], + [ + 4, + "semester" + ], + [ + 4, + "year" + ], + [ + 4, + "building" + ], + [ + 4, + "room number" + ], + [ + 4, + "time slot id" + ], + [ + 5, + "id" + ], + [ + 5, + "course id" + ], + [ + 5, + "section id" + ], + [ + 5, + "semester" + ], + [ + 5, + "year" + ], + [ + 6, + "id" + ], + [ + 6, + "name" + ], + [ + 6, + "department name" + ], + [ + 6, + "total credits" + ], + [ + 7, + "id" + ], + [ + 7, + "course id" + ], + [ + 7, + "section id" + ], + [ + 7, + "semester" + ], + [ + 7, + "year" + ], + [ + 7, + "grade" + ], + [ + 8, + "student id" + ], + [ + 8, + "instructor id" + ], + [ + 9, + "time slot id" + ], + [ + 9, + "day" + ], + [ + 9, + "start hour" + ], + [ + 9, + "start minute" + ], + [ + 9, + "end hour" + ], + [ + 9, + "end minute" + ], + [ + 10, + "course id" + ], + [ + 10, + "prerequisite id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "building" + ], + [ + 0, + "room_number" + ], + [ + 0, + "capacity" + ], + [ + 1, + "dept_name" + ], + [ + 1, + "building" + ], + [ + 1, + "budget" + ], + [ + 2, + "course_id" + ], + [ + 2, + "title" + ], + [ + 2, + "dept_name" + ], + [ + 2, + "credits" + ], + [ + 3, + "ID" + ], + [ + 3, + "name" + ], + [ + 3, + "dept_name" + ], + [ + 3, + "salary" + ], + [ + 4, + "course_id" + ], + [ + 4, + "sec_id" + ], + [ + 4, + "semester" + ], + [ + 4, + "year" + ], + [ + 4, + "building" + ], + [ + 4, + "room_number" + ], + [ + 4, + "time_slot_id" + ], + [ + 5, + "ID" + ], + [ + 5, + "course_id" + ], + [ + 5, + "sec_id" + ], + [ + 5, + "semester" + ], + [ + 5, + "year" + ], + [ + 6, + "ID" + ], + [ + 6, + "name" + ], + [ + 6, + "dept_name" + ], + [ + 6, + "tot_cred" + ], + [ + 7, + "ID" + ], + [ + 7, + "course_id" + ], + [ + 7, + "sec_id" + ], + [ + 7, + "semester" + ], + [ + 7, + "year" + ], + [ + 7, + "grade" + ], + [ + 8, + "s_ID" + ], + [ + 8, + "i_ID" + ], + [ + 9, + "time_slot_id" + ], + [ + 9, + "day" + ], + [ + 9, + "start_hr" + ], + [ + 9, + "start_min" + ], + [ + 9, + "end_hr" + ], + [ + 9, + "end_min" + ], + [ + 10, + "course_id" + ], + [ + 10, + "prereq_id" + ] + ], + "column_types": [ + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text" + ], + "db_id": "college_2", + "foreign_keys": [ + [ + 9, + 4 + ], + [ + 13, + 4 + ], + [ + 19, + 1 + ], + [ + 20, + 2 + ], + [ + 15, + 7 + ], + [ + 22, + 11 + ], + [ + 23, + 15 + ], + [ + 24, + 16 + ], + [ + 25, + 17 + ], + [ + 26, + 18 + ], + [ + 29, + 4 + ], + [ + 31, + 27 + ], + [ + 32, + 15 + ], + [ + 33, + 16 + ], + [ + 34, + 17 + ], + [ + 35, + 18 + ], + [ + 37, + 27 + ], + [ + 38, + 11 + ], + [ + 46, + 7 + ], + [ + 45, + 7 + ] + ], + "primary_keys": [ + 1, + 4, + 7, + 11, + 15, + 22, + 27, + 31, + 37, + 39, + 45 + ], + "table_names": [ + "classroom", + "department", + "course", + "instructor", + "section", + "teaches", + "student", + "takes classes", + "advisor", + "time slot", + "prerequisite" + ], + "table_names_original": [ + "classroom", + "department", + "course", + "instructor", + "section", + "teaches", + "student", + "takes", + "advisor", + "time_slot", + "prereq" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "city" + ], + [ + 0, + "country" + ], + [ + 0, + "iata" + ], + [ + 0, + "icao" + ], + [ + 0, + "name" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "type" + ], + [ + 1, + "principal activities" + ], + [ + 1, + "incorporated in" + ], + [ + 1, + "group equity shareholding" + ], + [ + 2, + "id" + ], + [ + 2, + "vehicle flight number" + ], + [ + 2, + "date" + ], + [ + 2, + "pilot" + ], + [ + 2, + "velocity" + ], + [ + 2, + "altitude" + ], + [ + 2, + "airport id" + ], + [ + 2, + "company id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "City" + ], + [ + 0, + "Country" + ], + [ + 0, + "IATA" + ], + [ + 0, + "ICAO" + ], + [ + 0, + "name" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "Type" + ], + [ + 1, + "Principal_activities" + ], + [ + 1, + "Incorporated_in" + ], + [ + 1, + "Group_Equity_Shareholding" + ], + [ + 2, + "id" + ], + [ + 2, + "Vehicle_Flight_number" + ], + [ + 2, + "Date" + ], + [ + 2, + "Pilot" + ], + [ + 2, + "Velocity" + ], + [ + 2, + "Altitude" + ], + [ + 2, + "airport_id" + ], + [ + 2, + "company_id" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "flight_company", + "foreign_keys": [ + [ + 20, + 7 + ], + [ + 19, + 1 + ] + ], + "primary_keys": [ + 1, + 7, + 13 + ], + "table_names": [ + "airport", + "operate company", + "flight" + ], + "table_names_original": [ + "airport", + "operate_company", + "flight" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "institution id" + ], + [ + 0, + "name" + ], + [ + 0, + "country" + ], + [ + 1, + "author id" + ], + [ + 1, + "last name" + ], + [ + 1, + "first name" + ], + [ + 2, + "paper id" + ], + [ + 2, + "title" + ], + [ + 3, + "author id" + ], + [ + 3, + "institution id" + ], + [ + 3, + "paper id" + ], + [ + 3, + "author count" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "instID" + ], + [ + 0, + "name" + ], + [ + 0, + "country" + ], + [ + 1, + "authID" + ], + [ + 1, + "lname" + ], + [ + 1, + "fname" + ], + [ + 2, + "paperID" + ], + [ + 2, + "title" + ], + [ + 3, + "authID" + ], + [ + 3, + "instID" + ], + [ + 3, + "paperID" + ], + [ + 3, + "authOrder" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "icfp_1", + "foreign_keys": [ + [ + 11, + 7 + ], + [ + 10, + 1 + ], + [ + 9, + 4 + ] + ], + "primary_keys": [ + 1, + 4, + 7, + 9 + ], + "table_names": [ + "institution", + "authors", + "papers", + "authorship count" + ], + "table_names_original": [ + "Inst", + "Authors", + "Papers", + "Authorship" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "body builder id" + ], + [ + 0, + "people id" + ], + [ + 0, + "snatch" + ], + [ + 0, + "clean jerk" + ], + [ + 0, + "total" + ], + [ + 1, + "people id" + ], + [ + 1, + "name" + ], + [ + 1, + "height" + ], + [ + 1, + "weight" + ], + [ + 1, + "birth date" + ], + [ + 1, + "birth place" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Body_Builder_ID" + ], + [ + 0, + "People_ID" + ], + [ + 0, + "Snatch" + ], + [ + 0, + "Clean_Jerk" + ], + [ + 0, + "Total" + ], + [ + 1, + "People_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Height" + ], + [ + 1, + "Weight" + ], + [ + 1, + "Birth_Date" + ], + [ + 1, + "Birth_Place" + ] + ], + "column_types": [ + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "text", + "text" + ], + "db_id": "body_builder", + "foreign_keys": [ + [ + 2, + 6 + ] + ], + "primary_keys": [ + 1, + 6 + ], + "table_names": [ + "body builder", + "people" + ], + "table_names_original": [ + "body_builder", + "people" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "storm id" + ], + [ + 0, + "name" + ], + [ + 0, + "dates active" + ], + [ + 0, + "max speed" + ], + [ + 0, + "damage millions usd" + ], + [ + 0, + "number deaths" + ], + [ + 1, + "region id" + ], + [ + 1, + "region code" + ], + [ + 1, + "region name" + ], + [ + 2, + "region id" + ], + [ + 2, + "storm id" + ], + [ + 2, + "number city affected" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Storm_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Dates_active" + ], + [ + 0, + "Max_speed" + ], + [ + 0, + "Damage_millions_USD" + ], + [ + 0, + "Number_Deaths" + ], + [ + 1, + "Region_id" + ], + [ + 1, + "Region_code" + ], + [ + 1, + "Region_name" + ], + [ + 2, + "Region_id" + ], + [ + 2, + "Storm_ID" + ], + [ + 2, + "Number_city_affected" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number" + ], + "db_id": "storm_record", + "foreign_keys": [ + [ + 11, + 1 + ], + [ + 10, + 7 + ] + ], + "primary_keys": [ + 1, + 7, + 10 + ], + "table_names": [ + "storm", + "region", + "affected region" + ], + "table_names_original": [ + "storm", + "region", + "affected_region" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "aircraft id" + ], + [ + 0, + "order year" + ], + [ + 0, + "manufacturer" + ], + [ + 0, + "model" + ], + [ + 0, + "fleet series" + ], + [ + 0, + "powertrain" + ], + [ + 0, + "fuel propulsion" + ], + [ + 1, + "pilot id" + ], + [ + 1, + "pilot name" + ], + [ + 1, + "rank" + ], + [ + 1, + "age" + ], + [ + 1, + "nationality" + ], + [ + 1, + "position" + ], + [ + 1, + "join year" + ], + [ + 1, + "team" + ], + [ + 2, + "record id" + ], + [ + 2, + "pilot id" + ], + [ + 2, + "aircraft id" + ], + [ + 2, + "date" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Aircraft_ID" + ], + [ + 0, + "Order_Year" + ], + [ + 0, + "Manufacturer" + ], + [ + 0, + "Model" + ], + [ + 0, + "Fleet_Series" + ], + [ + 0, + "Powertrain" + ], + [ + 0, + "Fuel_Propulsion" + ], + [ + 1, + "Pilot_ID" + ], + [ + 1, + "Pilot_name" + ], + [ + 1, + "Rank" + ], + [ + 1, + "Age" + ], + [ + 1, + "Nationality" + ], + [ + 1, + "Position" + ], + [ + 1, + "Join_Year" + ], + [ + 1, + "Team" + ], + [ + 2, + "Record_ID" + ], + [ + 2, + "Pilot_ID" + ], + [ + 2, + "Aircraft_ID" + ], + [ + 2, + "Date" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "number", + "text" + ], + "db_id": "pilot_record", + "foreign_keys": [ + [ + 18, + 1 + ], + [ + 17, + 8 + ] + ], + "primary_keys": [ + 1, + 8, + 17 + ], + "table_names": [ + "aircraft", + "pilot", + "pilot record" + ], + "table_names_original": [ + "aircraft", + "pilot", + "pilot_record" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "race id" + ], + [ + 0, + "name" + ], + [ + 0, + "class" + ], + [ + 0, + "date" + ], + [ + 0, + "track id" + ], + [ + 1, + "track id" + ], + [ + 1, + "name" + ], + [ + 1, + "location" + ], + [ + 1, + "seating" + ], + [ + 1, + "year opened" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Race_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Class" + ], + [ + 0, + "Date" + ], + [ + 0, + "Track_ID" + ], + [ + 1, + "Track_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Location" + ], + [ + 1, + "Seating" + ], + [ + 1, + "Year_Opened" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "number" + ], + "db_id": "race_track", + "foreign_keys": [ + [ + 5, + 6 + ] + ], + "primary_keys": [ + 1, + 6 + ], + "table_names": [ + "race", + "track" + ], + "table_names_original": [ + "race", + "track" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "aid" + ], + [ + 0, + "homepage" + ], + [ + 0, + "name" + ], + [ + 0, + "oid" + ], + [ + 1, + "cid" + ], + [ + 1, + "homepage" + ], + [ + 1, + "name" + ], + [ + 2, + "did" + ], + [ + 2, + "name" + ], + [ + 3, + "aid" + ], + [ + 3, + "did" + ], + [ + 4, + "cid" + ], + [ + 4, + "did" + ], + [ + 5, + "homepage" + ], + [ + 5, + "jid" + ], + [ + 5, + "name" + ], + [ + 6, + "did" + ], + [ + 6, + "jid" + ], + [ + 7, + "keyword" + ], + [ + 7, + "kid" + ], + [ + 8, + "did" + ], + [ + 8, + "kid" + ], + [ + 9, + "abstract" + ], + [ + 9, + "cid" + ], + [ + 9, + "citation num" + ], + [ + 9, + "jid" + ], + [ + 9, + "pid" + ], + [ + 9, + "reference num" + ], + [ + 9, + "title" + ], + [ + 9, + "year" + ], + [ + 10, + "did" + ], + [ + 10, + "pid" + ], + [ + 11, + "continent" + ], + [ + 11, + "homepage" + ], + [ + 11, + "name" + ], + [ + 11, + "oid" + ], + [ + 12, + "pid" + ], + [ + 12, + "kid" + ], + [ + 13, + "aid" + ], + [ + 13, + "pid" + ], + [ + 14, + "cited" + ], + [ + 14, + "citing" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "aid" + ], + [ + 0, + "homepage" + ], + [ + 0, + "name" + ], + [ + 0, + "oid" + ], + [ + 1, + "cid" + ], + [ + 1, + "homepage" + ], + [ + 1, + "name" + ], + [ + 2, + "did" + ], + [ + 2, + "name" + ], + [ + 3, + "aid" + ], + [ + 3, + "did" + ], + [ + 4, + "cid" + ], + [ + 4, + "did" + ], + [ + 5, + "homepage" + ], + [ + 5, + "jid" + ], + [ + 5, + "name" + ], + [ + 6, + "did" + ], + [ + 6, + "jid" + ], + [ + 7, + "keyword" + ], + [ + 7, + "kid" + ], + [ + 8, + "did" + ], + [ + 8, + "kid" + ], + [ + 9, + "abstract" + ], + [ + 9, + "cid" + ], + [ + 9, + "citation_num" + ], + [ + 9, + "jid" + ], + [ + 9, + "pid" + ], + [ + 9, + "reference_num" + ], + [ + 9, + "title" + ], + [ + 9, + "year" + ], + [ + 10, + "did" + ], + [ + 10, + "pid" + ], + [ + 11, + "continent" + ], + [ + 11, + "homepage" + ], + [ + 11, + "name" + ], + [ + 11, + "oid" + ], + [ + 12, + "pid" + ], + [ + 12, + "kid" + ], + [ + 13, + "aid" + ], + [ + 13, + "pid" + ], + [ + 14, + "cited" + ], + [ + 14, + "citing" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "academic", + "foreign_keys": [ + [ + 11, + 8 + ], + [ + 10, + 1 + ], + [ + 13, + 8 + ], + [ + 12, + 5 + ], + [ + 17, + 8 + ], + [ + 18, + 15 + ], + [ + 21, + 8 + ], + [ + 22, + 20 + ], + [ + 24, + 5 + ], + [ + 26, + 15 + ], + [ + 31, + 8 + ], + [ + 32, + 27 + ], + [ + 38, + 20 + ], + [ + 37, + 27 + ], + [ + 39, + 1 + ], + [ + 40, + 27 + ], + [ + 42, + 27 + ], + [ + 41, + 27 + ] + ], + "primary_keys": [ + 1, + 5, + 8, + 11, + 13, + 15, + 17, + 20, + 21, + 27, + 31, + 36, + 38, + 39 + ], + "table_names": [ + "author", + "conference", + "domain", + "domain author", + "domain conference", + "journal", + "domain journal", + "keyword", + "domain keyword", + "publication", + "domain publication", + "organization", + "publication keyword", + "writes", + "cite" + ], + "table_names_original": [ + "author", + "conference", + "domain", + "domain_author", + "domain_conference", + "journal", + "domain_journal", + "keyword", + "domain_keyword", + "publication", + "domain_publication", + "organization", + "publication_keyword", + "writes", + "cite" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "address id" + ], + [ + 0, + "address details" + ], + [ + 1, + "staff id" + ], + [ + 1, + "staff gender" + ], + [ + 1, + "staff name" + ], + [ + 2, + "supplier id" + ], + [ + 2, + "supplier name" + ], + [ + 2, + "supplier phone" + ], + [ + 3, + "department store chain id" + ], + [ + 3, + "department store chain name" + ], + [ + 4, + "customer id" + ], + [ + 4, + "payment method code" + ], + [ + 4, + "customer code" + ], + [ + 4, + "customer name" + ], + [ + 4, + "customer address" + ], + [ + 4, + "customer phone" + ], + [ + 4, + "customer email" + ], + [ + 5, + "product id" + ], + [ + 5, + "product type code" + ], + [ + 5, + "product name" + ], + [ + 5, + "product price" + ], + [ + 6, + "supplier id" + ], + [ + 6, + "address id" + ], + [ + 6, + "date from" + ], + [ + 6, + "date to" + ], + [ + 7, + "customer id" + ], + [ + 7, + "address id" + ], + [ + 7, + "date from" + ], + [ + 7, + "date to" + ], + [ + 8, + "order id" + ], + [ + 8, + "customer id" + ], + [ + 8, + "order status code" + ], + [ + 8, + "order date" + ], + [ + 9, + "department store id" + ], + [ + 9, + "department store chain id" + ], + [ + 9, + "store name" + ], + [ + 9, + "store address" + ], + [ + 9, + "store phone" + ], + [ + 9, + "store email" + ], + [ + 10, + "department id" + ], + [ + 10, + "department store id" + ], + [ + 10, + "department name" + ], + [ + 11, + "order item id" + ], + [ + 11, + "order id" + ], + [ + 11, + "product id" + ], + [ + 12, + "product id" + ], + [ + 12, + "supplier id" + ], + [ + 12, + "date supplied from" + ], + [ + 12, + "date supplied to" + ], + [ + 12, + "total amount purchased" + ], + [ + 12, + "total value purchased" + ], + [ + 13, + "staff id" + ], + [ + 13, + "department id" + ], + [ + 13, + "date assigned from" + ], + [ + 13, + "job title code" + ], + [ + 13, + "date assigned to" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "address_id" + ], + [ + 0, + "address_details" + ], + [ + 1, + "staff_id" + ], + [ + 1, + "staff_gender" + ], + [ + 1, + "staff_name" + ], + [ + 2, + "supplier_id" + ], + [ + 2, + "supplier_name" + ], + [ + 2, + "supplier_phone" + ], + [ + 3, + "dept_store_chain_id" + ], + [ + 3, + "dept_store_chain_name" + ], + [ + 4, + "customer_id" + ], + [ + 4, + "payment_method_code" + ], + [ + 4, + "customer_code" + ], + [ + 4, + "customer_name" + ], + [ + 4, + "customer_address" + ], + [ + 4, + "customer_phone" + ], + [ + 4, + "customer_email" + ], + [ + 5, + "product_id" + ], + [ + 5, + "product_type_code" + ], + [ + 5, + "product_name" + ], + [ + 5, + "product_price" + ], + [ + 6, + "supplier_id" + ], + [ + 6, + "address_id" + ], + [ + 6, + "date_from" + ], + [ + 6, + "date_to" + ], + [ + 7, + "customer_id" + ], + [ + 7, + "address_id" + ], + [ + 7, + "date_from" + ], + [ + 7, + "date_to" + ], + [ + 8, + "order_id" + ], + [ + 8, + "customer_id" + ], + [ + 8, + "order_status_code" + ], + [ + 8, + "order_date" + ], + [ + 9, + "dept_store_id" + ], + [ + 9, + "dept_store_chain_id" + ], + [ + 9, + "store_name" + ], + [ + 9, + "store_address" + ], + [ + 9, + "store_phone" + ], + [ + 9, + "store_email" + ], + [ + 10, + "department_id" + ], + [ + 10, + "dept_store_id" + ], + [ + 10, + "department_name" + ], + [ + 11, + "order_item_id" + ], + [ + 11, + "order_id" + ], + [ + 11, + "product_id" + ], + [ + 12, + "product_id" + ], + [ + 12, + "supplier_id" + ], + [ + 12, + "date_supplied_from" + ], + [ + 12, + "date_supplied_to" + ], + [ + 12, + "total_amount_purchased" + ], + [ + 12, + "total_value_purchased" + ], + [ + 13, + "staff_id" + ], + [ + 13, + "department_id" + ], + [ + 13, + "date_assigned_from" + ], + [ + 13, + "job_title_code" + ], + [ + 13, + "date_assigned_to" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "time", + "time", + "number", + "number", + "time", + "time", + "number", + "number", + "text", + "time", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "time", + "time", + "text", + "number", + "number", + "number", + "time", + "text", + "time" + ], + "db_id": "department_store", + "foreign_keys": [ + [ + 22, + 6 + ], + [ + 23, + 1 + ], + [ + 26, + 11 + ], + [ + 27, + 1 + ], + [ + 31, + 11 + ], + [ + 35, + 9 + ], + [ + 41, + 34 + ], + [ + 45, + 18 + ], + [ + 44, + 30 + ], + [ + 46, + 18 + ], + [ + 47, + 6 + ], + [ + 52, + 3 + ], + [ + 53, + 40 + ] + ], + "primary_keys": [ + 1, + 3, + 6, + 9, + 11, + 18, + 22, + 26, + 30, + 34, + 40, + 43, + 46, + 52 + ], + "table_names": [ + "addresses", + "staff", + "suppliers", + "department store chain", + "customers", + "products", + "supplier addresses", + "customer addresses", + "customer orders", + "department stores", + "departments", + "order items", + "product suppliers", + "staff department assignments" + ], + "table_names_original": [ + "Addresses", + "Staff", + "Suppliers", + "Department_Store_Chain", + "Customers", + "Products", + "Supplier_Addresses", + "Customer_Addresses", + "Customer_Orders", + "Department_Stores", + "Departments", + "Order_Items", + "Product_Suppliers", + "Staff_Department_Assignments" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "artist id" + ], + [ + 0, + "artist" + ], + [ + 0, + "age" + ], + [ + 0, + "famous title" + ], + [ + 0, + "famous release date" + ], + [ + 1, + "volume id" + ], + [ + 1, + "volume issue" + ], + [ + 1, + "issue date" + ], + [ + 1, + "weeks on top" + ], + [ + 1, + "song" + ], + [ + 1, + "artist id" + ], + [ + 2, + "id" + ], + [ + 2, + "music festival" + ], + [ + 2, + "date of ceremony" + ], + [ + 2, + "category" + ], + [ + 2, + "volume" + ], + [ + 2, + "result" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Artist_ID" + ], + [ + 0, + "Artist" + ], + [ + 0, + "Age" + ], + [ + 0, + "Famous_Title" + ], + [ + 0, + "Famous_Release_date" + ], + [ + 1, + "Volume_ID" + ], + [ + 1, + "Volume_Issue" + ], + [ + 1, + "Issue_Date" + ], + [ + 1, + "Weeks_on_Top" + ], + [ + 1, + "Song" + ], + [ + 1, + "Artist_ID" + ], + [ + 2, + "ID" + ], + [ + 2, + "Music_Festival" + ], + [ + 2, + "Date_of_ceremony" + ], + [ + 2, + "Category" + ], + [ + 2, + "Volume" + ], + [ + 2, + "Result" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "text" + ], + "db_id": "music_4", + "foreign_keys": [ + [ + 11, + 1 + ], + [ + 16, + 6 + ] + ], + "primary_keys": [ + 1, + 6, + 12 + ], + "table_names": [ + "artist", + "volume", + "music festival" + ], + "table_names_original": [ + "artist", + "volume", + "music_festival" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "customer id" + ], + [ + 0, + "customer name" + ], + [ + 1, + "service id" + ], + [ + 1, + "service name" + ], + [ + 2, + "policy id" + ], + [ + 2, + "policy type code" + ], + [ + 2, + "customer phone" + ], + [ + 3, + "customer id" + ], + [ + 3, + "policy id" + ], + [ + 3, + "date opened" + ], + [ + 3, + "date closed" + ], + [ + 4, + "fnol id" + ], + [ + 4, + "customer id" + ], + [ + 4, + "policy id" + ], + [ + 4, + "service id" + ], + [ + 5, + "claim id" + ], + [ + 5, + "fnol id" + ], + [ + 5, + "effective date" + ], + [ + 6, + "settlement id" + ], + [ + 6, + "claim id" + ], + [ + 6, + "effective date" + ], + [ + 6, + "settlement amount" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Customer_ID" + ], + [ + 0, + "Customer_name" + ], + [ + 1, + "Service_ID" + ], + [ + 1, + "Service_name" + ], + [ + 2, + "Policy_ID" + ], + [ + 2, + "policy_type_code" + ], + [ + 2, + "Customer_Phone" + ], + [ + 3, + "Customer_ID" + ], + [ + 3, + "Policy_ID" + ], + [ + 3, + "Date_Opened" + ], + [ + 3, + "Date_Closed" + ], + [ + 4, + "FNOL_ID" + ], + [ + 4, + "Customer_ID" + ], + [ + 4, + "Policy_ID" + ], + [ + 4, + "Service_ID" + ], + [ + 5, + "Claim_ID" + ], + [ + 5, + "FNOL_ID" + ], + [ + 5, + "Effective_Date" + ], + [ + 6, + "Settlement_ID" + ], + [ + 6, + "Claim_ID" + ], + [ + 6, + "Effective_Date" + ], + [ + 6, + "Settlement_Amount" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "time", + "time", + "number", + "number", + "number", + "number", + "number", + "number", + "time", + "number", + "number", + "time", + "number" + ], + "db_id": "insurance_fnol", + "foreign_keys": [ + [ + 9, + 5 + ], + [ + 8, + 1 + ], + [ + 13, + 8 + ], + [ + 14, + 9 + ], + [ + 15, + 3 + ], + [ + 17, + 12 + ], + [ + 20, + 16 + ] + ], + "primary_keys": [ + 1, + 3, + 5, + 8, + 12, + 16, + 19 + ], + "table_names": [ + "customers", + "services", + "available policies", + "customers policies", + "first notification of loss", + "claims", + "settlements" + ], + "table_names_original": [ + "Customers", + "Services", + "Available_Policies", + "Customers_Policies", + "First_Notification_of_Loss", + "Claims", + "Settlements" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "film id" + ], + [ + 0, + "rank in series" + ], + [ + 0, + "number in season" + ], + [ + 0, + "title" + ], + [ + 0, + "directed by" + ], + [ + 0, + "original air date" + ], + [ + 0, + "production code" + ], + [ + 1, + "cinema id" + ], + [ + 1, + "name" + ], + [ + 1, + "openning year" + ], + [ + 1, + "capacity" + ], + [ + 1, + "location" + ], + [ + 2, + "cinema id" + ], + [ + 2, + "film id" + ], + [ + 2, + "date" + ], + [ + 2, + "show times per day" + ], + [ + 2, + "price" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Film_ID" + ], + [ + 0, + "Rank_in_series" + ], + [ + 0, + "Number_in_season" + ], + [ + 0, + "Title" + ], + [ + 0, + "Directed_by" + ], + [ + 0, + "Original_air_date" + ], + [ + 0, + "Production_code" + ], + [ + 1, + "Cinema_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Openning_year" + ], + [ + 1, + "Capacity" + ], + [ + 1, + "Location" + ], + [ + 2, + "Cinema_ID" + ], + [ + 2, + "Film_ID" + ], + [ + 2, + "Date" + ], + [ + 2, + "Show_times_per_day" + ], + [ + 2, + "Price" + ] + ], + "column_types": [ + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "number", + "text", + "number", + "number" + ], + "db_id": "cinema", + "foreign_keys": [ + [ + 13, + 8 + ], + [ + 14, + 1 + ] + ], + "primary_keys": [ + 1, + 8, + 13 + ], + "table_names": [ + "film", + "cinema", + "schedule" + ], + "table_names_original": [ + "film", + "cinema", + "schedule" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "college id" + ], + [ + 0, + "name" + ], + [ + 0, + "leader name" + ], + [ + 0, + "college location" + ], + [ + 1, + "member id" + ], + [ + 1, + "name" + ], + [ + 1, + "country" + ], + [ + 1, + "college id" + ], + [ + 2, + "round id" + ], + [ + 2, + "member id" + ], + [ + 2, + "decoration theme" + ], + [ + 2, + "rank in round" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "College_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Leader_Name" + ], + [ + 0, + "College_Location" + ], + [ + 1, + "Member_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Country" + ], + [ + 1, + "College_ID" + ], + [ + 2, + "Round_ID" + ], + [ + 2, + "Member_ID" + ], + [ + 2, + "Decoration_Theme" + ], + [ + 2, + "Rank_in_Round" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "number" + ], + "db_id": "decoration_competition", + "foreign_keys": [ + [ + 8, + 1 + ], + [ + 10, + 5 + ] + ], + "primary_keys": [ + 1, + 5, + 10 + ], + "table_names": [ + "college", + "member", + "round" + ], + "table_names_original": [ + "college", + "member", + "round" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "name" + ], + [ + 0, + "phone id" + ], + [ + 0, + "memory in g" + ], + [ + 0, + "carrier" + ], + [ + 0, + "price" + ], + [ + 1, + "market id" + ], + [ + 1, + "district" + ], + [ + 1, + "num of employees" + ], + [ + 1, + "num of shops" + ], + [ + 1, + "ranking" + ], + [ + 2, + "market id" + ], + [ + 2, + "phone id" + ], + [ + 2, + "num of stock" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Name" + ], + [ + 0, + "Phone_ID" + ], + [ + 0, + "Memory_in_G" + ], + [ + 0, + "Carrier" + ], + [ + 0, + "Price" + ], + [ + 1, + "Market_ID" + ], + [ + 1, + "District" + ], + [ + 1, + "Num_of_employees" + ], + [ + 1, + "Num_of_shops" + ], + [ + 1, + "Ranking" + ], + [ + 2, + "Market_ID" + ], + [ + 2, + "Phone_ID" + ], + [ + 2, + "Num_of_stock" + ] + ], + "column_types": [ + "text", + "text", + "number", + "number", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "text", + "number" + ], + "db_id": "phone_market", + "foreign_keys": [ + [ + 12, + 2 + ], + [ + 11, + 6 + ] + ], + "primary_keys": [ + 2, + 6, + 11 + ], + "table_names": [ + "phone", + "market", + "phone market" + ], + "table_names_original": [ + "phone", + "market", + "phone_market" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "product id" + ], + [ + 0, + "product" + ], + [ + 0, + "dimensions" + ], + [ + 0, + "dpi" + ], + [ + 0, + "pages per minute color" + ], + [ + 0, + "max page size" + ], + [ + 0, + "interface" + ], + [ + 1, + "store id" + ], + [ + 1, + "store name" + ], + [ + 1, + "type" + ], + [ + 1, + "area size" + ], + [ + 1, + "number of product category" + ], + [ + 1, + "ranking" + ], + [ + 2, + "district id" + ], + [ + 2, + "district name" + ], + [ + 2, + "headquartered city" + ], + [ + 2, + "city population" + ], + [ + 2, + "city area" + ], + [ + 3, + "store id" + ], + [ + 3, + "product id" + ], + [ + 4, + "store id" + ], + [ + 4, + "district id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "product_id" + ], + [ + 0, + "product" + ], + [ + 0, + "dimensions" + ], + [ + 0, + "dpi" + ], + [ + 0, + "pages_per_minute_color" + ], + [ + 0, + "max_page_size" + ], + [ + 0, + "interface" + ], + [ + 1, + "Store_ID" + ], + [ + 1, + "Store_Name" + ], + [ + 1, + "Type" + ], + [ + 1, + "Area_size" + ], + [ + 1, + "Number_of_product_category" + ], + [ + 1, + "Ranking" + ], + [ + 2, + "District_ID" + ], + [ + 2, + "District_name" + ], + [ + 2, + "Headquartered_City" + ], + [ + 2, + "City_Population" + ], + [ + 2, + "City_Area" + ], + [ + 3, + "Store_ID" + ], + [ + 3, + "Product_ID" + ], + [ + 4, + "Store_ID" + ], + [ + 4, + "District_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "store_product", + "foreign_keys": [ + [ + 19, + 8 + ], + [ + 22, + 14 + ], + [ + 21, + 8 + ] + ], + "primary_keys": [ + 1, + 8, + 14, + 19, + 21 + ], + "table_names": [ + "product", + "store", + "district", + "store product", + "store district" + ], + "table_names_original": [ + "product", + "store", + "district", + "store_product", + "store_district" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "company id" + ], + [ + 0, + "company type" + ], + [ + 0, + "company name" + ], + [ + 0, + "company address" + ], + [ + 0, + "other company details" + ], + [ + 1, + "maintenance contract id" + ], + [ + 1, + "maintenance contract company id" + ], + [ + 1, + "contract start date" + ], + [ + 1, + "contract end date" + ], + [ + 1, + "other contract details" + ], + [ + 2, + "part id" + ], + [ + 2, + "part name" + ], + [ + 2, + "chargeable yn" + ], + [ + 2, + "chargeable amount" + ], + [ + 2, + "other part details" + ], + [ + 3, + "skill id" + ], + [ + 3, + "skill code" + ], + [ + 3, + "skill description" + ], + [ + 4, + "staff id" + ], + [ + 4, + "staff name" + ], + [ + 4, + "gender" + ], + [ + 4, + "other staff details" + ], + [ + 5, + "asset id" + ], + [ + 5, + "maintenance contract id" + ], + [ + 5, + "supplier company id" + ], + [ + 5, + "asset details" + ], + [ + 5, + "asset make" + ], + [ + 5, + "asset model" + ], + [ + 5, + "asset acquired date" + ], + [ + 5, + "asset disposed date" + ], + [ + 5, + "other asset details" + ], + [ + 6, + "asset id" + ], + [ + 6, + "part id" + ], + [ + 7, + "engineer id" + ], + [ + 7, + "company id" + ], + [ + 7, + "first name" + ], + [ + 7, + "last name" + ], + [ + 7, + "other details" + ], + [ + 8, + "engineer id" + ], + [ + 8, + "skill id" + ], + [ + 9, + "fault log entry id" + ], + [ + 9, + "asset id" + ], + [ + 9, + "recorded by staff id" + ], + [ + 9, + "fault log entry datetime" + ], + [ + 9, + "fault description" + ], + [ + 9, + "other fault details" + ], + [ + 10, + "engineer visit id" + ], + [ + 10, + "contact staff id" + ], + [ + 10, + "engineer id" + ], + [ + 10, + "fault log entry id" + ], + [ + 10, + "fault status" + ], + [ + 10, + "visit start datetime" + ], + [ + 10, + "visit end datetime" + ], + [ + 10, + "other visit details" + ], + [ + 11, + "part fault id" + ], + [ + 11, + "part id" + ], + [ + 11, + "fault short name" + ], + [ + 11, + "fault description" + ], + [ + 11, + "other fault details" + ], + [ + 12, + "fault log entry id" + ], + [ + 12, + "part fault id" + ], + [ + 12, + "fault status" + ], + [ + 13, + "part fault id" + ], + [ + 13, + "skill id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "company_id" + ], + [ + 0, + "company_type" + ], + [ + 0, + "company_name" + ], + [ + 0, + "company_address" + ], + [ + 0, + "other_company_details" + ], + [ + 1, + "maintenance_contract_id" + ], + [ + 1, + "maintenance_contract_company_id" + ], + [ + 1, + "contract_start_date" + ], + [ + 1, + "contract_end_date" + ], + [ + 1, + "other_contract_details" + ], + [ + 2, + "part_id" + ], + [ + 2, + "part_name" + ], + [ + 2, + "chargeable_yn" + ], + [ + 2, + "chargeable_amount" + ], + [ + 2, + "other_part_details" + ], + [ + 3, + "skill_id" + ], + [ + 3, + "skill_code" + ], + [ + 3, + "skill_description" + ], + [ + 4, + "staff_id" + ], + [ + 4, + "staff_name" + ], + [ + 4, + "gender" + ], + [ + 4, + "other_staff_details" + ], + [ + 5, + "asset_id" + ], + [ + 5, + "maintenance_contract_id" + ], + [ + 5, + "supplier_company_id" + ], + [ + 5, + "asset_details" + ], + [ + 5, + "asset_make" + ], + [ + 5, + "asset_model" + ], + [ + 5, + "asset_acquired_date" + ], + [ + 5, + "asset_disposed_date" + ], + [ + 5, + "other_asset_details" + ], + [ + 6, + "asset_id" + ], + [ + 6, + "part_id" + ], + [ + 7, + "engineer_id" + ], + [ + 7, + "company_id" + ], + [ + 7, + "first_name" + ], + [ + 7, + "last_name" + ], + [ + 7, + "other_details" + ], + [ + 8, + "engineer_id" + ], + [ + 8, + "skill_id" + ], + [ + 9, + "fault_log_entry_id" + ], + [ + 9, + "asset_id" + ], + [ + 9, + "recorded_by_staff_id" + ], + [ + 9, + "fault_log_entry_datetime" + ], + [ + 9, + "fault_description" + ], + [ + 9, + "other_fault_details" + ], + [ + 10, + "engineer_visit_id" + ], + [ + 10, + "contact_staff_id" + ], + [ + 10, + "engineer_id" + ], + [ + 10, + "fault_log_entry_id" + ], + [ + 10, + "fault_status" + ], + [ + 10, + "visit_start_datetime" + ], + [ + 10, + "visit_end_datetime" + ], + [ + 10, + "other_visit_details" + ], + [ + 11, + "part_fault_id" + ], + [ + 11, + "part_id" + ], + [ + 11, + "fault_short_name" + ], + [ + 11, + "fault_description" + ], + [ + 11, + "other_fault_details" + ], + [ + 12, + "fault_log_entry_id" + ], + [ + 12, + "part_fault_id" + ], + [ + 12, + "fault_status" + ], + [ + 13, + "part_fault_id" + ], + [ + 13, + "skill_id" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "time", + "time", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "time", + "time", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "time", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "time", + "time", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "number", + "number" + ], + "db_id": "assets_maintenance", + "foreign_keys": [ + [ + 7, + 1 + ], + [ + 25, + 1 + ], + [ + 24, + 6 + ], + [ + 32, + 23 + ], + [ + 33, + 11 + ], + [ + 35, + 1 + ], + [ + 40, + 16 + ], + [ + 39, + 34 + ], + [ + 43, + 19 + ], + [ + 42, + 23 + ], + [ + 48, + 19 + ], + [ + 49, + 34 + ], + [ + 50, + 41 + ], + [ + 56, + 11 + ], + [ + 60, + 41 + ], + [ + 61, + 55 + ], + [ + 64, + 16 + ], + [ + 63, + 55 + ] + ], + "primary_keys": [ + 1, + 6, + 11, + 16, + 19, + 23, + 34, + 41, + 47, + 55 + ], + "table_names": [ + "third party companies", + "maintenance contracts", + "parts", + "skills", + "staff", + "assets", + "asset parts", + "maintenance engineers", + "engineer skills", + "fault log", + "engineer visits", + "part faults", + "fault log parts", + "skills required to fix" + ], + "table_names_original": [ + "Third_Party_Companies", + "Maintenance_Contracts", + "Parts", + "Skills", + "Staff", + "Assets", + "Asset_Parts", + "Maintenance_Engineers", + "Engineer_Skills", + "Fault_Log", + "Engineer_Visits", + "Part_Faults", + "Fault_Log_Parts", + "Skills_Required_To_Fix" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "address id" + ], + [ + 0, + "line 1" + ], + [ + 0, + "line 2" + ], + [ + 0, + "city" + ], + [ + 0, + "zip postcode" + ], + [ + 0, + "state province county" + ], + [ + 0, + "country" + ], + [ + 1, + "person id" + ], + [ + 1, + "first name" + ], + [ + 1, + "middle name" + ], + [ + 1, + "last name" + ], + [ + 1, + "cell mobile number" + ], + [ + 1, + "email address" + ], + [ + 1, + "login name" + ], + [ + 1, + "password" + ], + [ + 2, + "student id" + ], + [ + 2, + "student details" + ], + [ + 3, + "course id" + ], + [ + 3, + "course name" + ], + [ + 3, + "course description" + ], + [ + 3, + "other details" + ], + [ + 4, + "person address id" + ], + [ + 4, + "person id" + ], + [ + 4, + "address id" + ], + [ + 4, + "date from" + ], + [ + 4, + "date to" + ], + [ + 5, + "student id" + ], + [ + 5, + "course id" + ], + [ + 5, + "registration date" + ], + [ + 6, + "student id" + ], + [ + 6, + "course id" + ], + [ + 6, + "date of attendance" + ], + [ + 7, + "candidate id" + ], + [ + 7, + "candidate details" + ], + [ + 8, + "candidate id" + ], + [ + 8, + "qualification" + ], + [ + 8, + "assessment date" + ], + [ + 8, + "asessment outcome code" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "address_id" + ], + [ + 0, + "line_1" + ], + [ + 0, + "line_2" + ], + [ + 0, + "city" + ], + [ + 0, + "zip_postcode" + ], + [ + 0, + "state_province_county" + ], + [ + 0, + "country" + ], + [ + 1, + "person_id" + ], + [ + 1, + "first_name" + ], + [ + 1, + "middle_name" + ], + [ + 1, + "last_name" + ], + [ + 1, + "cell_mobile_number" + ], + [ + 1, + "email_address" + ], + [ + 1, + "login_name" + ], + [ + 1, + "password" + ], + [ + 2, + "student_id" + ], + [ + 2, + "student_details" + ], + [ + 3, + "course_id" + ], + [ + 3, + "course_name" + ], + [ + 3, + "course_description" + ], + [ + 3, + "other_details" + ], + [ + 4, + "person_address_id" + ], + [ + 4, + "person_id" + ], + [ + 4, + "address_id" + ], + [ + 4, + "date_from" + ], + [ + 4, + "date_to" + ], + [ + 5, + "student_id" + ], + [ + 5, + "course_id" + ], + [ + 5, + "registration_date" + ], + [ + 6, + "student_id" + ], + [ + 6, + "course_id" + ], + [ + 6, + "date_of_attendance" + ], + [ + 7, + "candidate_id" + ], + [ + 7, + "candidate_details" + ], + [ + 8, + "candidate_id" + ], + [ + 8, + "qualification" + ], + [ + 8, + "assessment_date" + ], + [ + 8, + "asessment_outcome_code" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "time", + "time", + "number", + "number", + "time", + "number", + "number", + "time", + "number", + "text", + "number", + "text", + "time", + "text" + ], + "db_id": "student_assessment", + "foreign_keys": [ + [ + 16, + 8 + ], + [ + 24, + 1 + ], + [ + 23, + 8 + ], + [ + 28, + 18 + ], + [ + 27, + 16 + ], + [ + 30, + 27 + ], + [ + 31, + 28 + ], + [ + 33, + 8 + ], + [ + 35, + 33 + ] + ], + "primary_keys": [ + 1, + 8, + 16, + 18, + 22, + 27, + 30, + 33, + 35 + ], + "table_names": [ + "addresses", + "people", + "students", + "courses", + "people addresses", + "student course registrations", + "student course attendance", + "candidates", + "candidate assessments" + ], + "table_names_original": [ + "Addresses", + "People", + "Students", + "Courses", + "People_Addresses", + "Student_Course_Registrations", + "Student_Course_Attendance", + "Candidates", + "Candidate_Assessments" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "breed code" + ], + [ + 0, + "breed name" + ], + [ + 1, + "charge id" + ], + [ + 1, + "charge type" + ], + [ + 1, + "charge amount" + ], + [ + 2, + "size code" + ], + [ + 2, + "size description" + ], + [ + 3, + "treatment type code" + ], + [ + 3, + "treatment type description" + ], + [ + 4, + "owner id" + ], + [ + 4, + "first name" + ], + [ + 4, + "last name" + ], + [ + 4, + "street" + ], + [ + 4, + "city" + ], + [ + 4, + "state" + ], + [ + 4, + "zip code" + ], + [ + 4, + "email address" + ], + [ + 4, + "home phone" + ], + [ + 4, + "cell number" + ], + [ + 5, + "dog id" + ], + [ + 5, + "owner id" + ], + [ + 5, + "abandoned yes or no" + ], + [ + 5, + "breed code" + ], + [ + 5, + "size code" + ], + [ + 5, + "name" + ], + [ + 5, + "age" + ], + [ + 5, + "date of birth" + ], + [ + 5, + "gender" + ], + [ + 5, + "weight" + ], + [ + 5, + "date arrived" + ], + [ + 5, + "date adopted" + ], + [ + 5, + "date departed" + ], + [ + 6, + "professional id" + ], + [ + 6, + "role code" + ], + [ + 6, + "first name" + ], + [ + 6, + "street" + ], + [ + 6, + "city" + ], + [ + 6, + "state" + ], + [ + 6, + "zip code" + ], + [ + 6, + "last name" + ], + [ + 6, + "email address" + ], + [ + 6, + "home phone" + ], + [ + 6, + "cell number" + ], + [ + 7, + "treatment id" + ], + [ + 7, + "dog id" + ], + [ + 7, + "professional id" + ], + [ + 7, + "treatment type code" + ], + [ + 7, + "date of treatment" + ], + [ + 7, + "cost of treatment" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "breed_code" + ], + [ + 0, + "breed_name" + ], + [ + 1, + "charge_id" + ], + [ + 1, + "charge_type" + ], + [ + 1, + "charge_amount" + ], + [ + 2, + "size_code" + ], + [ + 2, + "size_description" + ], + [ + 3, + "treatment_type_code" + ], + [ + 3, + "treatment_type_description" + ], + [ + 4, + "owner_id" + ], + [ + 4, + "first_name" + ], + [ + 4, + "last_name" + ], + [ + 4, + "street" + ], + [ + 4, + "city" + ], + [ + 4, + "state" + ], + [ + 4, + "zip_code" + ], + [ + 4, + "email_address" + ], + [ + 4, + "home_phone" + ], + [ + 4, + "cell_number" + ], + [ + 5, + "dog_id" + ], + [ + 5, + "owner_id" + ], + [ + 5, + "abandoned_yn" + ], + [ + 5, + "breed_code" + ], + [ + 5, + "size_code" + ], + [ + 5, + "name" + ], + [ + 5, + "age" + ], + [ + 5, + "date_of_birth" + ], + [ + 5, + "gender" + ], + [ + 5, + "weight" + ], + [ + 5, + "date_arrived" + ], + [ + 5, + "date_adopted" + ], + [ + 5, + "date_departed" + ], + [ + 6, + "professional_id" + ], + [ + 6, + "role_code" + ], + [ + 6, + "first_name" + ], + [ + 6, + "street" + ], + [ + 6, + "city" + ], + [ + 6, + "state" + ], + [ + 6, + "zip_code" + ], + [ + 6, + "last_name" + ], + [ + 6, + "email_address" + ], + [ + 6, + "home_phone" + ], + [ + 6, + "cell_number" + ], + [ + 7, + "treatment_id" + ], + [ + 7, + "dog_id" + ], + [ + 7, + "professional_id" + ], + [ + 7, + "treatment_type_code" + ], + [ + 7, + "date_of_treatment" + ], + [ + 7, + "cost_of_treatment" + ] + ], + "column_types": [ + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "time", + "text", + "text", + "time", + "time", + "time", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "time", + "number" + ], + "db_id": "dog_kennels", + "foreign_keys": [ + [ + 21, + 10 + ], + [ + 21, + 10 + ], + [ + 24, + 6 + ], + [ + 23, + 1 + ], + [ + 45, + 20 + ], + [ + 46, + 33 + ], + [ + 47, + 8 + ] + ], + "primary_keys": [ + 1, + 3, + 6, + 8, + 10, + 20, + 33, + 44 + ], + "table_names": [ + "breeds", + "charges", + "sizes", + "treatment types", + "owners", + "dogs", + "professionals", + "treatments" + ], + "table_names_original": [ + "Breeds", + "Charges", + "Sizes", + "Treatment_Types", + "Owners", + "Dogs", + "Professionals", + "Treatments" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "genre name" + ], + [ + 0, + "rating" + ], + [ + 0, + "most popular in" + ], + [ + 1, + "artist name" + ], + [ + 1, + "country" + ], + [ + 1, + "gender" + ], + [ + 1, + "preferred genre" + ], + [ + 2, + "song id" + ], + [ + 2, + "artist name" + ], + [ + 2, + "file size" + ], + [ + 2, + "duration" + ], + [ + 2, + "formats" + ], + [ + 3, + "song name" + ], + [ + 3, + "artist name" + ], + [ + 3, + "country" + ], + [ + 3, + "song id" + ], + [ + 3, + "genre is" + ], + [ + 3, + "rating" + ], + [ + 3, + "languages" + ], + [ + 3, + "releasedate" + ], + [ + 3, + "resolution" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "g_name" + ], + [ + 0, + "rating" + ], + [ + 0, + "most_popular_in" + ], + [ + 1, + "artist_name" + ], + [ + 1, + "country" + ], + [ + 1, + "gender" + ], + [ + 1, + "preferred_genre" + ], + [ + 2, + "f_id" + ], + [ + 2, + "artist_name" + ], + [ + 2, + "file_size" + ], + [ + 2, + "duration" + ], + [ + 2, + "formats" + ], + [ + 3, + "song_name" + ], + [ + 3, + "artist_name" + ], + [ + 3, + "country" + ], + [ + 3, + "f_id" + ], + [ + 3, + "genre_is" + ], + [ + 3, + "rating" + ], + [ + 3, + "languages" + ], + [ + 3, + "releasedate" + ], + [ + 3, + "resolution" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "time", + "number" + ], + "db_id": "music_1", + "foreign_keys": [ + [ + 7, + 1 + ], + [ + 9, + 4 + ], + [ + 17, + 1 + ], + [ + 16, + 8 + ], + [ + 14, + 4 + ] + ], + "primary_keys": [ + 1, + 4, + 8, + 13 + ], + "table_names": [ + "genre", + "artist", + "files", + "song" + ], + "table_names_original": [ + "genre", + "artist", + "files", + "song" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "people id" + ], + [ + 0, + "age" + ], + [ + 0, + "name" + ], + [ + 0, + "nationality" + ], + [ + 0, + "graduation college" + ], + [ + 1, + "company id" + ], + [ + 1, + "name" + ], + [ + 1, + "headquarters" + ], + [ + 1, + "industry" + ], + [ + 1, + "sales in billion" + ], + [ + 1, + "profits in billion" + ], + [ + 1, + "assets in billion" + ], + [ + 1, + "market value in billion" + ], + [ + 2, + "company id" + ], + [ + 2, + "people id" + ], + [ + 2, + "year working" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "People_ID" + ], + [ + 0, + "Age" + ], + [ + 0, + "Name" + ], + [ + 0, + "Nationality" + ], + [ + 0, + "Graduation_College" + ], + [ + 1, + "Company_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Headquarters" + ], + [ + 1, + "Industry" + ], + [ + 1, + "Sales_in_Billion" + ], + [ + 1, + "Profits_in_Billion" + ], + [ + 1, + "Assets_in_Billion" + ], + [ + 1, + "Market_Value_in_Billion" + ], + [ + 2, + "Company_ID" + ], + [ + 2, + "People_ID" + ], + [ + 2, + "Year_working" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "company_employee", + "foreign_keys": [ + [ + 15, + 1 + ], + [ + 14, + 6 + ] + ], + "primary_keys": [ + 1, + 6, + 14 + ], + "table_names": [ + "people", + "company", + "employment" + ], + "table_names_original": [ + "people", + "company", + "employment" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "city id" + ], + [ + 0, + "official name" + ], + [ + 0, + "status" + ], + [ + 0, + "area km 2" + ], + [ + 0, + "population" + ], + [ + 0, + "census ranking" + ], + [ + 1, + "farm id" + ], + [ + 1, + "year" + ], + [ + 1, + "total horses" + ], + [ + 1, + "working horses" + ], + [ + 1, + "total cattle" + ], + [ + 1, + "oxen" + ], + [ + 1, + "bulls" + ], + [ + 1, + "cows" + ], + [ + 1, + "pigs" + ], + [ + 1, + "sheep and goats" + ], + [ + 2, + "competition id" + ], + [ + 2, + "year" + ], + [ + 2, + "theme" + ], + [ + 2, + "host city id" + ], + [ + 2, + "hosts" + ], + [ + 3, + "competition id" + ], + [ + 3, + "farm id" + ], + [ + 3, + "rank" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "City_ID" + ], + [ + 0, + "Official_Name" + ], + [ + 0, + "Status" + ], + [ + 0, + "Area_km_2" + ], + [ + 0, + "Population" + ], + [ + 0, + "Census_Ranking" + ], + [ + 1, + "Farm_ID" + ], + [ + 1, + "Year" + ], + [ + 1, + "Total_Horses" + ], + [ + 1, + "Working_Horses" + ], + [ + 1, + "Total_Cattle" + ], + [ + 1, + "Oxen" + ], + [ + 1, + "Bulls" + ], + [ + 1, + "Cows" + ], + [ + 1, + "Pigs" + ], + [ + 1, + "Sheep_and_Goats" + ], + [ + 2, + "Competition_ID" + ], + [ + 2, + "Year" + ], + [ + 2, + "Theme" + ], + [ + 2, + "Host_city_ID" + ], + [ + 2, + "Hosts" + ], + [ + 3, + "Competition_ID" + ], + [ + 3, + "Farm_ID" + ], + [ + 3, + "Rank" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "text", + "number", + "number", + "number" + ], + "db_id": "farm", + "foreign_keys": [ + [ + 20, + 1 + ], + [ + 23, + 7 + ], + [ + 22, + 17 + ] + ], + "primary_keys": [ + 1, + 7, + 17, + 22 + ], + "table_names": [ + "city", + "farm", + "farm competition", + "competition record" + ], + "table_names_original": [ + "city", + "farm", + "farm_competition", + "competition_record" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "address id" + ], + [ + 0, + "address details" + ], + [ + 1, + "location id" + ], + [ + 1, + "other details" + ], + [ + 2, + "product id" + ], + [ + 2, + "product type code" + ], + [ + 2, + "product name" + ], + [ + 2, + "product price" + ], + [ + 3, + "party id" + ], + [ + 3, + "party details" + ], + [ + 4, + "asset id" + ], + [ + 4, + "other details" + ], + [ + 5, + "channel id" + ], + [ + 5, + "other details" + ], + [ + 6, + "finance id" + ], + [ + 6, + "other details" + ], + [ + 7, + "event id" + ], + [ + 7, + "address id" + ], + [ + 7, + "channel id" + ], + [ + 7, + "event type code" + ], + [ + 7, + "finance id" + ], + [ + 7, + "location id" + ], + [ + 8, + "product in event id" + ], + [ + 8, + "event id" + ], + [ + 8, + "product id" + ], + [ + 9, + "party id" + ], + [ + 9, + "event id" + ], + [ + 9, + "role code" + ], + [ + 10, + "document id" + ], + [ + 10, + "event id" + ], + [ + 11, + "asset id" + ], + [ + 11, + "event id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Address_ID" + ], + [ + 0, + "address_details" + ], + [ + 1, + "Location_ID" + ], + [ + 1, + "Other_Details" + ], + [ + 2, + "Product_ID" + ], + [ + 2, + "Product_Type_Code" + ], + [ + 2, + "Product_Name" + ], + [ + 2, + "Product_Price" + ], + [ + 3, + "Party_ID" + ], + [ + 3, + "Party_Details" + ], + [ + 4, + "Asset_ID" + ], + [ + 4, + "Other_Details" + ], + [ + 5, + "Channel_ID" + ], + [ + 5, + "Other_Details" + ], + [ + 6, + "Finance_ID" + ], + [ + 6, + "Other_Details" + ], + [ + 7, + "Event_ID" + ], + [ + 7, + "Address_ID" + ], + [ + 7, + "Channel_ID" + ], + [ + 7, + "Event_Type_Code" + ], + [ + 7, + "Finance_ID" + ], + [ + 7, + "Location_ID" + ], + [ + 8, + "Product_in_Event_ID" + ], + [ + 8, + "Event_ID" + ], + [ + 8, + "Product_ID" + ], + [ + 9, + "Party_ID" + ], + [ + 9, + "Event_ID" + ], + [ + 9, + "Role_Code" + ], + [ + 10, + "Document_ID" + ], + [ + 10, + "Event_ID" + ], + [ + 11, + "Asset_ID" + ], + [ + 11, + "Event_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "solvency_ii", + "foreign_keys": [ + [ + 21, + 15 + ], + [ + 18, + 1 + ], + [ + 22, + 3 + ], + [ + 25, + 5 + ], + [ + 24, + 17 + ], + [ + 27, + 17 + ], + [ + 26, + 9 + ], + [ + 30, + 17 + ], + [ + 32, + 17 + ], + [ + 32, + 17 + ] + ], + "primary_keys": [ + 1, + 3, + 5, + 9, + 11, + 13, + 15, + 17, + 23, + 26, + 29, + 31 + ], + "table_names": [ + "addresses", + "locations", + "products", + "parties", + "assets", + "channels", + "finances", + "events", + "products in events", + "parties in events", + "agreements", + "assets in events" + ], + "table_names_original": [ + "Addresses", + "Locations", + "Products", + "Parties", + "Assets", + "Channels", + "Finances", + "Events", + "Products_in_Events", + "Parties_in_Events", + "Agreements", + "Assets_in_Events" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "city id" + ], + [ + 0, + "city" + ], + [ + 0, + "hanzi" + ], + [ + 0, + "hanyu pinyin" + ], + [ + 0, + "regional population" + ], + [ + 0, + "gdp" + ], + [ + 1, + "match id" + ], + [ + 1, + "date" + ], + [ + 1, + "venue" + ], + [ + 1, + "score" + ], + [ + 1, + "result" + ], + [ + 1, + "competition" + ], + [ + 2, + "city id" + ], + [ + 2, + "jan" + ], + [ + 2, + "feb" + ], + [ + 2, + "mar" + ], + [ + 2, + "apr" + ], + [ + 2, + "jun" + ], + [ + 2, + "jul" + ], + [ + 2, + "aug" + ], + [ + 2, + "sep" + ], + [ + 2, + "oct" + ], + [ + 2, + "nov" + ], + [ + 2, + "dec" + ], + [ + 3, + "year" + ], + [ + 3, + "match id" + ], + [ + 3, + "host city" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "City_ID" + ], + [ + 0, + "City" + ], + [ + 0, + "Hanzi" + ], + [ + 0, + "Hanyu_Pinyin" + ], + [ + 0, + "Regional_Population" + ], + [ + 0, + "GDP" + ], + [ + 1, + "Match_ID" + ], + [ + 1, + "Date" + ], + [ + 1, + "Venue" + ], + [ + 1, + "Score" + ], + [ + 1, + "Result" + ], + [ + 1, + "Competition" + ], + [ + 2, + "City_ID" + ], + [ + 2, + "Jan" + ], + [ + 2, + "Feb" + ], + [ + 2, + "Mar" + ], + [ + 2, + "Apr" + ], + [ + 2, + "Jun" + ], + [ + 2, + "Jul" + ], + [ + 2, + "Aug" + ], + [ + 2, + "Sep" + ], + [ + 2, + "Oct" + ], + [ + 2, + "Nov" + ], + [ + 2, + "Dec" + ], + [ + 3, + "Year" + ], + [ + 3, + "Match_ID" + ], + [ + 3, + "Host_City" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text" + ], + "db_id": "city_record", + "foreign_keys": [ + [ + 13, + 1 + ], + [ + 26, + 7 + ], + [ + 27, + 1 + ] + ], + "primary_keys": [ + 1, + 7, + 13, + 25 + ], + "table_names": [ + "city", + "match", + "temperature", + "hosting city" + ], + "table_names_original": [ + "city", + "match", + "temperature", + "hosting_city" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "nationality" + ], + [ + 0, + "meter 100" + ], + [ + 0, + "meter 200" + ], + [ + 0, + "meter 300" + ], + [ + 0, + "meter 400" + ], + [ + 0, + "meter 500" + ], + [ + 0, + "meter 600" + ], + [ + 0, + "meter 700" + ], + [ + 0, + "time" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "capacity" + ], + [ + 1, + "city" + ], + [ + 1, + "country" + ], + [ + 1, + "opening year" + ], + [ + 2, + "id" + ], + [ + 2, + "name" + ], + [ + 2, + "stadium id" + ], + [ + 2, + "year" + ], + [ + 3, + "id" + ], + [ + 3, + "result" + ], + [ + 3, + "swimmer id" + ], + [ + 3, + "event id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "ID" + ], + [ + 0, + "name" + ], + [ + 0, + "Nationality" + ], + [ + 0, + "meter_100" + ], + [ + 0, + "meter_200" + ], + [ + 0, + "meter_300" + ], + [ + 0, + "meter_400" + ], + [ + 0, + "meter_500" + ], + [ + 0, + "meter_600" + ], + [ + 0, + "meter_700" + ], + [ + 0, + "Time" + ], + [ + 1, + "ID" + ], + [ + 1, + "name" + ], + [ + 1, + "Capacity" + ], + [ + 1, + "City" + ], + [ + 1, + "Country" + ], + [ + 1, + "Opening_year" + ], + [ + 2, + "ID" + ], + [ + 2, + "Name" + ], + [ + 2, + "Stadium_ID" + ], + [ + 2, + "Year" + ], + [ + 3, + "ID" + ], + [ + 3, + "Result" + ], + [ + 3, + "Swimmer_ID" + ], + [ + 3, + "Event_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "number" + ], + "db_id": "swimming", + "foreign_keys": [ + [ + 20, + 12 + ], + [ + 24, + 1 + ], + [ + 25, + 18 + ] + ], + "primary_keys": [ + 1, + 12, + 18, + 24 + ], + "table_names": [ + "swimmer", + "stadium", + "event", + "record" + ], + "table_names_original": [ + "swimmer", + "stadium", + "event", + "record" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "airline id" + ], + [ + 0, + "airline name" + ], + [ + 0, + "abbreviation" + ], + [ + 0, + "country" + ], + [ + 1, + "city" + ], + [ + 1, + "airport code" + ], + [ + 1, + "airport name" + ], + [ + 1, + "country" + ], + [ + 1, + "country abbrev" + ], + [ + 2, + "airline" + ], + [ + 2, + "flight number" + ], + [ + 2, + "source airport" + ], + [ + 2, + "destination airport" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "uid" + ], + [ + 0, + "Airline" + ], + [ + 0, + "Abbreviation" + ], + [ + 0, + "Country" + ], + [ + 1, + "City" + ], + [ + 1, + "AirportCode" + ], + [ + 1, + "AirportName" + ], + [ + 1, + "Country" + ], + [ + 1, + "CountryAbbrev" + ], + [ + 2, + "Airline" + ], + [ + 2, + "FlightNo" + ], + [ + 2, + "SourceAirport" + ], + [ + 2, + "DestAirport" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text" + ], + "db_id": "flight_2", + "foreign_keys": [ + [ + 13, + 6 + ], + [ + 12, + 6 + ] + ], + "primary_keys": [ + 1, + 6, + 10 + ], + "table_names": [ + "airlines", + "airports", + "flights" + ], + "table_names_original": [ + "airlines", + "airports", + "flights" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "county id" + ], + [ + 0, + "county name" + ], + [ + 0, + "population" + ], + [ + 0, + "zip code" + ], + [ + 1, + "party id" + ], + [ + 1, + "year" + ], + [ + 1, + "party" + ], + [ + 1, + "governor" + ], + [ + 1, + "lieutenant governor" + ], + [ + 1, + "comptroller" + ], + [ + 1, + "attorney general" + ], + [ + 1, + "us senate" + ], + [ + 2, + "election id" + ], + [ + 2, + "counties represented" + ], + [ + 2, + "district" + ], + [ + 2, + "delegate" + ], + [ + 2, + "party" + ], + [ + 2, + "first elected" + ], + [ + 2, + "committee" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "County_Id" + ], + [ + 0, + "County_name" + ], + [ + 0, + "Population" + ], + [ + 0, + "Zip_code" + ], + [ + 1, + "Party_ID" + ], + [ + 1, + "Year" + ], + [ + 1, + "Party" + ], + [ + 1, + "Governor" + ], + [ + 1, + "Lieutenant_Governor" + ], + [ + 1, + "Comptroller" + ], + [ + 1, + "Attorney_General" + ], + [ + 1, + "US_Senate" + ], + [ + 2, + "Election_ID" + ], + [ + 2, + "Counties_Represented" + ], + [ + 2, + "District" + ], + [ + 2, + "Delegate" + ], + [ + 2, + "Party" + ], + [ + 2, + "First_Elected" + ], + [ + 2, + "Committee" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "text" + ], + "db_id": "election", + "foreign_keys": [ + [ + 15, + 1 + ], + [ + 17, + 5 + ] + ], + "primary_keys": [ + 1, + 5, + 13 + ], + "table_names": [ + "county", + "party", + "election" + ], + "table_names_original": [ + "county", + "party", + "election" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "code" + ], + [ + 0, + "name" + ], + [ + 0, + "headquarter" + ], + [ + 0, + "founder" + ], + [ + 0, + "revenue" + ], + [ + 1, + "code" + ], + [ + 1, + "name" + ], + [ + 1, + "price" + ], + [ + 1, + "manufacturer" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Code" + ], + [ + 0, + "Name" + ], + [ + 0, + "Headquarter" + ], + [ + 0, + "Founder" + ], + [ + 0, + "Revenue" + ], + [ + 1, + "Code" + ], + [ + 1, + "Name" + ], + [ + 1, + "Price" + ], + [ + 1, + "Manufacturer" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "number", + "number" + ], + "db_id": "manufactory_1", + "foreign_keys": [ + [ + 9, + 1 + ] + ], + "primary_keys": [ + 1, + 6 + ], + "table_names": [ + "manufacturers", + "products" + ], + "table_names_original": [ + "Manufacturers", + "Products" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "people id" + ], + [ + 0, + "district" + ], + [ + 0, + "name" + ], + [ + 0, + "party" + ], + [ + 0, + "age" + ], + [ + 1, + "debate id" + ], + [ + 1, + "date" + ], + [ + 1, + "venue" + ], + [ + 1, + "num of audience" + ], + [ + 2, + "debate id" + ], + [ + 2, + "affirmative" + ], + [ + 2, + "negative" + ], + [ + 2, + "if affirmative win" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "People_ID" + ], + [ + 0, + "District" + ], + [ + 0, + "Name" + ], + [ + 0, + "Party" + ], + [ + 0, + "Age" + ], + [ + 1, + "Debate_ID" + ], + [ + 1, + "Date" + ], + [ + 1, + "Venue" + ], + [ + 1, + "Num_of_Audience" + ], + [ + 2, + "Debate_ID" + ], + [ + 2, + "Affirmative" + ], + [ + 2, + "Negative" + ], + [ + 2, + "If_Affirmative_Win" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "others" + ], + "db_id": "debate", + "foreign_keys": [ + [ + 12, + 1 + ], + [ + 11, + 1 + ], + [ + 10, + 6 + ] + ], + "primary_keys": [ + 1, + 6, + 10 + ], + "table_names": [ + "people", + "debate", + "debate people" + ], + "table_names_original": [ + "people", + "debate", + "debate_people" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "name" + ], + [ + 0, + "age" + ], + [ + 0, + "city" + ], + [ + 0, + "gender" + ], + [ + 0, + "job" + ], + [ + 1, + "name" + ], + [ + 1, + "friend" + ], + [ + 1, + "year" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "name" + ], + [ + 0, + "age" + ], + [ + 0, + "city" + ], + [ + 0, + "gender" + ], + [ + 0, + "job" + ], + [ + 1, + "name" + ], + [ + 1, + "friend" + ], + [ + 1, + "year" + ] + ], + "column_types": [ + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number" + ], + "db_id": "network_2", + "foreign_keys": [ + [ + 7, + 1 + ], + [ + 6, + 1 + ] + ], + "primary_keys": [ + 1 + ], + "table_names": [ + "person", + "person friend" + ], + "table_names_original": [ + "Person", + "PersonFriend" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "service id" + ], + [ + 0, + "service type code" + ], + [ + 1, + "participant id" + ], + [ + 1, + "participant type code" + ], + [ + 1, + "participant details" + ], + [ + 2, + "event id" + ], + [ + 2, + "service id" + ], + [ + 2, + "event details" + ], + [ + 3, + "event id" + ], + [ + 3, + "participant id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Service_ID" + ], + [ + 0, + "Service_Type_Code" + ], + [ + 1, + "Participant_ID" + ], + [ + 1, + "Participant_Type_Code" + ], + [ + 1, + "Participant_Details" + ], + [ + 2, + "Event_ID" + ], + [ + 2, + "Service_ID" + ], + [ + 2, + "Event_Details" + ], + [ + 3, + "Event_ID" + ], + [ + 3, + "Participant_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "number" + ], + "db_id": "local_govt_in_alabama", + "foreign_keys": [ + [ + 7, + 1 + ], + [ + 9, + 6 + ], + [ + 10, + 3 + ] + ], + "primary_keys": [ + 1, + 3, + 6, + 9 + ], + "table_names": [ + "services", + "participants", + "events", + "participants in events" + ], + "table_names_original": [ + "Services", + "Participants", + "Events", + "Participants_in_Events" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "mountain id" + ], + [ + 0, + "name" + ], + [ + 0, + "height" + ], + [ + 0, + "prominence" + ], + [ + 0, + "range" + ], + [ + 0, + "country" + ], + [ + 1, + "climber id" + ], + [ + 1, + "name" + ], + [ + 1, + "country" + ], + [ + 1, + "time" + ], + [ + 1, + "points" + ], + [ + 1, + "mountain id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Mountain_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Height" + ], + [ + 0, + "Prominence" + ], + [ + 0, + "Range" + ], + [ + 0, + "Country" + ], + [ + 1, + "Climber_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Country" + ], + [ + 1, + "Time" + ], + [ + 1, + "Points" + ], + [ + 1, + "Mountain_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number" + ], + "db_id": "climbing", + "foreign_keys": [ + [ + 12, + 1 + ] + ], + "primary_keys": [ + 1, + 7 + ], + "table_names": [ + "mountain", + "climber" + ], + "table_names_original": [ + "mountain", + "climber" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "author id" + ], + [ + 0, + "author tutor atb" + ], + [ + 0, + "login name" + ], + [ + 0, + "password" + ], + [ + 0, + "personal name" + ], + [ + 0, + "middle name" + ], + [ + 0, + "family name" + ], + [ + 0, + "gender mf" + ], + [ + 0, + "address line 1" + ], + [ + 1, + "student id" + ], + [ + 1, + "date of registration" + ], + [ + 1, + "date of latest logon" + ], + [ + 1, + "login name" + ], + [ + 1, + "password" + ], + [ + 1, + "personal name" + ], + [ + 1, + "middle name" + ], + [ + 1, + "family name" + ], + [ + 2, + "subject id" + ], + [ + 2, + "subject name" + ], + [ + 3, + "course id" + ], + [ + 3, + "author id" + ], + [ + 3, + "subject id" + ], + [ + 3, + "course name" + ], + [ + 3, + "course description" + ], + [ + 4, + "registration id" + ], + [ + 4, + "student id" + ], + [ + 4, + "course id" + ], + [ + 4, + "date of enrolment" + ], + [ + 4, + "date of completion" + ], + [ + 5, + "registration id" + ], + [ + 5, + "date test taken" + ], + [ + 5, + "test result" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "author_id" + ], + [ + 0, + "author_tutor_ATB" + ], + [ + 0, + "login_name" + ], + [ + 0, + "password" + ], + [ + 0, + "personal_name" + ], + [ + 0, + "middle_name" + ], + [ + 0, + "family_name" + ], + [ + 0, + "gender_mf" + ], + [ + 0, + "address_line_1" + ], + [ + 1, + "student_id" + ], + [ + 1, + "date_of_registration" + ], + [ + 1, + "date_of_latest_logon" + ], + [ + 1, + "login_name" + ], + [ + 1, + "password" + ], + [ + 1, + "personal_name" + ], + [ + 1, + "middle_name" + ], + [ + 1, + "family_name" + ], + [ + 2, + "subject_id" + ], + [ + 2, + "subject_name" + ], + [ + 3, + "course_id" + ], + [ + 3, + "author_id" + ], + [ + 3, + "subject_id" + ], + [ + 3, + "course_name" + ], + [ + 3, + "course_description" + ], + [ + 4, + "registration_id" + ], + [ + 4, + "student_id" + ], + [ + 4, + "course_id" + ], + [ + 4, + "date_of_enrolment" + ], + [ + 4, + "date_of_completion" + ], + [ + 5, + "registration_id" + ], + [ + 5, + "date_test_taken" + ], + [ + 5, + "test_result" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "time", + "time", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "time", + "time", + "number", + "time", + "text" + ], + "db_id": "e_learning", + "foreign_keys": [ + [ + 22, + 18 + ], + [ + 21, + 1 + ], + [ + 26, + 10 + ], + [ + 27, + 20 + ], + [ + 30, + 25 + ] + ], + "primary_keys": [ + 1, + 10, + 18, + 20, + 25 + ], + "table_names": [ + "course authors and tutors", + "students", + "subjects", + "courses", + "student course enrolment", + "student tests taken" + ], + "table_names_original": [ + "Course_Authors_and_Tutors", + "Students", + "Subjects", + "Courses", + "Student_Course_Enrolment", + "Student_Tests_Taken" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "ssn" + ], + [ + 0, + "name" + ], + [ + 1, + "code" + ], + [ + 1, + "name" + ], + [ + 1, + "hours" + ], + [ + 2, + "scientist" + ], + [ + 2, + "project" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "SSN" + ], + [ + 0, + "Name" + ], + [ + 1, + "Code" + ], + [ + 1, + "Name" + ], + [ + 1, + "Hours" + ], + [ + 2, + "Scientist" + ], + [ + 2, + "Project" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text" + ], + "db_id": "scientist_1", + "foreign_keys": [ + [ + 7, + 3 + ], + [ + 6, + 1 + ] + ], + "primary_keys": [ + 1, + 3, + 6 + ], + "table_names": [ + "scientists", + "projects", + "assigned to" + ], + "table_names_original": [ + "Scientists", + "Projects", + "AssignedTo" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "captain id" + ], + [ + 0, + "name" + ], + [ + 0, + "ship id" + ], + [ + 0, + "age" + ], + [ + 0, + "class" + ], + [ + 0, + "rank" + ], + [ + 1, + "ship id" + ], + [ + 1, + "name" + ], + [ + 1, + "type" + ], + [ + 1, + "built year" + ], + [ + 1, + "class" + ], + [ + 1, + "flag" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Captain_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Ship_ID" + ], + [ + 0, + "age" + ], + [ + 0, + "Class" + ], + [ + 0, + "Rank" + ], + [ + 1, + "Ship_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Type" + ], + [ + 1, + "Built_Year" + ], + [ + 1, + "Class" + ], + [ + 1, + "Flag" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text" + ], + "db_id": "ship_1", + "foreign_keys": [ + [ + 3, + 7 + ] + ], + "primary_keys": [ + 1, + 7 + ], + "table_names": [ + "captain", + "ship" + ], + "table_names_original": [ + "captain", + "Ship" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "festival id" + ], + [ + 0, + "festival name" + ], + [ + 0, + "chair name" + ], + [ + 0, + "location" + ], + [ + 0, + "year" + ], + [ + 0, + "num of audience" + ], + [ + 1, + "artwork id" + ], + [ + 1, + "type" + ], + [ + 1, + "name" + ], + [ + 2, + "artwork id" + ], + [ + 2, + "festival id" + ], + [ + 2, + "result" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Festival_ID" + ], + [ + 0, + "Festival_Name" + ], + [ + 0, + "Chair_Name" + ], + [ + 0, + "Location" + ], + [ + 0, + "Year" + ], + [ + 0, + "Num_of_Audience" + ], + [ + 1, + "Artwork_ID" + ], + [ + 1, + "Type" + ], + [ + 1, + "Name" + ], + [ + 2, + "Artwork_ID" + ], + [ + 2, + "Festival_ID" + ], + [ + 2, + "Result" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "text" + ], + "db_id": "entertainment_awards", + "foreign_keys": [ + [ + 11, + 1 + ], + [ + 10, + 7 + ] + ], + "primary_keys": [ + 1, + 7, + 10 + ], + "table_names": [ + "festival detail", + "artwork", + "nomination" + ], + "table_names_original": [ + "festival_detail", + "artwork", + "nomination" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "allergy name" + ], + [ + 0, + "allergy type" + ], + [ + 1, + "stuid" + ], + [ + 1, + "allergy" + ], + [ + 2, + "stuid" + ], + [ + 2, + "last name" + ], + [ + 2, + "first name" + ], + [ + 2, + "age" + ], + [ + 2, + "sex" + ], + [ + 2, + "major" + ], + [ + 2, + "advisor" + ], + [ + 2, + "city code" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Allergy" + ], + [ + 0, + "AllergyType" + ], + [ + 1, + "StuID" + ], + [ + 1, + "Allergy" + ], + [ + 2, + "StuID" + ], + [ + 2, + "LName" + ], + [ + 2, + "Fname" + ], + [ + 2, + "Age" + ], + [ + 2, + "Sex" + ], + [ + 2, + "Major" + ], + [ + 2, + "Advisor" + ], + [ + 2, + "city_code" + ] + ], + "column_types": [ + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text" + ], + "db_id": "allergy_1", + "foreign_keys": [ + [ + 4, + 1 + ], + [ + 3, + 5 + ] + ], + "primary_keys": [ + 1, + 5 + ], + "table_names": [ + "allergy type", + "has allergy", + "student" + ], + "table_names_original": [ + "Allergy_Type", + "Has_Allergy", + "Student" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "aid" + ], + [ + 0, + "gender" + ], + [ + 0, + "name" + ], + [ + 0, + "nationality" + ], + [ + 0, + "birth city" + ], + [ + 0, + "birth year" + ], + [ + 1, + "id" + ], + [ + 1, + "msid" + ], + [ + 1, + "cid" + ], + [ + 2, + "id" + ], + [ + 2, + "msid" + ], + [ + 2, + "aid" + ], + [ + 2, + "role" + ], + [ + 3, + "gid" + ], + [ + 3, + "genre" + ], + [ + 4, + "id" + ], + [ + 4, + "msid" + ], + [ + 4, + "gid" + ], + [ + 5, + "id" + ], + [ + 5, + "name" + ], + [ + 5, + "country code" + ], + [ + 6, + "did" + ], + [ + 6, + "gender" + ], + [ + 6, + "name" + ], + [ + 6, + "nationality" + ], + [ + 6, + "birth city" + ], + [ + 6, + "birth year" + ], + [ + 7, + "pid" + ], + [ + 7, + "gender" + ], + [ + 7, + "name" + ], + [ + 7, + "nationality" + ], + [ + 7, + "birth city" + ], + [ + 7, + "birth year" + ], + [ + 8, + "id" + ], + [ + 8, + "msid" + ], + [ + 8, + "did" + ], + [ + 9, + "id" + ], + [ + 9, + "keyword" + ], + [ + 10, + "id" + ], + [ + 10, + "msid" + ], + [ + 10, + "pid" + ], + [ + 11, + "mid" + ], + [ + 11, + "title" + ], + [ + 11, + "release year" + ], + [ + 11, + "title aka" + ], + [ + 11, + "budget" + ], + [ + 12, + "id" + ], + [ + 12, + "msid" + ], + [ + 12, + "kid" + ], + [ + 13, + "sid" + ], + [ + 13, + "title" + ], + [ + 13, + "release year" + ], + [ + 13, + "num of seasons" + ], + [ + 13, + "num of episodes" + ], + [ + 13, + "title aka" + ], + [ + 13, + "budget" + ], + [ + 14, + "wid" + ], + [ + 14, + "gender" + ], + [ + 14, + "name" + ], + [ + 14, + "nationality" + ], + [ + 14, + "num of episodes" + ], + [ + 14, + "birth city" + ], + [ + 14, + "birth year" + ], + [ + 15, + "id" + ], + [ + 15, + "msid" + ], + [ + 15, + "wid" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "aid" + ], + [ + 0, + "gender" + ], + [ + 0, + "name" + ], + [ + 0, + "nationality" + ], + [ + 0, + "birth_city" + ], + [ + 0, + "birth_year" + ], + [ + 1, + "id" + ], + [ + 1, + "msid" + ], + [ + 1, + "cid" + ], + [ + 2, + "id" + ], + [ + 2, + "msid" + ], + [ + 2, + "aid" + ], + [ + 2, + "role" + ], + [ + 3, + "gid" + ], + [ + 3, + "genre" + ], + [ + 4, + "id" + ], + [ + 4, + "msid" + ], + [ + 4, + "gid" + ], + [ + 5, + "id" + ], + [ + 5, + "name" + ], + [ + 5, + "country_code" + ], + [ + 6, + "did" + ], + [ + 6, + "gender" + ], + [ + 6, + "name" + ], + [ + 6, + "nationality" + ], + [ + 6, + "birth_city" + ], + [ + 6, + "birth_year" + ], + [ + 7, + "pid" + ], + [ + 7, + "gender" + ], + [ + 7, + "name" + ], + [ + 7, + "nationality" + ], + [ + 7, + "birth_city" + ], + [ + 7, + "birth_year" + ], + [ + 8, + "id" + ], + [ + 8, + "msid" + ], + [ + 8, + "did" + ], + [ + 9, + "id" + ], + [ + 9, + "keyword" + ], + [ + 10, + "id" + ], + [ + 10, + "msid" + ], + [ + 10, + "pid" + ], + [ + 11, + "mid" + ], + [ + 11, + "title" + ], + [ + 11, + "release_year" + ], + [ + 11, + "title_aka" + ], + [ + 11, + "budget" + ], + [ + 12, + "id" + ], + [ + 12, + "msid" + ], + [ + 12, + "kid" + ], + [ + 13, + "sid" + ], + [ + 13, + "title" + ], + [ + 13, + "release_year" + ], + [ + 13, + "num_of_seasons" + ], + [ + 13, + "num_of_episodes" + ], + [ + 13, + "title_aka" + ], + [ + 13, + "budget" + ], + [ + 14, + "wid" + ], + [ + 14, + "gender" + ], + [ + 14, + "name" + ], + [ + 14, + "nationality" + ], + [ + 14, + "num_of_episodes" + ], + [ + 14, + "birth_city" + ], + [ + 14, + "birth_year" + ], + [ + 15, + "id" + ], + [ + 15, + "msid" + ], + [ + 15, + "wid" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "imdb", + "foreign_keys": [ + [ + 11, + 8 + ], + [ + 12, + 1 + ], + [ + 17, + 8 + ], + [ + 18, + 14 + ], + [ + 36, + 22 + ], + [ + 35, + 8 + ], + [ + 41, + 28 + ], + [ + 40, + 8 + ], + [ + 48, + 8 + ], + [ + 66, + 57 + ], + [ + 65, + 8 + ] + ], + "primary_keys": [ + 1, + 7, + 10, + 14, + 16, + 19, + 22, + 28, + 34, + 37, + 39, + 42, + 47, + 50, + 57 + ], + "table_names": [ + "actor", + "copyright", + "cast", + "genre", + "classification", + "company", + "director", + "producer", + "directed by", + "keyword", + "made by", + "movie", + "tags", + "tv series", + "writer", + "written by" + ], + "table_names_original": [ + "actor", + "copyright", + "cast", + "genre", + "classification", + "company", + "director", + "producer", + "directed_by", + "keyword", + "made_by", + "movie", + "tags", + "tv_series", + "writer", + "written_by" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "coupon id" + ], + [ + 0, + "date issued" + ], + [ + 0, + "coupon amount" + ], + [ + 1, + "customer id" + ], + [ + 1, + "coupon id" + ], + [ + 1, + "good or bad customer" + ], + [ + 1, + "first name" + ], + [ + 1, + "last name" + ], + [ + 1, + "gender" + ], + [ + 1, + "date became customer" + ], + [ + 1, + "date last hire" + ], + [ + 2, + "booking id" + ], + [ + 2, + "customer id" + ], + [ + 2, + "booking status code" + ], + [ + 2, + "returned damaged yes or no" + ], + [ + 2, + "booking start date" + ], + [ + 2, + "booking end date" + ], + [ + 2, + "count hired" + ], + [ + 2, + "amount payable" + ], + [ + 2, + "amount of discount" + ], + [ + 2, + "amount outstanding" + ], + [ + 2, + "amount of refund" + ], + [ + 3, + "product id" + ], + [ + 3, + "product type code" + ], + [ + 3, + "daily hire cost" + ], + [ + 3, + "product name" + ], + [ + 3, + "product description" + ], + [ + 4, + "payment id" + ], + [ + 4, + "booking id" + ], + [ + 4, + "customer id" + ], + [ + 4, + "payment type code" + ], + [ + 4, + "amount paid in full yn" + ], + [ + 4, + "payment date" + ], + [ + 4, + "amount due" + ], + [ + 4, + "amount paid" + ], + [ + 5, + "booking id" + ], + [ + 5, + "product id" + ], + [ + 5, + "returned yes or no" + ], + [ + 5, + "returned late yes or no" + ], + [ + 5, + "booked count" + ], + [ + 5, + "booked amount" + ], + [ + 6, + "product id" + ], + [ + 6, + "booking id" + ], + [ + 6, + "status date" + ], + [ + 6, + "available yes or no" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "coupon_id" + ], + [ + 0, + "date_issued" + ], + [ + 0, + "coupon_amount" + ], + [ + 1, + "customer_id" + ], + [ + 1, + "coupon_id" + ], + [ + 1, + "good_or_bad_customer" + ], + [ + 1, + "first_name" + ], + [ + 1, + "last_name" + ], + [ + 1, + "gender_mf" + ], + [ + 1, + "date_became_customer" + ], + [ + 1, + "date_last_hire" + ], + [ + 2, + "booking_id" + ], + [ + 2, + "customer_id" + ], + [ + 2, + "booking_status_code" + ], + [ + 2, + "returned_damaged_yn" + ], + [ + 2, + "booking_start_date" + ], + [ + 2, + "booking_end_date" + ], + [ + 2, + "count_hired" + ], + [ + 2, + "amount_payable" + ], + [ + 2, + "amount_of_discount" + ], + [ + 2, + "amount_outstanding" + ], + [ + 2, + "amount_of_refund" + ], + [ + 3, + "product_id" + ], + [ + 3, + "product_type_code" + ], + [ + 3, + "daily_hire_cost" + ], + [ + 3, + "product_name" + ], + [ + 3, + "product_description" + ], + [ + 4, + "payment_id" + ], + [ + 4, + "booking_id" + ], + [ + 4, + "customer_id" + ], + [ + 4, + "payment_type_code" + ], + [ + 4, + "amount_paid_in_full_yn" + ], + [ + 4, + "payment_date" + ], + [ + 4, + "amount_due" + ], + [ + 4, + "amount_paid" + ], + [ + 5, + "booking_id" + ], + [ + 5, + "product_id" + ], + [ + 5, + "returned_yn" + ], + [ + 5, + "returned_late_yn" + ], + [ + 5, + "booked_count" + ], + [ + 5, + "booked_amount" + ], + [ + 6, + "product_id" + ], + [ + 6, + "booking_id" + ], + [ + 6, + "status_date" + ], + [ + 6, + "available_yn" + ] + ], + "column_types": [ + "text", + "number", + "time", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "time", + "time", + "number", + "number", + "text", + "text", + "time", + "time", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "time", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "time", + "text" + ], + "db_id": "products_for_hire", + "foreign_keys": [ + [ + 5, + 1 + ], + [ + 13, + 4 + ], + [ + 30, + 4 + ], + [ + 29, + 12 + ], + [ + 37, + 23 + ], + [ + 36, + 12 + ], + [ + 42, + 23 + ], + [ + 43, + 12 + ] + ], + "primary_keys": [ + 1, + 4, + 12, + 23, + 28, + 36, + 44 + ], + "table_names": [ + "discount coupons", + "customers", + "bookings", + "products for hire", + "payments", + "products booked", + "view product availability" + ], + "table_names_original": [ + "Discount_Coupons", + "Customers", + "Bookings", + "Products_for_Hire", + "Payments", + "Products_Booked", + "View_Product_Availability" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "candidate id" + ], + [ + 0, + "people id" + ], + [ + 0, + "poll source" + ], + [ + 0, + "date" + ], + [ + 0, + "support rate" + ], + [ + 0, + "consider rate" + ], + [ + 0, + "oppose rate" + ], + [ + 0, + "unsure rate" + ], + [ + 1, + "people id" + ], + [ + 1, + "sex" + ], + [ + 1, + "name" + ], + [ + 1, + "date of birth" + ], + [ + 1, + "height" + ], + [ + 1, + "weight" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Candidate_ID" + ], + [ + 0, + "People_ID" + ], + [ + 0, + "Poll_Source" + ], + [ + 0, + "Date" + ], + [ + 0, + "Support_rate" + ], + [ + 0, + "Consider_rate" + ], + [ + 0, + "Oppose_rate" + ], + [ + 0, + "Unsure_rate" + ], + [ + 1, + "People_ID" + ], + [ + 1, + "Sex" + ], + [ + 1, + "Name" + ], + [ + 1, + "Date_of_Birth" + ], + [ + 1, + "Height" + ], + [ + 1, + "Weight" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "number" + ], + "db_id": "candidate_poll", + "foreign_keys": [ + [ + 2, + 9 + ] + ], + "primary_keys": [ + 1, + 9 + ], + "table_names": [ + "candidate", + "people" + ], + "table_names_original": [ + "candidate", + "people" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "album id" + ], + [ + 0, + "title" + ], + [ + 0, + "artist id" + ], + [ + 1, + "artist id" + ], + [ + 1, + "name" + ], + [ + 2, + "customer id" + ], + [ + 2, + "first name" + ], + [ + 2, + "last name" + ], + [ + 2, + "company" + ], + [ + 2, + "address" + ], + [ + 2, + "city" + ], + [ + 2, + "state" + ], + [ + 2, + "country" + ], + [ + 2, + "postal code" + ], + [ + 2, + "phone" + ], + [ + 2, + "fax" + ], + [ + 2, + "email" + ], + [ + 2, + "support representative id" + ], + [ + 3, + "employee id" + ], + [ + 3, + "last name" + ], + [ + 3, + "first name" + ], + [ + 3, + "title" + ], + [ + 3, + "reports to" + ], + [ + 3, + "birth date" + ], + [ + 3, + "hire date" + ], + [ + 3, + "address" + ], + [ + 3, + "city" + ], + [ + 3, + "state" + ], + [ + 3, + "country" + ], + [ + 3, + "postal code" + ], + [ + 3, + "phone" + ], + [ + 3, + "fax" + ], + [ + 3, + "email" + ], + [ + 4, + "genre id" + ], + [ + 4, + "name" + ], + [ + 5, + "invoice id" + ], + [ + 5, + "customer id" + ], + [ + 5, + "invoice date" + ], + [ + 5, + "billing address" + ], + [ + 5, + "billing city" + ], + [ + 5, + "billing state" + ], + [ + 5, + "billing country" + ], + [ + 5, + "billing postal code" + ], + [ + 5, + "total" + ], + [ + 6, + "invoice line id" + ], + [ + 6, + "invoice id" + ], + [ + 6, + "track id" + ], + [ + 6, + "unit price" + ], + [ + 6, + "quantity" + ], + [ + 7, + "media type id" + ], + [ + 7, + "name" + ], + [ + 8, + "play list id" + ], + [ + 8, + "name" + ], + [ + 9, + "play list id" + ], + [ + 9, + "track id" + ], + [ + 10, + "track id" + ], + [ + 10, + "name" + ], + [ + 10, + "album id" + ], + [ + 10, + "media type id" + ], + [ + 10, + "genre id" + ], + [ + 10, + "composer" + ], + [ + 10, + "milliseconds" + ], + [ + 10, + "bytes" + ], + [ + 10, + "unit price" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "AlbumId" + ], + [ + 0, + "Title" + ], + [ + 0, + "ArtistId" + ], + [ + 1, + "ArtistId" + ], + [ + 1, + "Name" + ], + [ + 2, + "CustomerId" + ], + [ + 2, + "FirstName" + ], + [ + 2, + "LastName" + ], + [ + 2, + "Company" + ], + [ + 2, + "Address" + ], + [ + 2, + "City" + ], + [ + 2, + "State" + ], + [ + 2, + "Country" + ], + [ + 2, + "PostalCode" + ], + [ + 2, + "Phone" + ], + [ + 2, + "Fax" + ], + [ + 2, + "Email" + ], + [ + 2, + "SupportRepId" + ], + [ + 3, + "EmployeeId" + ], + [ + 3, + "LastName" + ], + [ + 3, + "FirstName" + ], + [ + 3, + "Title" + ], + [ + 3, + "ReportsTo" + ], + [ + 3, + "BirthDate" + ], + [ + 3, + "HireDate" + ], + [ + 3, + "Address" + ], + [ + 3, + "City" + ], + [ + 3, + "State" + ], + [ + 3, + "Country" + ], + [ + 3, + "PostalCode" + ], + [ + 3, + "Phone" + ], + [ + 3, + "Fax" + ], + [ + 3, + "Email" + ], + [ + 4, + "GenreId" + ], + [ + 4, + "Name" + ], + [ + 5, + "InvoiceId" + ], + [ + 5, + "CustomerId" + ], + [ + 5, + "InvoiceDate" + ], + [ + 5, + "BillingAddress" + ], + [ + 5, + "BillingCity" + ], + [ + 5, + "BillingState" + ], + [ + 5, + "BillingCountry" + ], + [ + 5, + "BillingPostalCode" + ], + [ + 5, + "Total" + ], + [ + 6, + "InvoiceLineId" + ], + [ + 6, + "InvoiceId" + ], + [ + 6, + "TrackId" + ], + [ + 6, + "UnitPrice" + ], + [ + 6, + "Quantity" + ], + [ + 7, + "MediaTypeId" + ], + [ + 7, + "Name" + ], + [ + 8, + "PlaylistId" + ], + [ + 8, + "Name" + ], + [ + 9, + "PlaylistId" + ], + [ + 9, + "TrackId" + ], + [ + 10, + "TrackId" + ], + [ + 10, + "Name" + ], + [ + 10, + "AlbumId" + ], + [ + 10, + "MediaTypeId" + ], + [ + 10, + "GenreId" + ], + [ + 10, + "Composer" + ], + [ + 10, + "Milliseconds" + ], + [ + 10, + "Bytes" + ], + [ + 10, + "UnitPrice" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "time", + "time", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "number", + "time", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "number" + ], + "db_id": "chinook_1", + "foreign_keys": [ + [ + 3, + 4 + ], + [ + 18, + 19 + ], + [ + 23, + 19 + ], + [ + 37, + 6 + ], + [ + 47, + 56 + ], + [ + 46, + 36 + ], + [ + 55, + 56 + ], + [ + 54, + 52 + ], + [ + 59, + 50 + ], + [ + 60, + 34 + ], + [ + 58, + 1 + ] + ], + "primary_keys": [ + 1, + 4, + 6, + 19, + 34, + 36, + 45, + 50, + 52, + 54, + 56 + ], + "table_names": [ + "album", + "artist", + "customer", + "employee", + "genre", + "invoice", + "invoice line", + "media type", + "playlist", + "playlist track", + "track" + ], + "table_names_original": [ + "Album", + "Artist", + "Customer", + "Employee", + "Genre", + "Invoice", + "InvoiceLine", + "MediaType", + "Playlist", + "PlaylistTrack", + "Track" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "route id" + ], + [ + 0, + "destination airport id" + ], + [ + 0, + "destination airport" + ], + [ + 0, + "source airport id" + ], + [ + 0, + "source airport" + ], + [ + 0, + "airline id" + ], + [ + 0, + "airline" + ], + [ + 0, + "code share" + ], + [ + 1, + "airport id" + ], + [ + 1, + "name" + ], + [ + 1, + "city" + ], + [ + 1, + "country" + ], + [ + 1, + "x" + ], + [ + 1, + "y" + ], + [ + 1, + "elevation" + ], + [ + 1, + "iata" + ], + [ + 1, + "icao" + ], + [ + 2, + "airline id" + ], + [ + 2, + "name" + ], + [ + 2, + "iata" + ], + [ + 2, + "icao" + ], + [ + 2, + "call sign" + ], + [ + 2, + "country" + ], + [ + 2, + "active" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "rid" + ], + [ + 0, + "dst_apid" + ], + [ + 0, + "dst_ap" + ], + [ + 0, + "src_apid" + ], + [ + 0, + "src_ap" + ], + [ + 0, + "alid" + ], + [ + 0, + "airline" + ], + [ + 0, + "codeshare" + ], + [ + 1, + "apid" + ], + [ + 1, + "name" + ], + [ + 1, + "city" + ], + [ + 1, + "country" + ], + [ + 1, + "x" + ], + [ + 1, + "y" + ], + [ + 1, + "elevation" + ], + [ + 1, + "iata" + ], + [ + 1, + "icao" + ], + [ + 2, + "alid" + ], + [ + 2, + "name" + ], + [ + 2, + "iata" + ], + [ + 2, + "icao" + ], + [ + 2, + "callsign" + ], + [ + 2, + "country" + ], + [ + 2, + "active" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text" + ], + "db_id": "flight_4", + "foreign_keys": [ + [ + 6, + 18 + ], + [ + 4, + 9 + ], + [ + 2, + 9 + ] + ], + "primary_keys": [ + 1, + 9, + 18 + ], + "table_names": [ + "routes", + "airports", + "airlines" + ], + "table_names_original": [ + "routes", + "airports", + "airlines" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "student id" + ], + [ + 0, + "last name" + ], + [ + 0, + "first name" + ], + [ + 0, + "age" + ], + [ + 0, + "sex" + ], + [ + 0, + "major" + ], + [ + 0, + "advisor" + ], + [ + 0, + "city code" + ], + [ + 1, + "student id" + ], + [ + 1, + "pet id" + ], + [ + 2, + "pet id" + ], + [ + 2, + "pet type" + ], + [ + 2, + "pet age" + ], + [ + 2, + "weight" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "StuID" + ], + [ + 0, + "LName" + ], + [ + 0, + "Fname" + ], + [ + 0, + "Age" + ], + [ + 0, + "Sex" + ], + [ + 0, + "Major" + ], + [ + 0, + "Advisor" + ], + [ + 0, + "city_code" + ], + [ + 1, + "StuID" + ], + [ + 1, + "PetID" + ], + [ + 2, + "PetID" + ], + [ + 2, + "PetType" + ], + [ + 2, + "pet_age" + ], + [ + 2, + "weight" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "text", + "number", + "number" + ], + "db_id": "pets_1", + "foreign_keys": [ + [ + 9, + 1 + ], + [ + 10, + 11 + ] + ], + "primary_keys": [ + 1, + 11 + ], + "table_names": [ + "student", + "has pet", + "pets" + ], + "table_names_original": [ + "Student", + "Has_Pet", + "Pets" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "student id" + ], + [ + 0, + "last name" + ], + [ + 0, + "first name" + ], + [ + 0, + "age" + ], + [ + 0, + "sex" + ], + [ + 0, + "major" + ], + [ + 0, + "advisor" + ], + [ + 0, + "city code" + ], + [ + 1, + "dorm id" + ], + [ + 1, + "dorm name" + ], + [ + 1, + "student capacity" + ], + [ + 1, + "gender" + ], + [ + 2, + "amenity id" + ], + [ + 2, + "amenity name" + ], + [ + 3, + "dorm id" + ], + [ + 3, + "amenity id" + ], + [ + 4, + "student id" + ], + [ + 4, + "dorm id" + ], + [ + 4, + "room number" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "StuID" + ], + [ + 0, + "LName" + ], + [ + 0, + "Fname" + ], + [ + 0, + "Age" + ], + [ + 0, + "Sex" + ], + [ + 0, + "Major" + ], + [ + 0, + "Advisor" + ], + [ + 0, + "city_code" + ], + [ + 1, + "dormid" + ], + [ + 1, + "dorm_name" + ], + [ + 1, + "student_capacity" + ], + [ + 1, + "gender" + ], + [ + 2, + "amenid" + ], + [ + 2, + "amenity_name" + ], + [ + 3, + "dormid" + ], + [ + 3, + "amenid" + ], + [ + 4, + "stuid" + ], + [ + 4, + "dormid" + ], + [ + 4, + "room_number" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "dorm_1", + "foreign_keys": [ + [ + 16, + 13 + ], + [ + 15, + 9 + ], + [ + 18, + 9 + ], + [ + 17, + 1 + ] + ], + "primary_keys": [ + 1 + ], + "table_names": [ + "student", + "dorm", + "dorm amenity", + "has amenity", + "lives in" + ], + "table_names_original": [ + "Student", + "Dorm", + "Dorm_amenity", + "Has_amenity", + "Lives_in" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "journal id" + ], + [ + 0, + "date" + ], + [ + 0, + "theme" + ], + [ + 0, + "sales" + ], + [ + 1, + "editor id" + ], + [ + 1, + "name" + ], + [ + 1, + "age" + ], + [ + 2, + "editor id" + ], + [ + 2, + "journal id" + ], + [ + 2, + "work type" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Journal_ID" + ], + [ + 0, + "Date" + ], + [ + 0, + "Theme" + ], + [ + 0, + "Sales" + ], + [ + 1, + "Editor_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Age" + ], + [ + 2, + "Editor_ID" + ], + [ + 2, + "Journal_ID" + ], + [ + 2, + "Work_Type" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "text" + ], + "db_id": "journal_committee", + "foreign_keys": [ + [ + 9, + 1 + ], + [ + 8, + 5 + ] + ], + "primary_keys": [ + 1, + 5, + 8 + ], + "table_names": [ + "journal", + "editor", + "journal committee" + ], + "table_names_original": [ + "journal", + "editor", + "journal_committee" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "flight number" + ], + [ + 0, + "origin" + ], + [ + 0, + "destination" + ], + [ + 0, + "distance" + ], + [ + 0, + "departure date" + ], + [ + 0, + "arrival date" + ], + [ + 0, + "price" + ], + [ + 0, + "airline id" + ], + [ + 1, + "airline id" + ], + [ + 1, + "name" + ], + [ + 1, + "distance" + ], + [ + 2, + "employee id" + ], + [ + 2, + "name" + ], + [ + 2, + "salary" + ], + [ + 3, + "employee id" + ], + [ + 3, + "airline id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "flno" + ], + [ + 0, + "origin" + ], + [ + 0, + "destination" + ], + [ + 0, + "distance" + ], + [ + 0, + "departure_date" + ], + [ + 0, + "arrival_date" + ], + [ + 0, + "price" + ], + [ + 0, + "aid" + ], + [ + 1, + "aid" + ], + [ + 1, + "name" + ], + [ + 1, + "distance" + ], + [ + 2, + "eid" + ], + [ + 2, + "name" + ], + [ + 2, + "salary" + ], + [ + 3, + "eid" + ], + [ + 3, + "aid" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "time", + "time", + "number", + "number", + "number", + "text", + "number", + "number", + "text", + "number", + "number", + "number" + ], + "db_id": "flight_1", + "foreign_keys": [ + [ + 8, + 9 + ], + [ + 16, + 9 + ], + [ + 15, + 12 + ] + ], + "primary_keys": [ + 1, + 9, + 12, + 15 + ], + "table_names": [ + "flight", + "aircraft", + "employee", + "certificate" + ], + "table_names_original": [ + "flight", + "aircraft", + "employee", + "certificate" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "trade name" + ], + [ + 0, + "fda approved" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "location" + ], + [ + 1, + "product" + ], + [ + 1, + "chromosome" + ], + [ + 1, + "omim" + ], + [ + 1, + "porphyria" + ], + [ + 2, + "enzyme id" + ], + [ + 2, + "medicine id" + ], + [ + 2, + "interaction type" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "Trade_Name" + ], + [ + 0, + "FDA_approved" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "Location" + ], + [ + 1, + "Product" + ], + [ + 1, + "Chromosome" + ], + [ + 1, + "OMIM" + ], + [ + 1, + "Porphyria" + ], + [ + 2, + "enzyme_id" + ], + [ + 2, + "medicine_id" + ], + [ + 2, + "interaction_type" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "number", + "text" + ], + "db_id": "medicine_enzyme_interaction", + "foreign_keys": [ + [ + 13, + 1 + ], + [ + 12, + 5 + ] + ], + "primary_keys": [ + 1, + 5, + 12 + ], + "table_names": [ + "medicine", + "enzyme", + "medicine enzyme interaction" + ], + "table_names_original": [ + "medicine", + "enzyme", + "medicine_enzyme_interaction" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "customer id" + ], + [ + 0, + "customer details" + ], + [ + 1, + "property id" + ], + [ + 1, + "property type code" + ], + [ + 1, + "property address" + ], + [ + 1, + "other details" + ], + [ + 2, + "resident id" + ], + [ + 2, + "property id" + ], + [ + 2, + "date moved in" + ], + [ + 2, + "date moved out" + ], + [ + 2, + "other details" + ], + [ + 3, + "organization id" + ], + [ + 3, + "parent organization id" + ], + [ + 3, + "organization details" + ], + [ + 4, + "service id" + ], + [ + 4, + "organization id" + ], + [ + 4, + "service type code" + ], + [ + 4, + "service details" + ], + [ + 5, + "resident id" + ], + [ + 5, + "service id" + ], + [ + 5, + "date moved in" + ], + [ + 5, + "property id" + ], + [ + 5, + "date requested" + ], + [ + 5, + "date provided" + ], + [ + 5, + "other details" + ], + [ + 6, + "thing id" + ], + [ + 6, + "organization id" + ], + [ + 6, + "type of thing code" + ], + [ + 6, + "service type code" + ], + [ + 6, + "service details" + ], + [ + 7, + "customer event id" + ], + [ + 7, + "customer id" + ], + [ + 7, + "date moved in" + ], + [ + 7, + "property id" + ], + [ + 7, + "resident id" + ], + [ + 7, + "thing id" + ], + [ + 8, + "customer event note id" + ], + [ + 8, + "customer event id" + ], + [ + 8, + "service type code" + ], + [ + 8, + "resident id" + ], + [ + 8, + "property id" + ], + [ + 8, + "date moved in" + ], + [ + 9, + "thing id" + ], + [ + 9, + "date and date" + ], + [ + 9, + "status of thing code" + ], + [ + 10, + "thing id" + ], + [ + 10, + "date and time" + ], + [ + 10, + "location code" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "customer_id" + ], + [ + 0, + "customer_details" + ], + [ + 1, + "property_id" + ], + [ + 1, + "property_type_code" + ], + [ + 1, + "property_address" + ], + [ + 1, + "other_details" + ], + [ + 2, + "resident_id" + ], + [ + 2, + "property_id" + ], + [ + 2, + "date_moved_in" + ], + [ + 2, + "date_moved_out" + ], + [ + 2, + "other_details" + ], + [ + 3, + "organization_id" + ], + [ + 3, + "parent_organization_id" + ], + [ + 3, + "organization_details" + ], + [ + 4, + "service_id" + ], + [ + 4, + "organization_id" + ], + [ + 4, + "service_type_code" + ], + [ + 4, + "service_details" + ], + [ + 5, + "resident_id" + ], + [ + 5, + "service_id" + ], + [ + 5, + "date_moved_in" + ], + [ + 5, + "property_id" + ], + [ + 5, + "date_requested" + ], + [ + 5, + "date_provided" + ], + [ + 5, + "other_details" + ], + [ + 6, + "thing_id" + ], + [ + 6, + "organization_id" + ], + [ + 6, + "Type_of_Thing_Code" + ], + [ + 6, + "service_type_code" + ], + [ + 6, + "service_details" + ], + [ + 7, + "Customer_Event_ID" + ], + [ + 7, + "customer_id" + ], + [ + 7, + "date_moved_in" + ], + [ + 7, + "property_id" + ], + [ + 7, + "resident_id" + ], + [ + 7, + "thing_id" + ], + [ + 8, + "Customer_Event_Note_ID" + ], + [ + 8, + "Customer_Event_ID" + ], + [ + 8, + "service_type_code" + ], + [ + 8, + "resident_id" + ], + [ + 8, + "property_id" + ], + [ + 8, + "date_moved_in" + ], + [ + 9, + "thing_id" + ], + [ + 9, + "Date_and_Date" + ], + [ + 9, + "Status_of_Thing_Code" + ], + [ + 10, + "thing_id" + ], + [ + 10, + "Date_and_Time" + ], + [ + 10, + "Location_Code" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "time", + "time", + "text", + "number", + "number", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "time", + "number", + "time", + "time", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "time", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "time", + "number", + "time", + "text", + "number", + "time", + "text" + ], + "db_id": "local_govt_and_lot", + "foreign_keys": [ + [ + 8, + 3 + ], + [ + 16, + 12 + ], + [ + 19, + 7 + ], + [ + 22, + 8 + ], + [ + 21, + 9 + ], + [ + 20, + 15 + ], + [ + 27, + 12 + ], + [ + 35, + 7 + ], + [ + 34, + 8 + ], + [ + 33, + 9 + ], + [ + 32, + 1 + ], + [ + 36, + 26 + ], + [ + 38, + 31 + ], + [ + 43, + 26 + ], + [ + 46, + 26 + ] + ], + "primary_keys": [ + 1, + 3, + 7, + 12, + 15, + 19, + 26, + 31, + 37, + 43, + 46 + ], + "table_names": [ + "customers", + "properties", + "residents", + "organizations", + "services", + "residents services", + "things", + "customer events", + "customer event notes", + "timed status of things", + "timed locations of things" + ], + "table_names_original": [ + "Customers", + "Properties", + "Residents", + "Organizations", + "Services", + "Residents_Services", + "Things", + "Customer_Events", + "Customer_Event_Notes", + "Timed_Status_of_Things", + "Timed_Locations_of_Things" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "train number" + ], + [ + 0, + "name" + ], + [ + 0, + "origin" + ], + [ + 0, + "destination" + ], + [ + 0, + "time" + ], + [ + 0, + "interval" + ], + [ + 1, + "id" + ], + [ + 1, + "network name" + ], + [ + 1, + "services" + ], + [ + 1, + "local authority" + ], + [ + 2, + "train id" + ], + [ + 2, + "station id" + ], + [ + 3, + "station id" + ], + [ + 3, + "day of week" + ], + [ + 3, + "high temperature" + ], + [ + 3, + "low temperature" + ], + [ + 3, + "precipitation" + ], + [ + 3, + "wind speed mph" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "train_number" + ], + [ + 0, + "name" + ], + [ + 0, + "origin" + ], + [ + 0, + "destination" + ], + [ + 0, + "time" + ], + [ + 0, + "interval" + ], + [ + 1, + "id" + ], + [ + 1, + "network_name" + ], + [ + 1, + "services" + ], + [ + 1, + "local_authority" + ], + [ + 2, + "train_id" + ], + [ + 2, + "station_id" + ], + [ + 3, + "station_id" + ], + [ + 3, + "day_of_week" + ], + [ + 3, + "high_temperature" + ], + [ + 3, + "low_temperature" + ], + [ + 3, + "precipitation" + ], + [ + 3, + "wind_speed_mph" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "station_weather", + "foreign_keys": [ + [ + 13, + 8 + ], + [ + 12, + 1 + ], + [ + 14, + 8 + ] + ], + "primary_keys": [ + 1, + 8, + 12, + 14 + ], + "table_names": [ + "train", + "station", + "route", + "weekly weather" + ], + "table_names_original": [ + "train", + "station", + "route", + "weekly_weather" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "member id" + ], + [ + 0, + "card number" + ], + [ + 0, + "name" + ], + [ + 0, + "hometown" + ], + [ + 0, + "level" + ], + [ + 1, + "branch id" + ], + [ + 1, + "name" + ], + [ + 1, + "open year" + ], + [ + 1, + "address road" + ], + [ + 1, + "city" + ], + [ + 1, + "membership amount" + ], + [ + 2, + "member id" + ], + [ + 2, + "branch id" + ], + [ + 2, + "register year" + ], + [ + 3, + "member id" + ], + [ + 3, + "branch id" + ], + [ + 3, + "year" + ], + [ + 3, + "total pounds" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Member_ID" + ], + [ + 0, + "Card_Number" + ], + [ + 0, + "Name" + ], + [ + 0, + "Hometown" + ], + [ + 0, + "Level" + ], + [ + 1, + "Branch_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Open_year" + ], + [ + 1, + "Address_road" + ], + [ + 1, + "City" + ], + [ + 1, + "membership_amount" + ], + [ + 2, + "Member_ID" + ], + [ + 2, + "Branch_ID" + ], + [ + 2, + "Register_Year" + ], + [ + 3, + "Member_ID" + ], + [ + 3, + "Branch_ID" + ], + [ + 3, + "Year" + ], + [ + 3, + "Total_pounds" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "number" + ], + "db_id": "shop_membership", + "foreign_keys": [ + [ + 13, + 6 + ], + [ + 12, + 1 + ], + [ + 16, + 6 + ], + [ + 15, + 1 + ] + ], + "primary_keys": [ + 1, + 6, + 12, + 15 + ], + "table_names": [ + "member", + "branch", + "membership register branch", + "purchase" + ], + "table_names_original": [ + "member", + "branch", + "membership_register_branch", + "purchase" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "address id" + ], + [ + 0, + "line 1 number building" + ], + [ + 0, + "city" + ], + [ + 0, + "zip postcode" + ], + [ + 0, + "state province county" + ], + [ + 0, + "country" + ], + [ + 1, + "staff id" + ], + [ + 1, + "staff address id" + ], + [ + 1, + "nickname" + ], + [ + 1, + "first name" + ], + [ + 1, + "middle name" + ], + [ + 1, + "last name" + ], + [ + 1, + "date of birth" + ], + [ + 1, + "date joined staff" + ], + [ + 1, + "date left staff" + ], + [ + 2, + "vehicle id" + ], + [ + 2, + "vehicle details" + ], + [ + 3, + "customer id" + ], + [ + 3, + "customer address id" + ], + [ + 3, + "customer status code" + ], + [ + 3, + "date became customer" + ], + [ + 3, + "date of birth" + ], + [ + 3, + "first name" + ], + [ + 3, + "last name" + ], + [ + 3, + "amount outstanding" + ], + [ + 3, + "email address" + ], + [ + 3, + "phone number" + ], + [ + 3, + "cell mobile phone number" + ], + [ + 4, + "customer id" + ], + [ + 4, + "datetime payment" + ], + [ + 4, + "payment method code" + ], + [ + 4, + "amount payment" + ], + [ + 5, + "lesson id" + ], + [ + 5, + "customer id" + ], + [ + 5, + "lesson status code" + ], + [ + 5, + "staff id" + ], + [ + 5, + "vehicle id" + ], + [ + 5, + "lesson date" + ], + [ + 5, + "lesson time" + ], + [ + 5, + "price" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "address_id" + ], + [ + 0, + "line_1_number_building" + ], + [ + 0, + "city" + ], + [ + 0, + "zip_postcode" + ], + [ + 0, + "state_province_county" + ], + [ + 0, + "country" + ], + [ + 1, + "staff_id" + ], + [ + 1, + "staff_address_id" + ], + [ + 1, + "nickname" + ], + [ + 1, + "first_name" + ], + [ + 1, + "middle_name" + ], + [ + 1, + "last_name" + ], + [ + 1, + "date_of_birth" + ], + [ + 1, + "date_joined_staff" + ], + [ + 1, + "date_left_staff" + ], + [ + 2, + "vehicle_id" + ], + [ + 2, + "vehicle_details" + ], + [ + 3, + "customer_id" + ], + [ + 3, + "customer_address_id" + ], + [ + 3, + "customer_status_code" + ], + [ + 3, + "date_became_customer" + ], + [ + 3, + "date_of_birth" + ], + [ + 3, + "first_name" + ], + [ + 3, + "last_name" + ], + [ + 3, + "amount_outstanding" + ], + [ + 3, + "email_address" + ], + [ + 3, + "phone_number" + ], + [ + 3, + "cell_mobile_phone_number" + ], + [ + 4, + "customer_id" + ], + [ + 4, + "datetime_payment" + ], + [ + 4, + "payment_method_code" + ], + [ + 4, + "amount_payment" + ], + [ + 5, + "lesson_id" + ], + [ + 5, + "customer_id" + ], + [ + 5, + "lesson_status_code" + ], + [ + 5, + "staff_id" + ], + [ + 5, + "vehicle_id" + ], + [ + 5, + "lesson_date" + ], + [ + 5, + "lesson_time" + ], + [ + 5, + "price" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "time", + "time", + "time", + "number", + "text", + "number", + "number", + "text", + "time", + "time", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "time", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "time", + "text", + "number" + ], + "db_id": "driving_school", + "foreign_keys": [ + [ + 8, + 1 + ], + [ + 19, + 1 + ], + [ + 29, + 18 + ], + [ + 34, + 18 + ], + [ + 36, + 7 + ], + [ + 37, + 16 + ] + ], + "primary_keys": [ + 1, + 7, + 16, + 18, + 29, + 33 + ], + "table_names": [ + "addresses", + "staff", + "vehicles", + "customers", + "customer payments", + "lessons" + ], + "table_names_original": [ + "Addresses", + "Staff", + "Vehicles", + "Customers", + "Customer_Payments", + "Lessons" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "stadium id" + ], + [ + 0, + "location" + ], + [ + 0, + "name" + ], + [ + 0, + "capacity" + ], + [ + 0, + "highest" + ], + [ + 0, + "lowest" + ], + [ + 0, + "average" + ], + [ + 1, + "singer id" + ], + [ + 1, + "name" + ], + [ + 1, + "country" + ], + [ + 1, + "song name" + ], + [ + 1, + "song release year" + ], + [ + 1, + "age" + ], + [ + 1, + "is male" + ], + [ + 2, + "concert id" + ], + [ + 2, + "concert name" + ], + [ + 2, + "theme" + ], + [ + 2, + "stadium id" + ], + [ + 2, + "year" + ], + [ + 3, + "concert id" + ], + [ + 3, + "singer id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Stadium_ID" + ], + [ + 0, + "Location" + ], + [ + 0, + "Name" + ], + [ + 0, + "Capacity" + ], + [ + 0, + "Highest" + ], + [ + 0, + "Lowest" + ], + [ + 0, + "Average" + ], + [ + 1, + "Singer_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Country" + ], + [ + 1, + "Song_Name" + ], + [ + 1, + "Song_release_year" + ], + [ + 1, + "Age" + ], + [ + 1, + "Is_male" + ], + [ + 2, + "concert_ID" + ], + [ + 2, + "concert_Name" + ], + [ + 2, + "Theme" + ], + [ + 2, + "Stadium_ID" + ], + [ + 2, + "Year" + ], + [ + 3, + "concert_ID" + ], + [ + 3, + "Singer_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "others", + "number", + "text", + "text", + "text", + "text", + "number", + "text" + ], + "db_id": "concert_singer", + "foreign_keys": [ + [ + 18, + 1 + ], + [ + 21, + 8 + ], + [ + 20, + 15 + ] + ], + "primary_keys": [ + 1, + 8, + 15, + 20 + ], + "table_names": [ + "stadium", + "singer", + "concert", + "singer in concert" + ], + "table_names_original": [ + "stadium", + "singer", + "concert", + "singer_in_concert" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "song id" + ], + [ + 0, + "title" + ], + [ + 1, + "aid" + ], + [ + 1, + "title" + ], + [ + 1, + "year" + ], + [ + 1, + "label" + ], + [ + 1, + "type" + ], + [ + 2, + "id" + ], + [ + 2, + "first name" + ], + [ + 2, + "last name" + ], + [ + 3, + "song id" + ], + [ + 3, + "bandmate id" + ], + [ + 3, + "instrument" + ], + [ + 4, + "song id" + ], + [ + 4, + "bandmate" + ], + [ + 4, + "stage position" + ], + [ + 5, + "album id" + ], + [ + 5, + "position" + ], + [ + 5, + "song id" + ], + [ + 6, + "song id" + ], + [ + 6, + "bandmate" + ], + [ + 6, + "type" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "SongId" + ], + [ + 0, + "Title" + ], + [ + 1, + "AId" + ], + [ + 1, + "Title" + ], + [ + 1, + "Year" + ], + [ + 1, + "Label" + ], + [ + 1, + "Type" + ], + [ + 2, + "Id" + ], + [ + 2, + "Firstname" + ], + [ + 2, + "Lastname" + ], + [ + 3, + "SongId" + ], + [ + 3, + "BandmateId" + ], + [ + 3, + "Instrument" + ], + [ + 4, + "SongId" + ], + [ + 4, + "Bandmate" + ], + [ + 4, + "StagePosition" + ], + [ + 5, + "AlbumId" + ], + [ + 5, + "Position" + ], + [ + 5, + "SongId" + ], + [ + 6, + "SongId" + ], + [ + 6, + "Bandmate" + ], + [ + 6, + "Type" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "text" + ], + "db_id": "music_2", + "foreign_keys": [ + [ + 12, + 8 + ], + [ + 11, + 1 + ], + [ + 15, + 8 + ], + [ + 14, + 1 + ], + [ + 17, + 3 + ], + [ + 19, + 1 + ], + [ + 21, + 8 + ], + [ + 20, + 1 + ] + ], + "primary_keys": [ + 1, + 3, + 8, + 11, + 14, + 17, + 20 + ], + "table_names": [ + "songs", + "albums", + "band", + "instruments", + "performance", + "track lists", + "vocals" + ], + "table_names_original": [ + "Songs", + "Albums", + "Band", + "Instruments", + "Performance", + "Tracklists", + "Vocals" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "club id" + ], + [ + 0, + "name" + ], + [ + 0, + "region" + ], + [ + 0, + "start year" + ], + [ + 1, + "rank" + ], + [ + 1, + "club id" + ], + [ + 1, + "gold" + ], + [ + 1, + "silver" + ], + [ + 1, + "bronze" + ], + [ + 1, + "total" + ], + [ + 2, + "player id" + ], + [ + 2, + "name" + ], + [ + 2, + "position" + ], + [ + 2, + "club id" + ], + [ + 2, + "apps" + ], + [ + 2, + "tries" + ], + [ + 2, + "goals" + ], + [ + 2, + "points" + ], + [ + 3, + "competition id" + ], + [ + 3, + "year" + ], + [ + 3, + "competition type" + ], + [ + 3, + "country" + ], + [ + 4, + "competition id" + ], + [ + 4, + "club id 1" + ], + [ + 4, + "club id 2" + ], + [ + 4, + "score" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Club_ID" + ], + [ + 0, + "name" + ], + [ + 0, + "Region" + ], + [ + 0, + "Start_year" + ], + [ + 1, + "Rank" + ], + [ + 1, + "Club_ID" + ], + [ + 1, + "Gold" + ], + [ + 1, + "Silver" + ], + [ + 1, + "Bronze" + ], + [ + 1, + "Total" + ], + [ + 2, + "Player_ID" + ], + [ + 2, + "name" + ], + [ + 2, + "Position" + ], + [ + 2, + "Club_ID" + ], + [ + 2, + "Apps" + ], + [ + 2, + "Tries" + ], + [ + 2, + "Goals" + ], + [ + 2, + "Points" + ], + [ + 3, + "Competition_ID" + ], + [ + 3, + "Year" + ], + [ + 3, + "Competition_type" + ], + [ + 3, + "Country" + ], + [ + 4, + "Competition_ID" + ], + [ + 4, + "Club_ID_1" + ], + [ + 4, + "Club_ID_2" + ], + [ + 4, + "Score" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "text" + ], + "db_id": "sports_competition", + "foreign_keys": [ + [ + 6, + 1 + ], + [ + 14, + 1 + ], + [ + 23, + 19 + ], + [ + 25, + 1 + ], + [ + 24, + 1 + ] + ], + "primary_keys": [ + 1, + 5, + 11, + 19, + 23 + ], + "table_names": [ + "club", + "club rank", + "player", + "competition", + "competition result" + ], + "table_names_original": [ + "club", + "club_rank", + "player", + "competition", + "competition_result" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "railway id" + ], + [ + 0, + "railway" + ], + [ + 0, + "builder" + ], + [ + 0, + "built" + ], + [ + 0, + "wheels" + ], + [ + 0, + "location" + ], + [ + 0, + "objectnumber" + ], + [ + 1, + "train id" + ], + [ + 1, + "train num" + ], + [ + 1, + "name" + ], + [ + 1, + "from" + ], + [ + 1, + "arrival" + ], + [ + 1, + "railway id" + ], + [ + 2, + "manager id" + ], + [ + 2, + "name" + ], + [ + 2, + "country" + ], + [ + 2, + "working year starts" + ], + [ + 2, + "age" + ], + [ + 2, + "level" + ], + [ + 3, + "railway id" + ], + [ + 3, + "manager id" + ], + [ + 3, + "from year" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Railway_ID" + ], + [ + 0, + "Railway" + ], + [ + 0, + "Builder" + ], + [ + 0, + "Built" + ], + [ + 0, + "Wheels" + ], + [ + 0, + "Location" + ], + [ + 0, + "ObjectNumber" + ], + [ + 1, + "Train_ID" + ], + [ + 1, + "Train_Num" + ], + [ + 1, + "Name" + ], + [ + 1, + "From" + ], + [ + 1, + "Arrival" + ], + [ + 1, + "Railway_ID" + ], + [ + 2, + "Manager_ID" + ], + [ + 2, + "Name" + ], + [ + 2, + "Country" + ], + [ + 2, + "Working_year_starts" + ], + [ + 2, + "Age" + ], + [ + 2, + "Level" + ], + [ + 3, + "Railway_ID" + ], + [ + 3, + "Manager_ID" + ], + [ + 3, + "From_Year" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "text" + ], + "db_id": "railway", + "foreign_keys": [ + [ + 13, + 1 + ], + [ + 20, + 1 + ], + [ + 21, + 14 + ] + ], + "primary_keys": [ + 1, + 8, + 14, + 20 + ], + "table_names": [ + "railway", + "train", + "manager", + "railway manage" + ], + "table_names_original": [ + "railway", + "train", + "manager", + "railway_manage" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "room id" + ], + [ + 0, + "room name" + ], + [ + 0, + "beds" + ], + [ + 0, + "bed type" + ], + [ + 0, + "max occupancy" + ], + [ + 0, + "base price" + ], + [ + 0, + "decor" + ], + [ + 1, + "code" + ], + [ + 1, + "room" + ], + [ + 1, + "check in" + ], + [ + 1, + "check out" + ], + [ + 1, + "rate" + ], + [ + 1, + "last name" + ], + [ + 1, + "first name" + ], + [ + 1, + "adults" + ], + [ + 1, + "kids" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "RoomId" + ], + [ + 0, + "roomName" + ], + [ + 0, + "beds" + ], + [ + 0, + "bedType" + ], + [ + 0, + "maxOccupancy" + ], + [ + 0, + "basePrice" + ], + [ + 0, + "decor" + ], + [ + 1, + "Code" + ], + [ + 1, + "Room" + ], + [ + 1, + "CheckIn" + ], + [ + 1, + "CheckOut" + ], + [ + 1, + "Rate" + ], + [ + 1, + "LastName" + ], + [ + 1, + "FirstName" + ], + [ + 1, + "Adults" + ], + [ + 1, + "Kids" + ] + ], + "column_types": [ + "text", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "number" + ], + "db_id": "inn_1", + "foreign_keys": [ + [ + 9, + 1 + ] + ], + "primary_keys": [ + 1, + 8 + ], + "table_names": [ + "rooms", + "reservations" + ], + "table_names_original": [ + "Rooms", + "Reservations" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "museum id" + ], + [ + 0, + "name" + ], + [ + 0, + "num of staff" + ], + [ + 0, + "open year" + ], + [ + 1, + "customer id" + ], + [ + 1, + "name" + ], + [ + 1, + "level of membership" + ], + [ + 1, + "age" + ], + [ + 2, + "museum id" + ], + [ + 2, + "customer id" + ], + [ + 2, + "num of ticket" + ], + [ + 2, + "total spent" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Museum_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Num_of_Staff" + ], + [ + 0, + "Open_Year" + ], + [ + 1, + "ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Level_of_membership" + ], + [ + 1, + "Age" + ], + [ + 2, + "Museum_ID" + ], + [ + 2, + "visitor_ID" + ], + [ + 2, + "Num_of_Ticket" + ], + [ + 2, + "Total_spent" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "text", + "number", + "number" + ], + "db_id": "museum_visit", + "foreign_keys": [ + [ + 10, + 5 + ], + [ + 9, + 1 + ] + ], + "primary_keys": [ + 1, + 5, + 9 + ], + "table_names": [ + "museum", + "customer", + "visit" + ], + "table_names_original": [ + "museum", + "visitor", + "visit" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "operating system" + ], + [ + 0, + "client" + ], + [ + 0, + "connection" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "market share" + ], + [ + 2, + "accelerator id" + ], + [ + 2, + "browser id" + ], + [ + 2, + "compatible since year" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "Operating_system" + ], + [ + 0, + "Client" + ], + [ + 0, + "Connection" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "market_share" + ], + [ + 2, + "accelerator_id" + ], + [ + 2, + "browser_id" + ], + [ + 2, + "compatible_since_year" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "browser_web", + "foreign_keys": [ + [ + 10, + 6 + ], + [ + 9, + 1 + ] + ], + "primary_keys": [ + 1, + 6, + 9 + ], + "table_names": [ + "web client accelerator", + "browser", + "accelerator compatible browser" + ], + "table_names_original": [ + "Web_client_accelerator", + "browser", + "accelerator_compatible_browser" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "player id" + ], + [ + 0, + "year" + ], + [ + 0, + "game num" + ], + [ + 0, + "game id" + ], + [ + 0, + "team id" + ], + [ + 0, + "league id" + ], + [ + 0, + "gp" + ], + [ + 0, + "starting pos" + ], + [ + 1, + "year" + ], + [ + 1, + "team id" + ], + [ + 1, + "league id" + ], + [ + 1, + "player id" + ], + [ + 1, + "g all" + ], + [ + 1, + "gs" + ], + [ + 1, + "g batting" + ], + [ + 1, + "g defense" + ], + [ + 1, + "g p" + ], + [ + 1, + "g c" + ], + [ + 1, + "g 1b" + ], + [ + 1, + "g 2b" + ], + [ + 1, + "g 3b" + ], + [ + 1, + "g ss" + ], + [ + 1, + "g lf" + ], + [ + 1, + "g cf" + ], + [ + 1, + "g rf" + ], + [ + 1, + "g of" + ], + [ + 1, + "g dh" + ], + [ + 1, + "g ph" + ], + [ + 1, + "g pr" + ], + [ + 2, + "player id" + ], + [ + 2, + "award id" + ], + [ + 2, + "year" + ], + [ + 2, + "league id" + ], + [ + 2, + "tie" + ], + [ + 2, + "notes" + ], + [ + 3, + "player id" + ], + [ + 3, + "award id" + ], + [ + 3, + "year" + ], + [ + 3, + "league id" + ], + [ + 3, + "tie" + ], + [ + 3, + "notes" + ], + [ + 4, + "award id" + ], + [ + 4, + "year" + ], + [ + 4, + "league id" + ], + [ + 4, + "player id" + ], + [ + 4, + "points won" + ], + [ + 4, + "points max" + ], + [ + 4, + "votes first" + ], + [ + 5, + "award id" + ], + [ + 5, + "year" + ], + [ + 5, + "league id" + ], + [ + 5, + "player id" + ], + [ + 5, + "points won" + ], + [ + 5, + "points max" + ], + [ + 5, + "votes first" + ], + [ + 6, + "player id" + ], + [ + 6, + "year" + ], + [ + 6, + "stint" + ], + [ + 6, + "team id" + ], + [ + 6, + "league id" + ], + [ + 6, + "g" + ], + [ + 6, + "ab" + ], + [ + 6, + "r" + ], + [ + 6, + "h" + ], + [ + 6, + "double" + ], + [ + 6, + "triple" + ], + [ + 6, + "hr" + ], + [ + 6, + "rbi" + ], + [ + 6, + "sb" + ], + [ + 6, + "cs" + ], + [ + 6, + "bb" + ], + [ + 6, + "so" + ], + [ + 6, + "ibb" + ], + [ + 6, + "hbp" + ], + [ + 6, + "sh" + ], + [ + 6, + "sf" + ], + [ + 6, + "g idp" + ], + [ + 7, + "year" + ], + [ + 7, + "round" + ], + [ + 7, + "player id" + ], + [ + 7, + "team id" + ], + [ + 7, + "league id" + ], + [ + 7, + "g" + ], + [ + 7, + "ab" + ], + [ + 7, + "r" + ], + [ + 7, + "h" + ], + [ + 7, + "double" + ], + [ + 7, + "triple" + ], + [ + 7, + "hr" + ], + [ + 7, + "rbi" + ], + [ + 7, + "sb" + ], + [ + 7, + "cs" + ], + [ + 7, + "bb" + ], + [ + 7, + "so" + ], + [ + 7, + "ibb" + ], + [ + 7, + "hbp" + ], + [ + 7, + "sh" + ], + [ + 7, + "sf" + ], + [ + 7, + "g idp" + ], + [ + 8, + "player id" + ], + [ + 8, + "college id" + ], + [ + 8, + "year" + ], + [ + 9, + "player id" + ], + [ + 9, + "year" + ], + [ + 9, + "stint" + ], + [ + 9, + "team id" + ], + [ + 9, + "league id" + ], + [ + 9, + "pos" + ], + [ + 9, + "g" + ], + [ + 9, + "gs" + ], + [ + 9, + "inn outs" + ], + [ + 9, + "po" + ], + [ + 9, + "a" + ], + [ + 9, + "e" + ], + [ + 9, + "dp" + ], + [ + 9, + "pb" + ], + [ + 9, + "wp" + ], + [ + 9, + "sb" + ], + [ + 9, + "cs" + ], + [ + 9, + "zr" + ], + [ + 10, + "player id" + ], + [ + 10, + "year" + ], + [ + 10, + "stint" + ], + [ + 10, + "glf" + ], + [ + 10, + "gcf" + ], + [ + 10, + "grf" + ], + [ + 11, + "player id" + ], + [ + 11, + "year" + ], + [ + 11, + "team id" + ], + [ + 11, + "league id" + ], + [ + 11, + "round" + ], + [ + 11, + "pos" + ], + [ + 11, + "g" + ], + [ + 11, + "gs" + ], + [ + 11, + "inn outs" + ], + [ + 11, + "po" + ], + [ + 11, + "a" + ], + [ + 11, + "e" + ], + [ + 11, + "dp" + ], + [ + 11, + "tp" + ], + [ + 11, + "pb" + ], + [ + 11, + "sb" + ], + [ + 11, + "cs" + ], + [ + 12, + "player id" + ], + [ + 12, + "yearid" + ], + [ + 12, + "votedby" + ], + [ + 12, + "ballots" + ], + [ + 12, + "needed" + ], + [ + 12, + "votes" + ], + [ + 12, + "inducted" + ], + [ + 12, + "category" + ], + [ + 12, + "needed note" + ], + [ + 13, + "year" + ], + [ + 13, + "league id" + ], + [ + 13, + "team id" + ], + [ + 13, + "park id" + ], + [ + 13, + "span first" + ], + [ + 13, + "span last" + ], + [ + 13, + "games" + ], + [ + 13, + "openings" + ], + [ + 13, + "attendance" + ], + [ + 14, + "player id" + ], + [ + 14, + "year" + ], + [ + 14, + "team id" + ], + [ + 14, + "league id" + ], + [ + 14, + "inseason" + ], + [ + 14, + "g" + ], + [ + 14, + "w" + ], + [ + 14, + "l" + ], + [ + 14, + "rank" + ], + [ + 14, + "plyr mgr" + ], + [ + 15, + "player id" + ], + [ + 15, + "year" + ], + [ + 15, + "team id" + ], + [ + 15, + "league id" + ], + [ + 15, + "inseason" + ], + [ + 15, + "half" + ], + [ + 15, + "g" + ], + [ + 15, + "w" + ], + [ + 15, + "l" + ], + [ + 15, + "rank" + ], + [ + 16, + "player id" + ], + [ + 16, + "birth year" + ], + [ + 16, + "birth month" + ], + [ + 16, + "birth day" + ], + [ + 16, + "birth country" + ], + [ + 16, + "birth state" + ], + [ + 16, + "birth city" + ], + [ + 16, + "death year" + ], + [ + 16, + "death month" + ], + [ + 16, + "death day" + ], + [ + 16, + "death country" + ], + [ + 16, + "death state" + ], + [ + 16, + "death city" + ], + [ + 16, + "name first" + ], + [ + 16, + "name last" + ], + [ + 16, + "name given" + ], + [ + 16, + "weight" + ], + [ + 16, + "height" + ], + [ + 16, + "bats" + ], + [ + 16, + "throws" + ], + [ + 16, + "debut" + ], + [ + 16, + "final game" + ], + [ + 16, + "retro id" + ], + [ + 16, + "bbref id" + ], + [ + 17, + "park id" + ], + [ + 17, + "park name" + ], + [ + 17, + "park alias" + ], + [ + 17, + "city" + ], + [ + 17, + "state" + ], + [ + 17, + "country" + ], + [ + 18, + "player id" + ], + [ + 18, + "year" + ], + [ + 18, + "stint" + ], + [ + 18, + "team id" + ], + [ + 18, + "league id" + ], + [ + 18, + "w" + ], + [ + 18, + "l" + ], + [ + 18, + "g" + ], + [ + 18, + "gs" + ], + [ + 18, + "cg" + ], + [ + 18, + "sho" + ], + [ + 18, + "sv" + ], + [ + 18, + "ipouts" + ], + [ + 18, + "h" + ], + [ + 18, + "er" + ], + [ + 18, + "hr" + ], + [ + 18, + "bb" + ], + [ + 18, + "so" + ], + [ + 18, + "baopp" + ], + [ + 18, + "era" + ], + [ + 18, + "ibb" + ], + [ + 18, + "wp" + ], + [ + 18, + "hbp" + ], + [ + 18, + "bk" + ], + [ + 18, + "bfp" + ], + [ + 18, + "gf" + ], + [ + 18, + "r" + ], + [ + 18, + "sh" + ], + [ + 18, + "sf" + ], + [ + 18, + "g idp" + ], + [ + 19, + "player id" + ], + [ + 19, + "year" + ], + [ + 19, + "round" + ], + [ + 19, + "team id" + ], + [ + 19, + "league id" + ], + [ + 19, + "w" + ], + [ + 19, + "l" + ], + [ + 19, + "g" + ], + [ + 19, + "gs" + ], + [ + 19, + "cg" + ], + [ + 19, + "sho" + ], + [ + 19, + "sv" + ], + [ + 19, + "ipouts" + ], + [ + 19, + "h" + ], + [ + 19, + "er" + ], + [ + 19, + "hr" + ], + [ + 19, + "bb" + ], + [ + 19, + "so" + ], + [ + 19, + "baopp" + ], + [ + 19, + "era" + ], + [ + 19, + "ibb" + ], + [ + 19, + "wp" + ], + [ + 19, + "hbp" + ], + [ + 19, + "bk" + ], + [ + 19, + "bfp" + ], + [ + 19, + "gf" + ], + [ + 19, + "r" + ], + [ + 19, + "sh" + ], + [ + 19, + "sf" + ], + [ + 19, + "g idp" + ], + [ + 20, + "year" + ], + [ + 20, + "team id" + ], + [ + 20, + "league id" + ], + [ + 20, + "player id" + ], + [ + 20, + "salary" + ], + [ + 21, + "college id" + ], + [ + 21, + "name full" + ], + [ + 21, + "city" + ], + [ + 21, + "state" + ], + [ + 21, + "country" + ], + [ + 22, + "year" + ], + [ + 22, + "round" + ], + [ + 22, + "team id winner" + ], + [ + 22, + "league id winner" + ], + [ + 22, + "team id loser" + ], + [ + 22, + "league id loser" + ], + [ + 22, + "wins" + ], + [ + 22, + "losses" + ], + [ + 22, + "ties" + ], + [ + 23, + "year" + ], + [ + 23, + "league id" + ], + [ + 23, + "team id" + ], + [ + 23, + "franchise id" + ], + [ + 23, + "div id" + ], + [ + 23, + "rank" + ], + [ + 23, + "g" + ], + [ + 23, + "ghome" + ], + [ + 23, + "w" + ], + [ + 23, + "l" + ], + [ + 23, + "div win" + ], + [ + 23, + "wc win" + ], + [ + 23, + "lg win" + ], + [ + 23, + "ws win" + ], + [ + 23, + "r" + ], + [ + 23, + "ab" + ], + [ + 23, + "h" + ], + [ + 23, + "double" + ], + [ + 23, + "triple" + ], + [ + 23, + "hr" + ], + [ + 23, + "bb" + ], + [ + 23, + "so" + ], + [ + 23, + "sb" + ], + [ + 23, + "cs" + ], + [ + 23, + "hbp" + ], + [ + 23, + "sf" + ], + [ + 23, + "ra" + ], + [ + 23, + "er" + ], + [ + 23, + "era" + ], + [ + 23, + "cg" + ], + [ + 23, + "sho" + ], + [ + 23, + "sv" + ], + [ + 23, + "ipouts" + ], + [ + 23, + "ha" + ], + [ + 23, + "hra" + ], + [ + 23, + "bba" + ], + [ + 23, + "soa" + ], + [ + 23, + "e" + ], + [ + 23, + "dp" + ], + [ + 23, + "fp" + ], + [ + 23, + "name" + ], + [ + 23, + "park" + ], + [ + 23, + "attendance" + ], + [ + 23, + "bpf" + ], + [ + 23, + "ppf" + ], + [ + 23, + "team id br" + ], + [ + 23, + "team id lahman45" + ], + [ + 23, + "team id retro" + ], + [ + 24, + "franchise id" + ], + [ + 24, + "franchise name" + ], + [ + 24, + "active" + ], + [ + 24, + "na assoc" + ], + [ + 25, + "year" + ], + [ + 25, + "league id" + ], + [ + 25, + "team id" + ], + [ + 25, + "half" + ], + [ + 25, + "div id" + ], + [ + 25, + "div win" + ], + [ + 25, + "rank" + ], + [ + 25, + "g" + ], + [ + 25, + "w" + ], + [ + 25, + "l" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "player_id" + ], + [ + 0, + "year" + ], + [ + 0, + "game_num" + ], + [ + 0, + "game_id" + ], + [ + 0, + "team_id" + ], + [ + 0, + "league_id" + ], + [ + 0, + "gp" + ], + [ + 0, + "starting_pos" + ], + [ + 1, + "year" + ], + [ + 1, + "team_id" + ], + [ + 1, + "league_id" + ], + [ + 1, + "player_id" + ], + [ + 1, + "g_all" + ], + [ + 1, + "gs" + ], + [ + 1, + "g_batting" + ], + [ + 1, + "g_defense" + ], + [ + 1, + "g_p" + ], + [ + 1, + "g_c" + ], + [ + 1, + "g_1b" + ], + [ + 1, + "g_2b" + ], + [ + 1, + "g_3b" + ], + [ + 1, + "g_ss" + ], + [ + 1, + "g_lf" + ], + [ + 1, + "g_cf" + ], + [ + 1, + "g_rf" + ], + [ + 1, + "g_of" + ], + [ + 1, + "g_dh" + ], + [ + 1, + "g_ph" + ], + [ + 1, + "g_pr" + ], + [ + 2, + "player_id" + ], + [ + 2, + "award_id" + ], + [ + 2, + "year" + ], + [ + 2, + "league_id" + ], + [ + 2, + "tie" + ], + [ + 2, + "notes" + ], + [ + 3, + "player_id" + ], + [ + 3, + "award_id" + ], + [ + 3, + "year" + ], + [ + 3, + "league_id" + ], + [ + 3, + "tie" + ], + [ + 3, + "notes" + ], + [ + 4, + "award_id" + ], + [ + 4, + "year" + ], + [ + 4, + "league_id" + ], + [ + 4, + "player_id" + ], + [ + 4, + "points_won" + ], + [ + 4, + "points_max" + ], + [ + 4, + "votes_first" + ], + [ + 5, + "award_id" + ], + [ + 5, + "year" + ], + [ + 5, + "league_id" + ], + [ + 5, + "player_id" + ], + [ + 5, + "points_won" + ], + [ + 5, + "points_max" + ], + [ + 5, + "votes_first" + ], + [ + 6, + "player_id" + ], + [ + 6, + "year" + ], + [ + 6, + "stint" + ], + [ + 6, + "team_id" + ], + [ + 6, + "league_id" + ], + [ + 6, + "g" + ], + [ + 6, + "ab" + ], + [ + 6, + "r" + ], + [ + 6, + "h" + ], + [ + 6, + "double" + ], + [ + 6, + "triple" + ], + [ + 6, + "hr" + ], + [ + 6, + "rbi" + ], + [ + 6, + "sb" + ], + [ + 6, + "cs" + ], + [ + 6, + "bb" + ], + [ + 6, + "so" + ], + [ + 6, + "ibb" + ], + [ + 6, + "hbp" + ], + [ + 6, + "sh" + ], + [ + 6, + "sf" + ], + [ + 6, + "g_idp" + ], + [ + 7, + "year" + ], + [ + 7, + "round" + ], + [ + 7, + "player_id" + ], + [ + 7, + "team_id" + ], + [ + 7, + "league_id" + ], + [ + 7, + "g" + ], + [ + 7, + "ab" + ], + [ + 7, + "r" + ], + [ + 7, + "h" + ], + [ + 7, + "double" + ], + [ + 7, + "triple" + ], + [ + 7, + "hr" + ], + [ + 7, + "rbi" + ], + [ + 7, + "sb" + ], + [ + 7, + "cs" + ], + [ + 7, + "bb" + ], + [ + 7, + "so" + ], + [ + 7, + "ibb" + ], + [ + 7, + "hbp" + ], + [ + 7, + "sh" + ], + [ + 7, + "sf" + ], + [ + 7, + "g_idp" + ], + [ + 8, + "player_id" + ], + [ + 8, + "college_id" + ], + [ + 8, + "year" + ], + [ + 9, + "player_id" + ], + [ + 9, + "year" + ], + [ + 9, + "stint" + ], + [ + 9, + "team_id" + ], + [ + 9, + "league_id" + ], + [ + 9, + "pos" + ], + [ + 9, + "g" + ], + [ + 9, + "gs" + ], + [ + 9, + "inn_outs" + ], + [ + 9, + "po" + ], + [ + 9, + "a" + ], + [ + 9, + "e" + ], + [ + 9, + "dp" + ], + [ + 9, + "pb" + ], + [ + 9, + "wp" + ], + [ + 9, + "sb" + ], + [ + 9, + "cs" + ], + [ + 9, + "zr" + ], + [ + 10, + "player_id" + ], + [ + 10, + "year" + ], + [ + 10, + "stint" + ], + [ + 10, + "glf" + ], + [ + 10, + "gcf" + ], + [ + 10, + "grf" + ], + [ + 11, + "player_id" + ], + [ + 11, + "year" + ], + [ + 11, + "team_id" + ], + [ + 11, + "league_id" + ], + [ + 11, + "round" + ], + [ + 11, + "pos" + ], + [ + 11, + "g" + ], + [ + 11, + "gs" + ], + [ + 11, + "inn_outs" + ], + [ + 11, + "po" + ], + [ + 11, + "a" + ], + [ + 11, + "e" + ], + [ + 11, + "dp" + ], + [ + 11, + "tp" + ], + [ + 11, + "pb" + ], + [ + 11, + "sb" + ], + [ + 11, + "cs" + ], + [ + 12, + "player_id" + ], + [ + 12, + "yearid" + ], + [ + 12, + "votedby" + ], + [ + 12, + "ballots" + ], + [ + 12, + "needed" + ], + [ + 12, + "votes" + ], + [ + 12, + "inducted" + ], + [ + 12, + "category" + ], + [ + 12, + "needed_note" + ], + [ + 13, + "year" + ], + [ + 13, + "league_id" + ], + [ + 13, + "team_id" + ], + [ + 13, + "park_id" + ], + [ + 13, + "span_first" + ], + [ + 13, + "span_last" + ], + [ + 13, + "games" + ], + [ + 13, + "openings" + ], + [ + 13, + "attendance" + ], + [ + 14, + "player_id" + ], + [ + 14, + "year" + ], + [ + 14, + "team_id" + ], + [ + 14, + "league_id" + ], + [ + 14, + "inseason" + ], + [ + 14, + "g" + ], + [ + 14, + "w" + ], + [ + 14, + "l" + ], + [ + 14, + "rank" + ], + [ + 14, + "plyr_mgr" + ], + [ + 15, + "player_id" + ], + [ + 15, + "year" + ], + [ + 15, + "team_id" + ], + [ + 15, + "league_id" + ], + [ + 15, + "inseason" + ], + [ + 15, + "half" + ], + [ + 15, + "g" + ], + [ + 15, + "w" + ], + [ + 15, + "l" + ], + [ + 15, + "rank" + ], + [ + 16, + "player_id" + ], + [ + 16, + "birth_year" + ], + [ + 16, + "birth_month" + ], + [ + 16, + "birth_day" + ], + [ + 16, + "birth_country" + ], + [ + 16, + "birth_state" + ], + [ + 16, + "birth_city" + ], + [ + 16, + "death_year" + ], + [ + 16, + "death_month" + ], + [ + 16, + "death_day" + ], + [ + 16, + "death_country" + ], + [ + 16, + "death_state" + ], + [ + 16, + "death_city" + ], + [ + 16, + "name_first" + ], + [ + 16, + "name_last" + ], + [ + 16, + "name_given" + ], + [ + 16, + "weight" + ], + [ + 16, + "height" + ], + [ + 16, + "bats" + ], + [ + 16, + "throws" + ], + [ + 16, + "debut" + ], + [ + 16, + "final_game" + ], + [ + 16, + "retro_id" + ], + [ + 16, + "bbref_id" + ], + [ + 17, + "park_id" + ], + [ + 17, + "park_name" + ], + [ + 17, + "park_alias" + ], + [ + 17, + "city" + ], + [ + 17, + "state" + ], + [ + 17, + "country" + ], + [ + 18, + "player_id" + ], + [ + 18, + "year" + ], + [ + 18, + "stint" + ], + [ + 18, + "team_id" + ], + [ + 18, + "league_id" + ], + [ + 18, + "w" + ], + [ + 18, + "l" + ], + [ + 18, + "g" + ], + [ + 18, + "gs" + ], + [ + 18, + "cg" + ], + [ + 18, + "sho" + ], + [ + 18, + "sv" + ], + [ + 18, + "ipouts" + ], + [ + 18, + "h" + ], + [ + 18, + "er" + ], + [ + 18, + "hr" + ], + [ + 18, + "bb" + ], + [ + 18, + "so" + ], + [ + 18, + "baopp" + ], + [ + 18, + "era" + ], + [ + 18, + "ibb" + ], + [ + 18, + "wp" + ], + [ + 18, + "hbp" + ], + [ + 18, + "bk" + ], + [ + 18, + "bfp" + ], + [ + 18, + "gf" + ], + [ + 18, + "r" + ], + [ + 18, + "sh" + ], + [ + 18, + "sf" + ], + [ + 18, + "g_idp" + ], + [ + 19, + "player_id" + ], + [ + 19, + "year" + ], + [ + 19, + "round" + ], + [ + 19, + "team_id" + ], + [ + 19, + "league_id" + ], + [ + 19, + "w" + ], + [ + 19, + "l" + ], + [ + 19, + "g" + ], + [ + 19, + "gs" + ], + [ + 19, + "cg" + ], + [ + 19, + "sho" + ], + [ + 19, + "sv" + ], + [ + 19, + "ipouts" + ], + [ + 19, + "h" + ], + [ + 19, + "er" + ], + [ + 19, + "hr" + ], + [ + 19, + "bb" + ], + [ + 19, + "so" + ], + [ + 19, + "baopp" + ], + [ + 19, + "era" + ], + [ + 19, + "ibb" + ], + [ + 19, + "wp" + ], + [ + 19, + "hbp" + ], + [ + 19, + "bk" + ], + [ + 19, + "bfp" + ], + [ + 19, + "gf" + ], + [ + 19, + "r" + ], + [ + 19, + "sh" + ], + [ + 19, + "sf" + ], + [ + 19, + "g_idp" + ], + [ + 20, + "year" + ], + [ + 20, + "team_id" + ], + [ + 20, + "league_id" + ], + [ + 20, + "player_id" + ], + [ + 20, + "salary" + ], + [ + 21, + "college_id" + ], + [ + 21, + "name_full" + ], + [ + 21, + "city" + ], + [ + 21, + "state" + ], + [ + 21, + "country" + ], + [ + 22, + "year" + ], + [ + 22, + "round" + ], + [ + 22, + "team_id_winner" + ], + [ + 22, + "league_id_winner" + ], + [ + 22, + "team_id_loser" + ], + [ + 22, + "league_id_loser" + ], + [ + 22, + "wins" + ], + [ + 22, + "losses" + ], + [ + 22, + "ties" + ], + [ + 23, + "year" + ], + [ + 23, + "league_id" + ], + [ + 23, + "team_id" + ], + [ + 23, + "franchise_id" + ], + [ + 23, + "div_id" + ], + [ + 23, + "rank" + ], + [ + 23, + "g" + ], + [ + 23, + "ghome" + ], + [ + 23, + "w" + ], + [ + 23, + "l" + ], + [ + 23, + "div_win" + ], + [ + 23, + "wc_win" + ], + [ + 23, + "lg_win" + ], + [ + 23, + "ws_win" + ], + [ + 23, + "r" + ], + [ + 23, + "ab" + ], + [ + 23, + "h" + ], + [ + 23, + "double" + ], + [ + 23, + "triple" + ], + [ + 23, + "hr" + ], + [ + 23, + "bb" + ], + [ + 23, + "so" + ], + [ + 23, + "sb" + ], + [ + 23, + "cs" + ], + [ + 23, + "hbp" + ], + [ + 23, + "sf" + ], + [ + 23, + "ra" + ], + [ + 23, + "er" + ], + [ + 23, + "era" + ], + [ + 23, + "cg" + ], + [ + 23, + "sho" + ], + [ + 23, + "sv" + ], + [ + 23, + "ipouts" + ], + [ + 23, + "ha" + ], + [ + 23, + "hra" + ], + [ + 23, + "bba" + ], + [ + 23, + "soa" + ], + [ + 23, + "e" + ], + [ + 23, + "dp" + ], + [ + 23, + "fp" + ], + [ + 23, + "name" + ], + [ + 23, + "park" + ], + [ + 23, + "attendance" + ], + [ + 23, + "bpf" + ], + [ + 23, + "ppf" + ], + [ + 23, + "team_id_br" + ], + [ + 23, + "team_id_lahman45" + ], + [ + 23, + "team_id_retro" + ], + [ + 24, + "franchise_id" + ], + [ + 24, + "franchise_name" + ], + [ + 24, + "active" + ], + [ + 24, + "na_assoc" + ], + [ + 25, + "year" + ], + [ + 25, + "league_id" + ], + [ + 25, + "team_id" + ], + [ + 25, + "half" + ], + [ + 25, + "div_id" + ], + [ + 25, + "div_win" + ], + [ + 25, + "rank" + ], + [ + 25, + "g" + ], + [ + 25, + "w" + ], + [ + 25, + "l" + ] + ], + "column_types": [ + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "baseball_1", + "foreign_keys": [ + [ + 1, + 182 + ], + [ + 12, + 182 + ], + [ + 10, + 293 + ], + [ + 30, + 182 + ], + [ + 36, + 182 + ], + [ + 52, + 182 + ], + [ + 56, + 182 + ], + [ + 81, + 293 + ], + [ + 80, + 182 + ], + [ + 101, + 277 + ], + [ + 100, + 182 + ], + [ + 103, + 182 + ], + [ + 121, + 182 + ], + [ + 127, + 182 + ], + [ + 144, + 182 + ], + [ + 156, + 206 + ], + [ + 155, + 293 + ], + [ + 164, + 293 + ], + [ + 174, + 293 + ] + ], + "primary_keys": [], + "table_names": [ + "all star", + "appearances", + "manager award", + "player award", + "manager award vote", + "player award vote", + "batting", + "batting postseason", + "player college", + "fielding", + "fielding outfield", + "fielding postseason", + "hall of fame", + "home game", + "manager", + "manager half", + "player", + "park", + "pitching", + "pitching postseason", + "salary", + "college", + "postseason", + "team", + "team franchise", + "team half" + ], + "table_names_original": [ + "all_star", + "appearances", + "manager_award", + "player_award", + "manager_award_vote", + "player_award_vote", + "batting", + "batting_postseason", + "player_college", + "fielding", + "fielding_outfield", + "fielding_postseason", + "hall_of_fame", + "home_game", + "manager", + "manager_half", + "player", + "park", + "pitching", + "pitching_postseason", + "salary", + "college", + "postseason", + "team", + "team_franchise", + "team_half" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "nationality" + ], + [ + 0, + "gender" + ], + [ + 1, + "architect id" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "location" + ], + [ + 1, + "length meters" + ], + [ + 1, + "length feet" + ], + [ + 2, + "architect id" + ], + [ + 2, + "id" + ], + [ + 2, + "location" + ], + [ + 2, + "name" + ], + [ + 2, + "type" + ], + [ + 2, + "built year" + ], + [ + 2, + "notes" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "nationality" + ], + [ + 0, + "gender" + ], + [ + 1, + "architect_id" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "location" + ], + [ + 1, + "length_meters" + ], + [ + 1, + "length_feet" + ], + [ + 2, + "architect_id" + ], + [ + 2, + "id" + ], + [ + 2, + "location" + ], + [ + 2, + "name" + ], + [ + 2, + "type" + ], + [ + 2, + "built_year" + ], + [ + 2, + "notes" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "text" + ], + "db_id": "architecture", + "foreign_keys": [ + [ + 5, + 1 + ], + [ + 11, + 1 + ] + ], + "primary_keys": [ + 1, + 6, + 12 + ], + "table_names": [ + "architect", + "bridge", + "mill" + ], + "table_names_original": [ + "architect", + "bridge", + "mill" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "campus" + ], + [ + 0, + "location" + ], + [ + 0, + "county" + ], + [ + 0, + "year" + ], + [ + 1, + "campus" + ], + [ + 1, + "year" + ], + [ + 1, + "campus fee" + ], + [ + 2, + "year" + ], + [ + 2, + "campus" + ], + [ + 2, + "degrees" + ], + [ + 3, + "campus" + ], + [ + 3, + "discipline" + ], + [ + 3, + "year" + ], + [ + 3, + "undergraduate" + ], + [ + 3, + "graduate" + ], + [ + 4, + "campus" + ], + [ + 4, + "year" + ], + [ + 4, + "totalenrollment ay" + ], + [ + 4, + "fte ay" + ], + [ + 5, + "campus" + ], + [ + 5, + "year" + ], + [ + 5, + "faculty" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Id" + ], + [ + 0, + "Campus" + ], + [ + 0, + "Location" + ], + [ + 0, + "County" + ], + [ + 0, + "Year" + ], + [ + 1, + "Campus" + ], + [ + 1, + "Year" + ], + [ + 1, + "CampusFee" + ], + [ + 2, + "Year" + ], + [ + 2, + "Campus" + ], + [ + 2, + "Degrees" + ], + [ + 3, + "Campus" + ], + [ + 3, + "Discipline" + ], + [ + 3, + "Year" + ], + [ + 3, + "Undergraduate" + ], + [ + 3, + "Graduate" + ], + [ + 4, + "Campus" + ], + [ + 4, + "Year" + ], + [ + 4, + "TotalEnrollment_AY" + ], + [ + 4, + "FTE_AY" + ], + [ + 5, + "Campus" + ], + [ + 5, + "Year" + ], + [ + 5, + "Faculty" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "csu_1", + "foreign_keys": [ + [ + 6, + 1 + ], + [ + 10, + 1 + ], + [ + 12, + 1 + ], + [ + 17, + 1 + ], + [ + 21, + 1 + ] + ], + "primary_keys": [ + 1, + 6, + 9, + 12, + 17 + ], + "table_names": [ + "campuses", + "csu fees", + "degrees", + "discipline enrollments", + "enrollments", + "faculty" + ], + "table_names_original": [ + "Campuses", + "csu_fees", + "degrees", + "discipline_enrollments", + "enrollments", + "faculty" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "customer id" + ], + [ + 0, + "customer name" + ], + [ + 0, + "customer details" + ], + [ + 1, + "invoice number" + ], + [ + 1, + "invoice date" + ], + [ + 1, + "invoice details" + ], + [ + 2, + "order id" + ], + [ + 2, + "customer id" + ], + [ + 2, + "order status" + ], + [ + 2, + "date order placed" + ], + [ + 2, + "order details" + ], + [ + 3, + "product id" + ], + [ + 3, + "product name" + ], + [ + 3, + "product details" + ], + [ + 4, + "order item id" + ], + [ + 4, + "product id" + ], + [ + 4, + "order id" + ], + [ + 4, + "order item status" + ], + [ + 4, + "order item details" + ], + [ + 5, + "shipment id" + ], + [ + 5, + "order id" + ], + [ + 5, + "invoice number" + ], + [ + 5, + "shipment tracking number" + ], + [ + 5, + "shipment date" + ], + [ + 5, + "other shipment details" + ], + [ + 6, + "shipment id" + ], + [ + 6, + "order item id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "customer_id" + ], + [ + 0, + "customer_name" + ], + [ + 0, + "customer_details" + ], + [ + 1, + "invoice_number" + ], + [ + 1, + "invoice_date" + ], + [ + 1, + "invoice_details" + ], + [ + 2, + "order_id" + ], + [ + 2, + "customer_id" + ], + [ + 2, + "order_status" + ], + [ + 2, + "date_order_placed" + ], + [ + 2, + "order_details" + ], + [ + 3, + "product_id" + ], + [ + 3, + "product_name" + ], + [ + 3, + "product_details" + ], + [ + 4, + "order_item_id" + ], + [ + 4, + "product_id" + ], + [ + 4, + "order_id" + ], + [ + 4, + "order_item_status" + ], + [ + 4, + "order_item_details" + ], + [ + 5, + "shipment_id" + ], + [ + 5, + "order_id" + ], + [ + 5, + "invoice_number" + ], + [ + 5, + "shipment_tracking_number" + ], + [ + 5, + "shipment_date" + ], + [ + 5, + "other_shipment_details" + ], + [ + 6, + "shipment_id" + ], + [ + 6, + "order_item_id" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "time", + "text", + "number", + "number", + "text", + "time", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "time", + "text", + "number", + "number" + ], + "db_id": "tracking_orders", + "foreign_keys": [ + [ + 8, + 1 + ], + [ + 16, + 12 + ], + [ + 17, + 7 + ], + [ + 22, + 4 + ], + [ + 21, + 7 + ], + [ + 26, + 20 + ], + [ + 27, + 15 + ] + ], + "primary_keys": [ + 1, + 4, + 7, + 12, + 15, + 20 + ], + "table_names": [ + "customers", + "invoices", + "orders", + "products", + "order items", + "shipments", + "shipment items" + ], + "table_names_original": [ + "Customers", + "Invoices", + "Orders", + "Products", + "Order_Items", + "Shipments", + "Shipment_Items" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "customer id" + ], + [ + 0, + "customer details" + ], + [ + 1, + "policy id" + ], + [ + 1, + "customer id" + ], + [ + 1, + "policy type code" + ], + [ + 1, + "start date" + ], + [ + 1, + "end date" + ], + [ + 2, + "claim id" + ], + [ + 2, + "policy id" + ], + [ + 2, + "date claim made" + ], + [ + 2, + "date claim settled" + ], + [ + 2, + "amount claimed" + ], + [ + 2, + "amount settled" + ], + [ + 3, + "settlement id" + ], + [ + 3, + "claim id" + ], + [ + 3, + "date claim made" + ], + [ + 3, + "date claim settled" + ], + [ + 3, + "amount claimed" + ], + [ + 3, + "amount settled" + ], + [ + 3, + "customer policy id" + ], + [ + 4, + "payment id" + ], + [ + 4, + "settlement id" + ], + [ + 4, + "payment method code" + ], + [ + 4, + "date payment made" + ], + [ + 4, + "amount payment" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Customer_ID" + ], + [ + 0, + "Customer_Details" + ], + [ + 1, + "Policy_ID" + ], + [ + 1, + "Customer_ID" + ], + [ + 1, + "Policy_Type_Code" + ], + [ + 1, + "Start_Date" + ], + [ + 1, + "End_Date" + ], + [ + 2, + "Claim_ID" + ], + [ + 2, + "Policy_ID" + ], + [ + 2, + "Date_Claim_Made" + ], + [ + 2, + "Date_Claim_Settled" + ], + [ + 2, + "Amount_Claimed" + ], + [ + 2, + "Amount_Settled" + ], + [ + 3, + "Settlement_ID" + ], + [ + 3, + "Claim_ID" + ], + [ + 3, + "Date_Claim_Made" + ], + [ + 3, + "Date_Claim_Settled" + ], + [ + 3, + "Amount_Claimed" + ], + [ + 3, + "Amount_Settled" + ], + [ + 3, + "Customer_Policy_ID" + ], + [ + 4, + "Payment_ID" + ], + [ + 4, + "Settlement_ID" + ], + [ + 4, + "Payment_Method_Code" + ], + [ + 4, + "Date_Payment_Made" + ], + [ + 4, + "Amount_Payment" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "text", + "time", + "time", + "number", + "number", + "time", + "time", + "number", + "number", + "number", + "number", + "time", + "time", + "number", + "number", + "number", + "number", + "number", + "text", + "time", + "number" + ], + "db_id": "insurance_policies", + "foreign_keys": [ + [ + 4, + 1 + ], + [ + 9, + 3 + ], + [ + 15, + 8 + ], + [ + 22, + 14 + ] + ], + "primary_keys": [ + 1, + 3, + 8, + 14, + 21 + ], + "table_names": [ + "customers", + "customer policies", + "claims", + "settlements", + "payments" + ], + "table_names_original": [ + "Customers", + "Customer_Policies", + "Claims", + "Settlements", + "Payments" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "company id" + ], + [ + 0, + "rank" + ], + [ + 0, + "company" + ], + [ + 0, + "headquarters" + ], + [ + 0, + "main industry" + ], + [ + 0, + "sales billion" + ], + [ + 0, + "profits billion" + ], + [ + 0, + "assets billion" + ], + [ + 0, + "market value" + ], + [ + 1, + "station id" + ], + [ + 1, + "open year" + ], + [ + 1, + "location" + ], + [ + 1, + "manager name" + ], + [ + 1, + "vice manager name" + ], + [ + 1, + "representative name" + ], + [ + 2, + "station id" + ], + [ + 2, + "company id" + ], + [ + 2, + "rank of the year" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Company_ID" + ], + [ + 0, + "Rank" + ], + [ + 0, + "Company" + ], + [ + 0, + "Headquarters" + ], + [ + 0, + "Main_Industry" + ], + [ + 0, + "Sales_billion" + ], + [ + 0, + "Profits_billion" + ], + [ + 0, + "Assets_billion" + ], + [ + 0, + "Market_Value" + ], + [ + 1, + "Station_ID" + ], + [ + 1, + "Open_Year" + ], + [ + 1, + "Location" + ], + [ + 1, + "Manager_Name" + ], + [ + 1, + "Vice_Manager_Name" + ], + [ + 1, + "Representative_Name" + ], + [ + 2, + "Station_ID" + ], + [ + 2, + "Company_ID" + ], + [ + 2, + "Rank_of_the_Year" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number" + ], + "db_id": "gas_company", + "foreign_keys": [ + [ + 17, + 1 + ], + [ + 16, + 10 + ] + ], + "primary_keys": [ + 1, + 10, + 16 + ], + "table_names": [ + "company", + "gas station", + "station company" + ], + "table_names_original": [ + "company", + "gas_station", + "station_company" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "address id" + ], + [ + 0, + "line 1 number building" + ], + [ + 0, + "town city" + ], + [ + 0, + "zip postcode" + ], + [ + 0, + "state province county" + ], + [ + 0, + "country" + ], + [ + 1, + "service id" + ], + [ + 1, + "service type code" + ], + [ + 1, + "service name" + ], + [ + 1, + "service descriptio" + ], + [ + 2, + "form id" + ], + [ + 2, + "form type code" + ], + [ + 2, + "service id" + ], + [ + 2, + "form number" + ], + [ + 2, + "form name" + ], + [ + 2, + "form description" + ], + [ + 3, + "individual id" + ], + [ + 3, + "individual first name" + ], + [ + 3, + "individual middle name" + ], + [ + 3, + "inidividual phone" + ], + [ + 3, + "individual email" + ], + [ + 3, + "individual address" + ], + [ + 3, + "individual last name" + ], + [ + 4, + "organization id" + ], + [ + 4, + "date formed" + ], + [ + 4, + "organization name" + ], + [ + 4, + "uk vat number" + ], + [ + 5, + "party id" + ], + [ + 5, + "payment method code" + ], + [ + 5, + "party phone" + ], + [ + 5, + "party email" + ], + [ + 6, + "individual id" + ], + [ + 6, + "organization id" + ], + [ + 6, + "date contact from" + ], + [ + 6, + "date contact to" + ], + [ + 7, + "party id" + ], + [ + 7, + "address id" + ], + [ + 7, + "date address from" + ], + [ + 7, + "address type code" + ], + [ + 7, + "date address to" + ], + [ + 8, + "party id" + ], + [ + 8, + "form id" + ], + [ + 8, + "date completion started" + ], + [ + 8, + "form status code" + ], + [ + 8, + "date fully completed" + ], + [ + 9, + "booking id" + ], + [ + 9, + "customer id" + ], + [ + 9, + "service id" + ], + [ + 9, + "service datetime" + ], + [ + 9, + "booking made date" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "address_id" + ], + [ + 0, + "line_1_number_building" + ], + [ + 0, + "town_city" + ], + [ + 0, + "zip_postcode" + ], + [ + 0, + "state_province_county" + ], + [ + 0, + "country" + ], + [ + 1, + "service_id" + ], + [ + 1, + "service_type_code" + ], + [ + 1, + "service_name" + ], + [ + 1, + "service_descriptio" + ], + [ + 2, + "form_id" + ], + [ + 2, + "form_type_code" + ], + [ + 2, + "service_id" + ], + [ + 2, + "form_number" + ], + [ + 2, + "form_name" + ], + [ + 2, + "form_description" + ], + [ + 3, + "individual_id" + ], + [ + 3, + "individual_first_name" + ], + [ + 3, + "individual_middle_name" + ], + [ + 3, + "inidividual_phone" + ], + [ + 3, + "individual_email" + ], + [ + 3, + "individual_address" + ], + [ + 3, + "individual_last_name" + ], + [ + 4, + "organization_id" + ], + [ + 4, + "date_formed" + ], + [ + 4, + "organization_name" + ], + [ + 4, + "uk_vat_number" + ], + [ + 5, + "party_id" + ], + [ + 5, + "payment_method_code" + ], + [ + 5, + "party_phone" + ], + [ + 5, + "party_email" + ], + [ + 6, + "individual_id" + ], + [ + 6, + "organization_id" + ], + [ + 6, + "date_contact_from" + ], + [ + 6, + "date_contact_to" + ], + [ + 7, + "party_id" + ], + [ + 7, + "address_id" + ], + [ + 7, + "date_address_from" + ], + [ + 7, + "address_type_code" + ], + [ + 7, + "date_address_to" + ], + [ + 8, + "party_id" + ], + [ + 8, + "form_id" + ], + [ + 8, + "date_completion_started" + ], + [ + 8, + "form_status_code" + ], + [ + 8, + "date_fully_completed" + ], + [ + 9, + "booking_id" + ], + [ + 9, + "customer_id" + ], + [ + 9, + "service_id" + ], + [ + 9, + "service_datetime" + ], + [ + 9, + "booking_made_date" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "time", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "time", + "time", + "number", + "number", + "time", + "text", + "time", + "number", + "number", + "time", + "text", + "time", + "number", + "number", + "number", + "time", + "time" + ], + "db_id": "e_government", + "foreign_keys": [ + [ + 13, + 7 + ], + [ + 32, + 17 + ], + [ + 33, + 24 + ], + [ + 36, + 28 + ], + [ + 37, + 1 + ], + [ + 42, + 11 + ], + [ + 41, + 28 + ], + [ + 47, + 28 + ], + [ + 48, + 7 + ] + ], + "primary_keys": [ + 1, + 7, + 11, + 17, + 24, + 28, + 32, + 36, + 41 + ], + "table_names": [ + "addresses", + "services", + "forms", + "individuals", + "organizations", + "parties", + "organization contact individuals", + "party addresses", + "party forms", + "party services" + ], + "table_names_original": [ + "Addresses", + "Services", + "Forms", + "Individuals", + "Organizations", + "Parties", + "Organization_Contact_Individuals", + "Party_Addresses", + "Party_Forms", + "Party_Services" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "driver id" + ], + [ + 0, + "name" + ], + [ + 0, + "party" + ], + [ + 0, + "home city" + ], + [ + 0, + "age" + ], + [ + 1, + "school id" + ], + [ + 1, + "grade" + ], + [ + 1, + "school" + ], + [ + 1, + "location" + ], + [ + 1, + "type" + ], + [ + 2, + "school id" + ], + [ + 2, + "driver id" + ], + [ + 2, + "years working" + ], + [ + 2, + "if full time" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Driver_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Party" + ], + [ + 0, + "Home_city" + ], + [ + 0, + "Age" + ], + [ + 1, + "School_ID" + ], + [ + 1, + "Grade" + ], + [ + 1, + "School" + ], + [ + 1, + "Location" + ], + [ + 1, + "Type" + ], + [ + 2, + "School_ID" + ], + [ + 2, + "Driver_ID" + ], + [ + 2, + "Years_Working" + ], + [ + 2, + "If_full_time" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "others" + ], + "db_id": "school_bus", + "foreign_keys": [ + [ + 12, + 1 + ], + [ + 11, + 6 + ] + ], + "primary_keys": [ + 1, + 6, + 11 + ], + "table_names": [ + "driver", + "school", + "school bus" + ], + "table_names_original": [ + "driver", + "school", + "school_bus" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "repair id" + ], + [ + 0, + "name" + ], + [ + 0, + "launch date" + ], + [ + 0, + "notes" + ], + [ + 1, + "machine id" + ], + [ + 1, + "making year" + ], + [ + 1, + "class" + ], + [ + 1, + "team" + ], + [ + 1, + "machine series" + ], + [ + 1, + "value points" + ], + [ + 1, + "quality rank" + ], + [ + 2, + "technician id" + ], + [ + 2, + "name" + ], + [ + 2, + "team" + ], + [ + 2, + "starting year" + ], + [ + 2, + "age" + ], + [ + 3, + "technician id" + ], + [ + 3, + "repair id" + ], + [ + 3, + "machine id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "repair_ID" + ], + [ + 0, + "name" + ], + [ + 0, + "Launch_Date" + ], + [ + 0, + "Notes" + ], + [ + 1, + "Machine_ID" + ], + [ + 1, + "Making_Year" + ], + [ + 1, + "Class" + ], + [ + 1, + "Team" + ], + [ + 1, + "Machine_series" + ], + [ + 1, + "value_points" + ], + [ + 1, + "quality_rank" + ], + [ + 2, + "technician_id" + ], + [ + 2, + "Name" + ], + [ + 2, + "Team" + ], + [ + 2, + "Starting_Year" + ], + [ + 2, + "Age" + ], + [ + 3, + "technician_id" + ], + [ + 3, + "repair_ID" + ], + [ + 3, + "Machine_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "machine_repair", + "foreign_keys": [ + [ + 19, + 5 + ], + [ + 18, + 1 + ], + [ + 17, + 12 + ] + ], + "primary_keys": [ + 1, + 5, + 12, + 17 + ], + "table_names": [ + "repair", + "machine", + "technician", + "repair assignment" + ], + "table_names_original": [ + "repair", + "machine", + "technician", + "repair_assignment" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "artist id" + ], + [ + 0, + "name" + ], + [ + 0, + "country" + ], + [ + 0, + "year join" + ], + [ + 0, + "age" + ], + [ + 1, + "exhibition id" + ], + [ + 1, + "year" + ], + [ + 1, + "theme" + ], + [ + 1, + "artist id" + ], + [ + 1, + "ticket price" + ], + [ + 2, + "exhibition id" + ], + [ + 2, + "date" + ], + [ + 2, + "attendance" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Artist_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Country" + ], + [ + 0, + "Year_Join" + ], + [ + 0, + "Age" + ], + [ + 1, + "Exhibition_ID" + ], + [ + 1, + "Year" + ], + [ + 1, + "Theme" + ], + [ + 1, + "Artist_ID" + ], + [ + 1, + "Ticket_Price" + ], + [ + 2, + "Exhibition_ID" + ], + [ + 2, + "Date" + ], + [ + 2, + "Attendance" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "text", + "number" + ], + "db_id": "theme_gallery", + "foreign_keys": [ + [ + 9, + 1 + ], + [ + 11, + 6 + ] + ], + "primary_keys": [ + 1, + 6, + 11 + ], + "table_names": [ + "artist", + "exhibition", + "exhibition record" + ], + "table_names_original": [ + "artist", + "exhibition", + "exhibition_record" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "film id" + ], + [ + 0, + "title" + ], + [ + 0, + "studio" + ], + [ + 0, + "director" + ], + [ + 0, + "gross in dollar" + ], + [ + 1, + "market id" + ], + [ + 1, + "country" + ], + [ + 1, + "number cities" + ], + [ + 2, + "estimation id" + ], + [ + 2, + "low estimate" + ], + [ + 2, + "high estimate" + ], + [ + 2, + "film id" + ], + [ + 2, + "type" + ], + [ + 2, + "market id" + ], + [ + 2, + "year" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Film_ID" + ], + [ + 0, + "Title" + ], + [ + 0, + "Studio" + ], + [ + 0, + "Director" + ], + [ + 0, + "Gross_in_dollar" + ], + [ + 1, + "Market_ID" + ], + [ + 1, + "Country" + ], + [ + 1, + "Number_cities" + ], + [ + 2, + "Estimation_ID" + ], + [ + 2, + "Low_Estimate" + ], + [ + 2, + "High_Estimate" + ], + [ + 2, + "Film_ID" + ], + [ + 2, + "Type" + ], + [ + 2, + "Market_ID" + ], + [ + 2, + "Year" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number" + ], + "db_id": "film_rank", + "foreign_keys": [ + [ + 14, + 6 + ], + [ + 12, + 1 + ] + ], + "primary_keys": [ + 1, + 6, + 9 + ], + "table_names": [ + "film", + "market", + "film market estimation" + ], + "table_names_original": [ + "film", + "market", + "film_market_estimation" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "region id" + ], + [ + 0, + "region name" + ], + [ + 0, + "date" + ], + [ + 0, + "label" + ], + [ + 0, + "format" + ], + [ + 0, + "catalogue" + ], + [ + 1, + "party id" + ], + [ + 1, + "minister" + ], + [ + 1, + "took office" + ], + [ + 1, + "left office" + ], + [ + 1, + "region id" + ], + [ + 1, + "party name" + ], + [ + 2, + "member id" + ], + [ + 2, + "member name" + ], + [ + 2, + "party id" + ], + [ + 2, + "in office" + ], + [ + 3, + "event id" + ], + [ + 3, + "event name" + ], + [ + 3, + "party id" + ], + [ + 3, + "member in charge id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Region_ID" + ], + [ + 0, + "Region_name" + ], + [ + 0, + "Date" + ], + [ + 0, + "Label" + ], + [ + 0, + "Format" + ], + [ + 0, + "Catalogue" + ], + [ + 1, + "Party_ID" + ], + [ + 1, + "Minister" + ], + [ + 1, + "Took_office" + ], + [ + 1, + "Left_office" + ], + [ + 1, + "Region_ID" + ], + [ + 1, + "Party_name" + ], + [ + 2, + "Member_ID" + ], + [ + 2, + "Member_Name" + ], + [ + 2, + "Party_ID" + ], + [ + 2, + "In_office" + ], + [ + 3, + "Event_ID" + ], + [ + 3, + "Event_Name" + ], + [ + 3, + "Party_ID" + ], + [ + 3, + "Member_in_charge_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "number", + "number" + ], + "db_id": "party_people", + "foreign_keys": [ + [ + 11, + 1 + ], + [ + 15, + 7 + ], + [ + 20, + 13 + ], + [ + 19, + 7 + ] + ], + "primary_keys": [ + 1, + 7, + 13, + 17 + ], + "table_names": [ + "region", + "party", + "member", + "party events" + ], + "table_names_original": [ + "region", + "party", + "member", + "party_events" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "employee id" + ], + [ + 0, + "name" + ], + [ + 0, + "position" + ], + [ + 0, + "ssn" + ], + [ + 1, + "departmentid" + ], + [ + 1, + "name" + ], + [ + 1, + "head" + ], + [ + 2, + "physician" + ], + [ + 2, + "department" + ], + [ + 2, + "primary affiliation" + ], + [ + 3, + "code" + ], + [ + 3, + "name" + ], + [ + 3, + "cost" + ], + [ + 4, + "physician" + ], + [ + 4, + "treatment" + ], + [ + 4, + "certification date" + ], + [ + 4, + "certification expires" + ], + [ + 5, + "ssn" + ], + [ + 5, + "name" + ], + [ + 5, + "address" + ], + [ + 5, + "phone" + ], + [ + 5, + "insurance id" + ], + [ + 5, + "pcp" + ], + [ + 6, + "employee id" + ], + [ + 6, + "name" + ], + [ + 6, + "position" + ], + [ + 6, + "registered" + ], + [ + 6, + "ssn" + ], + [ + 7, + "appointment id" + ], + [ + 7, + "patient" + ], + [ + 7, + "prep nurse" + ], + [ + 7, + "physician" + ], + [ + 7, + "start" + ], + [ + 7, + "end" + ], + [ + 7, + "examination room" + ], + [ + 8, + "code" + ], + [ + 8, + "name" + ], + [ + 8, + "brand" + ], + [ + 8, + "description" + ], + [ + 9, + "physician" + ], + [ + 9, + "patient" + ], + [ + 9, + "medication" + ], + [ + 9, + "date" + ], + [ + 9, + "appointment" + ], + [ + 9, + "dose" + ], + [ + 10, + "block floor" + ], + [ + 10, + "block code" + ], + [ + 11, + "roomnumber" + ], + [ + 11, + "room type" + ], + [ + 11, + "block floor" + ], + [ + 11, + "block code" + ], + [ + 11, + "unavailable" + ], + [ + 12, + "nurse" + ], + [ + 12, + "block floor" + ], + [ + 12, + "block code" + ], + [ + 12, + "oncall start" + ], + [ + 12, + "oncall end" + ], + [ + 13, + "stay id" + ], + [ + 13, + "patient" + ], + [ + 13, + "room" + ], + [ + 13, + "stay start" + ], + [ + 13, + "stay end" + ], + [ + 14, + "patient" + ], + [ + 14, + "procedures" + ], + [ + 14, + "stay" + ], + [ + 14, + "date undergoes" + ], + [ + 14, + "physician" + ], + [ + 14, + "assisting nurse" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "EmployeeID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Position" + ], + [ + 0, + "SSN" + ], + [ + 1, + "DepartmentID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Head" + ], + [ + 2, + "Physician" + ], + [ + 2, + "Department" + ], + [ + 2, + "PrimaryAffiliation" + ], + [ + 3, + "Code" + ], + [ + 3, + "Name" + ], + [ + 3, + "Cost" + ], + [ + 4, + "Physician" + ], + [ + 4, + "Treatment" + ], + [ + 4, + "CertificationDate" + ], + [ + 4, + "CertificationExpires" + ], + [ + 5, + "SSN" + ], + [ + 5, + "Name" + ], + [ + 5, + "Address" + ], + [ + 5, + "Phone" + ], + [ + 5, + "InsuranceID" + ], + [ + 5, + "PCP" + ], + [ + 6, + "EmployeeID" + ], + [ + 6, + "Name" + ], + [ + 6, + "Position" + ], + [ + 6, + "Registered" + ], + [ + 6, + "SSN" + ], + [ + 7, + "AppointmentID" + ], + [ + 7, + "Patient" + ], + [ + 7, + "PrepNurse" + ], + [ + 7, + "Physician" + ], + [ + 7, + "Start" + ], + [ + 7, + "End" + ], + [ + 7, + "ExaminationRoom" + ], + [ + 8, + "Code" + ], + [ + 8, + "Name" + ], + [ + 8, + "Brand" + ], + [ + 8, + "Description" + ], + [ + 9, + "Physician" + ], + [ + 9, + "Patient" + ], + [ + 9, + "Medication" + ], + [ + 9, + "Date" + ], + [ + 9, + "Appointment" + ], + [ + 9, + "Dose" + ], + [ + 10, + "BlockFloor" + ], + [ + 10, + "BlockCode" + ], + [ + 11, + "RoomNumber" + ], + [ + 11, + "RoomType" + ], + [ + 11, + "BlockFloor" + ], + [ + 11, + "BlockCode" + ], + [ + 11, + "Unavailable" + ], + [ + 12, + "Nurse" + ], + [ + 12, + "BlockFloor" + ], + [ + 12, + "BlockCode" + ], + [ + 12, + "OnCallStart" + ], + [ + 12, + "OnCallEnd" + ], + [ + 13, + "StayID" + ], + [ + 13, + "Patient" + ], + [ + 13, + "Room" + ], + [ + 13, + "StayStart" + ], + [ + 13, + "StayEnd" + ], + [ + 14, + "Patient" + ], + [ + 14, + "Procedures" + ], + [ + 14, + "Stay" + ], + [ + 14, + "DateUndergoes" + ], + [ + 14, + "Physician" + ], + [ + 14, + "AssistingNurse" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "boolean", + "number", + "text", + "number", + "number", + "number", + "time", + "time", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "boolean", + "number", + "number", + "number", + "number", + "number", + "time", + "time", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "time", + "number", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "boolean", + "number", + "number", + "number", + "time", + "time", + "number", + "number", + "number", + "time", + "time", + "number", + "number", + "number", + "time", + "number", + "number" + ], + "db_id": "hospital_1", + "foreign_keys": [ + [ + 7, + 1 + ], + [ + 9, + 5 + ], + [ + 8, + 1 + ], + [ + 15, + 11 + ], + [ + 14, + 1 + ], + [ + 23, + 1 + ], + [ + 32, + 1 + ], + [ + 31, + 24 + ], + [ + 30, + 18 + ], + [ + 44, + 29 + ], + [ + 42, + 36 + ], + [ + 41, + 18 + ], + [ + 40, + 1 + ], + [ + 50, + 46 + ], + [ + 51, + 47 + ], + [ + 54, + 46 + ], + [ + 55, + 47 + ], + [ + 53, + 24 + ], + [ + 60, + 48 + ], + [ + 59, + 18 + ], + [ + 68, + 24 + ], + [ + 67, + 1 + ], + [ + 65, + 58 + ], + [ + 64, + 11 + ], + [ + 63, + 18 + ] + ], + "primary_keys": [ + 1, + 5, + 8, + 11, + 14, + 18, + 24, + 29, + 36, + 40, + 46, + 48, + 53, + 58, + 63 + ], + "table_names": [ + "physician", + "department", + "affiliated with", + "procedures", + "trained in", + "patient", + "nurse", + "appointment", + "medication", + "prescribes", + "block", + "room", + "on call", + "stay", + "undergoes" + ], + "table_names_original": [ + "Physician", + "Department", + "Affiliated_With", + "Procedures", + "Trained_In", + "Patient", + "Nurse", + "Appointment", + "Medication", + "Prescribes", + "Block", + "Room", + "On_Call", + "Stay", + "Undergoes" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "premise id" + ], + [ + 0, + "premises type" + ], + [ + 0, + "premise details" + ], + [ + 1, + "product id" + ], + [ + 1, + "product category" + ], + [ + 1, + "product name" + ], + [ + 2, + "customer id" + ], + [ + 2, + "payment method" + ], + [ + 2, + "customer name" + ], + [ + 2, + "customer phone" + ], + [ + 2, + "customer email" + ], + [ + 2, + "customer address" + ], + [ + 2, + "customer login" + ], + [ + 2, + "customer password" + ], + [ + 3, + "mailshot id" + ], + [ + 3, + "product category" + ], + [ + 3, + "mailshot name" + ], + [ + 3, + "mailshot start date" + ], + [ + 3, + "mailshot end date" + ], + [ + 4, + "customer id" + ], + [ + 4, + "premise id" + ], + [ + 4, + "date address from" + ], + [ + 4, + "address type code" + ], + [ + 4, + "date address to" + ], + [ + 5, + "order id" + ], + [ + 5, + "customer id" + ], + [ + 5, + "order status code" + ], + [ + 5, + "shipping method code" + ], + [ + 5, + "order placed datetime" + ], + [ + 5, + "order delivered datetime" + ], + [ + 5, + "order shipping charges" + ], + [ + 6, + "mailshot id" + ], + [ + 6, + "customer id" + ], + [ + 6, + "outcome code" + ], + [ + 6, + "mailshot customer date" + ], + [ + 7, + "item id" + ], + [ + 7, + "order item status code" + ], + [ + 7, + "order id" + ], + [ + 7, + "product id" + ], + [ + 7, + "item status code" + ], + [ + 7, + "item delivered datetime" + ], + [ + 7, + "item order quantity" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "premise_id" + ], + [ + 0, + "premises_type" + ], + [ + 0, + "premise_details" + ], + [ + 1, + "product_id" + ], + [ + 1, + "product_category" + ], + [ + 1, + "product_name" + ], + [ + 2, + "customer_id" + ], + [ + 2, + "payment_method" + ], + [ + 2, + "customer_name" + ], + [ + 2, + "customer_phone" + ], + [ + 2, + "customer_email" + ], + [ + 2, + "customer_address" + ], + [ + 2, + "customer_login" + ], + [ + 2, + "customer_password" + ], + [ + 3, + "mailshot_id" + ], + [ + 3, + "product_category" + ], + [ + 3, + "mailshot_name" + ], + [ + 3, + "mailshot_start_date" + ], + [ + 3, + "mailshot_end_date" + ], + [ + 4, + "customer_id" + ], + [ + 4, + "premise_id" + ], + [ + 4, + "date_address_from" + ], + [ + 4, + "address_type_code" + ], + [ + 4, + "date_address_to" + ], + [ + 5, + "order_id" + ], + [ + 5, + "customer_id" + ], + [ + 5, + "order_status_code" + ], + [ + 5, + "shipping_method_code" + ], + [ + 5, + "order_placed_datetime" + ], + [ + 5, + "order_delivered_datetime" + ], + [ + 5, + "order_shipping_charges" + ], + [ + 6, + "mailshot_id" + ], + [ + 6, + "customer_id" + ], + [ + 6, + "outcome_code" + ], + [ + 6, + "mailshot_customer_date" + ], + [ + 7, + "item_id" + ], + [ + 7, + "order_item_status_code" + ], + [ + 7, + "order_id" + ], + [ + 7, + "product_id" + ], + [ + 7, + "item_status_code" + ], + [ + 7, + "item_delivered_datetime" + ], + [ + 7, + "item_order_quantity" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "time", + "time", + "number", + "number", + "time", + "text", + "time", + "number", + "number", + "text", + "text", + "time", + "time", + "text", + "number", + "number", + "text", + "time", + "number", + "text", + "number", + "number", + "text", + "time", + "text" + ], + "db_id": "customers_campaigns_ecommerce", + "foreign_keys": [ + [ + 20, + 7 + ], + [ + 21, + 1 + ], + [ + 26, + 7 + ], + [ + 32, + 15 + ], + [ + 33, + 7 + ], + [ + 38, + 25 + ], + [ + 39, + 4 + ] + ], + "primary_keys": [ + 1, + 4, + 7, + 15, + 25 + ], + "table_names": [ + "premises", + "products", + "customers", + "mailshot campaigns", + "customer addresses", + "customer orders", + "mailshot customers", + "order items" + ], + "table_names_original": [ + "Premises", + "Products", + "Customers", + "Mailshot_Campaigns", + "Customer_Addresses", + "Customer_Orders", + "Mailshot_Customers", + "Order_Items" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "gymnast id" + ], + [ + 0, + "floor exercise points" + ], + [ + 0, + "pommel horse points" + ], + [ + 0, + "rings points" + ], + [ + 0, + "vault points" + ], + [ + 0, + "parallel bars points" + ], + [ + 0, + "horizontal bar points" + ], + [ + 0, + "total points" + ], + [ + 1, + "people id" + ], + [ + 1, + "name" + ], + [ + 1, + "age" + ], + [ + 1, + "height" + ], + [ + 1, + "hometown" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Gymnast_ID" + ], + [ + 0, + "Floor_Exercise_Points" + ], + [ + 0, + "Pommel_Horse_Points" + ], + [ + 0, + "Rings_Points" + ], + [ + 0, + "Vault_Points" + ], + [ + 0, + "Parallel_Bars_Points" + ], + [ + 0, + "Horizontal_Bar_Points" + ], + [ + 0, + "Total_Points" + ], + [ + 1, + "People_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Age" + ], + [ + 1, + "Height" + ], + [ + 1, + "Hometown" + ] + ], + "column_types": [ + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "text" + ], + "db_id": "gymnast", + "foreign_keys": [ + [ + 1, + 9 + ] + ], + "primary_keys": [ + 1, + 9 + ], + "table_names": [ + "gymnast", + "people" + ], + "table_names_original": [ + "gymnast", + "people" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "city name" + ], + [ + 0, + "county" + ], + [ + 0, + "region" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "food type" + ], + [ + 1, + "city name" + ], + [ + 1, + "rating" + ], + [ + 2, + "restaurant id" + ], + [ + 2, + "house number" + ], + [ + 2, + "street name" + ], + [ + 2, + "city name" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "CITY_NAME" + ], + [ + 0, + "COUNTY" + ], + [ + 0, + "REGION" + ], + [ + 1, + "ID" + ], + [ + 1, + "NAME" + ], + [ + 1, + "FOOD_TYPE" + ], + [ + 1, + "CITY_NAME" + ], + [ + 1, + "RATING" + ], + [ + 2, + "RESTAURANT_ID" + ], + [ + 2, + "HOUSE_NUMBER" + ], + [ + 2, + "STREET_NAME" + ], + [ + 2, + "CITY_NAME" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text" + ], + "db_id": "restaurants", + "foreign_keys": [ + [ + 7, + 1 + ], + [ + 12, + 1 + ] + ], + "primary_keys": [ + 1, + 4, + 9 + ], + "table_names": [ + "geographic", + "restaurant", + "location" + ], + "table_names_original": [ + "GEOGRAPHIC", + "RESTAURANT", + "LOCATION" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "height" + ], + [ + 0, + "prominence" + ], + [ + 0, + "range" + ], + [ + 0, + "country" + ], + [ + 1, + "id" + ], + [ + 1, + "brand" + ], + [ + 1, + "name" + ], + [ + 1, + "focal length mm" + ], + [ + 1, + "max aperture" + ], + [ + 2, + "id" + ], + [ + 2, + "camera lens id" + ], + [ + 2, + "mountain id" + ], + [ + 2, + "color" + ], + [ + 2, + "name" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "Height" + ], + [ + 0, + "Prominence" + ], + [ + 0, + "Range" + ], + [ + 0, + "Country" + ], + [ + 1, + "id" + ], + [ + 1, + "brand" + ], + [ + 1, + "name" + ], + [ + 1, + "focal_length_mm" + ], + [ + 1, + "max_aperture" + ], + [ + 2, + "id" + ], + [ + 2, + "camera_lens_id" + ], + [ + 2, + "mountain_id" + ], + [ + 2, + "color" + ], + [ + 2, + "name" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "text" + ], + "db_id": "mountain_photos", + "foreign_keys": [ + [ + 14, + 1 + ], + [ + 13, + 7 + ] + ], + "primary_keys": [ + 1, + 7, + 12 + ], + "table_names": [ + "mountain", + "camera lens", + "photos" + ], + "table_names_original": [ + "mountain", + "camera_lens", + "photos" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "date" + ], + [ + 0, + "bulgarian commander" + ], + [ + 0, + "latin commander" + ], + [ + 0, + "result" + ], + [ + 1, + "lost in battle" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "tonnage" + ], + [ + 1, + "ship type" + ], + [ + 1, + "location" + ], + [ + 1, + "disposition of ship" + ], + [ + 2, + "caused by ship id" + ], + [ + 2, + "id" + ], + [ + 2, + "note" + ], + [ + 2, + "killed" + ], + [ + 2, + "injured" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "date" + ], + [ + 0, + "bulgarian_commander" + ], + [ + 0, + "latin_commander" + ], + [ + 0, + "result" + ], + [ + 1, + "lost_in_battle" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "tonnage" + ], + [ + 1, + "ship_type" + ], + [ + 1, + "location" + ], + [ + 1, + "disposition_of_ship" + ], + [ + 2, + "caused_by_ship_id" + ], + [ + 2, + "id" + ], + [ + 2, + "note" + ], + [ + 2, + "killed" + ], + [ + 2, + "injured" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "number", + "number" + ], + "db_id": "battle_death", + "foreign_keys": [ + [ + 7, + 1 + ], + [ + 14, + 8 + ] + ], + "primary_keys": [ + 1, + 8, + 15 + ], + "table_names": [ + "battle", + "ship", + "death" + ], + "table_names_original": [ + "battle", + "ship", + "death" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "document type code" + ], + [ + 0, + "document type description" + ], + [ + 1, + "role code" + ], + [ + 1, + "role description" + ], + [ + 2, + "address id" + ], + [ + 2, + "address details" + ], + [ + 3, + "document status code" + ], + [ + 3, + "document status description" + ], + [ + 4, + "shipping agent code" + ], + [ + 4, + "shipping agent name" + ], + [ + 4, + "shipping agent description" + ], + [ + 5, + "document id" + ], + [ + 5, + "document status code" + ], + [ + 5, + "document type code" + ], + [ + 5, + "shipping agent code" + ], + [ + 5, + "receipt date" + ], + [ + 5, + "receipt number" + ], + [ + 5, + "other details" + ], + [ + 6, + "employee id" + ], + [ + 6, + "role code" + ], + [ + 6, + "employee name" + ], + [ + 6, + "other details" + ], + [ + 7, + "document id" + ], + [ + 7, + "draft number" + ], + [ + 7, + "draft details" + ], + [ + 8, + "document id" + ], + [ + 8, + "draft number" + ], + [ + 8, + "copy number" + ], + [ + 9, + "document id" + ], + [ + 9, + "draft number" + ], + [ + 9, + "copy number" + ], + [ + 9, + "employee id" + ], + [ + 10, + "document id" + ], + [ + 10, + "mailed to address id" + ], + [ + 10, + "mailing date" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "document_type_code" + ], + [ + 0, + "document_type_description" + ], + [ + 1, + "role_code" + ], + [ + 1, + "role_description" + ], + [ + 2, + "address_id" + ], + [ + 2, + "address_details" + ], + [ + 3, + "document_status_code" + ], + [ + 3, + "document_status_description" + ], + [ + 4, + "shipping_agent_code" + ], + [ + 4, + "shipping_agent_name" + ], + [ + 4, + "shipping_agent_description" + ], + [ + 5, + "document_id" + ], + [ + 5, + "document_status_code" + ], + [ + 5, + "document_type_code" + ], + [ + 5, + "shipping_agent_code" + ], + [ + 5, + "receipt_date" + ], + [ + 5, + "receipt_number" + ], + [ + 5, + "other_details" + ], + [ + 6, + "employee_id" + ], + [ + 6, + "role_code" + ], + [ + 6, + "employee_name" + ], + [ + 6, + "other_details" + ], + [ + 7, + "document_id" + ], + [ + 7, + "draft_number" + ], + [ + 7, + "draft_details" + ], + [ + 8, + "document_id" + ], + [ + 8, + "draft_number" + ], + [ + 8, + "copy_number" + ], + [ + 9, + "document_id" + ], + [ + 9, + "draft_number" + ], + [ + 9, + "copy_number" + ], + [ + 9, + "employee_id" + ], + [ + 10, + "document_id" + ], + [ + 10, + "mailed_to_address_id" + ], + [ + 10, + "mailing_date" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "time", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "time" + ], + "db_id": "cre_Doc_Control_Systems", + "foreign_keys": [ + [ + 15, + 9 + ], + [ + 13, + 7 + ], + [ + 14, + 1 + ], + [ + 20, + 3 + ], + [ + 23, + 12 + ], + [ + 26, + 23 + ], + [ + 27, + 24 + ], + [ + 32, + 19 + ], + [ + 29, + 26 + ], + [ + 30, + 27 + ], + [ + 31, + 28 + ], + [ + 34, + 5 + ], + [ + 33, + 12 + ] + ], + "primary_keys": [ + 1, + 3, + 5, + 7, + 9, + 12, + 19, + 23, + 26, + 29, + 33 + ], + "table_names": [ + "reference document types", + "roles", + "addresses", + "reference document status", + "reference shipping agents", + "documents", + "employees", + "document drafts", + "draft copies", + "circulation history", + "documents mailed" + ], + "table_names_original": [ + "Ref_Document_Types", + "Roles", + "Addresses", + "Ref_Document_Status", + "Ref_Shipping_Agents", + "Documents", + "Employees", + "Document_Drafts", + "Draft_Copies", + "Circulation_History", + "Documents_Mailed" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "investor id" + ], + [ + 0, + "investor details" + ], + [ + 1, + "lot id" + ], + [ + 1, + "investor id" + ], + [ + 1, + "lot details" + ], + [ + 2, + "transaction type code" + ], + [ + 2, + "transaction type description" + ], + [ + 3, + "transaction id" + ], + [ + 3, + "investor id" + ], + [ + 3, + "transaction type code" + ], + [ + 3, + "date of transaction" + ], + [ + 3, + "amount of transaction" + ], + [ + 3, + "share count" + ], + [ + 3, + "other details" + ], + [ + 4, + "sales transaction id" + ], + [ + 4, + "sales details" + ], + [ + 5, + "purchase transaction id" + ], + [ + 5, + "purchase details" + ], + [ + 6, + "transaction id" + ], + [ + 6, + "lot id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "investor_id" + ], + [ + 0, + "Investor_details" + ], + [ + 1, + "lot_id" + ], + [ + 1, + "investor_id" + ], + [ + 1, + "lot_details" + ], + [ + 2, + "transaction_type_code" + ], + [ + 2, + "transaction_type_description" + ], + [ + 3, + "transaction_id" + ], + [ + 3, + "investor_id" + ], + [ + 3, + "transaction_type_code" + ], + [ + 3, + "date_of_transaction" + ], + [ + 3, + "amount_of_transaction" + ], + [ + 3, + "share_count" + ], + [ + 3, + "other_details" + ], + [ + 4, + "sales_transaction_id" + ], + [ + 4, + "sales_details" + ], + [ + 5, + "purchase_transaction_id" + ], + [ + 5, + "purchase_details" + ], + [ + 6, + "transaction_id" + ], + [ + 6, + "lot_id" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "time", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "number" + ], + "db_id": "tracking_share_transactions", + "foreign_keys": [ + [ + 4, + 1 + ], + [ + 10, + 6 + ], + [ + 9, + 1 + ], + [ + 15, + 8 + ], + [ + 17, + 8 + ], + [ + 19, + 8 + ], + [ + 20, + 3 + ] + ], + "primary_keys": [ + 1, + 3, + 6, + 8, + 15 + ], + "table_names": [ + "investors", + "lots", + "reference transaction types", + "transactions", + "sales", + "purchases", + "transactions lots" + ], + "table_names_original": [ + "Investors", + "Lots", + "Ref_Transaction_Types", + "Transactions", + "Sales", + "Purchases", + "Transactions_Lots" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "building id" + ], + [ + 0, + "building short name" + ], + [ + 0, + "building full name" + ], + [ + 0, + "building description" + ], + [ + 0, + "building address" + ], + [ + 0, + "building manager" + ], + [ + 0, + "building phone" + ], + [ + 1, + "apartment id" + ], + [ + 1, + "building id" + ], + [ + 1, + "apartment type code" + ], + [ + 1, + "apartment number" + ], + [ + 1, + "bathroom count" + ], + [ + 1, + "bedroom count" + ], + [ + 1, + "room count" + ], + [ + 2, + "apartment id" + ], + [ + 2, + "facility code" + ], + [ + 3, + "guest id" + ], + [ + 3, + "gender code" + ], + [ + 3, + "guest first name" + ], + [ + 3, + "guest last name" + ], + [ + 3, + "date of birth" + ], + [ + 4, + "apartment booking id" + ], + [ + 4, + "apartment id" + ], + [ + 4, + "guest id" + ], + [ + 4, + "booking status code" + ], + [ + 4, + "booking start date" + ], + [ + 4, + "booking end date" + ], + [ + 5, + "apartment id" + ], + [ + 5, + "apartment booking id" + ], + [ + 5, + "status date" + ], + [ + 5, + "available yes or no" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "building_id" + ], + [ + 0, + "building_short_name" + ], + [ + 0, + "building_full_name" + ], + [ + 0, + "building_description" + ], + [ + 0, + "building_address" + ], + [ + 0, + "building_manager" + ], + [ + 0, + "building_phone" + ], + [ + 1, + "apt_id" + ], + [ + 1, + "building_id" + ], + [ + 1, + "apt_type_code" + ], + [ + 1, + "apt_number" + ], + [ + 1, + "bathroom_count" + ], + [ + 1, + "bedroom_count" + ], + [ + 1, + "room_count" + ], + [ + 2, + "apt_id" + ], + [ + 2, + "facility_code" + ], + [ + 3, + "guest_id" + ], + [ + 3, + "gender_code" + ], + [ + 3, + "guest_first_name" + ], + [ + 3, + "guest_last_name" + ], + [ + 3, + "date_of_birth" + ], + [ + 4, + "apt_booking_id" + ], + [ + 4, + "apt_id" + ], + [ + 4, + "guest_id" + ], + [ + 4, + "booking_status_code" + ], + [ + 4, + "booking_start_date" + ], + [ + 4, + "booking_end_date" + ], + [ + 5, + "apt_id" + ], + [ + 5, + "apt_booking_id" + ], + [ + 5, + "status_date" + ], + [ + 5, + "available_yn" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "time", + "number", + "number", + "number", + "text", + "time", + "time", + "number", + "number", + "time", + "others" + ], + "db_id": "apartment_rentals", + "foreign_keys": [ + [ + 9, + 1 + ], + [ + 15, + 8 + ], + [ + 24, + 17 + ], + [ + 23, + 8 + ], + [ + 29, + 22 + ], + [ + 28, + 8 + ] + ], + "primary_keys": [ + 1, + 8, + 15, + 17, + 22, + 30 + ], + "table_names": [ + "apartment buildings", + "apartments", + "apartment facilities", + "guests", + "apartment bookings", + "view unit status" + ], + "table_names_original": [ + "Apartment_Buildings", + "Apartments", + "Apartment_Facilities", + "Guests", + "Apartment_Bookings", + "View_Unit_Status" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "address id" + ], + [ + 0, + "line 1" + ], + [ + 0, + "line 2" + ], + [ + 0, + "line 3" + ], + [ + 0, + "city" + ], + [ + 0, + "zip postcode" + ], + [ + 0, + "state province county" + ], + [ + 0, + "country" + ], + [ + 0, + "other address details" + ], + [ + 1, + "course id" + ], + [ + 1, + "course name" + ], + [ + 1, + "course description" + ], + [ + 1, + "other details" + ], + [ + 2, + "department id" + ], + [ + 2, + "department name" + ], + [ + 2, + "department description" + ], + [ + 2, + "other details" + ], + [ + 3, + "degree program id" + ], + [ + 3, + "department id" + ], + [ + 3, + "degree summary name" + ], + [ + 3, + "degree summary description" + ], + [ + 3, + "other details" + ], + [ + 4, + "section id" + ], + [ + 4, + "course id" + ], + [ + 4, + "section name" + ], + [ + 4, + "section description" + ], + [ + 4, + "other details" + ], + [ + 5, + "semester id" + ], + [ + 5, + "semester name" + ], + [ + 5, + "semester description" + ], + [ + 5, + "other details" + ], + [ + 6, + "student id" + ], + [ + 6, + "current address id" + ], + [ + 6, + "permanent address id" + ], + [ + 6, + "first name" + ], + [ + 6, + "middle name" + ], + [ + 6, + "last name" + ], + [ + 6, + "cell mobile number" + ], + [ + 6, + "email address" + ], + [ + 6, + "ssn" + ], + [ + 6, + "date first registered" + ], + [ + 6, + "date left" + ], + [ + 6, + "other student details" + ], + [ + 7, + "student enrolment id" + ], + [ + 7, + "degree program id" + ], + [ + 7, + "semester id" + ], + [ + 7, + "student id" + ], + [ + 7, + "other details" + ], + [ + 8, + "student course id" + ], + [ + 8, + "course id" + ], + [ + 8, + "student enrolment id" + ], + [ + 9, + "transcript id" + ], + [ + 9, + "transcript date" + ], + [ + 9, + "other details" + ], + [ + 10, + "student course id" + ], + [ + 10, + "transcript id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "address_id" + ], + [ + 0, + "line_1" + ], + [ + 0, + "line_2" + ], + [ + 0, + "line_3" + ], + [ + 0, + "city" + ], + [ + 0, + "zip_postcode" + ], + [ + 0, + "state_province_county" + ], + [ + 0, + "country" + ], + [ + 0, + "other_address_details" + ], + [ + 1, + "course_id" + ], + [ + 1, + "course_name" + ], + [ + 1, + "course_description" + ], + [ + 1, + "other_details" + ], + [ + 2, + "department_id" + ], + [ + 2, + "department_name" + ], + [ + 2, + "department_description" + ], + [ + 2, + "other_details" + ], + [ + 3, + "degree_program_id" + ], + [ + 3, + "department_id" + ], + [ + 3, + "degree_summary_name" + ], + [ + 3, + "degree_summary_description" + ], + [ + 3, + "other_details" + ], + [ + 4, + "section_id" + ], + [ + 4, + "course_id" + ], + [ + 4, + "section_name" + ], + [ + 4, + "section_description" + ], + [ + 4, + "other_details" + ], + [ + 5, + "semester_id" + ], + [ + 5, + "semester_name" + ], + [ + 5, + "semester_description" + ], + [ + 5, + "other_details" + ], + [ + 6, + "student_id" + ], + [ + 6, + "current_address_id" + ], + [ + 6, + "permanent_address_id" + ], + [ + 6, + "first_name" + ], + [ + 6, + "middle_name" + ], + [ + 6, + "last_name" + ], + [ + 6, + "cell_mobile_number" + ], + [ + 6, + "email_address" + ], + [ + 6, + "ssn" + ], + [ + 6, + "date_first_registered" + ], + [ + 6, + "date_left" + ], + [ + 6, + "other_student_details" + ], + [ + 7, + "student_enrolment_id" + ], + [ + 7, + "degree_program_id" + ], + [ + 7, + "semester_id" + ], + [ + 7, + "student_id" + ], + [ + 7, + "other_details" + ], + [ + 8, + "student_course_id" + ], + [ + 8, + "course_id" + ], + [ + 8, + "student_enrolment_id" + ], + [ + 9, + "transcript_id" + ], + [ + 9, + "transcript_date" + ], + [ + 9, + "other_details" + ], + [ + 10, + "student_course_id" + ], + [ + 10, + "transcript_id" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "time", + "time", + "text", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "time", + "text", + "number", + "number" + ], + "db_id": "student_transcripts_tracking", + "foreign_keys": [ + [ + 19, + 14 + ], + [ + 24, + 10 + ], + [ + 34, + 1 + ], + [ + 33, + 1 + ], + [ + 47, + 32 + ], + [ + 46, + 28 + ], + [ + 45, + 18 + ], + [ + 51, + 44 + ], + [ + 50, + 10 + ], + [ + 56, + 52 + ], + [ + 55, + 49 + ] + ], + "primary_keys": [ + 1, + 10, + 14, + 18, + 23, + 28, + 32, + 44, + 49, + 52 + ], + "table_names": [ + "addresses", + "courses", + "departments", + "degree programs", + "sections", + "semesters", + "students", + "student enrolment", + "student enrolment courses", + "transcripts", + "transcript contents" + ], + "table_names_original": [ + "Addresses", + "Courses", + "Departments", + "Degree_Programs", + "Sections", + "Semesters", + "Students", + "Student_Enrolment", + "Student_Enrolment_Courses", + "Transcripts", + "Transcript_Contents" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "document type code" + ], + [ + 0, + "document type name" + ], + [ + 0, + "document type description" + ], + [ + 1, + "budget type code" + ], + [ + 1, + "budget type description" + ], + [ + 2, + "project id" + ], + [ + 2, + "project details" + ], + [ + 3, + "document id" + ], + [ + 3, + "document type code" + ], + [ + 3, + "project id" + ], + [ + 3, + "document date" + ], + [ + 3, + "document name" + ], + [ + 3, + "document description" + ], + [ + 3, + "other details" + ], + [ + 4, + "statement id" + ], + [ + 4, + "statement details" + ], + [ + 5, + "document id" + ], + [ + 5, + "budget type code" + ], + [ + 5, + "document details" + ], + [ + 6, + "account id" + ], + [ + 6, + "statement id" + ], + [ + 6, + "account details" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Document_Type_Code" + ], + [ + 0, + "Document_Type_Name" + ], + [ + 0, + "Document_Type_Description" + ], + [ + 1, + "Budget_Type_Code" + ], + [ + 1, + "Budget_Type_Description" + ], + [ + 2, + "Project_ID" + ], + [ + 2, + "Project_Details" + ], + [ + 3, + "Document_ID" + ], + [ + 3, + "Document_Type_Code" + ], + [ + 3, + "Project_ID" + ], + [ + 3, + "Document_Date" + ], + [ + 3, + "Document_Name" + ], + [ + 3, + "Document_Description" + ], + [ + 3, + "Other_Details" + ], + [ + 4, + "Statement_ID" + ], + [ + 4, + "Statement_Details" + ], + [ + 5, + "Document_ID" + ], + [ + 5, + "Budget_Type_Code" + ], + [ + 5, + "Document_Details" + ], + [ + 6, + "Account_ID" + ], + [ + 6, + "Statement_ID" + ], + [ + 6, + "Account_Details" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "time", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "text" + ], + "db_id": "cre_Docs_and_Epenses", + "foreign_keys": [ + [ + 10, + 6 + ], + [ + 9, + 1 + ], + [ + 15, + 8 + ], + [ + 17, + 8 + ], + [ + 18, + 4 + ], + [ + 21, + 15 + ] + ], + "primary_keys": [ + 1, + 4, + 6, + 8, + 15, + 17, + 20 + ], + "table_names": [ + "reference document types", + "reference budget codes", + "projects", + "documents", + "statements", + "documents with expenses", + "accounts" + ], + "table_names_original": [ + "Ref_Document_Types", + "Ref_Budget_Codes", + "Projects", + "Documents", + "Statements", + "Documents_with_Expenses", + "Accounts" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "mission id" + ], + [ + 0, + "ship id" + ], + [ + 0, + "code" + ], + [ + 0, + "launched year" + ], + [ + 0, + "location" + ], + [ + 0, + "speed knots" + ], + [ + 0, + "fate" + ], + [ + 1, + "ship id" + ], + [ + 1, + "name" + ], + [ + 1, + "type" + ], + [ + 1, + "nationality" + ], + [ + 1, + "tonnage" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Mission_ID" + ], + [ + 0, + "Ship_ID" + ], + [ + 0, + "Code" + ], + [ + 0, + "Launched_Year" + ], + [ + 0, + "Location" + ], + [ + 0, + "Speed_knots" + ], + [ + 0, + "Fate" + ], + [ + 1, + "Ship_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Type" + ], + [ + 1, + "Nationality" + ], + [ + 1, + "Tonnage" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "number" + ], + "db_id": "ship_mission", + "foreign_keys": [ + [ + 2, + 8 + ] + ], + "primary_keys": [ + 1, + 8 + ], + "table_names": [ + "mission", + "ship" + ], + "table_names_original": [ + "mission", + "ship" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "city" + ], + [ + 0, + "height" + ], + [ + 0, + "stories" + ], + [ + 0, + "status" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "headquarters" + ], + [ + 1, + "industry" + ], + [ + 1, + "sales billion" + ], + [ + 1, + "profits billion" + ], + [ + 1, + "assets billion" + ], + [ + 1, + "market value billion" + ], + [ + 2, + "building id" + ], + [ + 2, + "company id" + ], + [ + 2, + "move in year" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "City" + ], + [ + 0, + "Height" + ], + [ + 0, + "Stories" + ], + [ + 0, + "Status" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 1, + "Headquarters" + ], + [ + 1, + "Industry" + ], + [ + 1, + "Sales_billion" + ], + [ + 1, + "Profits_billion" + ], + [ + 1, + "Assets_billion" + ], + [ + 1, + "Market_Value_billion" + ], + [ + 2, + "building_id" + ], + [ + 2, + "company_id" + ], + [ + 2, + "move_in_year" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "number" + ], + "db_id": "company_office", + "foreign_keys": [ + [ + 16, + 7 + ], + [ + 15, + 1 + ] + ], + "primary_keys": [ + 1, + 7, + 15 + ], + "table_names": [ + "buildings", + "companies", + "office locations" + ], + "table_names_original": [ + "buildings", + "Companies", + "Office_locations" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "problem category code" + ], + [ + 0, + "problem category description" + ], + [ + 1, + "problem log id" + ], + [ + 1, + "assigned to staff id" + ], + [ + 1, + "problem id" + ], + [ + 1, + "problem category code" + ], + [ + 1, + "problem status code" + ], + [ + 1, + "log entry date" + ], + [ + 1, + "log entry description" + ], + [ + 1, + "log entry fix" + ], + [ + 1, + "other log details" + ], + [ + 2, + "problem status code" + ], + [ + 2, + "problem status description" + ], + [ + 3, + "product id" + ], + [ + 3, + "product name" + ], + [ + 3, + "product details" + ], + [ + 4, + "staff id" + ], + [ + 4, + "staff first name" + ], + [ + 4, + "staff last name" + ], + [ + 4, + "other staff details" + ], + [ + 5, + "problem id" + ], + [ + 5, + "product id" + ], + [ + 5, + "closure authorised by staff id" + ], + [ + 5, + "reported by staff id" + ], + [ + 5, + "date problem reported" + ], + [ + 5, + "date problem closed" + ], + [ + 5, + "problem description" + ], + [ + 5, + "other problem details" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "problem_category_code" + ], + [ + 0, + "problem_category_description" + ], + [ + 1, + "problem_log_id" + ], + [ + 1, + "assigned_to_staff_id" + ], + [ + 1, + "problem_id" + ], + [ + 1, + "problem_category_code" + ], + [ + 1, + "problem_status_code" + ], + [ + 1, + "log_entry_date" + ], + [ + 1, + "log_entry_description" + ], + [ + 1, + "log_entry_fix" + ], + [ + 1, + "other_log_details" + ], + [ + 2, + "problem_status_code" + ], + [ + 2, + "problem_status_description" + ], + [ + 3, + "product_id" + ], + [ + 3, + "product_name" + ], + [ + 3, + "product_details" + ], + [ + 4, + "staff_id" + ], + [ + 4, + "staff_first_name" + ], + [ + 4, + "staff_last_name" + ], + [ + 4, + "other_staff_details" + ], + [ + 5, + "problem_id" + ], + [ + 5, + "product_id" + ], + [ + 5, + "closure_authorised_by_staff_id" + ], + [ + 5, + "reported_by_staff_id" + ], + [ + 5, + "date_problem_reported" + ], + [ + 5, + "date_problem_closed" + ], + [ + 5, + "problem_description" + ], + [ + 5, + "other_problem_details" + ] + ], + "column_types": [ + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "time", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "time", + "time", + "text", + "text" + ], + "db_id": "tracking_software_problems", + "foreign_keys": [ + [ + 7, + 12 + ], + [ + 5, + 21 + ], + [ + 4, + 17 + ], + [ + 6, + 1 + ], + [ + 24, + 17 + ], + [ + 22, + 14 + ], + [ + 23, + 17 + ] + ], + "primary_keys": [ + 1, + 3, + 12, + 14, + 17, + 21 + ], + "table_names": [ + "problem category codes", + "problem log", + "problem status codes", + "product", + "staff", + "problems" + ], + "table_names_original": [ + "Problem_Category_Codes", + "Problem_Log", + "Problem_Status_Codes", + "Product", + "Staff", + "Problems" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "characteristic type code" + ], + [ + 0, + "characteristic type description" + ], + [ + 1, + "color code" + ], + [ + 1, + "color description" + ], + [ + 2, + "product category code" + ], + [ + 2, + "product category description" + ], + [ + 2, + "unit of measure" + ], + [ + 3, + "characteristic id" + ], + [ + 3, + "characteristic type code" + ], + [ + 3, + "characteristic data type" + ], + [ + 3, + "characteristic name" + ], + [ + 3, + "other characteristic details" + ], + [ + 4, + "product id" + ], + [ + 4, + "color code" + ], + [ + 4, + "product category code" + ], + [ + 4, + "product name" + ], + [ + 4, + "typical buying price" + ], + [ + 4, + "typical selling price" + ], + [ + 4, + "product description" + ], + [ + 4, + "other product details" + ], + [ + 5, + "product id" + ], + [ + 5, + "characteristic id" + ], + [ + 5, + "product characteristic value" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "characteristic_type_code" + ], + [ + 0, + "characteristic_type_description" + ], + [ + 1, + "color_code" + ], + [ + 1, + "color_description" + ], + [ + 2, + "product_category_code" + ], + [ + 2, + "product_category_description" + ], + [ + 2, + "unit_of_measure" + ], + [ + 3, + "characteristic_id" + ], + [ + 3, + "characteristic_type_code" + ], + [ + 3, + "characteristic_data_type" + ], + [ + 3, + "characteristic_name" + ], + [ + 3, + "other_characteristic_details" + ], + [ + 4, + "product_id" + ], + [ + 4, + "color_code" + ], + [ + 4, + "product_category_code" + ], + [ + 4, + "product_name" + ], + [ + 4, + "typical_buying_price" + ], + [ + 4, + "typical_selling_price" + ], + [ + 4, + "product_description" + ], + [ + 4, + "other_product_details" + ], + [ + 5, + "product_id" + ], + [ + 5, + "characteristic_id" + ], + [ + 5, + "product_characteristic_value" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text" + ], + "db_id": "products_gen_characteristics", + "foreign_keys": [ + [ + 9, + 1 + ], + [ + 14, + 3 + ], + [ + 15, + 5 + ], + [ + 21, + 13 + ], + [ + 22, + 8 + ] + ], + "primary_keys": [ + 1, + 3, + 5, + 8, + 13 + ], + "table_names": [ + "reference characteristic types", + "reference colors", + "reference product categories", + "characteristics", + "products", + "product characteristics" + ], + "table_names_original": [ + "Ref_Characteristic_Types", + "Ref_Colors", + "Ref_Product_Categories", + "Characteristics", + "Products", + "Product_Characteristics" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "shop id" + ], + [ + 0, + "address" + ], + [ + 0, + "num of staff" + ], + [ + 0, + "score" + ], + [ + 0, + "open year" + ], + [ + 1, + "member id" + ], + [ + 1, + "name" + ], + [ + 1, + "membership card" + ], + [ + 1, + "age" + ], + [ + 1, + "time of purchase" + ], + [ + 1, + "level of membership" + ], + [ + 1, + "address" + ], + [ + 2, + "hh id" + ], + [ + 2, + "shop id" + ], + [ + 2, + "month" + ], + [ + 2, + "num of shaff in charge" + ], + [ + 3, + "hh id" + ], + [ + 3, + "member id" + ], + [ + 3, + "total amount" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Shop_ID" + ], + [ + 0, + "Address" + ], + [ + 0, + "Num_of_staff" + ], + [ + 0, + "Score" + ], + [ + 0, + "Open_Year" + ], + [ + 1, + "Member_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Membership_card" + ], + [ + 1, + "Age" + ], + [ + 1, + "Time_of_purchase" + ], + [ + 1, + "Level_of_membership" + ], + [ + 1, + "Address" + ], + [ + 2, + "HH_ID" + ], + [ + 2, + "Shop_ID" + ], + [ + 2, + "Month" + ], + [ + 2, + "Num_of_shaff_in_charge" + ], + [ + 3, + "HH_ID" + ], + [ + 3, + "Member_ID" + ], + [ + 3, + "Total_amount" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "coffee_shop", + "foreign_keys": [ + [ + 14, + 1 + ], + [ + 18, + 6 + ] + ], + "primary_keys": [ + 1, + 6, + 13, + 17 + ], + "table_names": [ + "shop", + "member", + "happy hour", + "happy hour member" + ], + "table_names_original": [ + "shop", + "member", + "happy_hour", + "happy_hour_member" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "player id" + ], + [ + 0, + "sponsor name" + ], + [ + 0, + "player name" + ], + [ + 0, + "gender" + ], + [ + 0, + "residence" + ], + [ + 0, + "occupation" + ], + [ + 0, + "votes" + ], + [ + 0, + "rank" + ], + [ + 1, + "club id" + ], + [ + 1, + "club name" + ], + [ + 1, + "region" + ], + [ + 1, + "start year" + ], + [ + 2, + "coach id" + ], + [ + 2, + "player name" + ], + [ + 2, + "gender" + ], + [ + 2, + "club id" + ], + [ + 2, + "rank" + ], + [ + 3, + "player id" + ], + [ + 3, + "coach id" + ], + [ + 3, + "starting year" + ], + [ + 4, + "rank" + ], + [ + 4, + "club id" + ], + [ + 4, + "gold" + ], + [ + 4, + "big silver" + ], + [ + 4, + "small silver" + ], + [ + 4, + "bronze" + ], + [ + 4, + "points" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Player_ID" + ], + [ + 0, + "Sponsor_name" + ], + [ + 0, + "Player_name" + ], + [ + 0, + "Gender" + ], + [ + 0, + "Residence" + ], + [ + 0, + "Occupation" + ], + [ + 0, + "Votes" + ], + [ + 0, + "Rank" + ], + [ + 1, + "Club_ID" + ], + [ + 1, + "Club_name" + ], + [ + 1, + "Region" + ], + [ + 1, + "Start_year" + ], + [ + 2, + "Coach_ID" + ], + [ + 2, + "Coach_name" + ], + [ + 2, + "Gender" + ], + [ + 2, + "Club_ID" + ], + [ + 2, + "Rank" + ], + [ + 3, + "Player_ID" + ], + [ + 3, + "Coach_ID" + ], + [ + 3, + "Starting_year" + ], + [ + 4, + "Rank" + ], + [ + 4, + "Club_ID" + ], + [ + 4, + "Gold" + ], + [ + 4, + "Big_Silver" + ], + [ + 4, + "Small_Silver" + ], + [ + 4, + "Bronze" + ], + [ + 4, + "Points" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "riding_club", + "foreign_keys": [ + [ + 16, + 9 + ], + [ + 19, + 13 + ], + [ + 18, + 1 + ], + [ + 22, + 9 + ] + ], + "primary_keys": [ + 1, + 9, + 13, + 18, + 21 + ], + "table_names": [ + "player", + "club", + "coach", + "player coach", + "match result" + ], + "table_names_original": [ + "player", + "club", + "coach", + "player_coach", + "match_result" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "account id" + ], + [ + 0, + "customer id" + ], + [ + 0, + "account name" + ], + [ + 0, + "other account details" + ], + [ + 1, + "customer id" + ], + [ + 1, + "customer first name" + ], + [ + 1, + "customer last name" + ], + [ + 1, + "customer address" + ], + [ + 1, + "customer phone" + ], + [ + 1, + "customer email" + ], + [ + 1, + "other customer details" + ], + [ + 2, + "card id" + ], + [ + 2, + "customer id" + ], + [ + 2, + "card type code" + ], + [ + 2, + "card number" + ], + [ + 2, + "date valid from" + ], + [ + 2, + "date valid to" + ], + [ + 2, + "other card details" + ], + [ + 3, + "transaction id" + ], + [ + 3, + "previous transaction id" + ], + [ + 3, + "account id" + ], + [ + 3, + "card id" + ], + [ + 3, + "transaction type" + ], + [ + 3, + "transaction date" + ], + [ + 3, + "transaction amount" + ], + [ + 3, + "transaction comment" + ], + [ + 3, + "other transaction details" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "account_id" + ], + [ + 0, + "customer_id" + ], + [ + 0, + "account_name" + ], + [ + 0, + "other_account_details" + ], + [ + 1, + "customer_id" + ], + [ + 1, + "customer_first_name" + ], + [ + 1, + "customer_last_name" + ], + [ + 1, + "customer_address" + ], + [ + 1, + "customer_phone" + ], + [ + 1, + "customer_email" + ], + [ + 1, + "other_customer_details" + ], + [ + 2, + "card_id" + ], + [ + 2, + "customer_id" + ], + [ + 2, + "card_type_code" + ], + [ + 2, + "card_number" + ], + [ + 2, + "date_valid_from" + ], + [ + 2, + "date_valid_to" + ], + [ + 2, + "other_card_details" + ], + [ + 3, + "transaction_id" + ], + [ + 3, + "previous_transaction_id" + ], + [ + 3, + "account_id" + ], + [ + 3, + "card_id" + ], + [ + 3, + "transaction_type" + ], + [ + 3, + "transaction_date" + ], + [ + 3, + "transaction_amount" + ], + [ + 3, + "transaction_comment" + ], + [ + 3, + "other_transaction_details" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "time", + "time", + "text", + "number", + "number", + "number", + "number", + "text", + "time", + "number", + "text", + "text" + ], + "db_id": "customers_card_transactions", + "foreign_keys": [ + [ + 21, + 1 + ], + [ + 22, + 12 + ] + ], + "primary_keys": [ + 1, + 5, + 12 + ], + "table_names": [ + "accounts", + "customers", + "customers cards", + "financial transactions" + ], + "table_names_original": [ + "Accounts", + "Customers", + "Customers_Cards", + "Financial_Transactions" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "county id" + ], + [ + 0, + "name" + ], + [ + 0, + "population" + ], + [ + 0, + "police officers" + ], + [ + 0, + "residents per officer" + ], + [ + 0, + "case burden" + ], + [ + 0, + "crime rate" + ], + [ + 0, + "police force" + ], + [ + 0, + "location" + ], + [ + 1, + "city id" + ], + [ + 1, + "county id" + ], + [ + 1, + "name" + ], + [ + 1, + "white" + ], + [ + 1, + "black" + ], + [ + 1, + "amerindian" + ], + [ + 1, + "asian" + ], + [ + 1, + "multiracial" + ], + [ + 1, + "hispanic" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "County_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Population" + ], + [ + 0, + "Police_officers" + ], + [ + 0, + "Residents_per_officer" + ], + [ + 0, + "Case_burden" + ], + [ + 0, + "Crime_rate" + ], + [ + 0, + "Police_force" + ], + [ + 0, + "Location" + ], + [ + 1, + "City_ID" + ], + [ + 1, + "County_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "White" + ], + [ + 1, + "Black" + ], + [ + 1, + "Amerindian" + ], + [ + 1, + "Asian" + ], + [ + 1, + "Multiracial" + ], + [ + 1, + "Hispanic" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "county_public_safety", + "foreign_keys": [ + [ + 11, + 1 + ] + ], + "primary_keys": [ + 1, + 10 + ], + "table_names": [ + "county public safety", + "city" + ], + "table_names_original": [ + "county_public_safety", + "city" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "member id" + ], + [ + 0, + "name" + ], + [ + 0, + "nationality" + ], + [ + 0, + "role" + ], + [ + 1, + "performance id" + ], + [ + 1, + "date" + ], + [ + 1, + "host" + ], + [ + 1, + "location" + ], + [ + 1, + "attendance" + ], + [ + 2, + "member id" + ], + [ + 2, + "performance id" + ], + [ + 2, + "num of pieces" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Member_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Nationality" + ], + [ + 0, + "Role" + ], + [ + 1, + "Performance_ID" + ], + [ + 1, + "Date" + ], + [ + 1, + "Host" + ], + [ + 1, + "Location" + ], + [ + 1, + "Attendance" + ], + [ + 2, + "Member_ID" + ], + [ + 2, + "Performance_ID" + ], + [ + 2, + "Num_of_Pieces" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "performance_attendance", + "foreign_keys": [ + [ + 11, + 5 + ], + [ + 10, + 1 + ] + ], + "primary_keys": [ + 1, + 5, + 10 + ], + "table_names": [ + "member", + "performance", + "member attendance" + ], + "table_names_original": [ + "member", + "performance", + "member_attendance" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "student id" + ], + [ + 0, + "last name" + ], + [ + 0, + "first name" + ], + [ + 0, + "age" + ], + [ + 0, + "sex" + ], + [ + 0, + "major" + ], + [ + 0, + "advisor" + ], + [ + 0, + "city code" + ], + [ + 1, + "club id" + ], + [ + 1, + "club name" + ], + [ + 1, + "club description" + ], + [ + 1, + "club location" + ], + [ + 2, + "student id" + ], + [ + 2, + "club id" + ], + [ + 2, + "position" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "StuID" + ], + [ + 0, + "LName" + ], + [ + 0, + "Fname" + ], + [ + 0, + "Age" + ], + [ + 0, + "Sex" + ], + [ + 0, + "Major" + ], + [ + 0, + "Advisor" + ], + [ + 0, + "city_code" + ], + [ + 1, + "ClubID" + ], + [ + 1, + "ClubName" + ], + [ + 1, + "ClubDesc" + ], + [ + 1, + "ClubLocation" + ], + [ + 2, + "StuID" + ], + [ + 2, + "ClubID" + ], + [ + 2, + "Position" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text" + ], + "db_id": "club_1", + "foreign_keys": [ + [ + 14, + 9 + ], + [ + 13, + 1 + ] + ], + "primary_keys": [ + 1, + 9 + ], + "table_names": [ + "student", + "club", + "member of club" + ], + "table_names_original": [ + "Student", + "Club", + "Member_of_club" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "singer id" + ], + [ + 0, + "name" + ], + [ + 0, + "birth year" + ], + [ + 0, + "net worth millions" + ], + [ + 0, + "citizenship" + ], + [ + 1, + "song id" + ], + [ + 1, + "title" + ], + [ + 1, + "singer id" + ], + [ + 1, + "sales" + ], + [ + 1, + "highest position" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Singer_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Birth_Year" + ], + [ + 0, + "Net_Worth_Millions" + ], + [ + 0, + "Citizenship" + ], + [ + 1, + "Song_ID" + ], + [ + 1, + "Title" + ], + [ + 1, + "Singer_ID" + ], + [ + 1, + "Sales" + ], + [ + 1, + "Highest_Position" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "number", + "number" + ], + "db_id": "singer", + "foreign_keys": [ + [ + 8, + 1 + ] + ], + "primary_keys": [ + 1, + 6 + ], + "table_names": [ + "singer", + "song" + ], + "table_names_original": [ + "singer", + "song" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "book club id" + ], + [ + 0, + "year" + ], + [ + 0, + "author or editor" + ], + [ + 0, + "book title" + ], + [ + 0, + "publisher" + ], + [ + 0, + "category" + ], + [ + 0, + "result" + ], + [ + 1, + "movie id" + ], + [ + 1, + "title" + ], + [ + 1, + "year" + ], + [ + 1, + "director" + ], + [ + 1, + "budget million" + ], + [ + 1, + "gross worldwide" + ], + [ + 2, + "company name" + ], + [ + 2, + "type" + ], + [ + 2, + "incorporated in" + ], + [ + 2, + "group equity shareholding" + ], + [ + 2, + "book club id" + ], + [ + 2, + "movie id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "book_club_id" + ], + [ + 0, + "Year" + ], + [ + 0, + "Author_or_Editor" + ], + [ + 0, + "Book_Title" + ], + [ + 0, + "Publisher" + ], + [ + 0, + "Category" + ], + [ + 0, + "Result" + ], + [ + 1, + "movie_id" + ], + [ + 1, + "Title" + ], + [ + 1, + "Year" + ], + [ + 1, + "Director" + ], + [ + 1, + "Budget_million" + ], + [ + 1, + "Gross_worldwide" + ], + [ + 2, + "Company_name" + ], + [ + 2, + "Type" + ], + [ + 2, + "Incorporated_in" + ], + [ + 2, + "Group_Equity_Shareholding" + ], + [ + 2, + "book_club_id" + ], + [ + 2, + "movie_id" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "text" + ], + "db_id": "culture_company", + "foreign_keys": [ + [ + 19, + 8 + ], + [ + 18, + 1 + ] + ], + "primary_keys": [ + 1, + 8, + 14 + ], + "table_names": [ + "book club", + "movie", + "culture company" + ], + "table_names_original": [ + "book_club", + "movie", + "culture_company" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "template type code" + ], + [ + 0, + "template type description" + ], + [ + 1, + "template id" + ], + [ + 1, + "version number" + ], + [ + 1, + "template type code" + ], + [ + 1, + "date effective from" + ], + [ + 1, + "date effective to" + ], + [ + 1, + "template details" + ], + [ + 2, + "document id" + ], + [ + 2, + "template id" + ], + [ + 2, + "document name" + ], + [ + 2, + "document description" + ], + [ + 2, + "other details" + ], + [ + 3, + "paragraph id" + ], + [ + 3, + "document id" + ], + [ + 3, + "paragraph text" + ], + [ + 3, + "other details" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Template_Type_Code" + ], + [ + 0, + "Template_Type_Description" + ], + [ + 1, + "Template_ID" + ], + [ + 1, + "Version_Number" + ], + [ + 1, + "Template_Type_Code" + ], + [ + 1, + "Date_Effective_From" + ], + [ + 1, + "Date_Effective_To" + ], + [ + 1, + "Template_Details" + ], + [ + 2, + "Document_ID" + ], + [ + 2, + "Template_ID" + ], + [ + 2, + "Document_Name" + ], + [ + 2, + "Document_Description" + ], + [ + 2, + "Other_Details" + ], + [ + 3, + "Paragraph_ID" + ], + [ + 3, + "Document_ID" + ], + [ + 3, + "Paragraph_Text" + ], + [ + 3, + "Other_Details" + ] + ], + "column_types": [ + "text", + "text", + "text", + "number", + "number", + "text", + "time", + "time", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text" + ], + "db_id": "cre_Doc_Template_Mgt", + "foreign_keys": [ + [ + 5, + 1 + ], + [ + 10, + 3 + ], + [ + 15, + 9 + ] + ], + "primary_keys": [ + 1, + 3, + 9, + 14 + ], + "table_names": [ + "reference template types", + "templates", + "documents", + "paragraphs" + ], + "table_names_original": [ + "Ref_Template_Types", + "Templates", + "Documents", + "Paragraphs" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "musical id" + ], + [ + 0, + "name" + ], + [ + 0, + "year" + ], + [ + 0, + "award" + ], + [ + 0, + "category" + ], + [ + 0, + "nominee" + ], + [ + 0, + "result" + ], + [ + 1, + "actor id" + ], + [ + 1, + "name" + ], + [ + 1, + "musical id" + ], + [ + 1, + "character" + ], + [ + 1, + "duration" + ], + [ + 1, + "age" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Musical_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Year" + ], + [ + 0, + "Award" + ], + [ + 0, + "Category" + ], + [ + 0, + "Nominee" + ], + [ + 0, + "Result" + ], + [ + 1, + "Actor_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Musical_ID" + ], + [ + 1, + "Character" + ], + [ + 1, + "Duration" + ], + [ + 1, + "age" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "number" + ], + "db_id": "musical", + "foreign_keys": [ + [ + 10, + 8 + ] + ], + "primary_keys": [ + 1, + 8 + ], + "table_names": [ + "musical", + "actor" + ], + "table_names_original": [ + "musical", + "actor" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "country code" + ], + [ + 0, + "district" + ], + [ + 0, + "population" + ], + [ + 1, + "name" + ], + [ + 1, + "seq" + ], + [ + 2, + "code" + ], + [ + 2, + "name" + ], + [ + 2, + "continent" + ], + [ + 2, + "region" + ], + [ + 2, + "surface area" + ], + [ + 2, + "indepdent year" + ], + [ + 2, + "population" + ], + [ + 2, + "life expectancy" + ], + [ + 2, + "gnp" + ], + [ + 2, + "gnp old" + ], + [ + 2, + "local name" + ], + [ + 2, + "government form" + ], + [ + 2, + "head of state" + ], + [ + 2, + "capital" + ], + [ + 2, + "code2" + ], + [ + 3, + "countrycode" + ], + [ + 3, + "language" + ], + [ + 3, + "is official" + ], + [ + 3, + "percentage" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "CountryCode" + ], + [ + 0, + "District" + ], + [ + 0, + "Population" + ], + [ + 1, + "name" + ], + [ + 1, + "seq" + ], + [ + 2, + "Code" + ], + [ + 2, + "Name" + ], + [ + 2, + "Continent" + ], + [ + 2, + "Region" + ], + [ + 2, + "SurfaceArea" + ], + [ + 2, + "IndepYear" + ], + [ + 2, + "Population" + ], + [ + 2, + "LifeExpectancy" + ], + [ + 2, + "GNP" + ], + [ + 2, + "GNPOld" + ], + [ + 2, + "LocalName" + ], + [ + 2, + "GovernmentForm" + ], + [ + 2, + "HeadOfState" + ], + [ + 2, + "Capital" + ], + [ + 2, + "Code2" + ], + [ + 3, + "CountryCode" + ], + [ + 3, + "Language" + ], + [ + 3, + "IsOfficial" + ], + [ + 3, + "Percentage" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "number" + ], + "db_id": "world_1", + "foreign_keys": [ + [ + 3, + 8 + ], + [ + 23, + 8 + ] + ], + "primary_keys": [ + 1, + 8, + 23 + ], + "table_names": [ + "city", + "sqlite sequence", + "country", + "countrylanguage" + ], + "table_names_original": [ + "city", + "sqlite_sequence", + "country", + "countrylanguage" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "device id" + ], + [ + 0, + "device" + ], + [ + 0, + "carrier" + ], + [ + 0, + "package version" + ], + [ + 0, + "applications" + ], + [ + 0, + "software platform" + ], + [ + 1, + "shop id" + ], + [ + 1, + "shop name" + ], + [ + 1, + "location" + ], + [ + 1, + "open date" + ], + [ + 1, + "open year" + ], + [ + 2, + "shop id" + ], + [ + 2, + "device id" + ], + [ + 2, + "quantity" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Device_ID" + ], + [ + 0, + "Device" + ], + [ + 0, + "Carrier" + ], + [ + 0, + "Package_Version" + ], + [ + 0, + "Applications" + ], + [ + 0, + "Software_Platform" + ], + [ + 1, + "Shop_ID" + ], + [ + 1, + "Shop_Name" + ], + [ + 1, + "Location" + ], + [ + 1, + "Open_Date" + ], + [ + 1, + "Open_Year" + ], + [ + 2, + "Shop_ID" + ], + [ + 2, + "Device_ID" + ], + [ + 2, + "Quantity" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "device", + "foreign_keys": [ + [ + 13, + 1 + ], + [ + 12, + 7 + ] + ], + "primary_keys": [ + 1, + 7, + 12 + ], + "table_names": [ + "device", + "shop", + "stock" + ], + "table_names_original": [ + "device", + "shop", + "stock" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "document type code" + ], + [ + 0, + "document description" + ], + [ + 1, + "document id" + ], + [ + 1, + "document type code" + ], + [ + 1, + "grant id" + ], + [ + 1, + "sent date" + ], + [ + 1, + "response received date" + ], + [ + 1, + "other details" + ], + [ + 2, + "grant id" + ], + [ + 2, + "organisation id" + ], + [ + 2, + "grant amount" + ], + [ + 2, + "grant start date" + ], + [ + 2, + "grant end date" + ], + [ + 2, + "other details" + ], + [ + 3, + "organisation type" + ], + [ + 3, + "organisation type description" + ], + [ + 4, + "organisation id" + ], + [ + 4, + "organisation type" + ], + [ + 4, + "organisation details" + ], + [ + 5, + "project id" + ], + [ + 5, + "outcome code" + ], + [ + 5, + "outcome details" + ], + [ + 6, + "staff id" + ], + [ + 6, + "project id" + ], + [ + 6, + "role code" + ], + [ + 6, + "date from" + ], + [ + 6, + "date to" + ], + [ + 6, + "other details" + ], + [ + 7, + "project id" + ], + [ + 7, + "organisation id" + ], + [ + 7, + "project details" + ], + [ + 8, + "outcome code" + ], + [ + 8, + "outcome description" + ], + [ + 9, + "staff id" + ], + [ + 9, + "employer organisation id" + ], + [ + 9, + "staff details" + ], + [ + 10, + "role code" + ], + [ + 10, + "role description" + ], + [ + 11, + "task id" + ], + [ + 11, + "project id" + ], + [ + 11, + "task details" + ], + [ + 11, + "eg agree objectives" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "document_type_code" + ], + [ + 0, + "document_description" + ], + [ + 1, + "document_id" + ], + [ + 1, + "document_type_code" + ], + [ + 1, + "grant_id" + ], + [ + 1, + "sent_date" + ], + [ + 1, + "response_received_date" + ], + [ + 1, + "other_details" + ], + [ + 2, + "grant_id" + ], + [ + 2, + "organisation_id" + ], + [ + 2, + "grant_amount" + ], + [ + 2, + "grant_start_date" + ], + [ + 2, + "grant_end_date" + ], + [ + 2, + "other_details" + ], + [ + 3, + "organisation_type" + ], + [ + 3, + "organisation_type_description" + ], + [ + 4, + "organisation_id" + ], + [ + 4, + "organisation_type" + ], + [ + 4, + "organisation_details" + ], + [ + 5, + "project_id" + ], + [ + 5, + "outcome_code" + ], + [ + 5, + "outcome_details" + ], + [ + 6, + "staff_id" + ], + [ + 6, + "project_id" + ], + [ + 6, + "role_code" + ], + [ + 6, + "date_from" + ], + [ + 6, + "date_to" + ], + [ + 6, + "other_details" + ], + [ + 7, + "project_id" + ], + [ + 7, + "organisation_id" + ], + [ + 7, + "project_details" + ], + [ + 8, + "outcome_code" + ], + [ + 8, + "outcome_description" + ], + [ + 9, + "staff_id" + ], + [ + 9, + "employer_organisation_id" + ], + [ + 9, + "staff_details" + ], + [ + 10, + "role_code" + ], + [ + 10, + "role_description" + ], + [ + 11, + "task_id" + ], + [ + 11, + "project_id" + ], + [ + 11, + "task_details" + ], + [ + 11, + "eg Agree Objectives" + ] + ], + "column_types": [ + "text", + "text", + "text", + "number", + "text", + "number", + "time", + "time", + "text", + "number", + "number", + "number", + "time", + "time", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "time", + "time", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text" + ], + "db_id": "tracking_grants_for_research", + "foreign_keys": [ + [ + 5, + 9 + ], + [ + 4, + 1 + ], + [ + 10, + 17 + ], + [ + 18, + 15 + ], + [ + 21, + 32 + ], + [ + 20, + 29 + ], + [ + 25, + 37 + ], + [ + 24, + 29 + ], + [ + 30, + 17 + ], + [ + 35, + 17 + ], + [ + 40, + 29 + ] + ], + "primary_keys": [ + 1, + 3, + 9, + 15, + 17, + 23, + 29, + 32, + 34, + 37, + 39 + ], + "table_names": [ + "document types", + "documents", + "grants", + "organisation types", + "organisations", + "project outcomes", + "project staff", + "projects", + "research outcomes", + "research staff", + "staff roles", + "tasks" + ], + "table_names_original": [ + "Document_Types", + "Documents", + "Grants", + "Organisation_Types", + "Organisations", + "Project_Outcomes", + "Project_Staff", + "Projects", + "Research_Outcomes", + "Research_Staff", + "Staff_Roles", + "Tasks" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "employee id" + ], + [ + 0, + "name" + ], + [ + 0, + "age" + ], + [ + 0, + "city" + ], + [ + 1, + "shop id" + ], + [ + 1, + "name" + ], + [ + 1, + "location" + ], + [ + 1, + "district" + ], + [ + 1, + "number products" + ], + [ + 1, + "manager name" + ], + [ + 2, + "shop id" + ], + [ + 2, + "employee id" + ], + [ + 2, + "start from" + ], + [ + 2, + "is full time" + ], + [ + 3, + "employee id" + ], + [ + 3, + "year awarded" + ], + [ + 3, + "bonus" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Employee_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Age" + ], + [ + 0, + "City" + ], + [ + 1, + "Shop_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Location" + ], + [ + 1, + "District" + ], + [ + 1, + "Number_products" + ], + [ + 1, + "Manager_name" + ], + [ + 2, + "Shop_ID" + ], + [ + 2, + "Employee_ID" + ], + [ + 2, + "Start_from" + ], + [ + 2, + "Is_full_time" + ], + [ + 3, + "Employee_ID" + ], + [ + 3, + "Year_awarded" + ], + [ + 3, + "Bonus" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "others", + "text", + "text", + "number" + ], + "db_id": "employee_hire_evaluation", + "foreign_keys": [ + [ + 12, + 1 + ], + [ + 11, + 5 + ], + [ + 15, + 1 + ] + ], + "primary_keys": [ + 1, + 5, + 12, + 15 + ], + "table_names": [ + "employee", + "shop", + "hiring", + "evaluation" + ], + "table_names_original": [ + "employee", + "shop", + "hiring", + "evaluation" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "movie id" + ], + [ + 0, + "title" + ], + [ + 0, + "year" + ], + [ + 0, + "director" + ], + [ + 1, + "reviewer id" + ], + [ + 1, + "name" + ], + [ + 2, + "reviewer id" + ], + [ + 2, + "movie id" + ], + [ + 2, + "rating stars" + ], + [ + 2, + "rating date" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "mID" + ], + [ + 0, + "title" + ], + [ + 0, + "year" + ], + [ + 0, + "director" + ], + [ + 1, + "rID" + ], + [ + 1, + "name" + ], + [ + 2, + "rID" + ], + [ + 2, + "mID" + ], + [ + 2, + "stars" + ], + [ + 2, + "ratingDate" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "time" + ], + "db_id": "movie_1", + "foreign_keys": [ + [ + 7, + 5 + ], + [ + 8, + 1 + ] + ], + "primary_keys": [ + 1, + 5 + ], + "table_names": [ + "movie", + "reviewer", + "rating" + ], + "table_names_original": [ + "Movie", + "Reviewer", + "Rating" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "grade" + ], + [ + 1, + "student id" + ], + [ + 1, + "friend id" + ], + [ + 2, + "student id" + ], + [ + 2, + "liked id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "ID" + ], + [ + 0, + "name" + ], + [ + 0, + "grade" + ], + [ + 1, + "student_id" + ], + [ + 1, + "friend_id" + ], + [ + 2, + "student_id" + ], + [ + 2, + "liked_id" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "network_1", + "foreign_keys": [ + [ + 5, + 1 + ], + [ + 4, + 1 + ], + [ + 6, + 1 + ], + [ + 7, + 1 + ] + ], + "primary_keys": [ + 1, + 4, + 6 + ], + "table_names": [ + "high schooler", + "friend", + "likes" + ], + "table_names_original": [ + "Highschooler", + "Friend", + "Likes" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "poker player id" + ], + [ + 0, + "people id" + ], + [ + 0, + "final table made" + ], + [ + 0, + "best finish" + ], + [ + 0, + "money rank" + ], + [ + 0, + "earnings" + ], + [ + 1, + "people id" + ], + [ + 1, + "nationality" + ], + [ + 1, + "name" + ], + [ + 1, + "birth date" + ], + [ + 1, + "height" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Poker_Player_ID" + ], + [ + 0, + "People_ID" + ], + [ + 0, + "Final_Table_Made" + ], + [ + 0, + "Best_Finish" + ], + [ + 0, + "Money_Rank" + ], + [ + 0, + "Earnings" + ], + [ + 1, + "People_ID" + ], + [ + 1, + "Nationality" + ], + [ + 1, + "Name" + ], + [ + 1, + "Birth_Date" + ], + [ + 1, + "Height" + ] + ], + "column_types": [ + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "number" + ], + "db_id": "poker_player", + "foreign_keys": [ + [ + 2, + 7 + ] + ], + "primary_keys": [ + 1, + 7 + ], + "table_names": [ + "poker player", + "people" + ], + "table_names_original": [ + "poker_player", + "people" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "program id" + ], + [ + 0, + "name" + ], + [ + 0, + "origin" + ], + [ + 0, + "launch" + ], + [ + 0, + "owner" + ], + [ + 1, + "channel id" + ], + [ + 1, + "name" + ], + [ + 1, + "owner" + ], + [ + 1, + "share in percent" + ], + [ + 1, + "rating in percent" + ], + [ + 2, + "channel id" + ], + [ + 2, + "program id" + ], + [ + 2, + "time of day" + ], + [ + 3, + "channel id" + ], + [ + 3, + "program id" + ], + [ + 3, + "date" + ], + [ + 3, + "share in percent" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Program_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Origin" + ], + [ + 0, + "Launch" + ], + [ + 0, + "Owner" + ], + [ + 1, + "Channel_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Owner" + ], + [ + 1, + "Share_in_percent" + ], + [ + 1, + "Rating_in_percent" + ], + [ + 2, + "Channel_ID" + ], + [ + 2, + "Program_ID" + ], + [ + 2, + "Time_of_day" + ], + [ + 3, + "Channel_ID" + ], + [ + 3, + "Program_ID" + ], + [ + 3, + "Date" + ], + [ + 3, + "Share_in_percent" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "text", + "number" + ], + "db_id": "program_share", + "foreign_keys": [ + [ + 12, + 1 + ], + [ + 11, + 6 + ], + [ + 15, + 1 + ], + [ + 14, + 6 + ] + ], + "primary_keys": [ + 1, + 6, + 11, + 14 + ], + "table_names": [ + "program", + "channel", + "broadcast", + "broadcast share" + ], + "table_names_original": [ + "program", + "channel", + "broadcast", + "broadcast_share" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "pilot id" + ], + [ + 0, + "name" + ], + [ + 0, + "age" + ], + [ + 1, + "aircraft id" + ], + [ + 1, + "aircraft" + ], + [ + 1, + "description" + ], + [ + 1, + "max gross weight" + ], + [ + 1, + "total disk area" + ], + [ + 1, + "max disk loading" + ], + [ + 2, + "round" + ], + [ + 2, + "location" + ], + [ + 2, + "country" + ], + [ + 2, + "date" + ], + [ + 2, + "fastest qualifying" + ], + [ + 2, + "winning pilot" + ], + [ + 2, + "winning aircraft" + ], + [ + 3, + "airport id" + ], + [ + 3, + "airport name" + ], + [ + 3, + "total passengers" + ], + [ + 3, + "% change 2007" + ], + [ + 3, + "international passengers" + ], + [ + 3, + "domestic passengers" + ], + [ + 3, + "transit passengers" + ], + [ + 3, + "aircraft movements" + ], + [ + 3, + "freight metric tonnes" + ], + [ + 4, + "id" + ], + [ + 4, + "airport id" + ], + [ + 4, + "aircraft id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Pilot_Id" + ], + [ + 0, + "Name" + ], + [ + 0, + "Age" + ], + [ + 1, + "Aircraft_ID" + ], + [ + 1, + "Aircraft" + ], + [ + 1, + "Description" + ], + [ + 1, + "Max_Gross_Weight" + ], + [ + 1, + "Total_disk_area" + ], + [ + 1, + "Max_disk_Loading" + ], + [ + 2, + "Round" + ], + [ + 2, + "Location" + ], + [ + 2, + "Country" + ], + [ + 2, + "Date" + ], + [ + 2, + "Fastest_Qualifying" + ], + [ + 2, + "Winning_Pilot" + ], + [ + 2, + "Winning_Aircraft" + ], + [ + 3, + "Airport_ID" + ], + [ + 3, + "Airport_Name" + ], + [ + 3, + "Total_Passengers" + ], + [ + 3, + "%_Change_2007" + ], + [ + 3, + "International_Passengers" + ], + [ + 3, + "Domestic_Passengers" + ], + [ + 3, + "Transit_Passengers" + ], + [ + 3, + "Aircraft_Movements" + ], + [ + 3, + "Freight_Metric_Tonnes" + ], + [ + 4, + "ID" + ], + [ + 4, + "Airport_ID" + ], + [ + 4, + "Aircraft_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "aircraft", + "foreign_keys": [ + [ + 15, + 1 + ], + [ + 16, + 4 + ], + [ + 28, + 4 + ], + [ + 27, + 17 + ] + ], + "primary_keys": [ + 1, + 4, + 10, + 17, + 27 + ], + "table_names": [ + "pilot", + "aircraft", + "match", + "airport", + "airport aircraft" + ], + "table_names_original": [ + "pilot", + "aircraft", + "match", + "airport", + "airport_aircraft" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "student id" + ], + [ + 0, + "last name" + ], + [ + 0, + "first name" + ], + [ + 0, + "age" + ], + [ + 0, + "sex" + ], + [ + 0, + "major" + ], + [ + 0, + "advisor" + ], + [ + 0, + "city code" + ], + [ + 1, + "restaurant id" + ], + [ + 1, + "restaurant name" + ], + [ + 1, + "address" + ], + [ + 1, + "rating" + ], + [ + 2, + "restaurant id" + ], + [ + 2, + "restaurant type id" + ], + [ + 3, + "restaurant type id" + ], + [ + 3, + "restaurant type name" + ], + [ + 3, + "restaurant type description" + ], + [ + 4, + "student id" + ], + [ + 4, + "restaurant id" + ], + [ + 4, + "time" + ], + [ + 4, + "spent" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "StuID" + ], + [ + 0, + "LName" + ], + [ + 0, + "Fname" + ], + [ + 0, + "Age" + ], + [ + 0, + "Sex" + ], + [ + 0, + "Major" + ], + [ + 0, + "Advisor" + ], + [ + 0, + "city_code" + ], + [ + 1, + "ResID" + ], + [ + 1, + "ResName" + ], + [ + 1, + "Address" + ], + [ + 1, + "Rating" + ], + [ + 2, + "ResID" + ], + [ + 2, + "ResTypeID" + ], + [ + 3, + "ResTypeID" + ], + [ + 3, + "ResTypeName" + ], + [ + 3, + "ResTypeDescription" + ], + [ + 4, + "StuID" + ], + [ + 4, + "ResID" + ], + [ + 4, + "Time" + ], + [ + 4, + "Spent" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "time", + "number" + ], + "db_id": "restaurant_1", + "foreign_keys": [ + [ + 14, + 15 + ], + [ + 13, + 9 + ], + [ + 19, + 9 + ], + [ + 18, + 1 + ] + ], + "primary_keys": [ + 1, + 9, + 15 + ], + "table_names": [ + "student", + "restaurant", + "type of restaurant", + "restaurant type", + "visits restaurant" + ], + "table_names_original": [ + "Student", + "Restaurant", + "Type_Of_Restaurant", + "Restaurant_Type", + "Visits_Restaurant" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "customer id" + ], + [ + 0, + "customer first name" + ], + [ + 0, + "customer middle initial" + ], + [ + 0, + "customer last name" + ], + [ + 0, + "gender" + ], + [ + 0, + "email address" + ], + [ + 0, + "login name" + ], + [ + 0, + "login password" + ], + [ + 0, + "phone number" + ], + [ + 0, + "town city" + ], + [ + 0, + "state county province" + ], + [ + 0, + "country" + ], + [ + 1, + "order id" + ], + [ + 1, + "customer id" + ], + [ + 1, + "date order placed" + ], + [ + 1, + "order details" + ], + [ + 2, + "invoice number" + ], + [ + 2, + "order id" + ], + [ + 2, + "invoice date" + ], + [ + 3, + "account id" + ], + [ + 3, + "customer id" + ], + [ + 3, + "date account opened" + ], + [ + 3, + "account name" + ], + [ + 3, + "other account details" + ], + [ + 4, + "production type code" + ], + [ + 4, + "product type description" + ], + [ + 4, + "vat rating" + ], + [ + 5, + "product id" + ], + [ + 5, + "parent product id" + ], + [ + 5, + "production type code" + ], + [ + 5, + "unit price" + ], + [ + 5, + "product name" + ], + [ + 5, + "product color" + ], + [ + 5, + "product size" + ], + [ + 6, + "transaction id" + ], + [ + 6, + "account id" + ], + [ + 6, + "invoice number" + ], + [ + 6, + "transaction type" + ], + [ + 6, + "transaction date" + ], + [ + 6, + "transaction amount" + ], + [ + 6, + "transaction comment" + ], + [ + 6, + "other transaction details" + ], + [ + 7, + "order item id" + ], + [ + 7, + "order id" + ], + [ + 7, + "product id" + ], + [ + 7, + "product quantity" + ], + [ + 7, + "other order item details" + ], + [ + 8, + "order item id" + ], + [ + 8, + "invoice number" + ], + [ + 8, + "product id" + ], + [ + 8, + "product title" + ], + [ + 8, + "product quantity" + ], + [ + 8, + "product price" + ], + [ + 8, + "derived product cost" + ], + [ + 8, + "derived vat payable" + ], + [ + 8, + "derived total cost" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "customer_id" + ], + [ + 0, + "customer_first_name" + ], + [ + 0, + "customer_middle_initial" + ], + [ + 0, + "customer_last_name" + ], + [ + 0, + "gender" + ], + [ + 0, + "email_address" + ], + [ + 0, + "login_name" + ], + [ + 0, + "login_password" + ], + [ + 0, + "phone_number" + ], + [ + 0, + "town_city" + ], + [ + 0, + "state_county_province" + ], + [ + 0, + "country" + ], + [ + 1, + "order_id" + ], + [ + 1, + "customer_id" + ], + [ + 1, + "date_order_placed" + ], + [ + 1, + "order_details" + ], + [ + 2, + "invoice_number" + ], + [ + 2, + "order_id" + ], + [ + 2, + "invoice_date" + ], + [ + 3, + "account_id" + ], + [ + 3, + "customer_id" + ], + [ + 3, + "date_account_opened" + ], + [ + 3, + "account_name" + ], + [ + 3, + "other_account_details" + ], + [ + 4, + "production_type_code" + ], + [ + 4, + "product_type_description" + ], + [ + 4, + "vat_rating" + ], + [ + 5, + "product_id" + ], + [ + 5, + "parent_product_id" + ], + [ + 5, + "production_type_code" + ], + [ + 5, + "unit_price" + ], + [ + 5, + "product_name" + ], + [ + 5, + "product_color" + ], + [ + 5, + "product_size" + ], + [ + 6, + "transaction_id" + ], + [ + 6, + "account_id" + ], + [ + 6, + "invoice_number" + ], + [ + 6, + "transaction_type" + ], + [ + 6, + "transaction_date" + ], + [ + 6, + "transaction_amount" + ], + [ + 6, + "transaction_comment" + ], + [ + 6, + "other_transaction_details" + ], + [ + 7, + "order_item_id" + ], + [ + 7, + "order_id" + ], + [ + 7, + "product_id" + ], + [ + 7, + "product_quantity" + ], + [ + 7, + "other_order_item_details" + ], + [ + 8, + "order_item_id" + ], + [ + 8, + "invoice_number" + ], + [ + 8, + "product_id" + ], + [ + 8, + "product_title" + ], + [ + 8, + "product_quantity" + ], + [ + 8, + "product_price" + ], + [ + 8, + "derived_product_cost" + ], + [ + 8, + "derived_vat_payable" + ], + [ + 8, + "derived_total_cost" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "time", + "text", + "number", + "number", + "time", + "number", + "number", + "time", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "time", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "customers_and_invoices", + "foreign_keys": [ + [ + 14, + 1 + ], + [ + 18, + 13 + ], + [ + 21, + 1 + ], + [ + 30, + 25 + ], + [ + 36, + 20 + ], + [ + 37, + 17 + ], + [ + 44, + 13 + ], + [ + 45, + 28 + ], + [ + 50, + 28 + ], + [ + 49, + 17 + ], + [ + 48, + 43 + ] + ], + "primary_keys": [ + 1, + 13, + 17, + 20, + 25, + 28, + 43 + ], + "table_names": [ + "customers", + "orders", + "invoices", + "accounts", + "product categories", + "products", + "financial transactions", + "order items", + "invoice line items" + ], + "table_names_original": [ + "Customers", + "Orders", + "Invoices", + "Accounts", + "Product_Categories", + "Products", + "Financial_Transactions", + "Order_Items", + "Invoice_Line_Items" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "customer id" + ], + [ + 0, + "customer details" + ], + [ + 1, + "staff id" + ], + [ + 1, + "staff details" + ], + [ + 2, + "policy id" + ], + [ + 2, + "customer id" + ], + [ + 2, + "policy type code" + ], + [ + 2, + "start date" + ], + [ + 2, + "end date" + ], + [ + 3, + "claim header id" + ], + [ + 3, + "claim status code" + ], + [ + 3, + "claim type code" + ], + [ + 3, + "policy id" + ], + [ + 3, + "date of claim" + ], + [ + 3, + "date of settlement" + ], + [ + 3, + "amount claimed" + ], + [ + 3, + "amount piad" + ], + [ + 4, + "claim id" + ], + [ + 4, + "document type code" + ], + [ + 4, + "created by staff id" + ], + [ + 4, + "created date" + ], + [ + 5, + "claim stage id" + ], + [ + 5, + "next claim stage id" + ], + [ + 5, + "claim status name" + ], + [ + 5, + "claim status description" + ], + [ + 6, + "claim processing id" + ], + [ + 6, + "claim id" + ], + [ + 6, + "claim outcome code" + ], + [ + 6, + "claim stage id" + ], + [ + 6, + "staff id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Customer_ID" + ], + [ + 0, + "Customer_Details" + ], + [ + 1, + "Staff_ID" + ], + [ + 1, + "Staff_Details" + ], + [ + 2, + "Policy_ID" + ], + [ + 2, + "Customer_ID" + ], + [ + 2, + "Policy_Type_Code" + ], + [ + 2, + "Start_Date" + ], + [ + 2, + "End_Date" + ], + [ + 3, + "Claim_Header_ID" + ], + [ + 3, + "Claim_Status_Code" + ], + [ + 3, + "Claim_Type_Code" + ], + [ + 3, + "Policy_ID" + ], + [ + 3, + "Date_of_Claim" + ], + [ + 3, + "Date_of_Settlement" + ], + [ + 3, + "Amount_Claimed" + ], + [ + 3, + "Amount_Piad" + ], + [ + 4, + "Claim_ID" + ], + [ + 4, + "Document_Type_Code" + ], + [ + 4, + "Created_by_Staff_ID" + ], + [ + 4, + "Created_Date" + ], + [ + 5, + "Claim_Stage_ID" + ], + [ + 5, + "Next_Claim_Stage_ID" + ], + [ + 5, + "Claim_Status_Name" + ], + [ + 5, + "Claim_Status_Description" + ], + [ + 6, + "Claim_Processing_ID" + ], + [ + 6, + "Claim_ID" + ], + [ + 6, + "Claim_Outcome_Code" + ], + [ + 6, + "Claim_Stage_ID" + ], + [ + 6, + "Staff_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "text", + "time", + "time", + "number", + "text", + "text", + "number", + "time", + "time", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "number" + ], + "db_id": "insurance_and_eClaims", + "foreign_keys": [ + [ + 6, + 1 + ], + [ + 13, + 5 + ], + [ + 20, + 3 + ], + [ + 18, + 10 + ], + [ + 30, + 3 + ], + [ + 27, + 10 + ] + ], + "primary_keys": [ + 1, + 3, + 5, + 10, + 18, + 22, + 26 + ], + "table_names": [ + "customers", + "staff", + "policies", + "claim headers", + "claims documents", + "claims processing stages", + "claims processing" + ], + "table_names_original": [ + "Customers", + "Staff", + "Policies", + "Claim_Headers", + "Claims_Documents", + "Claims_Processing_Stages", + "Claims_Processing" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "class code" + ], + [ + 0, + "course code" + ], + [ + 0, + "class section" + ], + [ + 0, + "class time" + ], + [ + 0, + "class room" + ], + [ + 0, + "professor employee number" + ], + [ + 1, + "course code" + ], + [ + 1, + "department code" + ], + [ + 1, + "course description" + ], + [ + 1, + "course credit" + ], + [ + 2, + "department code" + ], + [ + 2, + "department name" + ], + [ + 2, + "school code" + ], + [ + 2, + "employee number" + ], + [ + 2, + "department address" + ], + [ + 2, + "department extension" + ], + [ + 3, + "employee number" + ], + [ + 3, + "employee last name" + ], + [ + 3, + "employee first name" + ], + [ + 3, + "employee initial" + ], + [ + 3, + "employee job code" + ], + [ + 3, + "employee hire date" + ], + [ + 3, + "employee date of birth" + ], + [ + 4, + "class code" + ], + [ + 4, + "student number" + ], + [ + 4, + "enroll grade" + ], + [ + 5, + "employee number" + ], + [ + 5, + "department code" + ], + [ + 5, + "professor office" + ], + [ + 5, + "professor extension" + ], + [ + 5, + "professor high degree" + ], + [ + 6, + "student num" + ], + [ + 6, + "student last name" + ], + [ + 6, + "student first name" + ], + [ + 6, + "student init" + ], + [ + 6, + "student date of birth" + ], + [ + 6, + "student class hours took" + ], + [ + 6, + "student class" + ], + [ + 6, + "student gpa" + ], + [ + 6, + "student transfer" + ], + [ + 6, + "department code" + ], + [ + 6, + "student phone" + ], + [ + 6, + "professor number" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "CLASS_CODE" + ], + [ + 0, + "CRS_CODE" + ], + [ + 0, + "CLASS_SECTION" + ], + [ + 0, + "CLASS_TIME" + ], + [ + 0, + "CLASS_ROOM" + ], + [ + 0, + "PROF_NUM" + ], + [ + 1, + "CRS_CODE" + ], + [ + 1, + "DEPT_CODE" + ], + [ + 1, + "CRS_DESCRIPTION" + ], + [ + 1, + "CRS_CREDIT" + ], + [ + 2, + "DEPT_CODE" + ], + [ + 2, + "DEPT_NAME" + ], + [ + 2, + "SCHOOL_CODE" + ], + [ + 2, + "EMP_NUM" + ], + [ + 2, + "DEPT_ADDRESS" + ], + [ + 2, + "DEPT_EXTENSION" + ], + [ + 3, + "EMP_NUM" + ], + [ + 3, + "EMP_LNAME" + ], + [ + 3, + "EMP_FNAME" + ], + [ + 3, + "EMP_INITIAL" + ], + [ + 3, + "EMP_JOBCODE" + ], + [ + 3, + "EMP_HIREDATE" + ], + [ + 3, + "EMP_DOB" + ], + [ + 4, + "CLASS_CODE" + ], + [ + 4, + "STU_NUM" + ], + [ + 4, + "ENROLL_GRADE" + ], + [ + 5, + "EMP_NUM" + ], + [ + 5, + "DEPT_CODE" + ], + [ + 5, + "PROF_OFFICE" + ], + [ + 5, + "PROF_EXTENSION" + ], + [ + 5, + "PROF_HIGH_DEGREE" + ], + [ + 6, + "STU_NUM" + ], + [ + 6, + "STU_LNAME" + ], + [ + 6, + "STU_FNAME" + ], + [ + 6, + "STU_INIT" + ], + [ + 6, + "STU_DOB" + ], + [ + 6, + "STU_HRS" + ], + [ + 6, + "STU_CLASS" + ], + [ + 6, + "STU_GPA" + ], + [ + 6, + "STU_TRANSFER" + ], + [ + 6, + "DEPT_CODE" + ], + [ + 6, + "STU_PHONE" + ], + [ + 6, + "PROF_NUM" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "time", + "time", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "time", + "number", + "text", + "number", + "number", + "text", + "text", + "number" + ], + "db_id": "college_1", + "foreign_keys": [ + [ + 6, + 17 + ], + [ + 2, + 7 + ], + [ + 8, + 11 + ], + [ + 14, + 17 + ], + [ + 25, + 32 + ], + [ + 24, + 1 + ], + [ + 28, + 11 + ], + [ + 27, + 17 + ], + [ + 41, + 11 + ] + ], + "primary_keys": [ + 1, + 7, + 11, + 17, + 32 + ], + "table_names": [ + "class", + "course", + "department", + "employee", + "enroll", + "professor", + "student" + ], + "table_names_original": [ + "CLASS", + "COURSE", + "DEPARTMENT", + "EMPLOYEE", + "ENROLL", + "PROFESSOR", + "STUDENT" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "master customer id" + ], + [ + 0, + "cmi details" + ], + [ + 1, + "cmi cross reference id" + ], + [ + 1, + "master customer id" + ], + [ + 1, + "source system code" + ], + [ + 2, + "council tax id" + ], + [ + 2, + "cmi cross reference id" + ], + [ + 3, + "business rates id" + ], + [ + 3, + "cmi cross reference id" + ], + [ + 4, + "council tax id" + ], + [ + 4, + "cmi cross ref id" + ], + [ + 5, + "council tax id" + ], + [ + 5, + "cmi cross reference id" + ], + [ + 6, + "council tax id" + ], + [ + 6, + "cmi cross reference id" + ], + [ + 7, + "electoral register id" + ], + [ + 7, + "cmi cross reference id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "master_customer_id" + ], + [ + 0, + "cmi_details" + ], + [ + 1, + "cmi_cross_ref_id" + ], + [ + 1, + "master_customer_id" + ], + [ + 1, + "source_system_code" + ], + [ + 2, + "council_tax_id" + ], + [ + 2, + "cmi_cross_ref_id" + ], + [ + 3, + "business_rates_id" + ], + [ + 3, + "cmi_cross_ref_id" + ], + [ + 4, + "council_tax_id" + ], + [ + 4, + "cmi_cross_ref_id" + ], + [ + 5, + "council_tax_id" + ], + [ + 5, + "cmi_cross_ref_id" + ], + [ + 6, + "council_tax_id" + ], + [ + 6, + "cmi_cross_ref_id" + ], + [ + 7, + "electoral_register_id" + ], + [ + 7, + "cmi_cross_ref_id" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "local_govt_mdm", + "foreign_keys": [ + [ + 4, + 1 + ], + [ + 7, + 3 + ], + [ + 9, + 3 + ], + [ + 11, + 3 + ], + [ + 13, + 3 + ], + [ + 15, + 3 + ], + [ + 17, + 3 + ] + ], + "primary_keys": [ + 1, + 3, + 6, + 8, + 10, + 12, + 14, + 16 + ], + "table_names": [ + "customer master index", + "cmi cross references", + "council tax", + "business rates", + "benefits overpayments", + "parking fines", + "rent arrears", + "electoral register" + ], + "table_names_original": [ + "Customer_Master_Index", + "CMI_Cross_References", + "Council_Tax", + "Business_Rates", + "Benefits_Overpayments", + "Parking_Fines", + "Rent_Arrears", + "Electoral_Register" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "publication id" + ], + [ + 0, + "book id" + ], + [ + 0, + "publisher" + ], + [ + 0, + "publication date" + ], + [ + 0, + "price" + ], + [ + 1, + "book id" + ], + [ + 1, + "title" + ], + [ + 1, + "issues" + ], + [ + 1, + "writer" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Publication_ID" + ], + [ + 0, + "Book_ID" + ], + [ + 0, + "Publisher" + ], + [ + 0, + "Publication_Date" + ], + [ + 0, + "Price" + ], + [ + 1, + "Book_ID" + ], + [ + 1, + "Title" + ], + [ + 1, + "Issues" + ], + [ + 1, + "Writer" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "text" + ], + "db_id": "book_2", + "foreign_keys": [ + [ + 2, + 6 + ] + ], + "primary_keys": [ + 1, + 6 + ], + "table_names": [ + "publication", + "book" + ], + "table_names_original": [ + "publication", + "book" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "region id" + ], + [ + 0, + "region name" + ], + [ + 1, + "country id" + ], + [ + 1, + "country name" + ], + [ + 1, + "region id" + ], + [ + 2, + "department id" + ], + [ + 2, + "department name" + ], + [ + 2, + "manager id" + ], + [ + 2, + "location id" + ], + [ + 3, + "job id" + ], + [ + 3, + "job title" + ], + [ + 3, + "min salary" + ], + [ + 3, + "max salary" + ], + [ + 4, + "employee id" + ], + [ + 4, + "first name" + ], + [ + 4, + "last name" + ], + [ + 4, + "email" + ], + [ + 4, + "phone number" + ], + [ + 4, + "hire date" + ], + [ + 4, + "job id" + ], + [ + 4, + "salary" + ], + [ + 4, + "commission pct" + ], + [ + 4, + "manager id" + ], + [ + 4, + "department id" + ], + [ + 5, + "employee id" + ], + [ + 5, + "start date" + ], + [ + 5, + "end date" + ], + [ + 5, + "job id" + ], + [ + 5, + "department id" + ], + [ + 6, + "location id" + ], + [ + 6, + "street address" + ], + [ + 6, + "postal code" + ], + [ + 6, + "city" + ], + [ + 6, + "state province" + ], + [ + 6, + "country id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "REGION_ID" + ], + [ + 0, + "REGION_NAME" + ], + [ + 1, + "COUNTRY_ID" + ], + [ + 1, + "COUNTRY_NAME" + ], + [ + 1, + "REGION_ID" + ], + [ + 2, + "DEPARTMENT_ID" + ], + [ + 2, + "DEPARTMENT_NAME" + ], + [ + 2, + "MANAGER_ID" + ], + [ + 2, + "LOCATION_ID" + ], + [ + 3, + "JOB_ID" + ], + [ + 3, + "JOB_TITLE" + ], + [ + 3, + "MIN_SALARY" + ], + [ + 3, + "MAX_SALARY" + ], + [ + 4, + "EMPLOYEE_ID" + ], + [ + 4, + "FIRST_NAME" + ], + [ + 4, + "LAST_NAME" + ], + [ + 4, + "EMAIL" + ], + [ + 4, + "PHONE_NUMBER" + ], + [ + 4, + "HIRE_DATE" + ], + [ + 4, + "JOB_ID" + ], + [ + 4, + "SALARY" + ], + [ + 4, + "COMMISSION_PCT" + ], + [ + 4, + "MANAGER_ID" + ], + [ + 4, + "DEPARTMENT_ID" + ], + [ + 5, + "EMPLOYEE_ID" + ], + [ + 5, + "START_DATE" + ], + [ + 5, + "END_DATE" + ], + [ + 5, + "JOB_ID" + ], + [ + 5, + "DEPARTMENT_ID" + ], + [ + 6, + "LOCATION_ID" + ], + [ + 6, + "STREET_ADDRESS" + ], + [ + 6, + "POSTAL_CODE" + ], + [ + 6, + "CITY" + ], + [ + 6, + "STATE_PROVINCE" + ], + [ + 6, + "COUNTRY_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "time", + "text", + "number", + "number", + "number", + "number", + "number", + "time", + "time", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text" + ], + "db_id": "hr_1", + "foreign_keys": [ + [ + 5, + 1 + ], + [ + 20, + 10 + ], + [ + 24, + 6 + ], + [ + 28, + 10 + ], + [ + 29, + 6 + ], + [ + 25, + 14 + ], + [ + 35, + 3 + ] + ], + "primary_keys": [ + 1, + 3, + 6, + 10, + 14, + 25, + 30 + ], + "table_names": [ + "regions", + "countries", + "departments", + "jobs", + "employees", + "job history", + "locations" + ], + "table_names_original": [ + "regions", + "countries", + "departments", + "jobs", + "employees", + "job_history", + "locations" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "player fifa api id" + ], + [ + 0, + "player api id" + ], + [ + 0, + "date" + ], + [ + 0, + "overall rating" + ], + [ + 0, + "potential" + ], + [ + 0, + "preferred foot" + ], + [ + 0, + "attacking work rate" + ], + [ + 0, + "defensive work rate" + ], + [ + 0, + "crossing" + ], + [ + 0, + "finishing" + ], + [ + 0, + "heading accuracy" + ], + [ + 0, + "short passing" + ], + [ + 0, + "volleys" + ], + [ + 0, + "dribbling" + ], + [ + 0, + "curve" + ], + [ + 0, + "free kick accuracy" + ], + [ + 0, + "long passing" + ], + [ + 0, + "ball control" + ], + [ + 0, + "acceleration" + ], + [ + 0, + "sprint speed" + ], + [ + 0, + "agility" + ], + [ + 0, + "reactions" + ], + [ + 0, + "balance" + ], + [ + 0, + "shot power" + ], + [ + 0, + "jumping" + ], + [ + 0, + "stamina" + ], + [ + 0, + "strength" + ], + [ + 0, + "long shots" + ], + [ + 0, + "aggression" + ], + [ + 0, + "interceptions" + ], + [ + 0, + "positioning" + ], + [ + 0, + "vision" + ], + [ + 0, + "penalties" + ], + [ + 0, + "marking" + ], + [ + 0, + "standing tackle" + ], + [ + 0, + "sliding tackle" + ], + [ + 0, + "gk diving" + ], + [ + 0, + "gk handling" + ], + [ + 0, + "gk kicking" + ], + [ + 0, + "gk positioning" + ], + [ + 0, + "gk reflexes" + ], + [ + 1, + "name" + ], + [ + 1, + "seq" + ], + [ + 2, + "id" + ], + [ + 2, + "player api id" + ], + [ + 2, + "player name" + ], + [ + 2, + "player fifa api id" + ], + [ + 2, + "birthday" + ], + [ + 2, + "height" + ], + [ + 2, + "weight" + ], + [ + 3, + "id" + ], + [ + 3, + "country id" + ], + [ + 3, + "name" + ], + [ + 4, + "id" + ], + [ + 4, + "name" + ], + [ + 5, + "id" + ], + [ + 5, + "team api id" + ], + [ + 5, + "team fifa api id" + ], + [ + 5, + "team long name" + ], + [ + 5, + "team short name" + ], + [ + 6, + "id" + ], + [ + 6, + "team fifa api id" + ], + [ + 6, + "team api id" + ], + [ + 6, + "date" + ], + [ + 6, + "buildup play speed" + ], + [ + 6, + "buildup play speed class" + ], + [ + 6, + "buildup play dribbling" + ], + [ + 6, + "buildup play dribbling class" + ], + [ + 6, + "buildup play passing" + ], + [ + 6, + "buildup play passing class" + ], + [ + 6, + "buildup play positioning class" + ], + [ + 6, + "chance creation passing" + ], + [ + 6, + "chance creation passing class" + ], + [ + 6, + "chance creation crossing" + ], + [ + 6, + "chance creation crossing class" + ], + [ + 6, + "chance creation shooting" + ], + [ + 6, + "chance creation shooting class" + ], + [ + 6, + "chance creation positioning class" + ], + [ + 6, + "defence pressure" + ], + [ + 6, + "defence pressure class" + ], + [ + 6, + "defence aggression" + ], + [ + 6, + "defence aggression class" + ], + [ + 6, + "defence team width" + ], + [ + 6, + "defence team width class" + ], + [ + 6, + "defence defender line class" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "player_fifa_api_id" + ], + [ + 0, + "player_api_id" + ], + [ + 0, + "date" + ], + [ + 0, + "overall_rating" + ], + [ + 0, + "potential" + ], + [ + 0, + "preferred_foot" + ], + [ + 0, + "attacking_work_rate" + ], + [ + 0, + "defensive_work_rate" + ], + [ + 0, + "crossing" + ], + [ + 0, + "finishing" + ], + [ + 0, + "heading_accuracy" + ], + [ + 0, + "short_passing" + ], + [ + 0, + "volleys" + ], + [ + 0, + "dribbling" + ], + [ + 0, + "curve" + ], + [ + 0, + "free_kick_accuracy" + ], + [ + 0, + "long_passing" + ], + [ + 0, + "ball_control" + ], + [ + 0, + "acceleration" + ], + [ + 0, + "sprint_speed" + ], + [ + 0, + "agility" + ], + [ + 0, + "reactions" + ], + [ + 0, + "balance" + ], + [ + 0, + "shot_power" + ], + [ + 0, + "jumping" + ], + [ + 0, + "stamina" + ], + [ + 0, + "strength" + ], + [ + 0, + "long_shots" + ], + [ + 0, + "aggression" + ], + [ + 0, + "interceptions" + ], + [ + 0, + "positioning" + ], + [ + 0, + "vision" + ], + [ + 0, + "penalties" + ], + [ + 0, + "marking" + ], + [ + 0, + "standing_tackle" + ], + [ + 0, + "sliding_tackle" + ], + [ + 0, + "gk_diving" + ], + [ + 0, + "gk_handling" + ], + [ + 0, + "gk_kicking" + ], + [ + 0, + "gk_positioning" + ], + [ + 0, + "gk_reflexes" + ], + [ + 1, + "name" + ], + [ + 1, + "seq" + ], + [ + 2, + "id" + ], + [ + 2, + "player_api_id" + ], + [ + 2, + "player_name" + ], + [ + 2, + "player_fifa_api_id" + ], + [ + 2, + "birthday" + ], + [ + 2, + "height" + ], + [ + 2, + "weight" + ], + [ + 3, + "id" + ], + [ + 3, + "country_id" + ], + [ + 3, + "name" + ], + [ + 4, + "id" + ], + [ + 4, + "name" + ], + [ + 5, + "id" + ], + [ + 5, + "team_api_id" + ], + [ + 5, + "team_fifa_api_id" + ], + [ + 5, + "team_long_name" + ], + [ + 5, + "team_short_name" + ], + [ + 6, + "id" + ], + [ + 6, + "team_fifa_api_id" + ], + [ + 6, + "team_api_id" + ], + [ + 6, + "date" + ], + [ + 6, + "buildUpPlaySpeed" + ], + [ + 6, + "buildUpPlaySpeedClass" + ], + [ + 6, + "buildUpPlayDribbling" + ], + [ + 6, + "buildUpPlayDribblingClass" + ], + [ + 6, + "buildUpPlayPassing" + ], + [ + 6, + "buildUpPlayPassingClass" + ], + [ + 6, + "buildUpPlayPositioningClass" + ], + [ + 6, + "chanceCreationPassing" + ], + [ + 6, + "chanceCreationPassingClass" + ], + [ + 6, + "chanceCreationCrossing" + ], + [ + 6, + "chanceCreationCrossingClass" + ], + [ + 6, + "chanceCreationShooting" + ], + [ + 6, + "chanceCreationShootingClass" + ], + [ + 6, + "chanceCreationPositioningClass" + ], + [ + 6, + "defencePressure" + ], + [ + 6, + "defencePressureClass" + ], + [ + 6, + "defenceAggression" + ], + [ + 6, + "defenceAggressionClass" + ], + [ + 6, + "defenceTeamWidth" + ], + [ + 6, + "defenceTeamWidthClass" + ], + [ + 6, + "defenceDefenderLineClass" + ] + ], + "column_types": [ + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text" + ], + "db_id": "soccer_1", + "foreign_keys": [ + [ + 3, + 46 + ], + [ + 2, + 48 + ], + [ + 53, + 55 + ], + [ + 64, + 58 + ], + [ + 63, + 59 + ] + ], + "primary_keys": [ + 1, + 45, + 52, + 55, + 57, + 62 + ], + "table_names": [ + "player attributes", + "sqlite sequence", + "player", + "league", + "country", + "team", + "team attributes" + ], + "table_names_original": [ + "Player_Attributes", + "sqlite_sequence", + "Player", + "League", + "Country", + "Team", + "Team_Attributes" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "actor id" + ], + [ + 0, + "first name" + ], + [ + 0, + "last name" + ], + [ + 0, + "last update" + ], + [ + 1, + "address id" + ], + [ + 1, + "address" + ], + [ + 1, + "address2" + ], + [ + 1, + "district" + ], + [ + 1, + "city id" + ], + [ + 1, + "postal code" + ], + [ + 1, + "phone" + ], + [ + 1, + "last update" + ], + [ + 2, + "category id" + ], + [ + 2, + "name" + ], + [ + 2, + "last update" + ], + [ + 3, + "city id" + ], + [ + 3, + "city" + ], + [ + 3, + "country id" + ], + [ + 3, + "last update" + ], + [ + 4, + "country id" + ], + [ + 4, + "country" + ], + [ + 4, + "last update" + ], + [ + 5, + "customer id" + ], + [ + 5, + "store id" + ], + [ + 5, + "first name" + ], + [ + 5, + "last name" + ], + [ + 5, + "email" + ], + [ + 5, + "address id" + ], + [ + 5, + "active" + ], + [ + 5, + "create date" + ], + [ + 5, + "last update" + ], + [ + 6, + "film id" + ], + [ + 6, + "title" + ], + [ + 6, + "description" + ], + [ + 6, + "release year" + ], + [ + 6, + "language id" + ], + [ + 6, + "original language id" + ], + [ + 6, + "rental duration" + ], + [ + 6, + "rental rate" + ], + [ + 6, + "length" + ], + [ + 6, + "replacement cost" + ], + [ + 6, + "rating" + ], + [ + 6, + "special features" + ], + [ + 6, + "last update" + ], + [ + 7, + "actor id" + ], + [ + 7, + "film id" + ], + [ + 7, + "last update" + ], + [ + 8, + "film id" + ], + [ + 8, + "category id" + ], + [ + 8, + "last update" + ], + [ + 9, + "film id" + ], + [ + 9, + "title" + ], + [ + 9, + "description" + ], + [ + 10, + "inventory id" + ], + [ + 10, + "film id" + ], + [ + 10, + "store id" + ], + [ + 10, + "last update" + ], + [ + 11, + "language id" + ], + [ + 11, + "name" + ], + [ + 11, + "last update" + ], + [ + 12, + "payment id" + ], + [ + 12, + "customer id" + ], + [ + 12, + "staff id" + ], + [ + 12, + "rental id" + ], + [ + 12, + "amount" + ], + [ + 12, + "payment date" + ], + [ + 12, + "last update" + ], + [ + 13, + "rental id" + ], + [ + 13, + "rental date" + ], + [ + 13, + "inventory id" + ], + [ + 13, + "customer id" + ], + [ + 13, + "return date" + ], + [ + 13, + "staff id" + ], + [ + 13, + "last update" + ], + [ + 14, + "staff id" + ], + [ + 14, + "first name" + ], + [ + 14, + "last name" + ], + [ + 14, + "address id" + ], + [ + 14, + "picture" + ], + [ + 14, + "email" + ], + [ + 14, + "store id" + ], + [ + 14, + "active" + ], + [ + 14, + "username" + ], + [ + 14, + "password" + ], + [ + 14, + "last update" + ], + [ + 15, + "store id" + ], + [ + 15, + "manager staff id" + ], + [ + 15, + "address id" + ], + [ + 15, + "last update" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "actor_id" + ], + [ + 0, + "first_name" + ], + [ + 0, + "last_name" + ], + [ + 0, + "last_update" + ], + [ + 1, + "address_id" + ], + [ + 1, + "address" + ], + [ + 1, + "address2" + ], + [ + 1, + "district" + ], + [ + 1, + "city_id" + ], + [ + 1, + "postal_code" + ], + [ + 1, + "phone" + ], + [ + 1, + "last_update" + ], + [ + 2, + "category_id" + ], + [ + 2, + "name" + ], + [ + 2, + "last_update" + ], + [ + 3, + "city_id" + ], + [ + 3, + "city" + ], + [ + 3, + "country_id" + ], + [ + 3, + "last_update" + ], + [ + 4, + "country_id" + ], + [ + 4, + "country" + ], + [ + 4, + "last_update" + ], + [ + 5, + "customer_id" + ], + [ + 5, + "store_id" + ], + [ + 5, + "first_name" + ], + [ + 5, + "last_name" + ], + [ + 5, + "email" + ], + [ + 5, + "address_id" + ], + [ + 5, + "active" + ], + [ + 5, + "create_date" + ], + [ + 5, + "last_update" + ], + [ + 6, + "film_id" + ], + [ + 6, + "title" + ], + [ + 6, + "description" + ], + [ + 6, + "release_year" + ], + [ + 6, + "language_id" + ], + [ + 6, + "original_language_id" + ], + [ + 6, + "rental_duration" + ], + [ + 6, + "rental_rate" + ], + [ + 6, + "length" + ], + [ + 6, + "replacement_cost" + ], + [ + 6, + "rating" + ], + [ + 6, + "special_features" + ], + [ + 6, + "last_update" + ], + [ + 7, + "actor_id" + ], + [ + 7, + "film_id" + ], + [ + 7, + "last_update" + ], + [ + 8, + "film_id" + ], + [ + 8, + "category_id" + ], + [ + 8, + "last_update" + ], + [ + 9, + "film_id" + ], + [ + 9, + "title" + ], + [ + 9, + "description" + ], + [ + 10, + "inventory_id" + ], + [ + 10, + "film_id" + ], + [ + 10, + "store_id" + ], + [ + 10, + "last_update" + ], + [ + 11, + "language_id" + ], + [ + 11, + "name" + ], + [ + 11, + "last_update" + ], + [ + 12, + "payment_id" + ], + [ + 12, + "customer_id" + ], + [ + 12, + "staff_id" + ], + [ + 12, + "rental_id" + ], + [ + 12, + "amount" + ], + [ + 12, + "payment_date" + ], + [ + 12, + "last_update" + ], + [ + 13, + "rental_id" + ], + [ + 13, + "rental_date" + ], + [ + 13, + "inventory_id" + ], + [ + 13, + "customer_id" + ], + [ + 13, + "return_date" + ], + [ + 13, + "staff_id" + ], + [ + 13, + "last_update" + ], + [ + 14, + "staff_id" + ], + [ + 14, + "first_name" + ], + [ + 14, + "last_name" + ], + [ + 14, + "address_id" + ], + [ + 14, + "picture" + ], + [ + 14, + "email" + ], + [ + 14, + "store_id" + ], + [ + 14, + "active" + ], + [ + 14, + "username" + ], + [ + 14, + "password" + ], + [ + 14, + "last_update" + ], + [ + 15, + "store_id" + ], + [ + 15, + "manager_staff_id" + ], + [ + 15, + "address_id" + ], + [ + 15, + "last_update" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "time", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "time", + "number", + "text", + "time", + "number", + "text", + "number", + "time", + "number", + "text", + "time", + "number", + "number", + "text", + "text", + "text", + "number", + "boolean", + "time", + "time", + "number", + "text", + "text", + "time", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "time", + "number", + "number", + "time", + "number", + "number", + "time", + "number", + "text", + "text", + "number", + "number", + "number", + "time", + "number", + "text", + "time", + "number", + "number", + "number", + "number", + "number", + "time", + "time", + "number", + "time", + "number", + "number", + "time", + "number", + "time", + "number", + "text", + "text", + "number", + "others", + "text", + "number", + "boolean", + "text", + "text", + "time", + "number", + "number", + "number", + "time" + ], + "db_id": "sakila_1", + "foreign_keys": [ + [ + 9, + 16 + ], + [ + 18, + 20 + ], + [ + 24, + 86 + ], + [ + 28, + 5 + ], + [ + 37, + 58 + ], + [ + 36, + 58 + ], + [ + 46, + 32 + ], + [ + 45, + 1 + ], + [ + 49, + 13 + ], + [ + 48, + 32 + ], + [ + 55, + 32 + ], + [ + 56, + 86 + ], + [ + 63, + 75 + ], + [ + 62, + 23 + ], + [ + 64, + 68 + ], + [ + 71, + 23 + ], + [ + 70, + 54 + ], + [ + 73, + 75 + ], + [ + 78, + 5 + ], + [ + 88, + 5 + ], + [ + 87, + 75 + ] + ], + "primary_keys": [ + 1, + 5, + 13, + 16, + 20, + 23, + 32, + 45, + 48, + 51, + 54, + 58, + 61, + 68, + 75, + 86 + ], + "table_names": [ + "actor", + "address", + "category", + "city", + "country", + "customer", + "film", + "film actor", + "film category", + "film text", + "inventory", + "language", + "payment", + "rental", + "staff", + "store" + ], + "table_names_original": [ + "actor", + "address", + "category", + "city", + "country", + "customer", + "film", + "film_actor", + "film_category", + "film_text", + "inventory", + "language", + "payment", + "rental", + "staff", + "store" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "feature type code" + ], + [ + 0, + "feature type name" + ], + [ + 1, + "property type code" + ], + [ + 1, + "property type description" + ], + [ + 2, + "feature id" + ], + [ + 2, + "feature type code" + ], + [ + 2, + "feature name" + ], + [ + 2, + "feature description" + ], + [ + 3, + "property id" + ], + [ + 3, + "property type code" + ], + [ + 3, + "date on market" + ], + [ + 3, + "date sold" + ], + [ + 3, + "property name" + ], + [ + 3, + "property address" + ], + [ + 3, + "room count" + ], + [ + 3, + "vendor requested price" + ], + [ + 3, + "buyer offered price" + ], + [ + 3, + "agreed selling price" + ], + [ + 3, + "apt feature 1" + ], + [ + 3, + "apt feature 2" + ], + [ + 3, + "apt feature 3" + ], + [ + 3, + "fld feature 1" + ], + [ + 3, + "fld feature 2" + ], + [ + 3, + "fld feature 3" + ], + [ + 3, + "hse feature 1" + ], + [ + 3, + "hse feature 2" + ], + [ + 3, + "hse feature 3" + ], + [ + 3, + "oth feature 1" + ], + [ + 3, + "oth feature 2" + ], + [ + 3, + "oth feature 3" + ], + [ + 3, + "shp feature 1" + ], + [ + 3, + "shp feature 2" + ], + [ + 3, + "shp feature 3" + ], + [ + 3, + "other property details" + ], + [ + 4, + "property id" + ], + [ + 4, + "feature id" + ], + [ + 4, + "property feature description" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "feature_type_code" + ], + [ + 0, + "feature_type_name" + ], + [ + 1, + "property_type_code" + ], + [ + 1, + "property_type_description" + ], + [ + 2, + "feature_id" + ], + [ + 2, + "feature_type_code" + ], + [ + 2, + "feature_name" + ], + [ + 2, + "feature_description" + ], + [ + 3, + "property_id" + ], + [ + 3, + "property_type_code" + ], + [ + 3, + "date_on_market" + ], + [ + 3, + "date_sold" + ], + [ + 3, + "property_name" + ], + [ + 3, + "property_address" + ], + [ + 3, + "room_count" + ], + [ + 3, + "vendor_requested_price" + ], + [ + 3, + "buyer_offered_price" + ], + [ + 3, + "agreed_selling_price" + ], + [ + 3, + "apt_feature_1" + ], + [ + 3, + "apt_feature_2" + ], + [ + 3, + "apt_feature_3" + ], + [ + 3, + "fld_feature_1" + ], + [ + 3, + "fld_feature_2" + ], + [ + 3, + "fld_feature_3" + ], + [ + 3, + "hse_feature_1" + ], + [ + 3, + "hse_feature_2" + ], + [ + 3, + "hse_feature_3" + ], + [ + 3, + "oth_feature_1" + ], + [ + 3, + "oth_feature_2" + ], + [ + 3, + "oth_feature_3" + ], + [ + 3, + "shp_feature_1" + ], + [ + 3, + "shp_feature_2" + ], + [ + 3, + "shp_feature_3" + ], + [ + 3, + "other_property_details" + ], + [ + 4, + "property_id" + ], + [ + 4, + "feature_id" + ], + [ + 4, + "property_feature_description" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "time", + "time", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text" + ], + "db_id": "real_estate_properties", + "foreign_keys": [ + [ + 6, + 1 + ], + [ + 10, + 3 + ], + [ + 35, + 9 + ], + [ + 36, + 5 + ] + ], + "primary_keys": [ + 1, + 3, + 5, + 9 + ], + "table_names": [ + "reference feature types", + "reference property types", + "other available features", + "properties", + "other property features" + ], + "table_names_original": [ + "Ref_Feature_Types", + "Ref_Property_Types", + "Other_Available_Features", + "Properties", + "Other_Property_Features" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "student id" + ], + [ + 0, + "last name" + ], + [ + 0, + "first name" + ], + [ + 0, + "age" + ], + [ + 0, + "sex" + ], + [ + 0, + "major" + ], + [ + 0, + "advisor" + ], + [ + 0, + "city code" + ], + [ + 1, + "faculty id" + ], + [ + 1, + "last name" + ], + [ + 1, + "first name" + ], + [ + 1, + "rank" + ], + [ + 1, + "sex" + ], + [ + 1, + "phone" + ], + [ + 1, + "room" + ], + [ + 1, + "building" + ], + [ + 2, + "department number" + ], + [ + 2, + "division" + ], + [ + 2, + "department name" + ], + [ + 2, + "room" + ], + [ + 2, + "building" + ], + [ + 2, + "department phone" + ], + [ + 3, + "faculty id" + ], + [ + 3, + "department number" + ], + [ + 3, + "appt type" + ], + [ + 4, + "course id" + ], + [ + 4, + "course name" + ], + [ + 4, + "credits" + ], + [ + 4, + "instructor" + ], + [ + 4, + "days" + ], + [ + 4, + "hours" + ], + [ + 4, + "department number" + ], + [ + 5, + "student id" + ], + [ + 5, + "department number" + ], + [ + 6, + "student id" + ], + [ + 6, + "course id" + ], + [ + 6, + "grade" + ], + [ + 7, + "letter grade" + ], + [ + 7, + "grade point" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "StuID" + ], + [ + 0, + "LName" + ], + [ + 0, + "Fname" + ], + [ + 0, + "Age" + ], + [ + 0, + "Sex" + ], + [ + 0, + "Major" + ], + [ + 0, + "Advisor" + ], + [ + 0, + "city_code" + ], + [ + 1, + "FacID" + ], + [ + 1, + "Lname" + ], + [ + 1, + "Fname" + ], + [ + 1, + "Rank" + ], + [ + 1, + "Sex" + ], + [ + 1, + "Phone" + ], + [ + 1, + "Room" + ], + [ + 1, + "Building" + ], + [ + 2, + "DNO" + ], + [ + 2, + "Division" + ], + [ + 2, + "DName" + ], + [ + 2, + "Room" + ], + [ + 2, + "Building" + ], + [ + 2, + "DPhone" + ], + [ + 3, + "FacID" + ], + [ + 3, + "DNO" + ], + [ + 3, + "Appt_Type" + ], + [ + 4, + "CID" + ], + [ + 4, + "CName" + ], + [ + 4, + "Credits" + ], + [ + 4, + "Instructor" + ], + [ + 4, + "Days" + ], + [ + 4, + "Hours" + ], + [ + 4, + "DNO" + ], + [ + 5, + "StuID" + ], + [ + 5, + "DNO" + ], + [ + 6, + "StuID" + ], + [ + 6, + "CID" + ], + [ + 6, + "Grade" + ], + [ + 7, + "lettergrade" + ], + [ + 7, + "gradepoint" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "number" + ], + "db_id": "college_3", + "foreign_keys": [ + [ + 24, + 17 + ], + [ + 23, + 9 + ], + [ + 32, + 17 + ], + [ + 29, + 9 + ], + [ + 34, + 17 + ], + [ + 33, + 1 + ], + [ + 37, + 38 + ], + [ + 36, + 26 + ], + [ + 35, + 1 + ] + ], + "primary_keys": [ + 1, + 9, + 17, + 26, + 38 + ], + "table_names": [ + "student", + "faculty", + "department", + "member of", + "course", + "minor in", + "enrolled in", + "grade conversion" + ], + "table_names_original": [ + "Student", + "Faculty", + "Department", + "Member_of", + "Course", + "Minor_in", + "Enrolled_in", + "Gradeconversion" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "course id" + ], + [ + 0, + "staring date" + ], + [ + 0, + "course" + ], + [ + 1, + "teacher id" + ], + [ + 1, + "name" + ], + [ + 1, + "age" + ], + [ + 1, + "hometown" + ], + [ + 2, + "course id" + ], + [ + 2, + "teacher id" + ], + [ + 2, + "grade" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Course_ID" + ], + [ + 0, + "Staring_Date" + ], + [ + 0, + "Course" + ], + [ + 1, + "Teacher_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Age" + ], + [ + 1, + "Hometown" + ], + [ + 2, + "Course_ID" + ], + [ + 2, + "Teacher_ID" + ], + [ + 2, + "Grade" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number" + ], + "db_id": "course_teach", + "foreign_keys": [ + [ + 9, + 4 + ], + [ + 8, + 1 + ] + ], + "primary_keys": [ + 1, + 4, + 8 + ], + "table_names": [ + "course", + "teacher", + "course arrange" + ], + "table_names_original": [ + "course", + "teacher", + "course_arrange" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "roller coaster id" + ], + [ + 0, + "name" + ], + [ + 0, + "park" + ], + [ + 0, + "country id" + ], + [ + 0, + "length" + ], + [ + 0, + "height" + ], + [ + 0, + "speed" + ], + [ + 0, + "opened" + ], + [ + 0, + "status" + ], + [ + 1, + "country id" + ], + [ + 1, + "name" + ], + [ + 1, + "population" + ], + [ + 1, + "area" + ], + [ + 1, + "languages" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Roller_Coaster_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Park" + ], + [ + 0, + "Country_ID" + ], + [ + 0, + "Length" + ], + [ + 0, + "Height" + ], + [ + 0, + "Speed" + ], + [ + 0, + "Opened" + ], + [ + 0, + "Status" + ], + [ + 1, + "Country_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Population" + ], + [ + 1, + "Area" + ], + [ + 1, + "Languages" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "number", + "number", + "text" + ], + "db_id": "roller_coaster", + "foreign_keys": [ + [ + 4, + 10 + ] + ], + "primary_keys": [ + 1, + 10 + ], + "table_names": [ + "roller coaster", + "country" + ], + "table_names_original": [ + "roller_coaster", + "country" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "product id" + ], + [ + 0, + "product name" + ], + [ + 0, + "product price" + ], + [ + 0, + "product description" + ], + [ + 1, + "address id" + ], + [ + 1, + "address details" + ], + [ + 1, + "city" + ], + [ + 1, + "zip postcode" + ], + [ + 1, + "state province county" + ], + [ + 1, + "country" + ], + [ + 2, + "customer id" + ], + [ + 2, + "payment method" + ], + [ + 2, + "customer name" + ], + [ + 2, + "customer phone" + ], + [ + 2, + "customer email" + ], + [ + 2, + "date became customer" + ], + [ + 3, + "regular order id" + ], + [ + 3, + "distributer id" + ], + [ + 4, + "regular order id" + ], + [ + 4, + "product id" + ], + [ + 5, + "actual order id" + ], + [ + 5, + "order status code" + ], + [ + 5, + "regular order id" + ], + [ + 5, + "actual order date" + ], + [ + 6, + "actual order id" + ], + [ + 6, + "product id" + ], + [ + 7, + "customer id" + ], + [ + 7, + "address id" + ], + [ + 7, + "date from" + ], + [ + 7, + "address type" + ], + [ + 7, + "date to" + ], + [ + 8, + "route id" + ], + [ + 8, + "route name" + ], + [ + 8, + "other route details" + ], + [ + 9, + "location code" + ], + [ + 9, + "route id" + ], + [ + 9, + "location address id" + ], + [ + 9, + "location name" + ], + [ + 10, + "truck id" + ], + [ + 10, + "truck licence number" + ], + [ + 10, + "truck details" + ], + [ + 11, + "employee id" + ], + [ + 11, + "employee address id" + ], + [ + 11, + "employee name" + ], + [ + 11, + "employee phone" + ], + [ + 12, + "location code" + ], + [ + 12, + "actual order id" + ], + [ + 12, + "delivery status code" + ], + [ + 12, + "driver employee id" + ], + [ + 12, + "truck id" + ], + [ + 12, + "delivery date" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "product_id" + ], + [ + 0, + "product_name" + ], + [ + 0, + "product_price" + ], + [ + 0, + "product_description" + ], + [ + 1, + "address_id" + ], + [ + 1, + "address_details" + ], + [ + 1, + "city" + ], + [ + 1, + "zip_postcode" + ], + [ + 1, + "state_province_county" + ], + [ + 1, + "country" + ], + [ + 2, + "customer_id" + ], + [ + 2, + "payment_method" + ], + [ + 2, + "customer_name" + ], + [ + 2, + "customer_phone" + ], + [ + 2, + "customer_email" + ], + [ + 2, + "date_became_customer" + ], + [ + 3, + "regular_order_id" + ], + [ + 3, + "distributer_id" + ], + [ + 4, + "regular_order_id" + ], + [ + 4, + "product_id" + ], + [ + 5, + "actual_order_id" + ], + [ + 5, + "order_status_code" + ], + [ + 5, + "regular_order_id" + ], + [ + 5, + "actual_order_date" + ], + [ + 6, + "actual_order_id" + ], + [ + 6, + "product_id" + ], + [ + 7, + "customer_id" + ], + [ + 7, + "address_id" + ], + [ + 7, + "date_from" + ], + [ + 7, + "address_type" + ], + [ + 7, + "date_to" + ], + [ + 8, + "route_id" + ], + [ + 8, + "route_name" + ], + [ + 8, + "other_route_details" + ], + [ + 9, + "location_code" + ], + [ + 9, + "route_id" + ], + [ + 9, + "location_address_id" + ], + [ + 9, + "location_name" + ], + [ + 10, + "truck_id" + ], + [ + 10, + "truck_licence_number" + ], + [ + 10, + "truck_details" + ], + [ + 11, + "employee_id" + ], + [ + 11, + "employee_address_id" + ], + [ + 11, + "employee_name" + ], + [ + 11, + "employee_phone" + ], + [ + 12, + "location_code" + ], + [ + 12, + "actual_order_id" + ], + [ + 12, + "delivery_status_code" + ], + [ + 12, + "driver_employee_id" + ], + [ + 12, + "truck_id" + ], + [ + 12, + "delivery_date" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "time", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "time", + "number", + "number", + "number", + "number", + "time", + "text", + "time", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "number", + "number", + "time" + ], + "db_id": "customer_deliveries", + "foreign_keys": [ + [ + 18, + 11 + ], + [ + 19, + 17 + ], + [ + 20, + 1 + ], + [ + 23, + 17 + ], + [ + 25, + 21 + ], + [ + 26, + 1 + ], + [ + 28, + 5 + ], + [ + 27, + 11 + ], + [ + 36, + 32 + ], + [ + 37, + 5 + ], + [ + 43, + 5 + ], + [ + 49, + 42 + ], + [ + 46, + 35 + ], + [ + 47, + 21 + ], + [ + 50, + 39 + ] + ], + "primary_keys": [ + 1, + 5, + 11, + 17, + 21, + 32, + 35, + 39, + 42 + ], + "table_names": [ + "products", + "addresses", + "customers", + "regular orders", + "regular order products", + "actual orders", + "actual order products", + "customer addresses", + "delivery routes", + "delivery route locations", + "trucks", + "employees", + "order deliveries" + ], + "table_names_original": [ + "Products", + "Addresses", + "Customers", + "Regular_Orders", + "Regular_Order_Products", + "Actual_Orders", + "Actual_Order_Products", + "Customer_Addresses", + "Delivery_Routes", + "Delivery_Route_Locations", + "Trucks", + "Employees", + "Order_Deliveries" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "home games" + ], + [ + 0, + "average attendance" + ], + [ + 0, + "total attendance" + ], + [ + 0, + "capacity percentage" + ], + [ + 1, + "stadium id" + ], + [ + 1, + "id" + ], + [ + 1, + "season" + ], + [ + 1, + "date" + ], + [ + 1, + "home team" + ], + [ + 1, + "away team" + ], + [ + 1, + "score" + ], + [ + 1, + "competition" + ], + [ + 2, + "game id" + ], + [ + 2, + "id" + ], + [ + 2, + "player" + ], + [ + 2, + "injury" + ], + [ + 2, + "number of matches" + ], + [ + 2, + "source" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "Home_Games" + ], + [ + 0, + "Average_Attendance" + ], + [ + 0, + "Total_Attendance" + ], + [ + 0, + "Capacity_Percentage" + ], + [ + 1, + "stadium_id" + ], + [ + 1, + "id" + ], + [ + 1, + "Season" + ], + [ + 1, + "Date" + ], + [ + 1, + "Home_team" + ], + [ + 1, + "Away_team" + ], + [ + 1, + "Score" + ], + [ + 1, + "Competition" + ], + [ + 2, + "game_id" + ], + [ + 2, + "id" + ], + [ + 2, + "Player" + ], + [ + 2, + "Injury" + ], + [ + 2, + "Number_of_matches" + ], + [ + 2, + "Source" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text" + ], + "db_id": "game_injury", + "foreign_keys": [ + [ + 7, + 1 + ], + [ + 15, + 8 + ] + ], + "primary_keys": [ + 1, + 8, + 16 + ], + "table_names": [ + "stadium", + "game", + "injury accident" + ], + "table_names_original": [ + "stadium", + "game", + "injury_accident" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "school id" + ], + [ + 0, + "school name" + ], + [ + 0, + "location" + ], + [ + 0, + "mascot" + ], + [ + 0, + "enrollment" + ], + [ + 0, + "ihsaa class" + ], + [ + 0, + "ihsaa football class" + ], + [ + 0, + "county" + ], + [ + 1, + "school id" + ], + [ + 1, + "year" + ], + [ + 1, + "budgeted" + ], + [ + 1, + "total budget percent budgeted" + ], + [ + 1, + "invested" + ], + [ + 1, + "total budget percent invested" + ], + [ + 1, + "budget invested percent" + ], + [ + 2, + "endowment id" + ], + [ + 2, + "school id" + ], + [ + 2, + "donator name" + ], + [ + 2, + "amount" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "School_id" + ], + [ + 0, + "School_name" + ], + [ + 0, + "Location" + ], + [ + 0, + "Mascot" + ], + [ + 0, + "Enrollment" + ], + [ + 0, + "IHSAA_Class" + ], + [ + 0, + "IHSAA_Football_Class" + ], + [ + 0, + "County" + ], + [ + 1, + "School_id" + ], + [ + 1, + "Year" + ], + [ + 1, + "Budgeted" + ], + [ + 1, + "total_budget_percent_budgeted" + ], + [ + 1, + "Invested" + ], + [ + 1, + "total_budget_percent_invested" + ], + [ + 1, + "Budget_invested_percent" + ], + [ + 2, + "endowment_id" + ], + [ + 2, + "School_id" + ], + [ + 2, + "donator_name" + ], + [ + 2, + "amount" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "text", + "number" + ], + "db_id": "school_finance", + "foreign_keys": [ + [ + 9, + 1 + ], + [ + 17, + 1 + ] + ], + "primary_keys": [ + 1, + 9, + 16 + ], + "table_names": [ + "school", + "budget", + "endowment" + ], + "table_names_original": [ + "School", + "budget", + "endowment" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "venue id" + ], + [ + 0, + "venue name" + ], + [ + 1, + "author id" + ], + [ + 1, + "author name" + ], + [ + 2, + "dataset id" + ], + [ + 2, + "dataset name" + ], + [ + 3, + "journal id" + ], + [ + 3, + "journal name" + ], + [ + 4, + "key phrase id" + ], + [ + 4, + "key phrase name" + ], + [ + 5, + "paper id" + ], + [ + 5, + "title" + ], + [ + 5, + "venue id" + ], + [ + 5, + "year" + ], + [ + 5, + "number citing" + ], + [ + 5, + "number cited by" + ], + [ + 5, + "journal id" + ], + [ + 6, + "citing paper id" + ], + [ + 6, + "cited paper id" + ], + [ + 7, + "paper id" + ], + [ + 7, + "dataset id" + ], + [ + 8, + "paper id" + ], + [ + 8, + "key phrase id" + ], + [ + 9, + "paper id" + ], + [ + 9, + "author id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "venueId" + ], + [ + 0, + "venueName" + ], + [ + 1, + "authorId" + ], + [ + 1, + "authorName" + ], + [ + 2, + "datasetId" + ], + [ + 2, + "datasetName" + ], + [ + 3, + "journalId" + ], + [ + 3, + "journalName" + ], + [ + 4, + "keyphraseId" + ], + [ + 4, + "keyphraseName" + ], + [ + 5, + "paperId" + ], + [ + 5, + "title" + ], + [ + 5, + "venueId" + ], + [ + 5, + "year" + ], + [ + 5, + "numCiting" + ], + [ + 5, + "numCitedBy" + ], + [ + 5, + "journalId" + ], + [ + 6, + "citingPaperId" + ], + [ + 6, + "citedPaperId" + ], + [ + 7, + "paperId" + ], + [ + 7, + "datasetId" + ], + [ + 8, + "paperId" + ], + [ + 8, + "keyphraseId" + ], + [ + 9, + "paperId" + ], + [ + 9, + "authorId" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "scholar", + "foreign_keys": [ + [ + 13, + 1 + ], + [ + 17, + 7 + ], + [ + 18, + 11 + ], + [ + 19, + 11 + ], + [ + 23, + 9 + ], + [ + 22, + 11 + ], + [ + 25, + 3 + ], + [ + 24, + 11 + ] + ], + "primary_keys": [ + 1, + 3, + 5, + 7, + 9, + 11, + 18, + 21, + 23, + 24 + ], + "table_names": [ + "venue", + "author", + "dataset", + "journal", + "key phrase", + "paper", + "cite", + "paper dataset", + "paper key phrase", + "writes" + ], + "table_names_original": [ + "venue", + "author", + "dataset", + "journal", + "keyphrase", + "paper", + "cite", + "paperDataset", + "paperKeyphrase", + "writes" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "area code" + ], + [ + 0, + "state" + ], + [ + 1, + "contestant number" + ], + [ + 1, + "contestant name" + ], + [ + 2, + "vote id" + ], + [ + 2, + "phone number" + ], + [ + 2, + "state" + ], + [ + 2, + "contestant number" + ], + [ + 2, + "created" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "area_code" + ], + [ + 0, + "state" + ], + [ + 1, + "contestant_number" + ], + [ + 1, + "contestant_name" + ], + [ + 2, + "vote_id" + ], + [ + 2, + "phone_number" + ], + [ + 2, + "state" + ], + [ + 2, + "contestant_number" + ], + [ + 2, + "created" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "time" + ], + "db_id": "voter_1", + "foreign_keys": [ + [ + 8, + 3 + ], + [ + 7, + 2 + ] + ], + "primary_keys": [ + 1, + 3, + 5 + ], + "table_names": [ + "area code state", + "contestants", + "votes" + ], + "table_names_original": [ + "AREA_CODE_STATE", + "CONTESTANTS", + "VOTES" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "country id" + ], + [ + 0, + "country name" + ], + [ + 0, + "capital" + ], + [ + 0, + "official native language" + ], + [ + 1, + "team id" + ], + [ + 1, + "name" + ], + [ + 2, + "season" + ], + [ + 2, + "player" + ], + [ + 2, + "position" + ], + [ + 2, + "country" + ], + [ + 2, + "team" + ], + [ + 2, + "draft pick number" + ], + [ + 2, + "draft class" + ], + [ + 2, + "college" + ], + [ + 3, + "player id" + ], + [ + 3, + "player" + ], + [ + 3, + "years played" + ], + [ + 3, + "total wl" + ], + [ + 3, + "singles wl" + ], + [ + 3, + "doubles wl" + ], + [ + 3, + "team" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Country_id" + ], + [ + 0, + "Country_name" + ], + [ + 0, + "Capital" + ], + [ + 0, + "Official_native_language" + ], + [ + 1, + "Team_id" + ], + [ + 1, + "Name" + ], + [ + 2, + "Season" + ], + [ + 2, + "Player" + ], + [ + 2, + "Position" + ], + [ + 2, + "Country" + ], + [ + 2, + "Team" + ], + [ + 2, + "Draft_Pick_Number" + ], + [ + 2, + "Draft_Class" + ], + [ + 2, + "College" + ], + [ + 3, + "Player_ID" + ], + [ + 3, + "Player" + ], + [ + 3, + "Years_Played" + ], + [ + 3, + "Total_WL" + ], + [ + 3, + "Singles_WL" + ], + [ + 3, + "Doubles_WL" + ], + [ + 3, + "Team" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number" + ], + "db_id": "match_season", + "foreign_keys": [ + [ + 11, + 5 + ], + [ + 10, + 1 + ], + [ + 21, + 5 + ] + ], + "primary_keys": [ + 1, + 5, + 7, + 15 + ], + "table_names": [ + "country", + "team", + "match season", + "player" + ], + "table_names_original": [ + "country", + "team", + "match_season", + "player" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "customer id" + ], + [ + 0, + "name" + ], + [ + 1, + "customer id" + ], + [ + 1, + "balance" + ], + [ + 2, + "customer id" + ], + [ + 2, + "balance" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "custid" + ], + [ + 0, + "name" + ], + [ + 1, + "custid" + ], + [ + 1, + "balance" + ], + [ + 2, + "custid" + ], + [ + 2, + "balance" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "small_bank_1", + "foreign_keys": [ + [ + 3, + 1 + ], + [ + 5, + 1 + ] + ], + "primary_keys": [ + 1, + 3, + 5 + ], + "table_names": [ + "accounts", + "savings", + "checking" + ], + "table_names_original": [ + "ACCOUNTS", + "SAVINGS", + "CHECKING" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "player id" + ], + [ + 0, + "first name" + ], + [ + 0, + "last name" + ], + [ + 0, + "hand" + ], + [ + 0, + "birth date" + ], + [ + 0, + "country code" + ], + [ + 1, + "best of" + ], + [ + 1, + "draw size" + ], + [ + 1, + "loser age" + ], + [ + 1, + "loser entry" + ], + [ + 1, + "loser hand" + ], + [ + 1, + "loser ht" + ], + [ + 1, + "loser id" + ], + [ + 1, + "loser ioc" + ], + [ + 1, + "loser name" + ], + [ + 1, + "loser rank" + ], + [ + 1, + "loser rank points" + ], + [ + 1, + "loser seed" + ], + [ + 1, + "match num" + ], + [ + 1, + "minutes" + ], + [ + 1, + "round" + ], + [ + 1, + "score" + ], + [ + 1, + "surface" + ], + [ + 1, + "tourney date" + ], + [ + 1, + "tourney id" + ], + [ + 1, + "tourney level" + ], + [ + 1, + "tourney name" + ], + [ + 1, + "winner age" + ], + [ + 1, + "winner entry" + ], + [ + 1, + "winner hand" + ], + [ + 1, + "winner ht" + ], + [ + 1, + "winner id" + ], + [ + 1, + "winner ioc" + ], + [ + 1, + "winner name" + ], + [ + 1, + "winner rank" + ], + [ + 1, + "winner rank points" + ], + [ + 1, + "winner seed" + ], + [ + 1, + "year" + ], + [ + 2, + "ranking date" + ], + [ + 2, + "ranking" + ], + [ + 2, + "player id" + ], + [ + 2, + "ranking points" + ], + [ + 2, + "tours" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "player_id" + ], + [ + 0, + "first_name" + ], + [ + 0, + "last_name" + ], + [ + 0, + "hand" + ], + [ + 0, + "birth_date" + ], + [ + 0, + "country_code" + ], + [ + 1, + "best_of" + ], + [ + 1, + "draw_size" + ], + [ + 1, + "loser_age" + ], + [ + 1, + "loser_entry" + ], + [ + 1, + "loser_hand" + ], + [ + 1, + "loser_ht" + ], + [ + 1, + "loser_id" + ], + [ + 1, + "loser_ioc" + ], + [ + 1, + "loser_name" + ], + [ + 1, + "loser_rank" + ], + [ + 1, + "loser_rank_points" + ], + [ + 1, + "loser_seed" + ], + [ + 1, + "match_num" + ], + [ + 1, + "minutes" + ], + [ + 1, + "round" + ], + [ + 1, + "score" + ], + [ + 1, + "surface" + ], + [ + 1, + "tourney_date" + ], + [ + 1, + "tourney_id" + ], + [ + 1, + "tourney_level" + ], + [ + 1, + "tourney_name" + ], + [ + 1, + "winner_age" + ], + [ + 1, + "winner_entry" + ], + [ + 1, + "winner_hand" + ], + [ + 1, + "winner_ht" + ], + [ + 1, + "winner_id" + ], + [ + 1, + "winner_ioc" + ], + [ + 1, + "winner_name" + ], + [ + 1, + "winner_rank" + ], + [ + 1, + "winner_rank_points" + ], + [ + 1, + "winner_seed" + ], + [ + 1, + "year" + ], + [ + 2, + "ranking_date" + ], + [ + 2, + "ranking" + ], + [ + 2, + "player_id" + ], + [ + 2, + "ranking_points" + ], + [ + 2, + "tours" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "time", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "time", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "time", + "number", + "number", + "number", + "number" + ], + "db_id": "wta_1", + "foreign_keys": [ + [ + 32, + 1 + ], + [ + 13, + 1 + ], + [ + 41, + 1 + ] + ], + "primary_keys": [ + 1 + ], + "table_names": [ + "players", + "matches", + "rankings" + ], + "table_names_original": [ + "players", + "matches", + "rankings" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "bid" + ], + [ + 0, + "business id" + ], + [ + 0, + "name" + ], + [ + 0, + "full address" + ], + [ + 0, + "city" + ], + [ + 0, + "latitude" + ], + [ + 0, + "longitude" + ], + [ + 0, + "review count" + ], + [ + 0, + "is open" + ], + [ + 0, + "rating" + ], + [ + 0, + "state" + ], + [ + 1, + "id" + ], + [ + 1, + "business id" + ], + [ + 1, + "category name" + ], + [ + 2, + "uid" + ], + [ + 2, + "user id" + ], + [ + 2, + "name" + ], + [ + 3, + "cid" + ], + [ + 3, + "business id" + ], + [ + 3, + "count" + ], + [ + 3, + "day" + ], + [ + 4, + "id" + ], + [ + 4, + "business id" + ], + [ + 4, + "neighbourhood name" + ], + [ + 5, + "rid" + ], + [ + 5, + "business id" + ], + [ + 5, + "user id" + ], + [ + 5, + "rating" + ], + [ + 5, + "text" + ], + [ + 5, + "year" + ], + [ + 5, + "month" + ], + [ + 6, + "tip id" + ], + [ + 6, + "business id" + ], + [ + 6, + "text" + ], + [ + 6, + "user id" + ], + [ + 6, + "likes" + ], + [ + 6, + "year" + ], + [ + 6, + "month" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "bid" + ], + [ + 0, + "business_id" + ], + [ + 0, + "name" + ], + [ + 0, + "full_address" + ], + [ + 0, + "city" + ], + [ + 0, + "latitude" + ], + [ + 0, + "longitude" + ], + [ + 0, + "review_count" + ], + [ + 0, + "is_open" + ], + [ + 0, + "rating" + ], + [ + 0, + "state" + ], + [ + 1, + "id" + ], + [ + 1, + "business_id" + ], + [ + 1, + "category_name" + ], + [ + 2, + "uid" + ], + [ + 2, + "user_id" + ], + [ + 2, + "name" + ], + [ + 3, + "cid" + ], + [ + 3, + "business_id" + ], + [ + 3, + "count" + ], + [ + 3, + "day" + ], + [ + 4, + "id" + ], + [ + 4, + "business_id" + ], + [ + 4, + "neighbourhood_name" + ], + [ + 5, + "rid" + ], + [ + 5, + "business_id" + ], + [ + 5, + "user_id" + ], + [ + 5, + "rating" + ], + [ + 5, + "text" + ], + [ + 5, + "year" + ], + [ + 5, + "month" + ], + [ + 6, + "tip_id" + ], + [ + 6, + "business_id" + ], + [ + 6, + "text" + ], + [ + 6, + "user_id" + ], + [ + 6, + "likes" + ], + [ + 6, + "year" + ], + [ + 6, + "month" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text" + ], + "db_id": "yelp", + "foreign_keys": [ + [ + 13, + 2 + ], + [ + 19, + 2 + ], + [ + 23, + 2 + ], + [ + 27, + 16 + ], + [ + 26, + 2 + ], + [ + 35, + 16 + ], + [ + 33, + 2 + ] + ], + "primary_keys": [ + 1, + 12, + 15, + 18, + 22, + 25, + 32 + ], + "table_names": [ + "business", + "category", + "user", + "checkin", + "neighbourhood", + "review", + "tip" + ], + "table_names_original": [ + "business", + "category", + "user", + "checkin", + "neighbourhood", + "review", + "tip" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "last name" + ], + [ + 0, + "first name" + ], + [ + 0, + "grade" + ], + [ + 0, + "class room" + ], + [ + 1, + "last name" + ], + [ + 1, + "first name" + ], + [ + 1, + "class room" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "LastName" + ], + [ + 0, + "FirstName" + ], + [ + 0, + "Grade" + ], + [ + 0, + "Classroom" + ], + [ + 1, + "LastName" + ], + [ + 1, + "FirstName" + ], + [ + 1, + "Classroom" + ] + ], + "column_types": [ + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "number" + ], + "db_id": "student_1", + "foreign_keys": [], + "primary_keys": [ + 1, + 5 + ], + "table_names": [ + "list", + "teachers" + ], + "table_names_original": [ + "list", + "teachers" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "manufacturer id" + ], + [ + 0, + "open year" + ], + [ + 0, + "name" + ], + [ + 0, + "num of factories" + ], + [ + 0, + "num of shops" + ], + [ + 1, + "furniture id" + ], + [ + 1, + "name" + ], + [ + 1, + "num of component" + ], + [ + 1, + "market rate" + ], + [ + 2, + "manufacturer id" + ], + [ + 2, + "furniture id" + ], + [ + 2, + "price in dollar" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Manufacturer_ID" + ], + [ + 0, + "Open_Year" + ], + [ + 0, + "Name" + ], + [ + 0, + "Num_of_Factories" + ], + [ + 0, + "Num_of_Shops" + ], + [ + 1, + "Furniture_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Num_of_Component" + ], + [ + 1, + "Market_Rate" + ], + [ + 2, + "Manufacturer_ID" + ], + [ + 2, + "Furniture_ID" + ], + [ + 2, + "Price_in_Dollar" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "manufacturer", + "foreign_keys": [ + [ + 11, + 6 + ], + [ + 10, + 1 + ] + ], + "primary_keys": [ + 1, + 6, + 10 + ], + "table_names": [ + "manufacturer", + "furniture", + "furniture manufacte" + ], + "table_names_original": [ + "manufacturer", + "furniture", + "furniture_manufacte" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "name" + ], + [ + 0, + "seq" + ], + [ + 1, + "id" + ], + [ + 1, + "name" + ], + [ + 2, + "id" + ], + [ + 2, + "title" + ], + [ + 2, + "artist id" + ], + [ + 3, + "id" + ], + [ + 3, + "last name" + ], + [ + 3, + "first name" + ], + [ + 3, + "title" + ], + [ + 3, + "reports to" + ], + [ + 3, + "birth date" + ], + [ + 3, + "hire date" + ], + [ + 3, + "address" + ], + [ + 3, + "city" + ], + [ + 3, + "state" + ], + [ + 3, + "country" + ], + [ + 3, + "postal code" + ], + [ + 3, + "phone" + ], + [ + 3, + "fax" + ], + [ + 3, + "email" + ], + [ + 4, + "id" + ], + [ + 4, + "first name" + ], + [ + 4, + "last name" + ], + [ + 4, + "company" + ], + [ + 4, + "address" + ], + [ + 4, + "city" + ], + [ + 4, + "state" + ], + [ + 4, + "country" + ], + [ + 4, + "postal code" + ], + [ + 4, + "phone" + ], + [ + 4, + "fax" + ], + [ + 4, + "email" + ], + [ + 4, + "support rep id" + ], + [ + 5, + "id" + ], + [ + 5, + "name" + ], + [ + 6, + "id" + ], + [ + 6, + "customer id" + ], + [ + 6, + "invoice date" + ], + [ + 6, + "billing address" + ], + [ + 6, + "billing city" + ], + [ + 6, + "billing state" + ], + [ + 6, + "billing country" + ], + [ + 6, + "billing postal code" + ], + [ + 6, + "total" + ], + [ + 7, + "id" + ], + [ + 7, + "name" + ], + [ + 8, + "id" + ], + [ + 8, + "name" + ], + [ + 8, + "album id" + ], + [ + 8, + "media type id" + ], + [ + 8, + "genre id" + ], + [ + 8, + "composer" + ], + [ + 8, + "milliseconds" + ], + [ + 8, + "bytes" + ], + [ + 8, + "unit price" + ], + [ + 9, + "id" + ], + [ + 9, + "invoice id" + ], + [ + 9, + "track id" + ], + [ + 9, + "unit price" + ], + [ + 9, + "quantity" + ], + [ + 10, + "id" + ], + [ + 10, + "name" + ], + [ + 11, + "playlist id" + ], + [ + 11, + "track id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 1, + "name" + ], + [ + 1, + "seq" + ], + [ + 2, + "id" + ], + [ + 2, + "title" + ], + [ + 2, + "artist_id" + ], + [ + 3, + "id" + ], + [ + 3, + "last_name" + ], + [ + 3, + "first_name" + ], + [ + 3, + "title" + ], + [ + 3, + "reports_to" + ], + [ + 3, + "birth_date" + ], + [ + 3, + "hire_date" + ], + [ + 3, + "address" + ], + [ + 3, + "city" + ], + [ + 3, + "state" + ], + [ + 3, + "country" + ], + [ + 3, + "postal_code" + ], + [ + 3, + "phone" + ], + [ + 3, + "fax" + ], + [ + 3, + "email" + ], + [ + 4, + "id" + ], + [ + 4, + "first_name" + ], + [ + 4, + "last_name" + ], + [ + 4, + "company" + ], + [ + 4, + "address" + ], + [ + 4, + "city" + ], + [ + 4, + "state" + ], + [ + 4, + "country" + ], + [ + 4, + "postal_code" + ], + [ + 4, + "phone" + ], + [ + 4, + "fax" + ], + [ + 4, + "email" + ], + [ + 4, + "support_rep_id" + ], + [ + 5, + "id" + ], + [ + 5, + "name" + ], + [ + 6, + "id" + ], + [ + 6, + "customer_id" + ], + [ + 6, + "invoice_date" + ], + [ + 6, + "billing_address" + ], + [ + 6, + "billing_city" + ], + [ + 6, + "billing_state" + ], + [ + 6, + "billing_country" + ], + [ + 6, + "billing_postal_code" + ], + [ + 6, + "total" + ], + [ + 7, + "id" + ], + [ + 7, + "name" + ], + [ + 8, + "id" + ], + [ + 8, + "name" + ], + [ + 8, + "album_id" + ], + [ + 8, + "media_type_id" + ], + [ + 8, + "genre_id" + ], + [ + 8, + "composer" + ], + [ + 8, + "milliseconds" + ], + [ + 8, + "bytes" + ], + [ + 8, + "unit_price" + ], + [ + 9, + "id" + ], + [ + 9, + "invoice_id" + ], + [ + 9, + "track_id" + ], + [ + 9, + "unit_price" + ], + [ + 9, + "quantity" + ], + [ + 10, + "id" + ], + [ + 10, + "name" + ], + [ + 11, + "playlist_id" + ], + [ + 11, + "track_id" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "time", + "time", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "number", + "number", + "time", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number" + ], + "db_id": "store_1", + "foreign_keys": [ + [ + 7, + 1 + ], + [ + 12, + 8 + ], + [ + 35, + 8 + ], + [ + 39, + 23 + ], + [ + 52, + 47 + ], + [ + 53, + 36 + ], + [ + 51, + 5 + ], + [ + 60, + 49 + ], + [ + 59, + 38 + ], + [ + 66, + 49 + ], + [ + 65, + 63 + ] + ], + "primary_keys": [ + 1, + 5, + 8, + 23, + 36, + 38, + 47, + 49, + 58, + 63, + 65 + ], + "table_names": [ + "sqlite sequence", + "artists", + "albums", + "employees", + "customers", + "genres", + "invoices", + "media types", + "tracks", + "invoice lines", + "playlists", + "playlist tracks" + ], + "table_names_original": [ + "artists", + "sqlite_sequence", + "albums", + "employees", + "customers", + "genres", + "invoices", + "media_types", + "tracks", + "invoice_lines", + "playlists", + "playlist_tracks" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "station id" + ], + [ + 0, + "name" + ], + [ + 0, + "annual entry exit" + ], + [ + 0, + "annual interchanges" + ], + [ + 0, + "total passengers" + ], + [ + 0, + "location" + ], + [ + 0, + "main services" + ], + [ + 0, + "number of platforms" + ], + [ + 1, + "train id" + ], + [ + 1, + "name" + ], + [ + 1, + "time" + ], + [ + 1, + "service" + ], + [ + 2, + "train id" + ], + [ + 2, + "station id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Station_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Annual_entry_exit" + ], + [ + 0, + "Annual_interchanges" + ], + [ + 0, + "Total_Passengers" + ], + [ + 0, + "Location" + ], + [ + 0, + "Main_Services" + ], + [ + 0, + "Number_of_Platforms" + ], + [ + 1, + "Train_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Time" + ], + [ + 1, + "Service" + ], + [ + 2, + "Train_ID" + ], + [ + 2, + "Station_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number" + ], + "db_id": "train_station", + "foreign_keys": [ + [ + 14, + 1 + ], + [ + 13, + 9 + ] + ], + "primary_keys": [ + 1, + 9, + 13 + ], + "table_names": [ + "station", + "train", + "train station" + ], + "table_names_original": [ + "station", + "train", + "train_station" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "role code" + ], + [ + 0, + "role description" + ], + [ + 1, + "user id" + ], + [ + 1, + "role code" + ], + [ + 1, + "user name" + ], + [ + 1, + "user login" + ], + [ + 1, + "password" + ], + [ + 2, + "document structure code" + ], + [ + 2, + "parent document structure code" + ], + [ + 2, + "document structure description" + ], + [ + 3, + "functional area code" + ], + [ + 3, + "parent functional area code" + ], + [ + 3, + "functional area description" + ], + [ + 4, + "image id" + ], + [ + 4, + "image alt text" + ], + [ + 4, + "image name" + ], + [ + 4, + "image url" + ], + [ + 5, + "document code" + ], + [ + 5, + "document structure code" + ], + [ + 5, + "document type code" + ], + [ + 5, + "access count" + ], + [ + 5, + "document name" + ], + [ + 6, + "document code" + ], + [ + 6, + "functional area code" + ], + [ + 7, + "section id" + ], + [ + 7, + "document code" + ], + [ + 7, + "section sequence" + ], + [ + 7, + "section code" + ], + [ + 7, + "section title" + ], + [ + 8, + "section id" + ], + [ + 8, + "image id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "role_code" + ], + [ + 0, + "role_description" + ], + [ + 1, + "user_id" + ], + [ + 1, + "role_code" + ], + [ + 1, + "user_name" + ], + [ + 1, + "user_login" + ], + [ + 1, + "password" + ], + [ + 2, + "document_structure_code" + ], + [ + 2, + "parent_document_structure_code" + ], + [ + 2, + "document_structure_description" + ], + [ + 3, + "functional_area_code" + ], + [ + 3, + "parent_functional_area_code" + ], + [ + 3, + "functional_area_description" + ], + [ + 4, + "image_id" + ], + [ + 4, + "image_alt_text" + ], + [ + 4, + "image_name" + ], + [ + 4, + "image_url" + ], + [ + 5, + "document_code" + ], + [ + 5, + "document_structure_code" + ], + [ + 5, + "document_type_code" + ], + [ + 5, + "access_count" + ], + [ + 5, + "document_name" + ], + [ + 6, + "document_code" + ], + [ + 6, + "functional_area_code" + ], + [ + 7, + "section_id" + ], + [ + 7, + "document_code" + ], + [ + 7, + "section_sequence" + ], + [ + 7, + "section_code" + ], + [ + 7, + "section_title" + ], + [ + 8, + "section_id" + ], + [ + 8, + "image_id" + ] + ], + "column_types": [ + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "number" + ], + "db_id": "document_management", + "foreign_keys": [ + [ + 4, + 1 + ], + [ + 19, + 8 + ], + [ + 24, + 11 + ], + [ + 23, + 18 + ], + [ + 26, + 18 + ], + [ + 31, + 14 + ], + [ + 30, + 25 + ] + ], + "primary_keys": [ + 1, + 3, + 8, + 11, + 14, + 18, + 25, + 30 + ], + "table_names": [ + "roles", + "users", + "document structures", + "functional areas", + "images", + "documents", + "document functional areas", + "document sections", + "document sections images" + ], + "table_names_original": [ + "Roles", + "Users", + "Document_Structures", + "Functional_Areas", + "Images", + "Documents", + "Document_Functional_Areas", + "Document_Sections", + "Document_Sections_Images" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "circuit id" + ], + [ + 0, + "circuit reference" + ], + [ + 0, + "name" + ], + [ + 0, + "location" + ], + [ + 0, + "country" + ], + [ + 0, + "latitude" + ], + [ + 0, + "longitude" + ], + [ + 0, + "altitude" + ], + [ + 0, + "url" + ], + [ + 1, + "race id" + ], + [ + 1, + "year" + ], + [ + 1, + "round" + ], + [ + 1, + "circuit id" + ], + [ + 1, + "name" + ], + [ + 1, + "date" + ], + [ + 1, + "time" + ], + [ + 1, + "url" + ], + [ + 2, + "driver id" + ], + [ + 2, + "driver reference" + ], + [ + 2, + "number" + ], + [ + 2, + "code" + ], + [ + 2, + "forename" + ], + [ + 2, + "surname" + ], + [ + 2, + "dob" + ], + [ + 2, + "nationality" + ], + [ + 2, + "url" + ], + [ + 3, + "status id" + ], + [ + 3, + "status" + ], + [ + 4, + "year" + ], + [ + 4, + "url" + ], + [ + 5, + "constructor id" + ], + [ + 5, + "constructor reference" + ], + [ + 5, + "name" + ], + [ + 5, + "nationality" + ], + [ + 5, + "url" + ], + [ + 6, + "constructor standings id" + ], + [ + 6, + "race id" + ], + [ + 6, + "constructor id" + ], + [ + 6, + "points" + ], + [ + 6, + "position" + ], + [ + 6, + "position text" + ], + [ + 6, + "wins" + ], + [ + 7, + "result id" + ], + [ + 7, + "race id" + ], + [ + 7, + "driver id" + ], + [ + 7, + "constructor id" + ], + [ + 7, + "number" + ], + [ + 7, + "grid" + ], + [ + 7, + "position" + ], + [ + 7, + "position text" + ], + [ + 7, + "position order" + ], + [ + 7, + "points" + ], + [ + 7, + "laps" + ], + [ + 7, + "time" + ], + [ + 7, + "milliseconds" + ], + [ + 7, + "fastest lap" + ], + [ + 7, + "rank" + ], + [ + 7, + "fastest lap time" + ], + [ + 7, + "fastest lap speed" + ], + [ + 7, + "status id" + ], + [ + 8, + "driver standings id" + ], + [ + 8, + "race id" + ], + [ + 8, + "driver id" + ], + [ + 8, + "points" + ], + [ + 8, + "position" + ], + [ + 8, + "position text" + ], + [ + 8, + "wins" + ], + [ + 9, + "constructor results id" + ], + [ + 9, + "race id" + ], + [ + 9, + "constructor id" + ], + [ + 9, + "points" + ], + [ + 9, + "status" + ], + [ + 10, + "qualify id" + ], + [ + 10, + "race id" + ], + [ + 10, + "driver id" + ], + [ + 10, + "constructor id" + ], + [ + 10, + "number" + ], + [ + 10, + "position" + ], + [ + 10, + "q1" + ], + [ + 10, + "q2" + ], + [ + 10, + "q3" + ], + [ + 11, + "race id" + ], + [ + 11, + "driver id" + ], + [ + 11, + "stop" + ], + [ + 11, + "lap" + ], + [ + 11, + "time" + ], + [ + 11, + "duration" + ], + [ + 11, + "milliseconds" + ], + [ + 12, + "race id" + ], + [ + 12, + "driver id" + ], + [ + 12, + "lap" + ], + [ + 12, + "position" + ], + [ + 12, + "time" + ], + [ + 12, + "milliseconds" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "circuitId" + ], + [ + 0, + "circuitRef" + ], + [ + 0, + "name" + ], + [ + 0, + "location" + ], + [ + 0, + "country" + ], + [ + 0, + "lat" + ], + [ + 0, + "lng" + ], + [ + 0, + "alt" + ], + [ + 0, + "url" + ], + [ + 1, + "raceId" + ], + [ + 1, + "year" + ], + [ + 1, + "round" + ], + [ + 1, + "circuitId" + ], + [ + 1, + "name" + ], + [ + 1, + "date" + ], + [ + 1, + "time" + ], + [ + 1, + "url" + ], + [ + 2, + "driverId" + ], + [ + 2, + "driverRef" + ], + [ + 2, + "number" + ], + [ + 2, + "code" + ], + [ + 2, + "forename" + ], + [ + 2, + "surname" + ], + [ + 2, + "dob" + ], + [ + 2, + "nationality" + ], + [ + 2, + "url" + ], + [ + 3, + "statusId" + ], + [ + 3, + "status" + ], + [ + 4, + "year" + ], + [ + 4, + "url" + ], + [ + 5, + "constructorId" + ], + [ + 5, + "constructorRef" + ], + [ + 5, + "name" + ], + [ + 5, + "nationality" + ], + [ + 5, + "url" + ], + [ + 6, + "constructorStandingsId" + ], + [ + 6, + "raceId" + ], + [ + 6, + "constructorId" + ], + [ + 6, + "points" + ], + [ + 6, + "position" + ], + [ + 6, + "positionText" + ], + [ + 6, + "wins" + ], + [ + 7, + "resultId" + ], + [ + 7, + "raceId" + ], + [ + 7, + "driverId" + ], + [ + 7, + "constructorId" + ], + [ + 7, + "number" + ], + [ + 7, + "grid" + ], + [ + 7, + "position" + ], + [ + 7, + "positionText" + ], + [ + 7, + "positionOrder" + ], + [ + 7, + "points" + ], + [ + 7, + "laps" + ], + [ + 7, + "time" + ], + [ + 7, + "milliseconds" + ], + [ + 7, + "fastestLap" + ], + [ + 7, + "rank" + ], + [ + 7, + "fastestLapTime" + ], + [ + 7, + "fastestLapSpeed" + ], + [ + 7, + "statusId" + ], + [ + 8, + "driverStandingsId" + ], + [ + 8, + "raceId" + ], + [ + 8, + "driverId" + ], + [ + 8, + "points" + ], + [ + 8, + "position" + ], + [ + 8, + "positionText" + ], + [ + 8, + "wins" + ], + [ + 9, + "constructorResultsId" + ], + [ + 9, + "raceId" + ], + [ + 9, + "constructorId" + ], + [ + 9, + "points" + ], + [ + 9, + "status" + ], + [ + 10, + "qualifyId" + ], + [ + 10, + "raceId" + ], + [ + 10, + "driverId" + ], + [ + 10, + "constructorId" + ], + [ + 10, + "number" + ], + [ + 10, + "position" + ], + [ + 10, + "q1" + ], + [ + 10, + "q2" + ], + [ + 10, + "q3" + ], + [ + 11, + "raceId" + ], + [ + 11, + "driverId" + ], + [ + 11, + "stop" + ], + [ + 11, + "lap" + ], + [ + 11, + "time" + ], + [ + 11, + "duration" + ], + [ + 11, + "milliseconds" + ], + [ + 12, + "raceId" + ], + [ + 12, + "driverId" + ], + [ + 12, + "lap" + ], + [ + 12, + "position" + ], + [ + 12, + "time" + ], + [ + 12, + "milliseconds" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "number" + ], + "db_id": "formula_1", + "foreign_keys": [ + [ + 13, + 1 + ], + [ + 37, + 10 + ], + [ + 38, + 31 + ], + [ + 45, + 18 + ], + [ + 44, + 10 + ], + [ + 46, + 31 + ], + [ + 63, + 18 + ], + [ + 62, + 10 + ], + [ + 69, + 10 + ], + [ + 70, + 31 + ], + [ + 75, + 18 + ], + [ + 74, + 10 + ], + [ + 76, + 31 + ], + [ + 83, + 18 + ], + [ + 82, + 10 + ], + [ + 90, + 18 + ], + [ + 89, + 10 + ] + ], + "primary_keys": [ + 1, + 10, + 18, + 27, + 29, + 31, + 36, + 43, + 61, + 68, + 73, + 82, + 89 + ], + "table_names": [ + "circuits", + "races", + "drivers", + "status", + "seasons", + "constructors", + "constructor standings", + "results", + "driver standings", + "constructor results", + "qualifying", + "pit stops", + "lap times" + ], + "table_names_original": [ + "circuits", + "races", + "drivers", + "status", + "seasons", + "constructors", + "constructorStandings", + "results", + "driverStandings", + "constructorResults", + "qualifying", + "pitStops", + "lapTimes" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "student id" + ], + [ + 0, + "last name" + ], + [ + 0, + "first name" + ], + [ + 0, + "age" + ], + [ + 0, + "sex" + ], + [ + 0, + "major" + ], + [ + 0, + "advisor" + ], + [ + 0, + "city code" + ], + [ + 1, + "game id" + ], + [ + 1, + "game name" + ], + [ + 1, + "game type" + ], + [ + 2, + "student id" + ], + [ + 2, + "game id" + ], + [ + 2, + "hours played" + ], + [ + 3, + "student id" + ], + [ + 3, + "sport name" + ], + [ + 3, + "hours per week" + ], + [ + 3, + "games played" + ], + [ + 3, + "on scholarship" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "StuID" + ], + [ + 0, + "LName" + ], + [ + 0, + "Fname" + ], + [ + 0, + "Age" + ], + [ + 0, + "Sex" + ], + [ + 0, + "Major" + ], + [ + 0, + "Advisor" + ], + [ + 0, + "city_code" + ], + [ + 1, + "GameID" + ], + [ + 1, + "GName" + ], + [ + 1, + "GType" + ], + [ + 2, + "StuID" + ], + [ + 2, + "GameID" + ], + [ + 2, + "Hours_Played" + ], + [ + 3, + "StuID" + ], + [ + 3, + "SportName" + ], + [ + 3, + "HoursPerWeek" + ], + [ + 3, + "GamesPlayed" + ], + [ + 3, + "OnScholarship" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "text" + ], + "db_id": "game_1", + "foreign_keys": [ + [ + 12, + 1 + ], + [ + 13, + 9 + ], + [ + 15, + 1 + ] + ], + "primary_keys": [ + 1, + 9 + ], + "table_names": [ + "student", + "video games", + "plays games", + "sports info" + ], + "table_names_original": [ + "Student", + "Video_Games", + "Plays_Games", + "SportsInfo" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "branch id" + ], + [ + 0, + "bname" + ], + [ + 0, + "no of customers" + ], + [ + 0, + "city" + ], + [ + 0, + "state" + ], + [ + 1, + "customer id" + ], + [ + 1, + "customer name" + ], + [ + 1, + "account type" + ], + [ + 1, + "account balance" + ], + [ + 1, + "number of loans" + ], + [ + 1, + "credit score" + ], + [ + 1, + "branch id" + ], + [ + 1, + "state" + ], + [ + 2, + "loan id" + ], + [ + 2, + "loan type" + ], + [ + 2, + "customer id" + ], + [ + 2, + "branch id" + ], + [ + 2, + "amount" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "branch_ID" + ], + [ + 0, + "bname" + ], + [ + 0, + "no_of_customers" + ], + [ + 0, + "city" + ], + [ + 0, + "state" + ], + [ + 1, + "cust_ID" + ], + [ + 1, + "cust_name" + ], + [ + 1, + "acc_type" + ], + [ + 1, + "acc_bal" + ], + [ + 1, + "no_of_loans" + ], + [ + 1, + "credit_score" + ], + [ + 1, + "branch_ID" + ], + [ + 1, + "state" + ], + [ + 2, + "loan_ID" + ], + [ + 2, + "loan_type" + ], + [ + 2, + "cust_ID" + ], + [ + 2, + "branch_ID" + ], + [ + 2, + "amount" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "number" + ], + "db_id": "loan_1", + "foreign_keys": [ + [ + 12, + 1 + ], + [ + 17, + 1 + ] + ], + "primary_keys": [ + 1, + 6, + 14 + ], + "table_names": [ + "bank", + "customer", + "loan" + ], + "table_names_original": [ + "bank", + "customer", + "loan" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "latitude" + ], + [ + 0, + "longitude" + ], + [ + 0, + "dock count" + ], + [ + 0, + "city" + ], + [ + 0, + "installation date" + ], + [ + 1, + "station id" + ], + [ + 1, + "bikes available" + ], + [ + 1, + "docks available" + ], + [ + 1, + "time" + ], + [ + 2, + "id" + ], + [ + 2, + "duration" + ], + [ + 2, + "start date" + ], + [ + 2, + "start station name" + ], + [ + 2, + "start station id" + ], + [ + 2, + "end date" + ], + [ + 2, + "end station name" + ], + [ + 2, + "end station id" + ], + [ + 2, + "bike id" + ], + [ + 2, + "subscription type" + ], + [ + 2, + "zip code" + ], + [ + 3, + "date" + ], + [ + 3, + "max temperature f" + ], + [ + 3, + "mean temperature f" + ], + [ + 3, + "min temperature f" + ], + [ + 3, + "max dew point f" + ], + [ + 3, + "mean dew point f" + ], + [ + 3, + "min dew point f" + ], + [ + 3, + "max humidity" + ], + [ + 3, + "mean humidity" + ], + [ + 3, + "min humidity" + ], + [ + 3, + "max sea level pressure inches" + ], + [ + 3, + "mean sea level pressure inches" + ], + [ + 3, + "min sea level pressure inches" + ], + [ + 3, + "max visibility miles" + ], + [ + 3, + "mean visibility miles" + ], + [ + 3, + "min visibility miles" + ], + [ + 3, + "max wind speed mph" + ], + [ + 3, + "mean wind speed mph" + ], + [ + 3, + "max gust speed mph" + ], + [ + 3, + "precipitation inches" + ], + [ + 3, + "cloud cover" + ], + [ + 3, + "events" + ], + [ + 3, + "wind dir degrees" + ], + [ + 3, + "zip code" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "name" + ], + [ + 0, + "lat" + ], + [ + 0, + "long" + ], + [ + 0, + "dock_count" + ], + [ + 0, + "city" + ], + [ + 0, + "installation_date" + ], + [ + 1, + "station_id" + ], + [ + 1, + "bikes_available" + ], + [ + 1, + "docks_available" + ], + [ + 1, + "time" + ], + [ + 2, + "id" + ], + [ + 2, + "duration" + ], + [ + 2, + "start_date" + ], + [ + 2, + "start_station_name" + ], + [ + 2, + "start_station_id" + ], + [ + 2, + "end_date" + ], + [ + 2, + "end_station_name" + ], + [ + 2, + "end_station_id" + ], + [ + 2, + "bike_id" + ], + [ + 2, + "subscription_type" + ], + [ + 2, + "zip_code" + ], + [ + 3, + "date" + ], + [ + 3, + "max_temperature_f" + ], + [ + 3, + "mean_temperature_f" + ], + [ + 3, + "min_temperature_f" + ], + [ + 3, + "max_dew_point_f" + ], + [ + 3, + "mean_dew_point_f" + ], + [ + 3, + "min_dew_point_f" + ], + [ + 3, + "max_humidity" + ], + [ + 3, + "mean_humidity" + ], + [ + 3, + "min_humidity" + ], + [ + 3, + "max_sea_level_pressure_inches" + ], + [ + 3, + "mean_sea_level_pressure_inches" + ], + [ + 3, + "min_sea_level_pressure_inches" + ], + [ + 3, + "max_visibility_miles" + ], + [ + 3, + "mean_visibility_miles" + ], + [ + 3, + "min_visibility_miles" + ], + [ + 3, + "max_wind_Speed_mph" + ], + [ + 3, + "mean_wind_speed_mph" + ], + [ + 3, + "max_gust_speed_mph" + ], + [ + 3, + "precipitation_inches" + ], + [ + 3, + "cloud_cover" + ], + [ + 3, + "events" + ], + [ + 3, + "wind_dir_degrees" + ], + [ + 3, + "zip_code" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number" + ], + "db_id": "bike_1", + "foreign_keys": [ + [ + 8, + 1 + ] + ], + "primary_keys": [ + 1, + 12 + ], + "table_names": [ + "station", + "status", + "trip", + "weather" + ], + "table_names_original": [ + "station", + "status", + "trip", + "weather" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "entrepreneur id" + ], + [ + 0, + "people id" + ], + [ + 0, + "company" + ], + [ + 0, + "money requested" + ], + [ + 0, + "investor" + ], + [ + 1, + "people id" + ], + [ + 1, + "name" + ], + [ + 1, + "height" + ], + [ + 1, + "weight" + ], + [ + 1, + "date of birth" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Entrepreneur_ID" + ], + [ + 0, + "People_ID" + ], + [ + 0, + "Company" + ], + [ + 0, + "Money_Requested" + ], + [ + 0, + "Investor" + ], + [ + 1, + "People_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Height" + ], + [ + 1, + "Weight" + ], + [ + 1, + "Date_of_Birth" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "text" + ], + "db_id": "entrepreneur", + "foreign_keys": [ + [ + 2, + 6 + ] + ], + "primary_keys": [ + 1, + 6 + ], + "table_names": [ + "entrepreneur", + "people" + ], + "table_names_original": [ + "entrepreneur", + "people" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "conductor id" + ], + [ + 0, + "name" + ], + [ + 0, + "age" + ], + [ + 0, + "nationality" + ], + [ + 0, + "year of work" + ], + [ + 1, + "orchestra id" + ], + [ + 1, + "orchestra" + ], + [ + 1, + "conductor id" + ], + [ + 1, + "record company" + ], + [ + 1, + "year of founded" + ], + [ + 1, + "major record format" + ], + [ + 2, + "performance id" + ], + [ + 2, + "orchestra id" + ], + [ + 2, + "type" + ], + [ + 2, + "date" + ], + [ + 2, + "official ratings (millions)" + ], + [ + 2, + "weekly rank" + ], + [ + 2, + "share" + ], + [ + 3, + "show id" + ], + [ + 3, + "performance id" + ], + [ + 3, + "if first show" + ], + [ + 3, + "result" + ], + [ + 3, + "attendance" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Conductor_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Age" + ], + [ + 0, + "Nationality" + ], + [ + 0, + "Year_of_Work" + ], + [ + 1, + "Orchestra_ID" + ], + [ + 1, + "Orchestra" + ], + [ + 1, + "Conductor_ID" + ], + [ + 1, + "Record_Company" + ], + [ + 1, + "Year_of_Founded" + ], + [ + 1, + "Major_Record_Format" + ], + [ + 2, + "Performance_ID" + ], + [ + 2, + "Orchestra_ID" + ], + [ + 2, + "Type" + ], + [ + 2, + "Date" + ], + [ + 2, + "Official_ratings_(millions)" + ], + [ + 2, + "Weekly_rank" + ], + [ + 2, + "Share" + ], + [ + 3, + "Show_ID" + ], + [ + 3, + "Performance_ID" + ], + [ + 3, + "If_first_show" + ], + [ + 3, + "Result" + ], + [ + 3, + "Attendance" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "others", + "text", + "number" + ], + "db_id": "orchestra", + "foreign_keys": [ + [ + 8, + 1 + ], + [ + 13, + 6 + ], + [ + 20, + 12 + ] + ], + "primary_keys": [ + 1, + 6, + 12 + ], + "table_names": [ + "conductor", + "orchestra", + "performance", + "show" + ], + "table_names_original": [ + "conductor", + "orchestra", + "performance", + "show" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "payment method code" + ], + [ + 0, + "payment method description" + ], + [ + 1, + "service type code" + ], + [ + 1, + "parent service type code" + ], + [ + 1, + "service type description" + ], + [ + 2, + "address id" + ], + [ + 2, + "line 1" + ], + [ + 2, + "line 2" + ], + [ + 2, + "city town" + ], + [ + 2, + "state county" + ], + [ + 2, + "other details" + ], + [ + 3, + "product id" + ], + [ + 3, + "product name" + ], + [ + 3, + "product price" + ], + [ + 3, + "product description" + ], + [ + 3, + "other product service details" + ], + [ + 4, + "marketing region code" + ], + [ + 4, + "marketing region name" + ], + [ + 4, + "marketing region descriptrion" + ], + [ + 4, + "other details" + ], + [ + 5, + "client id" + ], + [ + 5, + "address id" + ], + [ + 5, + "customer email address" + ], + [ + 5, + "customer name" + ], + [ + 5, + "customer phone" + ], + [ + 5, + "other details" + ], + [ + 6, + "workshop group id" + ], + [ + 6, + "address id" + ], + [ + 6, + "currency code" + ], + [ + 6, + "marketing region code" + ], + [ + 6, + "store name" + ], + [ + 6, + "store phone" + ], + [ + 6, + "store email address" + ], + [ + 6, + "other details" + ], + [ + 7, + "performer id" + ], + [ + 7, + "address id" + ], + [ + 7, + "customer name" + ], + [ + 7, + "customer phone" + ], + [ + 7, + "customer email address" + ], + [ + 7, + "other details" + ], + [ + 8, + "customer id" + ], + [ + 8, + "address id" + ], + [ + 8, + "customer name" + ], + [ + 8, + "customer phone" + ], + [ + 8, + "customer email address" + ], + [ + 8, + "other details" + ], + [ + 9, + "store id" + ], + [ + 9, + "address id" + ], + [ + 9, + "marketing region code" + ], + [ + 9, + "store name" + ], + [ + 9, + "store phone" + ], + [ + 9, + "store email address" + ], + [ + 9, + "other details" + ], + [ + 10, + "booking id" + ], + [ + 10, + "customer id" + ], + [ + 10, + "workshop group id" + ], + [ + 10, + "status code" + ], + [ + 10, + "store id" + ], + [ + 10, + "order date" + ], + [ + 10, + "planned delivery date" + ], + [ + 10, + "actual delivery date" + ], + [ + 10, + "other order details" + ], + [ + 11, + "order id" + ], + [ + 11, + "performer id" + ], + [ + 12, + "order id" + ], + [ + 12, + "customer id" + ], + [ + 12, + "store id" + ], + [ + 12, + "order date" + ], + [ + 12, + "planned delivery date" + ], + [ + 12, + "actual delivery date" + ], + [ + 12, + "other order details" + ], + [ + 13, + "order item id" + ], + [ + 13, + "order id" + ], + [ + 13, + "product id" + ], + [ + 13, + "order quantity" + ], + [ + 13, + "other item details" + ], + [ + 14, + "invoice id" + ], + [ + 14, + "order id" + ], + [ + 14, + "payment method code" + ], + [ + 14, + "product id" + ], + [ + 14, + "order quantity" + ], + [ + 14, + "other item details" + ], + [ + 14, + "order item id" + ], + [ + 15, + "service id" + ], + [ + 15, + "service type code" + ], + [ + 15, + "workshop group id" + ], + [ + 15, + "product description" + ], + [ + 15, + "product name" + ], + [ + 15, + "product price" + ], + [ + 15, + "other product service details" + ], + [ + 16, + "order id" + ], + [ + 16, + "product id" + ], + [ + 17, + "invoice item id" + ], + [ + 17, + "invoice id" + ], + [ + 17, + "order id" + ], + [ + 17, + "order item id" + ], + [ + 17, + "product id" + ], + [ + 17, + "order quantity" + ], + [ + 17, + "other item details" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "payment_method_code" + ], + [ + 0, + "payment_method_description" + ], + [ + 1, + "Service_Type_Code" + ], + [ + 1, + "Parent_Service_Type_Code" + ], + [ + 1, + "Service_Type_Description" + ], + [ + 2, + "Address_ID" + ], + [ + 2, + "Line_1" + ], + [ + 2, + "Line_2" + ], + [ + 2, + "City_Town" + ], + [ + 2, + "State_County" + ], + [ + 2, + "Other_Details" + ], + [ + 3, + "Product_ID" + ], + [ + 3, + "Product_Name" + ], + [ + 3, + "Product_Price" + ], + [ + 3, + "Product_Description" + ], + [ + 3, + "Other_Product_Service_Details" + ], + [ + 4, + "Marketing_Region_Code" + ], + [ + 4, + "Marketing_Region_Name" + ], + [ + 4, + "Marketing_Region_Descriptrion" + ], + [ + 4, + "Other_Details" + ], + [ + 5, + "Client_ID" + ], + [ + 5, + "Address_ID" + ], + [ + 5, + "Customer_Email_Address" + ], + [ + 5, + "Customer_Name" + ], + [ + 5, + "Customer_Phone" + ], + [ + 5, + "Other_Details" + ], + [ + 6, + "Workshop_Group_ID" + ], + [ + 6, + "Address_ID" + ], + [ + 6, + "Currency_Code" + ], + [ + 6, + "Marketing_Region_Code" + ], + [ + 6, + "Store_Name" + ], + [ + 6, + "Store_Phone" + ], + [ + 6, + "Store_Email_Address" + ], + [ + 6, + "Other_Details" + ], + [ + 7, + "Performer_ID" + ], + [ + 7, + "Address_ID" + ], + [ + 7, + "Customer_Name" + ], + [ + 7, + "Customer_Phone" + ], + [ + 7, + "Customer_Email_Address" + ], + [ + 7, + "Other_Details" + ], + [ + 8, + "Customer_ID" + ], + [ + 8, + "Address_ID" + ], + [ + 8, + "Customer_Name" + ], + [ + 8, + "Customer_Phone" + ], + [ + 8, + "Customer_Email_Address" + ], + [ + 8, + "Other_Details" + ], + [ + 9, + "Store_ID" + ], + [ + 9, + "Address_ID" + ], + [ + 9, + "Marketing_Region_Code" + ], + [ + 9, + "Store_Name" + ], + [ + 9, + "Store_Phone" + ], + [ + 9, + "Store_Email_Address" + ], + [ + 9, + "Other_Details" + ], + [ + 10, + "Booking_ID" + ], + [ + 10, + "Customer_ID" + ], + [ + 10, + "Workshop_Group_ID" + ], + [ + 10, + "Status_Code" + ], + [ + 10, + "Store_ID" + ], + [ + 10, + "Order_Date" + ], + [ + 10, + "Planned_Delivery_Date" + ], + [ + 10, + "Actual_Delivery_Date" + ], + [ + 10, + "Other_Order_Details" + ], + [ + 11, + "Order_ID" + ], + [ + 11, + "Performer_ID" + ], + [ + 12, + "Order_ID" + ], + [ + 12, + "Customer_ID" + ], + [ + 12, + "Store_ID" + ], + [ + 12, + "Order_Date" + ], + [ + 12, + "Planned_Delivery_Date" + ], + [ + 12, + "Actual_Delivery_Date" + ], + [ + 12, + "Other_Order_Details" + ], + [ + 13, + "Order_Item_ID" + ], + [ + 13, + "Order_ID" + ], + [ + 13, + "Product_ID" + ], + [ + 13, + "Order_Quantity" + ], + [ + 13, + "Other_Item_Details" + ], + [ + 14, + "Invoice_ID" + ], + [ + 14, + "Order_ID" + ], + [ + 14, + "payment_method_code" + ], + [ + 14, + "Product_ID" + ], + [ + 14, + "Order_Quantity" + ], + [ + 14, + "Other_Item_Details" + ], + [ + 14, + "Order_Item_ID" + ], + [ + 15, + "Service_ID" + ], + [ + 15, + "Service_Type_Code" + ], + [ + 15, + "Workshop_Group_ID" + ], + [ + 15, + "Product_Description" + ], + [ + 15, + "Product_Name" + ], + [ + 15, + "Product_Price" + ], + [ + 15, + "Other_Product_Service_Details" + ], + [ + 16, + "Order_ID" + ], + [ + 16, + "Product_ID" + ], + [ + 17, + "Invoice_Item_ID" + ], + [ + 17, + "Invoice_ID" + ], + [ + 17, + "Order_ID" + ], + [ + 17, + "Order_Item_ID" + ], + [ + 17, + "Product_ID" + ], + [ + 17, + "Order_Quantity" + ], + [ + 17, + "Other_Item_Details" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "time", + "time", + "time", + "text", + "number", + "number", + "number", + "number", + "number", + "time", + "time", + "time", + "text", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "number", + "text" + ], + "db_id": "cre_Drama_Workshop_Groups", + "foreign_keys": [ + [ + 22, + 6 + ], + [ + 28, + 6 + ], + [ + 36, + 6 + ], + [ + 42, + 6 + ], + [ + 49, + 17 + ], + [ + 48, + 6 + ], + [ + 56, + 27 + ], + [ + 55, + 21 + ], + [ + 63, + 54 + ], + [ + 64, + 35 + ], + [ + 67, + 47 + ], + [ + 66, + 41 + ], + [ + 74, + 12 + ], + [ + 73, + 65 + ], + [ + 79, + 1 + ], + [ + 78, + 54 + ], + [ + 78, + 65 + ], + [ + 85, + 3 + ], + [ + 86, + 27 + ], + [ + 92, + 84 + ], + [ + 91, + 54 + ], + [ + 95, + 91 + ], + [ + 97, + 92 + ], + [ + 94, + 77 + ], + [ + 96, + 72 + ] + ], + "primary_keys": [ + 1, + 3, + 6, + 12, + 17, + 21, + 27, + 35, + 41, + 47, + 54, + 63, + 65, + 72, + 77, + 84, + 91, + 93 + ], + "table_names": [ + "reference payment methods", + "reference service types", + "addresses", + "products", + "marketing regions", + "clients", + "drama workshop groups", + "performers", + "customers", + "stores", + "bookings", + "performers in bookings", + "customer orders", + "order items", + "invoices", + "services", + "bookings services", + "invoice items" + ], + "table_names_original": [ + "Ref_Payment_Methods", + "Ref_Service_Types", + "Addresses", + "Products", + "Marketing_Regions", + "Clients", + "Drama_Workshop_Groups", + "Performers", + "Customers", + "Stores", + "Bookings", + "Performers_in_Bookings", + "Customer_Orders", + "Order_Items", + "Invoices", + "Services", + "Bookings_Services", + "Invoice_Items" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "cont id" + ], + [ + 0, + "continent" + ], + [ + 1, + "country id" + ], + [ + 1, + "country name" + ], + [ + 1, + "continent" + ], + [ + 2, + "id" + ], + [ + 2, + "maker" + ], + [ + 2, + "full name" + ], + [ + 2, + "country" + ], + [ + 3, + "model id" + ], + [ + 3, + "maker" + ], + [ + 3, + "model" + ], + [ + 4, + "make id" + ], + [ + 4, + "model" + ], + [ + 4, + "make" + ], + [ + 5, + "id" + ], + [ + 5, + "mpg" + ], + [ + 5, + "cylinders" + ], + [ + 5, + "edispl" + ], + [ + 5, + "horsepower" + ], + [ + 5, + "weight" + ], + [ + 5, + "accelerate" + ], + [ + 5, + "year" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "ContId" + ], + [ + 0, + "Continent" + ], + [ + 1, + "CountryId" + ], + [ + 1, + "CountryName" + ], + [ + 1, + "Continent" + ], + [ + 2, + "Id" + ], + [ + 2, + "Maker" + ], + [ + 2, + "FullName" + ], + [ + 2, + "Country" + ], + [ + 3, + "ModelId" + ], + [ + 3, + "Maker" + ], + [ + 3, + "Model" + ], + [ + 4, + "MakeId" + ], + [ + 4, + "Model" + ], + [ + 4, + "Make" + ], + [ + 5, + "Id" + ], + [ + 5, + "MPG" + ], + [ + 5, + "Cylinders" + ], + [ + 5, + "Edispl" + ], + [ + 5, + "Horsepower" + ], + [ + 5, + "Weight" + ], + [ + 5, + "Accelerate" + ], + [ + 5, + "Year" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "number", + "number" + ], + "db_id": "car_1", + "foreign_keys": [ + [ + 5, + 1 + ], + [ + 9, + 3 + ], + [ + 11, + 6 + ], + [ + 14, + 12 + ], + [ + 16, + 13 + ] + ], + "primary_keys": [ + 1, + 3, + 6, + 10, + 13, + 16 + ], + "table_names": [ + "continents", + "countries", + "car makers", + "model list", + "car names", + "cars data" + ], + "table_names_original": [ + "continents", + "countries", + "car_makers", + "model_list", + "car_names", + "cars_data" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "state name" + ], + [ + 0, + "population" + ], + [ + 0, + "area" + ], + [ + 0, + "country name" + ], + [ + 0, + "capital" + ], + [ + 0, + "density" + ], + [ + 1, + "city name" + ], + [ + 1, + "population" + ], + [ + 1, + "country name" + ], + [ + 1, + "state name" + ], + [ + 2, + "state name" + ], + [ + 2, + "border" + ], + [ + 3, + "state name" + ], + [ + 3, + "highest elevation" + ], + [ + 3, + "lowest point" + ], + [ + 3, + "highest point" + ], + [ + 3, + "lowest elevation" + ], + [ + 4, + "lake name" + ], + [ + 4, + "area" + ], + [ + 4, + "country name" + ], + [ + 4, + "state name" + ], + [ + 5, + "mountain name" + ], + [ + 5, + "mountain altitude" + ], + [ + 5, + "country name" + ], + [ + 5, + "state name" + ], + [ + 6, + "river name" + ], + [ + 6, + "length" + ], + [ + 6, + "country name" + ], + [ + 6, + "traverse" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "state_name" + ], + [ + 0, + "population" + ], + [ + 0, + "area" + ], + [ + 0, + "country_name" + ], + [ + 0, + "capital" + ], + [ + 0, + "density" + ], + [ + 1, + "city_name" + ], + [ + 1, + "population" + ], + [ + 1, + "country_name" + ], + [ + 1, + "state_name" + ], + [ + 2, + "state_name" + ], + [ + 2, + "border" + ], + [ + 3, + "state_name" + ], + [ + 3, + "highest_elevation" + ], + [ + 3, + "lowest_point" + ], + [ + 3, + "highest_point" + ], + [ + 3, + "lowest_elevation" + ], + [ + 4, + "lake_name" + ], + [ + 4, + "area" + ], + [ + 4, + "country_name" + ], + [ + 4, + "state_name" + ], + [ + 5, + "mountain_name" + ], + [ + 5, + "mountain_altitude" + ], + [ + 5, + "country_name" + ], + [ + 5, + "state_name" + ], + [ + 6, + "river_name" + ], + [ + 6, + "length" + ], + [ + 6, + "country_name" + ], + [ + 6, + "traverse" + ] + ], + "column_types": [ + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text" + ], + "db_id": "geo", + "foreign_keys": [ + [ + 10, + 1 + ], + [ + 12, + 1 + ], + [ + 11, + 1 + ], + [ + 13, + 1 + ], + [ + 25, + 1 + ], + [ + 29, + 1 + ] + ], + "primary_keys": [ + 1, + 7, + 12, + 13, + 22, + 26 + ], + "table_names": [ + "state", + "city", + "border info", + "highlow", + "lake", + "mountain", + "river" + ], + "table_names_original": [ + "state", + "city", + "border_info", + "highlow", + "lake", + "mountain", + "river" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "address type code" + ], + [ + 0, + "address type description" + ], + [ + 1, + "detention type code" + ], + [ + 1, + "detention type description" + ], + [ + 2, + "incident type code" + ], + [ + 2, + "incident type description" + ], + [ + 3, + "address id" + ], + [ + 3, + "line 1" + ], + [ + 3, + "line 2" + ], + [ + 3, + "line 3" + ], + [ + 3, + "city" + ], + [ + 3, + "zip postcode" + ], + [ + 3, + "state province county" + ], + [ + 3, + "country" + ], + [ + 3, + "other address details" + ], + [ + 4, + "student id" + ], + [ + 4, + "address id" + ], + [ + 4, + "first name" + ], + [ + 4, + "middle name" + ], + [ + 4, + "last name" + ], + [ + 4, + "cell mobile number" + ], + [ + 4, + "email address" + ], + [ + 4, + "date first rental" + ], + [ + 4, + "date left university" + ], + [ + 4, + "other student details" + ], + [ + 5, + "teacher id" + ], + [ + 5, + "address id" + ], + [ + 5, + "first name" + ], + [ + 5, + "middle name" + ], + [ + 5, + "last name" + ], + [ + 5, + "gender" + ], + [ + 5, + "cell mobile number" + ], + [ + 5, + "email address" + ], + [ + 5, + "other details" + ], + [ + 6, + "notes id" + ], + [ + 6, + "student id" + ], + [ + 6, + "teacher id" + ], + [ + 6, + "date of notes" + ], + [ + 6, + "text of notes" + ], + [ + 6, + "other details" + ], + [ + 7, + "incident id" + ], + [ + 7, + "incident type code" + ], + [ + 7, + "student id" + ], + [ + 7, + "date incident start" + ], + [ + 7, + "date incident end" + ], + [ + 7, + "incident summary" + ], + [ + 7, + "recommendations" + ], + [ + 7, + "other details" + ], + [ + 8, + "detention id" + ], + [ + 8, + "detention type code" + ], + [ + 8, + "teacher id" + ], + [ + 8, + "datetime detention start" + ], + [ + 8, + "datetime detention end" + ], + [ + 8, + "detention summary" + ], + [ + 8, + "other details" + ], + [ + 9, + "student id" + ], + [ + 9, + "address id" + ], + [ + 9, + "date address from" + ], + [ + 9, + "date address to" + ], + [ + 9, + "monthly rental" + ], + [ + 9, + "other details" + ], + [ + 10, + "student id" + ], + [ + 10, + "detention id" + ], + [ + 10, + "incident id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "address_type_code" + ], + [ + 0, + "address_type_description" + ], + [ + 1, + "detention_type_code" + ], + [ + 1, + "detention_type_description" + ], + [ + 2, + "incident_type_code" + ], + [ + 2, + "incident_type_description" + ], + [ + 3, + "address_id" + ], + [ + 3, + "line_1" + ], + [ + 3, + "line_2" + ], + [ + 3, + "line_3" + ], + [ + 3, + "city" + ], + [ + 3, + "zip_postcode" + ], + [ + 3, + "state_province_county" + ], + [ + 3, + "country" + ], + [ + 3, + "other_address_details" + ], + [ + 4, + "student_id" + ], + [ + 4, + "address_id" + ], + [ + 4, + "first_name" + ], + [ + 4, + "middle_name" + ], + [ + 4, + "last_name" + ], + [ + 4, + "cell_mobile_number" + ], + [ + 4, + "email_address" + ], + [ + 4, + "date_first_rental" + ], + [ + 4, + "date_left_university" + ], + [ + 4, + "other_student_details" + ], + [ + 5, + "teacher_id" + ], + [ + 5, + "address_id" + ], + [ + 5, + "first_name" + ], + [ + 5, + "middle_name" + ], + [ + 5, + "last_name" + ], + [ + 5, + "gender" + ], + [ + 5, + "cell_mobile_number" + ], + [ + 5, + "email_address" + ], + [ + 5, + "other_details" + ], + [ + 6, + "notes_id" + ], + [ + 6, + "student_id" + ], + [ + 6, + "teacher_id" + ], + [ + 6, + "date_of_notes" + ], + [ + 6, + "text_of_notes" + ], + [ + 6, + "other_details" + ], + [ + 7, + "incident_id" + ], + [ + 7, + "incident_type_code" + ], + [ + 7, + "student_id" + ], + [ + 7, + "date_incident_start" + ], + [ + 7, + "date_incident_end" + ], + [ + 7, + "incident_summary" + ], + [ + 7, + "recommendations" + ], + [ + 7, + "other_details" + ], + [ + 8, + "detention_id" + ], + [ + 8, + "detention_type_code" + ], + [ + 8, + "teacher_id" + ], + [ + 8, + "datetime_detention_start" + ], + [ + 8, + "datetime_detention_end" + ], + [ + 8, + "detention_summary" + ], + [ + 8, + "other_details" + ], + [ + 9, + "student_id" + ], + [ + 9, + "address_id" + ], + [ + 9, + "date_address_from" + ], + [ + 9, + "date_address_to" + ], + [ + 9, + "monthly_rental" + ], + [ + 9, + "other_details" + ], + [ + 10, + "student_id" + ], + [ + 10, + "detention_id" + ], + [ + 10, + "incident_id" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "time", + "time", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "time", + "text", + "text", + "number", + "text", + "number", + "time", + "time", + "text", + "text", + "text", + "number", + "text", + "number", + "time", + "time", + "text", + "text", + "number", + "number", + "time", + "time", + "number", + "text", + "number", + "number", + "number" + ], + "db_id": "behavior_monitoring", + "foreign_keys": [ + [ + 17, + 7 + ], + [ + 27, + 7 + ], + [ + 37, + 26 + ], + [ + 36, + 16 + ], + [ + 43, + 16 + ], + [ + 42, + 5 + ], + [ + 51, + 26 + ], + [ + 50, + 3 + ], + [ + 56, + 16 + ], + [ + 57, + 7 + ], + [ + 62, + 16 + ], + [ + 63, + 49 + ], + [ + 64, + 41 + ] + ], + "primary_keys": [ + 1, + 3, + 5, + 7, + 16, + 26, + 41, + 49 + ], + "table_names": [ + "reference address types", + "reference detention type", + "reference incident type", + "addresses", + "students", + "teachers", + "assessment notes", + "behavior incident", + "detention", + "student addresses", + "students in detention" + ], + "table_names_original": [ + "Ref_Address_Types", + "Ref_Detention_Type", + "Ref_Incident_Type", + "Addresses", + "Students", + "Teachers", + "Assessment_Notes", + "Behavior_Incident", + "Detention", + "Student_Addresses", + "Students_in_Detention" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "document type code" + ], + [ + 0, + "document type name" + ], + [ + 0, + "document type description" + ], + [ + 1, + "calendar date" + ], + [ + 1, + "day number" + ], + [ + 2, + "location code" + ], + [ + 2, + "location name" + ], + [ + 2, + "location description" + ], + [ + 3, + "role code" + ], + [ + 3, + "role name" + ], + [ + 3, + "role description" + ], + [ + 4, + "document id" + ], + [ + 4, + "date stored" + ], + [ + 4, + "document type code" + ], + [ + 4, + "document name" + ], + [ + 4, + "document description" + ], + [ + 4, + "other details" + ], + [ + 5, + "employee id" + ], + [ + 5, + "role code" + ], + [ + 5, + "employee name" + ], + [ + 5, + "gender mfu" + ], + [ + 5, + "date of birth" + ], + [ + 5, + "other details" + ], + [ + 6, + "document id" + ], + [ + 6, + "location code" + ], + [ + 6, + "date in location from" + ], + [ + 6, + "date in locaton to" + ], + [ + 7, + "document id" + ], + [ + 7, + "destruction authorised by employee id" + ], + [ + 7, + "destroyed by employee id" + ], + [ + 7, + "planned destruction date" + ], + [ + 7, + "actual destruction date" + ], + [ + 7, + "other details" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Document_Type_Code" + ], + [ + 0, + "Document_Type_Name" + ], + [ + 0, + "Document_Type_Description" + ], + [ + 1, + "Calendar_Date" + ], + [ + 1, + "Day_Number" + ], + [ + 2, + "Location_Code" + ], + [ + 2, + "Location_Name" + ], + [ + 2, + "Location_Description" + ], + [ + 3, + "Role_Code" + ], + [ + 3, + "Role_Name" + ], + [ + 3, + "Role_Description" + ], + [ + 4, + "Document_ID" + ], + [ + 4, + "Date_Stored" + ], + [ + 4, + "Document_Type_Code" + ], + [ + 4, + "Document_Name" + ], + [ + 4, + "Document_Description" + ], + [ + 4, + "Other_Details" + ], + [ + 5, + "Employee_ID" + ], + [ + 5, + "Role_Code" + ], + [ + 5, + "Employee_Name" + ], + [ + 5, + "Gender_MFU" + ], + [ + 5, + "Date_of_Birth" + ], + [ + 5, + "Other_Details" + ], + [ + 6, + "Document_ID" + ], + [ + 6, + "Location_Code" + ], + [ + 6, + "Date_in_Location_From" + ], + [ + 6, + "Date_in_Locaton_To" + ], + [ + 7, + "Document_ID" + ], + [ + 7, + "Destruction_Authorised_by_Employee_ID" + ], + [ + 7, + "Destroyed_by_Employee_ID" + ], + [ + 7, + "Planned_Destruction_Date" + ], + [ + 7, + "Actual_Destruction_Date" + ], + [ + 7, + "Other_Details" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "time", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "time", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "time", + "text", + "number", + "text", + "time", + "time", + "number", + "number", + "number", + "time", + "time", + "text" + ], + "db_id": "cre_Doc_Tracking_DB", + "foreign_keys": [ + [ + 13, + 4 + ], + [ + 14, + 1 + ], + [ + 19, + 9 + ], + [ + 24, + 12 + ], + [ + 27, + 4 + ], + [ + 26, + 4 + ], + [ + 25, + 6 + ], + [ + 28, + 12 + ], + [ + 32, + 4 + ], + [ + 31, + 4 + ], + [ + 29, + 18 + ], + [ + 30, + 18 + ] + ], + "primary_keys": [ + 1, + 4, + 6, + 9, + 12, + 18, + 24, + 28 + ], + "table_names": [ + "reference document types", + "reference calendar", + "reference locations", + "roles", + "all documents", + "employees", + "document locations", + "documents to be destroyed" + ], + "table_names_original": [ + "Ref_Document_Types", + "Ref_Calendar", + "Ref_Locations", + "Roles", + "All_Documents", + "Employees", + "Document_Locations", + "Documents_to_be_Destroyed" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "team id" + ], + [ + 0, + "school id" + ], + [ + 0, + "team name" + ], + [ + 0, + "acc regular season" + ], + [ + 0, + "acc percent" + ], + [ + 0, + "acc home" + ], + [ + 0, + "acc road" + ], + [ + 0, + "all games" + ], + [ + 0, + "all games percent" + ], + [ + 0, + "all home" + ], + [ + 0, + "all road" + ], + [ + 0, + "all neutral" + ], + [ + 1, + "school id" + ], + [ + 1, + "school" + ], + [ + 1, + "location" + ], + [ + 1, + "founded" + ], + [ + 1, + "affiliation" + ], + [ + 1, + "enrollment" + ], + [ + 1, + "nickname" + ], + [ + 1, + "primary conference" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Team_ID" + ], + [ + 0, + "School_ID" + ], + [ + 0, + "Team_Name" + ], + [ + 0, + "ACC_Regular_Season" + ], + [ + 0, + "ACC_Percent" + ], + [ + 0, + "ACC_Home" + ], + [ + 0, + "ACC_Road" + ], + [ + 0, + "All_Games" + ], + [ + 0, + "All_Games_Percent" + ], + [ + 0, + "All_Home" + ], + [ + 0, + "All_Road" + ], + [ + 0, + "All_Neutral" + ], + [ + 1, + "School_ID" + ], + [ + 1, + "School" + ], + [ + 1, + "Location" + ], + [ + 1, + "Founded" + ], + [ + 1, + "Affiliation" + ], + [ + 1, + "Enrollment" + ], + [ + 1, + "Nickname" + ], + [ + 1, + "Primary_conference" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "text" + ], + "db_id": "university_basketball", + "foreign_keys": [ + [ + 2, + 13 + ] + ], + "primary_keys": [ + 1, + 13 + ], + "table_names": [ + "basketball match", + "university" + ], + "table_names_original": [ + "basketball_match", + "university" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "college name" + ], + [ + 0, + "state" + ], + [ + 0, + "enrollment" + ], + [ + 1, + "player id" + ], + [ + 1, + "player name" + ], + [ + 1, + "yes card" + ], + [ + 1, + "training hours" + ], + [ + 2, + "player id" + ], + [ + 2, + "college name" + ], + [ + 2, + "player position" + ], + [ + 2, + "decision" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "cName" + ], + [ + 0, + "state" + ], + [ + 0, + "enr" + ], + [ + 1, + "pID" + ], + [ + 1, + "pName" + ], + [ + 1, + "yCard" + ], + [ + 1, + "HS" + ], + [ + 2, + "pID" + ], + [ + 2, + "cName" + ], + [ + 2, + "pPos" + ], + [ + 2, + "decision" + ] + ], + "column_types": [ + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "text", + "text", + "text" + ], + "db_id": "soccer_2", + "foreign_keys": [ + [ + 9, + 1 + ], + [ + 8, + 4 + ] + ], + "primary_keys": [ + 1, + 4, + 8 + ], + "table_names": [ + "college", + "player", + "tryout" + ], + "table_names_original": [ + "College", + "Player", + "Tryout" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "activity id" + ], + [ + 0, + "activity name" + ], + [ + 1, + "student id" + ], + [ + 1, + "activity id" + ], + [ + 2, + "faculty id" + ], + [ + 2, + "activity id" + ], + [ + 3, + "student id" + ], + [ + 3, + "last name" + ], + [ + 3, + "first name" + ], + [ + 3, + "age" + ], + [ + 3, + "sex" + ], + [ + 3, + "major" + ], + [ + 3, + "advisor" + ], + [ + 3, + "city code" + ], + [ + 4, + "faculty id" + ], + [ + 4, + "last name" + ], + [ + 4, + "first name" + ], + [ + 4, + "rank" + ], + [ + 4, + "sex" + ], + [ + 4, + "phone" + ], + [ + 4, + "room" + ], + [ + 4, + "building" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "actid" + ], + [ + 0, + "activity_name" + ], + [ + 1, + "stuid" + ], + [ + 1, + "actid" + ], + [ + 2, + "FacID" + ], + [ + 2, + "actid" + ], + [ + 3, + "StuID" + ], + [ + 3, + "LName" + ], + [ + 3, + "Fname" + ], + [ + 3, + "Age" + ], + [ + 3, + "Sex" + ], + [ + 3, + "Major" + ], + [ + 3, + "Advisor" + ], + [ + 3, + "city_code" + ], + [ + 4, + "FacID" + ], + [ + 4, + "Lname" + ], + [ + 4, + "Fname" + ], + [ + 4, + "Rank" + ], + [ + 4, + "Sex" + ], + [ + 4, + "Phone" + ], + [ + 4, + "Room" + ], + [ + 4, + "Building" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text", + "text" + ], + "db_id": "activity_1", + "foreign_keys": [ + [ + 4, + 1 + ], + [ + 3, + 7 + ], + [ + 6, + 1 + ], + [ + 5, + 15 + ] + ], + "primary_keys": [ + 1, + 7, + 15 + ], + "table_names": [ + "activity", + "participates in", + "faculty participates in", + "student", + "faculty" + ], + "table_names_original": [ + "Activity", + "Participates_in", + "Faculty_Participates_in", + "Student", + "Faculty" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "star rating code" + ], + [ + 0, + "star rating description" + ], + [ + 1, + "location id" + ], + [ + 1, + "location name" + ], + [ + 1, + "address" + ], + [ + 1, + "other details" + ], + [ + 2, + "attraction type code" + ], + [ + 2, + "attraction type description" + ], + [ + 3, + "tourist id" + ], + [ + 3, + "tourist details" + ], + [ + 4, + "feature id" + ], + [ + 4, + "feature details" + ], + [ + 5, + "hotel id" + ], + [ + 5, + "star rating code" + ], + [ + 5, + "pets allowed yn" + ], + [ + 5, + "price range" + ], + [ + 5, + "other hotel details" + ], + [ + 6, + "tourist attraction id" + ], + [ + 6, + "attraction type code" + ], + [ + 6, + "location id" + ], + [ + 6, + "how to get there" + ], + [ + 6, + "name" + ], + [ + 6, + "description" + ], + [ + 6, + "opening hours" + ], + [ + 6, + "other details" + ], + [ + 7, + "market id" + ], + [ + 7, + "market details" + ], + [ + 8, + "shop id" + ], + [ + 8, + "shop details" + ], + [ + 9, + "museum id" + ], + [ + 9, + "museum details" + ], + [ + 10, + "royal family id" + ], + [ + 10, + "royal family details" + ], + [ + 11, + "theme park id" + ], + [ + 11, + "theme park details" + ], + [ + 12, + "visit id" + ], + [ + 12, + "tourist attraction id" + ], + [ + 12, + "tourist id" + ], + [ + 12, + "visit date" + ], + [ + 12, + "visit details" + ], + [ + 13, + "photo id" + ], + [ + 13, + "tourist attraction id" + ], + [ + 13, + "name" + ], + [ + 13, + "description" + ], + [ + 13, + "filename" + ], + [ + 13, + "other details" + ], + [ + 14, + "staff id" + ], + [ + 14, + "tourist attraction id" + ], + [ + 14, + "name" + ], + [ + 14, + "other details" + ], + [ + 15, + "tourist attraction id" + ], + [ + 15, + "feature id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "star_rating_code" + ], + [ + 0, + "star_rating_description" + ], + [ + 1, + "Location_ID" + ], + [ + 1, + "Location_Name" + ], + [ + 1, + "Address" + ], + [ + 1, + "Other_Details" + ], + [ + 2, + "Attraction_Type_Code" + ], + [ + 2, + "Attraction_Type_Description" + ], + [ + 3, + "Tourist_ID" + ], + [ + 3, + "Tourist_Details" + ], + [ + 4, + "Feature_ID" + ], + [ + 4, + "Feature_Details" + ], + [ + 5, + "hotel_id" + ], + [ + 5, + "star_rating_code" + ], + [ + 5, + "pets_allowed_yn" + ], + [ + 5, + "price_range" + ], + [ + 5, + "other_hotel_details" + ], + [ + 6, + "Tourist_Attraction_ID" + ], + [ + 6, + "Attraction_Type_Code" + ], + [ + 6, + "Location_ID" + ], + [ + 6, + "How_to_Get_There" + ], + [ + 6, + "Name" + ], + [ + 6, + "Description" + ], + [ + 6, + "Opening_Hours" + ], + [ + 6, + "Other_Details" + ], + [ + 7, + "Market_ID" + ], + [ + 7, + "Market_Details" + ], + [ + 8, + "Shop_ID" + ], + [ + 8, + "Shop_Details" + ], + [ + 9, + "Museum_ID" + ], + [ + 9, + "Museum_Details" + ], + [ + 10, + "Royal_Family_ID" + ], + [ + 10, + "Royal_Family_Details" + ], + [ + 11, + "Theme_Park_ID" + ], + [ + 11, + "Theme_Park_Details" + ], + [ + 12, + "Visit_ID" + ], + [ + 12, + "Tourist_Attraction_ID" + ], + [ + 12, + "Tourist_ID" + ], + [ + 12, + "Visit_Date" + ], + [ + 12, + "Visit_Details" + ], + [ + 13, + "Photo_ID" + ], + [ + 13, + "Tourist_Attraction_ID" + ], + [ + 13, + "Name" + ], + [ + 13, + "Description" + ], + [ + 13, + "Filename" + ], + [ + 13, + "Other_Details" + ], + [ + 14, + "Staff_ID" + ], + [ + 14, + "Tourist_Attraction_ID" + ], + [ + 14, + "Name" + ], + [ + 14, + "Other_Details" + ], + [ + 15, + "Tourist_Attraction_ID" + ], + [ + 15, + "Feature_ID" + ] + ], + "column_types": [ + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "text", + "number", + "number", + "number", + "time", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "number" + ], + "db_id": "cre_Theme_park", + "foreign_keys": [ + [ + 14, + 1 + ], + [ + 19, + 7 + ], + [ + 20, + 3 + ], + [ + 26, + 18 + ], + [ + 28, + 18 + ], + [ + 30, + 18 + ], + [ + 32, + 18 + ], + [ + 34, + 18 + ], + [ + 38, + 9 + ], + [ + 37, + 18 + ], + [ + 42, + 18 + ], + [ + 48, + 18 + ], + [ + 52, + 11 + ], + [ + 51, + 18 + ] + ], + "primary_keys": [ + 1, + 3, + 7, + 9, + 11, + 13, + 18, + 26, + 28, + 30, + 32, + 34, + 36, + 41, + 47, + 51 + ], + "table_names": [ + "ref hotel star ratings", + "locations", + "ref attraction types", + "visitors", + "features", + "hotels", + "tourist attractions", + "street markets", + "shops", + "museums", + "royal family", + "theme parks", + "visits", + "photos", + "staff", + "tourist attraction features" + ], + "table_names_original": [ + "Ref_Hotel_Star_Ratings", + "Locations", + "Ref_Attraction_Types", + "Visitors", + "Features", + "Hotels", + "Tourist_Attractions", + "Street_Markets", + "Shops", + "Museums", + "Royal_Family", + "Theme_Parks", + "Visits", + "Photos", + "Staff", + "Tourist_Attraction_Features" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "user id" + ], + [ + 0, + "follower id" + ], + [ + 1, + "id" + ], + [ + 1, + "user id" + ], + [ + 1, + "text" + ], + [ + 1, + "create date" + ], + [ + 2, + "uid" + ], + [ + 2, + "name" + ], + [ + 2, + "email" + ], + [ + 2, + "partition id" + ], + [ + 2, + "followers" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "f1" + ], + [ + 0, + "f2" + ], + [ + 1, + "id" + ], + [ + 1, + "uid" + ], + [ + 1, + "text" + ], + [ + 1, + "createdate" + ], + [ + 2, + "uid" + ], + [ + 2, + "name" + ], + [ + 2, + "email" + ], + [ + 2, + "partitionid" + ], + [ + 2, + "followers" + ] + ], + "column_types": [ + "text", + "number", + "number", + "number", + "number", + "text", + "time", + "number", + "text", + "text", + "number", + "number" + ], + "db_id": "twitter_1", + "foreign_keys": [ + [ + 2, + 7 + ], + [ + 1, + 7 + ], + [ + 4, + 7 + ] + ], + "primary_keys": [ + 1, + 3, + 7 + ], + "table_names": [ + "follows", + "tweets", + "user profiles" + ], + "table_names_original": [ + "follows", + "tweets", + "user_profiles" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "election id" + ], + [ + 0, + "representative id" + ], + [ + 0, + "date" + ], + [ + 0, + "votes" + ], + [ + 0, + "vote percent" + ], + [ + 0, + "seats" + ], + [ + 0, + "place" + ], + [ + 1, + "representative id" + ], + [ + 1, + "name" + ], + [ + 1, + "state" + ], + [ + 1, + "party" + ], + [ + 1, + "lifespan" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Election_ID" + ], + [ + 0, + "Representative_ID" + ], + [ + 0, + "Date" + ], + [ + 0, + "Votes" + ], + [ + 0, + "Vote_Percent" + ], + [ + 0, + "Seats" + ], + [ + 0, + "Place" + ], + [ + 1, + "Representative_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "State" + ], + [ + 1, + "Party" + ], + [ + 1, + "Lifespan" + ] + ], + "column_types": [ + "text", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "text" + ], + "db_id": "election_representative", + "foreign_keys": [ + [ + 2, + 8 + ] + ], + "primary_keys": [ + 1, + 8 + ], + "table_names": [ + "election", + "representative" + ], + "table_names_original": [ + "election", + "representative" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "student id" + ], + [ + 0, + "last name" + ], + [ + 0, + "first name" + ], + [ + 0, + "age" + ], + [ + 0, + "sex" + ], + [ + 0, + "major" + ], + [ + 0, + "advisor" + ], + [ + 0, + "city code" + ], + [ + 1, + "student id" + ], + [ + 1, + "registration date" + ], + [ + 1, + "election cycle" + ], + [ + 1, + "president vote" + ], + [ + 1, + "vice president vote" + ], + [ + 1, + "secretary vote" + ], + [ + 1, + "treasurer vote" + ], + [ + 1, + "class president vote" + ], + [ + 1, + "class senator vote" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "StuID" + ], + [ + 0, + "LName" + ], + [ + 0, + "Fname" + ], + [ + 0, + "Age" + ], + [ + 0, + "Sex" + ], + [ + 0, + "Major" + ], + [ + 0, + "Advisor" + ], + [ + 0, + "city_code" + ], + [ + 1, + "StuID" + ], + [ + 1, + "Registration_Date" + ], + [ + 1, + "Election_Cycle" + ], + [ + 1, + "President_Vote" + ], + [ + 1, + "Vice_President_Vote" + ], + [ + 1, + "Secretary_Vote" + ], + [ + 1, + "Treasurer_Vote" + ], + [ + 1, + "Class_President_Vote" + ], + [ + 1, + "Class_Senator_Vote" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "number", + "number" + ], + "db_id": "voter_2", + "foreign_keys": [ + [ + 17, + 1 + ], + [ + 16, + 1 + ], + [ + 15, + 1 + ], + [ + 14, + 1 + ], + [ + 13, + 1 + ], + [ + 12, + 1 + ], + [ + 9, + 1 + ] + ], + "primary_keys": [ + 1 + ], + "table_names": [ + "student", + "voting record" + ], + "table_names_original": [ + "Student", + "Voting_record" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "people id" + ], + [ + 0, + "name" + ], + [ + 0, + "country" + ], + [ + 0, + "is male" + ], + [ + 0, + "age" + ], + [ + 1, + "church id" + ], + [ + 1, + "name" + ], + [ + 1, + "organized by" + ], + [ + 1, + "open date" + ], + [ + 1, + "continuation of" + ], + [ + 2, + "church id" + ], + [ + 2, + "male id" + ], + [ + 2, + "female id" + ], + [ + 2, + "year" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "People_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Country" + ], + [ + 0, + "Is_Male" + ], + [ + 0, + "Age" + ], + [ + 1, + "Church_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Organized_by" + ], + [ + 1, + "Open_Date" + ], + [ + 1, + "Continuation_of" + ], + [ + 2, + "Church_ID" + ], + [ + 2, + "Male_ID" + ], + [ + 2, + "Female_ID" + ], + [ + 2, + "Year" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "number", + "number" + ], + "db_id": "wedding", + "foreign_keys": [ + [ + 13, + 1 + ], + [ + 12, + 1 + ], + [ + 11, + 6 + ] + ], + "primary_keys": [ + 1, + 6, + 11 + ], + "table_names": [ + "people", + "church", + "wedding" + ], + "table_names_original": [ + "people", + "church", + "wedding" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "event id" + ], + [ + 0, + "date" + ], + [ + 0, + "venue" + ], + [ + 0, + "name" + ], + [ + 0, + "event attendance" + ], + [ + 1, + "journalist id" + ], + [ + 1, + "name" + ], + [ + 1, + "nationality" + ], + [ + 1, + "age" + ], + [ + 1, + "years working" + ], + [ + 2, + "journalist id" + ], + [ + 2, + "event id" + ], + [ + 2, + "work type" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Event_ID" + ], + [ + 0, + "Date" + ], + [ + 0, + "Venue" + ], + [ + 0, + "Name" + ], + [ + 0, + "Event_Attendance" + ], + [ + 1, + "journalist_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Nationality" + ], + [ + 1, + "Age" + ], + [ + 1, + "Years_working" + ], + [ + 2, + "journalist_ID" + ], + [ + 2, + "Event_ID" + ], + [ + 2, + "Work_Type" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text" + ], + "db_id": "news_report", + "foreign_keys": [ + [ + 12, + 1 + ], + [ + 11, + 6 + ] + ], + "primary_keys": [ + 1, + 6, + 11 + ], + "table_names": [ + "event", + "journalist", + "news report" + ], + "table_names_original": [ + "event", + "journalist", + "news_report" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "grape" + ], + [ + 0, + "color" + ], + [ + 1, + "no" + ], + [ + 1, + "appelation" + ], + [ + 1, + "county" + ], + [ + 1, + "state" + ], + [ + 1, + "area" + ], + [ + 1, + "isava" + ], + [ + 2, + "no" + ], + [ + 2, + "grape" + ], + [ + 2, + "winery" + ], + [ + 2, + "appelation" + ], + [ + 2, + "state" + ], + [ + 2, + "name" + ], + [ + 2, + "year" + ], + [ + 2, + "price" + ], + [ + 2, + "score" + ], + [ + 2, + "cases" + ], + [ + 2, + "drink" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "ID" + ], + [ + 0, + "Grape" + ], + [ + 0, + "Color" + ], + [ + 1, + "No" + ], + [ + 1, + "Appelation" + ], + [ + 1, + "County" + ], + [ + 1, + "State" + ], + [ + 1, + "Area" + ], + [ + 1, + "isAVA" + ], + [ + 2, + "No" + ], + [ + 2, + "Grape" + ], + [ + 2, + "Winery" + ], + [ + 2, + "Appelation" + ], + [ + 2, + "State" + ], + [ + 2, + "Name" + ], + [ + 2, + "Year" + ], + [ + 2, + "Price" + ], + [ + 2, + "Score" + ], + [ + 2, + "Cases" + ], + [ + 2, + "Drink" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "number", + "text" + ], + "db_id": "wine_1", + "foreign_keys": [ + [ + 13, + 5 + ], + [ + 11, + 2 + ] + ], + "primary_keys": [ + 1, + 4 + ], + "table_names": [ + "grapes", + "appellations", + "wine" + ], + "table_names_original": [ + "grapes", + "appellations", + "wine" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "address id" + ], + [ + 0, + "address content" + ], + [ + 0, + "city" + ], + [ + 0, + "zip postcode" + ], + [ + 0, + "state province county" + ], + [ + 0, + "country" + ], + [ + 0, + "other address details" + ], + [ + 1, + "product id" + ], + [ + 1, + "product details" + ], + [ + 2, + "customer id" + ], + [ + 2, + "payment method" + ], + [ + 2, + "customer name" + ], + [ + 2, + "date became customer" + ], + [ + 2, + "other customer details" + ], + [ + 3, + "customer id" + ], + [ + 3, + "address id" + ], + [ + 3, + "date address from" + ], + [ + 3, + "address type" + ], + [ + 3, + "date address to" + ], + [ + 4, + "customer id" + ], + [ + 4, + "channel code" + ], + [ + 4, + "active from date" + ], + [ + 4, + "active to date" + ], + [ + 4, + "contact number" + ], + [ + 5, + "order id" + ], + [ + 5, + "customer id" + ], + [ + 5, + "order status" + ], + [ + 5, + "order date" + ], + [ + 5, + "order details" + ], + [ + 6, + "order id" + ], + [ + 6, + "product id" + ], + [ + 6, + "order quantity" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "address_id" + ], + [ + 0, + "address_content" + ], + [ + 0, + "city" + ], + [ + 0, + "zip_postcode" + ], + [ + 0, + "state_province_county" + ], + [ + 0, + "country" + ], + [ + 0, + "other_address_details" + ], + [ + 1, + "product_id" + ], + [ + 1, + "product_details" + ], + [ + 2, + "customer_id" + ], + [ + 2, + "payment_method" + ], + [ + 2, + "customer_name" + ], + [ + 2, + "date_became_customer" + ], + [ + 2, + "other_customer_details" + ], + [ + 3, + "customer_id" + ], + [ + 3, + "address_id" + ], + [ + 3, + "date_address_from" + ], + [ + 3, + "address_type" + ], + [ + 3, + "date_address_to" + ], + [ + 4, + "customer_id" + ], + [ + 4, + "channel_code" + ], + [ + 4, + "active_from_date" + ], + [ + 4, + "active_to_date" + ], + [ + 4, + "contact_number" + ], + [ + 5, + "order_id" + ], + [ + 5, + "customer_id" + ], + [ + 5, + "order_status" + ], + [ + 5, + "order_date" + ], + [ + 5, + "order_details" + ], + [ + 6, + "order_id" + ], + [ + 6, + "product_id" + ], + [ + 6, + "order_quantity" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "time", + "text", + "number", + "number", + "time", + "text", + "time", + "number", + "text", + "time", + "time", + "text", + "number", + "number", + "text", + "time", + "text", + "number", + "number", + "text" + ], + "db_id": "customers_and_addresses", + "foreign_keys": [ + [ + 15, + 10 + ], + [ + 16, + 1 + ], + [ + 20, + 10 + ], + [ + 26, + 10 + ], + [ + 30, + 25 + ], + [ + 31, + 8 + ] + ], + "primary_keys": [ + 1, + 8, + 10, + 25 + ], + "table_names": [ + "addresses", + "products", + "customers", + "customer addresses", + "customer contact channels", + "customer orders", + "order items" + ], + "table_names_original": [ + "Addresses", + "Products", + "Customers", + "Customer_Addresses", + "Customer_Contact_Channels", + "Customer_Orders", + "Order_Items" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "building id" + ], + [ + 0, + "name" + ], + [ + 0, + "street address" + ], + [ + 0, + "years as tallest" + ], + [ + 0, + "height feet" + ], + [ + 0, + "floors" + ], + [ + 1, + "institution id" + ], + [ + 1, + "institution" + ], + [ + 1, + "location" + ], + [ + 1, + "founded" + ], + [ + 1, + "type" + ], + [ + 1, + "enrollment" + ], + [ + 1, + "team" + ], + [ + 1, + "primary conference" + ], + [ + 1, + "building id" + ], + [ + 2, + "common name" + ], + [ + 2, + "protein name" + ], + [ + 2, + "divergence from human lineage" + ], + [ + 2, + "accession number" + ], + [ + 2, + "sequence length" + ], + [ + 2, + "sequence identity to human protein" + ], + [ + 2, + "institution id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "building_id" + ], + [ + 0, + "Name" + ], + [ + 0, + "Street_address" + ], + [ + 0, + "Years_as_tallest" + ], + [ + 0, + "Height_feet" + ], + [ + 0, + "Floors" + ], + [ + 1, + "Institution_id" + ], + [ + 1, + "Institution" + ], + [ + 1, + "Location" + ], + [ + 1, + "Founded" + ], + [ + 1, + "Type" + ], + [ + 1, + "Enrollment" + ], + [ + 1, + "Team" + ], + [ + 1, + "Primary_Conference" + ], + [ + 1, + "building_id" + ], + [ + 2, + "common_name" + ], + [ + 2, + "protein_name" + ], + [ + 2, + "divergence_from_human_lineage" + ], + [ + 2, + "accession_number" + ], + [ + 2, + "sequence_length" + ], + [ + 2, + "sequence_identity_to_human_protein" + ], + [ + 2, + "Institution_id" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text" + ], + "db_id": "protein_institute", + "foreign_keys": [ + [ + 15, + 1 + ], + [ + 22, + 7 + ] + ], + "primary_keys": [ + 1, + 7, + 16 + ], + "table_names": [ + "building", + "institution", + "protein" + ], + "table_names_original": [ + "building", + "Institution", + "protein" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "school id" + ], + [ + 0, + "school" + ], + [ + 0, + "location" + ], + [ + 0, + "enrollment" + ], + [ + 0, + "founded" + ], + [ + 0, + "denomination" + ], + [ + 0, + "boys or girls" + ], + [ + 0, + "day or boarding" + ], + [ + 0, + "year entered competition" + ], + [ + 0, + "school colors" + ], + [ + 1, + "school id" + ], + [ + 1, + "nickname" + ], + [ + 1, + "colors" + ], + [ + 1, + "league" + ], + [ + 1, + "class" + ], + [ + 1, + "division" + ], + [ + 2, + "school id" + ], + [ + 2, + "school year" + ], + [ + 2, + "class a" + ], + [ + 2, + "class aa" + ], + [ + 3, + "player id" + ], + [ + 3, + "player" + ], + [ + 3, + "team" + ], + [ + 3, + "age" + ], + [ + 3, + "position" + ], + [ + 3, + "school id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "School_ID" + ], + [ + 0, + "School" + ], + [ + 0, + "Location" + ], + [ + 0, + "Enrollment" + ], + [ + 0, + "Founded" + ], + [ + 0, + "Denomination" + ], + [ + 0, + "Boys_or_Girls" + ], + [ + 0, + "Day_or_Boarding" + ], + [ + 0, + "Year_Entered_Competition" + ], + [ + 0, + "School_Colors" + ], + [ + 1, + "School_ID" + ], + [ + 1, + "Nickname" + ], + [ + 1, + "Colors" + ], + [ + 1, + "League" + ], + [ + 1, + "Class" + ], + [ + 1, + "Division" + ], + [ + 2, + "School_Id" + ], + [ + 2, + "School_Year" + ], + [ + 2, + "Class_A" + ], + [ + 2, + "Class_AA" + ], + [ + 3, + "Player_ID" + ], + [ + 3, + "Player" + ], + [ + 3, + "Team" + ], + [ + 3, + "Age" + ], + [ + 3, + "Position" + ], + [ + 3, + "School_ID" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "number" + ], + "db_id": "school_player", + "foreign_keys": [ + [ + 11, + 1 + ], + [ + 17, + 1 + ], + [ + 26, + 1 + ] + ], + "primary_keys": [ + 1, + 11, + 17, + 21 + ], + "table_names": [ + "school", + "school details", + "school performance", + "player" + ], + "table_names_original": [ + "school", + "school_details", + "school_performance", + "player" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "model name" + ], + [ + 0, + "launch year" + ], + [ + 0, + "ram mib" + ], + [ + 0, + "rom mib" + ], + [ + 0, + "slots" + ], + [ + 0, + "wifi" + ], + [ + 0, + "bluetooth" + ], + [ + 1, + "graphics mode" + ], + [ + 1, + "char cells" + ], + [ + 1, + "pixels" + ], + [ + 1, + "hardware colours" + ], + [ + 1, + "used kb" + ], + [ + 1, + "map" + ], + [ + 1, + "type" + ], + [ + 2, + "company name" + ], + [ + 2, + "hardware model name" + ], + [ + 2, + "accreditation type" + ], + [ + 2, + "accreditation level" + ], + [ + 2, + "date" + ], + [ + 2, + "chip model" + ], + [ + 2, + "screen mode" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Model_name" + ], + [ + 0, + "Launch_year" + ], + [ + 0, + "RAM_MiB" + ], + [ + 0, + "ROM_MiB" + ], + [ + 0, + "Slots" + ], + [ + 0, + "WiFi" + ], + [ + 0, + "Bluetooth" + ], + [ + 1, + "Graphics_mode" + ], + [ + 1, + "Char_cells" + ], + [ + 1, + "Pixels" + ], + [ + 1, + "Hardware_colours" + ], + [ + 1, + "used_kb" + ], + [ + 1, + "map" + ], + [ + 1, + "Type" + ], + [ + 2, + "Company_name" + ], + [ + 2, + "Hardware_Model_name" + ], + [ + 2, + "Accreditation_type" + ], + [ + 2, + "Accreditation_level" + ], + [ + 2, + "Date" + ], + [ + 2, + "chip_model" + ], + [ + 2, + "screen_mode" + ] + ], + "column_types": [ + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text" + ], + "db_id": "phone_1", + "foreign_keys": [ + [ + 20, + 1 + ], + [ + 21, + 8 + ] + ], + "primary_keys": [ + 1, + 8, + 16 + ], + "table_names": [ + "chip model", + "screen mode", + "phone" + ], + "table_names_original": [ + "chip_model", + "screen_mode", + "phone" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "series name" + ], + [ + 0, + "country" + ], + [ + 0, + "language" + ], + [ + 0, + "content" + ], + [ + 0, + "pixel aspect ratio par" + ], + [ + 0, + "hight definition tv" + ], + [ + 0, + "pay per view ppv" + ], + [ + 0, + "package option" + ], + [ + 1, + "id" + ], + [ + 1, + "episode" + ], + [ + 1, + "air date" + ], + [ + 1, + "rating" + ], + [ + 1, + "share" + ], + [ + 1, + "18 49 rating share" + ], + [ + 1, + "viewers m" + ], + [ + 1, + "weekly rank" + ], + [ + 1, + "channel" + ], + [ + 2, + "id" + ], + [ + 2, + "title" + ], + [ + 2, + "directed by" + ], + [ + 2, + "written by" + ], + [ + 2, + "original air date" + ], + [ + 2, + "production code" + ], + [ + 2, + "channel" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "id" + ], + [ + 0, + "series_name" + ], + [ + 0, + "Country" + ], + [ + 0, + "Language" + ], + [ + 0, + "Content" + ], + [ + 0, + "Pixel_aspect_ratio_PAR" + ], + [ + 0, + "Hight_definition_TV" + ], + [ + 0, + "Pay_per_view_PPV" + ], + [ + 0, + "Package_Option" + ], + [ + 1, + "id" + ], + [ + 1, + "Episode" + ], + [ + 1, + "Air_Date" + ], + [ + 1, + "Rating" + ], + [ + 1, + "Share" + ], + [ + 1, + "18_49_Rating_Share" + ], + [ + 1, + "Viewers_m" + ], + [ + 1, + "Weekly_Rank" + ], + [ + 1, + "Channel" + ], + [ + 2, + "id" + ], + [ + 2, + "Title" + ], + [ + 2, + "Directed_by" + ], + [ + 2, + "Written_by" + ], + [ + 2, + "Original_air_date" + ], + [ + 2, + "Production_code" + ], + [ + 2, + "Channel" + ] + ], + "column_types": [ + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "text" + ], + "db_id": "tvshow", + "foreign_keys": [ + [ + 18, + 1 + ], + [ + 25, + 1 + ] + ], + "primary_keys": [ + 1, + 10, + 19 + ], + "table_names": [ + "tv channel", + "tv series", + "cartoon" + ], + "table_names_original": [ + "TV_Channel", + "TV_series", + "Cartoon" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "wrestler id" + ], + [ + 0, + "name" + ], + [ + 0, + "reign" + ], + [ + 0, + "days held" + ], + [ + 0, + "location" + ], + [ + 0, + "event" + ], + [ + 1, + "elimination id" + ], + [ + 1, + "wrestler id" + ], + [ + 1, + "team" + ], + [ + 1, + "eliminated by" + ], + [ + 1, + "elimination move" + ], + [ + 1, + "time" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Wrestler_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Reign" + ], + [ + 0, + "Days_held" + ], + [ + 0, + "Location" + ], + [ + 0, + "Event" + ], + [ + 1, + "Elimination_ID" + ], + [ + 1, + "Wrestler_ID" + ], + [ + 1, + "Team" + ], + [ + 1, + "Eliminated_By" + ], + [ + 1, + "Elimination_Move" + ], + [ + 1, + "Time" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "text" + ], + "db_id": "wrestler", + "foreign_keys": [ + [ + 8, + 1 + ] + ], + "primary_keys": [ + 1, + 7 + ], + "table_names": [ + "wrestler", + "elimination" + ], + "table_names_original": [ + "wrestler", + "Elimination" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "staff id" + ], + [ + 0, + "gender" + ], + [ + 0, + "first name" + ], + [ + 0, + "last name" + ], + [ + 0, + "email address" + ], + [ + 0, + "phone number" + ], + [ + 1, + "customer id" + ], + [ + 1, + "customer type code" + ], + [ + 1, + "address line 1" + ], + [ + 1, + "address line 2" + ], + [ + 1, + "town city" + ], + [ + 1, + "state" + ], + [ + 1, + "email address" + ], + [ + 1, + "phone number" + ], + [ + 2, + "product id" + ], + [ + 2, + "parent product id" + ], + [ + 2, + "product category code" + ], + [ + 2, + "date product first available" + ], + [ + 2, + "date product discontinued" + ], + [ + 2, + "product name" + ], + [ + 2, + "product description" + ], + [ + 2, + "product price" + ], + [ + 3, + "complaint id" + ], + [ + 3, + "product id" + ], + [ + 3, + "customer id" + ], + [ + 3, + "complaint outcome code" + ], + [ + 3, + "complaint status code" + ], + [ + 3, + "complaint type code" + ], + [ + 3, + "date complaint raised" + ], + [ + 3, + "date complaint closed" + ], + [ + 3, + "staff id" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "staff_id" + ], + [ + 0, + "gender" + ], + [ + 0, + "first_name" + ], + [ + 0, + "last_name" + ], + [ + 0, + "email_address" + ], + [ + 0, + "phone_number" + ], + [ + 1, + "customer_id" + ], + [ + 1, + "customer_type_code" + ], + [ + 1, + "address_line_1" + ], + [ + 1, + "address_line_2" + ], + [ + 1, + "town_city" + ], + [ + 1, + "state" + ], + [ + 1, + "email_address" + ], + [ + 1, + "phone_number" + ], + [ + 2, + "product_id" + ], + [ + 2, + "parent_product_id" + ], + [ + 2, + "product_category_code" + ], + [ + 2, + "date_product_first_available" + ], + [ + 2, + "date_product_discontinued" + ], + [ + 2, + "product_name" + ], + [ + 2, + "product_description" + ], + [ + 2, + "product_price" + ], + [ + 3, + "complaint_id" + ], + [ + 3, + "product_id" + ], + [ + 3, + "customer_id" + ], + [ + 3, + "complaint_outcome_code" + ], + [ + 3, + "complaint_status_code" + ], + [ + 3, + "complaint_type_code" + ], + [ + 3, + "date_complaint_raised" + ], + [ + 3, + "date_complaint_closed" + ], + [ + 3, + "staff_id" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "time", + "time", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "text", + "time", + "time", + "number" + ], + "db_id": "customer_complaints", + "foreign_keys": [ + [ + 25, + 7 + ], + [ + 24, + 15 + ], + [ + 31, + 1 + ] + ], + "primary_keys": [ + 1, + 7, + 15 + ], + "table_names": [ + "staff", + "customers", + "products", + "complaints" + ], + "table_names_original": [ + "Staff", + "Customers", + "Products", + "Complaints" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "department id" + ], + [ + 0, + "name" + ], + [ + 0, + "creation" + ], + [ + 0, + "ranking" + ], + [ + 0, + "budget in billions" + ], + [ + 0, + "num employees" + ], + [ + 1, + "head id" + ], + [ + 1, + "name" + ], + [ + 1, + "born state" + ], + [ + 1, + "age" + ], + [ + 2, + "department id" + ], + [ + 2, + "head id" + ], + [ + 2, + "temporary acting" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Department_ID" + ], + [ + 0, + "Name" + ], + [ + 0, + "Creation" + ], + [ + 0, + "Ranking" + ], + [ + 0, + "Budget_in_Billions" + ], + [ + 0, + "Num_Employees" + ], + [ + 1, + "head_ID" + ], + [ + 1, + "name" + ], + [ + 1, + "born_state" + ], + [ + 1, + "age" + ], + [ + 2, + "department_ID" + ], + [ + 2, + "head_ID" + ], + [ + 2, + "temporary_acting" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "text" + ], + "db_id": "department_management", + "foreign_keys": [ + [ + 12, + 7 + ], + [ + 11, + 1 + ] + ], + "primary_keys": [ + 1, + 7, + 11 + ], + "table_names": [ + "department", + "head", + "management" + ], + "table_names_original": [ + "department", + "head", + "management" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "address id" + ], + [ + 0, + "line 1 number building" + ], + [ + 0, + "city" + ], + [ + 0, + "zip postcode" + ], + [ + 0, + "state province county" + ], + [ + 0, + "country" + ], + [ + 1, + "product id" + ], + [ + 1, + "product type code" + ], + [ + 1, + "product name" + ], + [ + 1, + "product price" + ], + [ + 2, + "customer id" + ], + [ + 2, + "payment method code" + ], + [ + 2, + "customer number" + ], + [ + 2, + "customer name" + ], + [ + 2, + "customer address" + ], + [ + 2, + "customer phone" + ], + [ + 2, + "customer email" + ], + [ + 3, + "contact id" + ], + [ + 3, + "customer id" + ], + [ + 3, + "gender" + ], + [ + 3, + "first name" + ], + [ + 3, + "last name" + ], + [ + 3, + "contact phone" + ], + [ + 4, + "customer id" + ], + [ + 4, + "address id" + ], + [ + 4, + "date from" + ], + [ + 4, + "date to" + ], + [ + 5, + "order id" + ], + [ + 5, + "customer id" + ], + [ + 5, + "order date" + ], + [ + 5, + "order status code" + ], + [ + 6, + "order item id" + ], + [ + 6, + "order id" + ], + [ + 6, + "product id" + ], + [ + 6, + "order quantity" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "address_id" + ], + [ + 0, + "line_1_number_building" + ], + [ + 0, + "city" + ], + [ + 0, + "zip_postcode" + ], + [ + 0, + "state_province_county" + ], + [ + 0, + "country" + ], + [ + 1, + "product_id" + ], + [ + 1, + "product_type_code" + ], + [ + 1, + "product_name" + ], + [ + 1, + "product_price" + ], + [ + 2, + "customer_id" + ], + [ + 2, + "payment_method_code" + ], + [ + 2, + "customer_number" + ], + [ + 2, + "customer_name" + ], + [ + 2, + "customer_address" + ], + [ + 2, + "customer_phone" + ], + [ + 2, + "customer_email" + ], + [ + 3, + "contact_id" + ], + [ + 3, + "customer_id" + ], + [ + 3, + "gender" + ], + [ + 3, + "first_name" + ], + [ + 3, + "last_name" + ], + [ + 3, + "contact_phone" + ], + [ + 4, + "customer_id" + ], + [ + 4, + "address_id" + ], + [ + 4, + "date_from" + ], + [ + 4, + "date_to" + ], + [ + 5, + "order_id" + ], + [ + 5, + "customer_id" + ], + [ + 5, + "order_date" + ], + [ + 5, + "order_status_code" + ], + [ + 6, + "order_item_id" + ], + [ + 6, + "order_id" + ], + [ + 6, + "product_id" + ], + [ + 6, + "order_quantity" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "text", + "number", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "time", + "time", + "number", + "number", + "time", + "text", + "number", + "number", + "number", + "text" + ], + "db_id": "customers_and_products_contacts", + "foreign_keys": [ + [ + 25, + 1 + ], + [ + 24, + 11 + ], + [ + 29, + 11 + ], + [ + 33, + 28 + ], + [ + 34, + 7 + ] + ], + "primary_keys": [ + 1, + 7, + 11, + 18, + 28 + ], + "table_names": [ + "addresses", + "products", + "customers", + "contacts", + "customer address history", + "customer orders", + "order items" + ], + "table_names_original": [ + "Addresses", + "Products", + "Customers", + "Contacts", + "Customer_Address_History", + "Customer_Orders", + "Order_Items" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "employee ssn" + ], + [ + 0, + "project number" + ], + [ + 0, + "hours" + ], + [ + 1, + "first name" + ], + [ + 1, + "minit" + ], + [ + 1, + "last name" + ], + [ + 1, + "ssn" + ], + [ + 1, + "birth date" + ], + [ + 1, + "address" + ], + [ + 1, + "sex" + ], + [ + 1, + "salary" + ], + [ + 1, + "super ssn" + ], + [ + 1, + "department no" + ], + [ + 2, + "department name" + ], + [ + 2, + "department number" + ], + [ + 2, + "manager ssn" + ], + [ + 2, + "manager start date" + ], + [ + 3, + "dependent name" + ], + [ + 3, + "dependent number" + ], + [ + 3, + "dependent location" + ], + [ + 3, + "department number" + ], + [ + 4, + "employee ssn" + ], + [ + 4, + "dependent name" + ], + [ + 4, + "sex" + ], + [ + 4, + "birth date" + ], + [ + 4, + "relationship" + ], + [ + 5, + "department number" + ], + [ + 5, + "department location" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Essn" + ], + [ + 0, + "Pno" + ], + [ + 0, + "Hours" + ], + [ + 1, + "Fname" + ], + [ + 1, + "Minit" + ], + [ + 1, + "Lname" + ], + [ + 1, + "Ssn" + ], + [ + 1, + "Bdate" + ], + [ + 1, + "Address" + ], + [ + 1, + "Sex" + ], + [ + 1, + "Salary" + ], + [ + 1, + "Super_ssn" + ], + [ + 1, + "Dno" + ], + [ + 2, + "Dname" + ], + [ + 2, + "Dnumber" + ], + [ + 2, + "Mgr_ssn" + ], + [ + 2, + "Mgr_start_date" + ], + [ + 3, + "Pname" + ], + [ + 3, + "Pnumber" + ], + [ + 3, + "Plocation" + ], + [ + 3, + "Dnum" + ], + [ + 4, + "Essn" + ], + [ + 4, + "Dependent_name" + ], + [ + 4, + "Sex" + ], + [ + 4, + "Bdate" + ], + [ + 4, + "Relationship" + ], + [ + 5, + "Dnumber" + ], + [ + 5, + "Dlocation" + ] + ], + "column_types": [ + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "number", + "text", + "number", + "number", + "text", + "text", + "number", + "text", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "text" + ], + "db_id": "company_1", + "foreign_keys": [], + "primary_keys": [ + 1, + 7, + 15, + 19, + 22, + 27 + ], + "table_names": [ + "works on", + "employee", + "department", + "project", + "dependent", + "department locations" + ], + "table_names_original": [ + "works_on", + "employee", + "department", + "project", + "dependent", + "dept_locations" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "workshop id" + ], + [ + 0, + "date" + ], + [ + 0, + "venue" + ], + [ + 0, + "name" + ], + [ + 1, + "submission id" + ], + [ + 1, + "scores" + ], + [ + 1, + "author" + ], + [ + 1, + "college" + ], + [ + 2, + "submission id" + ], + [ + 2, + "workshop id" + ], + [ + 2, + "result" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Workshop_ID" + ], + [ + 0, + "Date" + ], + [ + 0, + "Venue" + ], + [ + 0, + "Name" + ], + [ + 1, + "Submission_ID" + ], + [ + 1, + "Scores" + ], + [ + 1, + "Author" + ], + [ + 1, + "College" + ], + [ + 2, + "Submission_ID" + ], + [ + 2, + "Workshop_ID" + ], + [ + 2, + "Result" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "number", + "number", + "text" + ], + "db_id": "workshop_paper", + "foreign_keys": [ + [ + 10, + 1 + ], + [ + 9, + 5 + ] + ], + "primary_keys": [ + 1, + 5, + 9 + ], + "table_names": [ + "workshop", + "submission", + "acceptance" + ], + "table_names_original": [ + "workshop", + "submission", + "Acceptance" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "item id" + ], + [ + 0, + "title" + ], + [ + 1, + "a id" + ], + [ + 1, + "user id" + ], + [ + 1, + "item id" + ], + [ + 1, + "rating" + ], + [ + 1, + "rank" + ], + [ + 2, + "user id" + ], + [ + 2, + "name" + ], + [ + 3, + "source user id" + ], + [ + 3, + "target user id" + ], + [ + 3, + "trust" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "i_id" + ], + [ + 0, + "title" + ], + [ + 1, + "a_id" + ], + [ + 1, + "u_id" + ], + [ + 1, + "i_id" + ], + [ + 1, + "rating" + ], + [ + 1, + "rank" + ], + [ + 2, + "u_id" + ], + [ + 2, + "name" + ], + [ + 3, + "source_u_id" + ], + [ + 3, + "target_u_id" + ], + [ + 3, + "trust" + ] + ], + "column_types": [ + "text", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "number", + "text", + "number", + "number", + "number" + ], + "db_id": "epinions_1", + "foreign_keys": [ + [ + 5, + 1 + ], + [ + 4, + 8 + ], + [ + 11, + 8 + ], + [ + 10, + 8 + ] + ], + "primary_keys": [ + 1, + 3, + 8 + ], + "table_names": [ + "item", + "review", + "useracct", + "trust" + ], + "table_names_original": [ + "item", + "review", + "useracct", + "trust" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "party id" + ], + [ + 0, + "party theme" + ], + [ + 0, + "location" + ], + [ + 0, + "first year" + ], + [ + 0, + "last year" + ], + [ + 0, + "number of hosts" + ], + [ + 1, + "host id" + ], + [ + 1, + "name" + ], + [ + 1, + "nationality" + ], + [ + 1, + "age" + ], + [ + 2, + "party id" + ], + [ + 2, + "host id" + ], + [ + 2, + "is main in charge" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "Party_ID" + ], + [ + 0, + "Party_Theme" + ], + [ + 0, + "Location" + ], + [ + 0, + "First_year" + ], + [ + 0, + "Last_year" + ], + [ + 0, + "Number_of_hosts" + ], + [ + 1, + "Host_ID" + ], + [ + 1, + "Name" + ], + [ + 1, + "Nationality" + ], + [ + 1, + "Age" + ], + [ + 2, + "Party_ID" + ], + [ + 2, + "Host_ID" + ], + [ + 2, + "Is_Main_in_Charge" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "text", + "text", + "text", + "number", + "number", + "others" + ], + "db_id": "party_host", + "foreign_keys": [ + [ + 11, + 1 + ], + [ + 12, + 7 + ] + ], + "primary_keys": [ + 1, + 7, + 11 + ], + "table_names": [ + "party", + "host", + "party host" + ], + "table_names_original": [ + "party", + "host", + "party_host" + ] + }, + { + "column_names": [ + [ + -1, + "*" + ], + [ + 0, + "attribute id" + ], + [ + 0, + "attribute name" + ], + [ + 0, + "attribute data type" + ], + [ + 1, + "catalog id" + ], + [ + 1, + "catalog name" + ], + [ + 1, + "catalog publisher" + ], + [ + 1, + "date of publication" + ], + [ + 1, + "date of latest revision" + ], + [ + 2, + "catalog level number" + ], + [ + 2, + "catalog id" + ], + [ + 2, + "catalog level name" + ], + [ + 3, + "catalog entry id" + ], + [ + 3, + "catalog level number" + ], + [ + 3, + "parent entry id" + ], + [ + 3, + "previous entry id" + ], + [ + 3, + "next entry id" + ], + [ + 3, + "catalog entry name" + ], + [ + 3, + "product stock number" + ], + [ + 3, + "price in dollars" + ], + [ + 3, + "price in euros" + ], + [ + 3, + "price in pounds" + ], + [ + 3, + "capacity" + ], + [ + 3, + "length" + ], + [ + 3, + "height" + ], + [ + 3, + "width" + ], + [ + 4, + "catalog entry id" + ], + [ + 4, + "catalog level number" + ], + [ + 4, + "attribute id" + ], + [ + 4, + "attribute value" + ] + ], + "column_names_original": [ + [ + -1, + "*" + ], + [ + 0, + "attribute_id" + ], + [ + 0, + "attribute_name" + ], + [ + 0, + "attribute_data_type" + ], + [ + 1, + "catalog_id" + ], + [ + 1, + "catalog_name" + ], + [ + 1, + "catalog_publisher" + ], + [ + 1, + "date_of_publication" + ], + [ + 1, + "date_of_latest_revision" + ], + [ + 2, + "catalog_level_number" + ], + [ + 2, + "catalog_id" + ], + [ + 2, + "catalog_level_name" + ], + [ + 3, + "catalog_entry_id" + ], + [ + 3, + "catalog_level_number" + ], + [ + 3, + "parent_entry_id" + ], + [ + 3, + "previous_entry_id" + ], + [ + 3, + "next_entry_id" + ], + [ + 3, + "catalog_entry_name" + ], + [ + 3, + "product_stock_number" + ], + [ + 3, + "price_in_dollars" + ], + [ + 3, + "price_in_euros" + ], + [ + 3, + "price_in_pounds" + ], + [ + 3, + "capacity" + ], + [ + 3, + "length" + ], + [ + 3, + "height" + ], + [ + 3, + "width" + ], + [ + 4, + "catalog_entry_id" + ], + [ + 4, + "catalog_level_number" + ], + [ + 4, + "attribute_id" + ], + [ + 4, + "attribute_value" + ] + ], + "column_types": [ + "text", + "number", + "text", + "text", + "number", + "text", + "text", + "time", + "time", + "number", + "number", + "text", + "number", + "number", + "number", + "number", + "number", + "text", + "text", + "number", + "number", + "number", + "text", + "text", + "text", + "text", + "number", + "number", + "number", + "text" + ], + "db_id": "product_catalog", + "foreign_keys": [ + [ + 10, + 4 + ], + [ + 13, + 9 + ], + [ + 27, + 9 + ], + [ + 26, + 12 + ] + ], + "primary_keys": [ + 1, + 4, + 9, + 12 + ], + "table_names": [ + "attribute definitions", + "catalogs", + "catalog structure", + "catalog contents", + "catalog contents additional attributes" + ], + "table_names_original": [ + "Attribute_Definitions", + "Catalogs", + "Catalog_Structure", + "Catalog_Contents", + "Catalog_Contents_Additional_Attributes" + ] + } +] \ No newline at end of file