minktn commited on
Commit
08b99f5
·
verified ·
1 Parent(s): df0afe2

Upload 920 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +5 -0
  2. spider_data/database/academic/academic.sqlite +3 -0
  3. spider_data/database/academic/schema.sql +108 -0
  4. spider_data/database/activity_1/activity_1.sqlite +3 -0
  5. spider_data/database/activity_1/schema.sql +328 -0
  6. spider_data/database/aircraft/aircraft.sqlite +3 -0
  7. spider_data/database/aircraft/schema.sql +108 -0
  8. spider_data/database/allergy_1/allergy_1.sqlite +3 -0
  9. spider_data/database/allergy_1/schema.sql +132 -0
  10. spider_data/database/apartment_rentals/apartment_rentals.sqlite +3 -0
  11. spider_data/database/apartment_rentals/schema.sql +170 -0
  12. spider_data/database/architecture/architecture.sqlite +3 -0
  13. spider_data/database/architecture/schema.sql +65 -0
  14. spider_data/database/assets_maintenance/assets_maintenance.sqlite +3 -0
  15. spider_data/database/assets_maintenance/schema.sql +355 -0
  16. spider_data/database/baseball_1/baseball_1.sqlite +3 -0
  17. spider_data/database/baseball_1/schema.sql +3 -0
  18. spider_data/database/battle_death/battle_death.sqlite +3 -0
  19. spider_data/database/battle_death/schema.sql +65 -0
  20. spider_data/database/behavior_monitoring/behavior_monitoring.sqlite +3 -0
  21. spider_data/database/behavior_monitoring/schema.sql +258 -0
  22. spider_data/database/bike_1/bike_1.sqlite +3 -0
  23. spider_data/database/bike_1/schema.sql +0 -0
  24. spider_data/database/body_builder/body_builder.sqlite +3 -0
  25. spider_data/database/body_builder/schema.sql +37 -0
  26. spider_data/database/book_2/book_2.sqlite +3 -0
  27. spider_data/database/book_2/schema.sql +40 -0
  28. spider_data/database/browser_web/browser_web.sqlite +3 -0
  29. spider_data/database/browser_web/schema.sql +58 -0
  30. spider_data/database/candidate_poll/candidate_poll.sqlite +3 -0
  31. spider_data/database/candidate_poll/schema.sql +42 -0
  32. spider_data/database/car_1/annotation.json +62 -0
  33. spider_data/database/car_1/car_1.json +216 -0
  34. spider_data/database/car_1/car_1.sql +52 -0
  35. spider_data/database/car_1/car_1.sqlite +3 -0
  36. spider_data/database/car_1/data_csv/README.CARS.TXT +149 -0
  37. spider_data/database/car_1/data_csv/car-makers.csv +3 -0
  38. spider_data/database/car_1/data_csv/car-names.csv +3 -0
  39. spider_data/database/car_1/data_csv/cars-data.csv +3 -0
  40. spider_data/database/car_1/data_csv/cars.desc +94 -0
  41. spider_data/database/car_1/data_csv/continents.csv +3 -0
  42. spider_data/database/car_1/data_csv/countries.csv +3 -0
  43. spider_data/database/car_1/data_csv/model-list.csv +3 -0
  44. spider_data/database/car_1/link.txt +1 -0
  45. spider_data/database/car_1/q.txt +27 -0
  46. spider_data/database/chinook_1/annotation.json +5 -0
  47. spider_data/database/chinook_1/chinook_1.sqlite +3 -0
  48. spider_data/database/cinema/cinema.sqlite +3 -0
  49. spider_data/database/cinema/schema.sql +60 -0
  50. spider_data/database/city_record/city_record.sqlite +3 -0
.gitattributes CHANGED
@@ -62,3 +62,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
62
  *.csv filter=lfs diff=lfs merge=lfs -text
63
  # Databases
64
  *.sqlite filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
62
  *.csv filter=lfs diff=lfs merge=lfs -text
63
  # Databases
64
  *.sqlite filter=lfs diff=lfs merge=lfs -text
65
+ spider_data/database/baseball_1/schema.sql filter=lfs diff=lfs merge=lfs -text
66
+ spider_data/database/soccer_1/schema.sql filter=lfs diff=lfs merge=lfs -text
67
+ spider_data/test_database/baseball_1/schema.sql filter=lfs diff=lfs merge=lfs -text
68
+ spider_data/test_database/soccer_1/schema.sql filter=lfs diff=lfs merge=lfs -text
69
+ spider_data/train_spider.json filter=lfs diff=lfs merge=lfs -text
spider_data/database/academic/academic.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ca59ebaa830731011a222885480e4b9f9d49c3e36849dee25b769fb74f296c2
3
+ size 122880
spider_data/database/academic/schema.sql ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE "author" (
3
+ "aid" int,
4
+ "homepage" text,
5
+ "name" text,
6
+ "oid" int,
7
+ primary key("aid")
8
+ );
9
+ CREATE TABLE "conference" (
10
+ "cid" int,
11
+ "homepage" text,
12
+ "name" text,
13
+ primary key ("cid")
14
+ );
15
+ CREATE TABLE "domain" (
16
+ "did" int,
17
+ "name" text,
18
+ primary key ("did")
19
+ );
20
+ CREATE TABLE "domain_author" (
21
+ "aid" int,
22
+ "did" int,
23
+ primary key ("did", "aid"),
24
+ foreign key("aid") references `author`("aid"),
25
+ foreign key("did") references `domain`("did")
26
+ );
27
+
28
+ CREATE TABLE "domain_conference" (
29
+ "cid" int,
30
+ "did" int,
31
+ primary key ("did", "cid"),
32
+ foreign key("cid") references `conference`("cid"),
33
+ foreign key("did") references `domain`("did")
34
+ );
35
+ CREATE TABLE "journal" (
36
+ "homepage" text,
37
+ "jid" int,
38
+ "name" text,
39
+ primary key("jid")
40
+ );
41
+ CREATE TABLE "domain_journal" (
42
+ "did" int,
43
+ "jid" int,
44
+ primary key ("did", "jid"),
45
+ foreign key("jid") references "journal"("jid"),
46
+ foreign key("did") references "domain"("did")
47
+ );
48
+ CREATE TABLE "keyword" (
49
+ "keyword" text,
50
+ "kid" int,
51
+ primary key("kid")
52
+ );
53
+ CREATE TABLE "domain_keyword" (
54
+ "did" int,
55
+ "kid" int,
56
+ primary key ("did", "kid"),
57
+ foreign key("kid") references "keyword"("kid"),
58
+ foreign key("did") references "domain"("did")
59
+ );
60
+ CREATE TABLE "publication" (
61
+ "abstract" text,
62
+ "cid" text,
63
+ "citation_num" int,
64
+ "jid" int,
65
+ "pid" int,
66
+ "reference_num" int,
67
+ "title" text,
68
+ "year" int,
69
+ primary key("pid"),
70
+ foreign key("jid") references "journal"("jid"),
71
+ foreign key("cid") references "conference"("cid")
72
+ );
73
+ CREATE TABLE "domain_publication" (
74
+ "did" int,
75
+ "pid" int,
76
+ primary key ("did", "pid"),
77
+ foreign key("pid") references "publication"("pid"),
78
+ foreign key("did") references "domain"("did")
79
+ );
80
+
81
+ CREATE TABLE "organization" (
82
+ "continent" text,
83
+ "homepage" text,
84
+ "name" text,
85
+ "oid" int,
86
+ primary key("oid")
87
+ );
88
+
89
+ CREATE TABLE "publication_keyword" (
90
+ "pid" int,
91
+ "kid" int,
92
+ primary key ("kid", "pid"),
93
+ foreign key("pid") references "publication"("pid"),
94
+ foreign key("kid") references "keyword"("kid")
95
+ );
96
+ CREATE TABLE "writes" (
97
+ "aid" int,
98
+ "pid" int,
99
+ primary key ("aid", "pid"),
100
+ foreign key("pid") references "publication"("pid"),
101
+ foreign key("aid") references "author"("aid")
102
+ );
103
+ CREATE TABLE "cite" (
104
+ "cited" int,
105
+ "citing" int,
106
+ foreign key("cited") references "publication"("pid"),
107
+ foreign key("citing") references "publication"("pid")
108
+ );
spider_data/database/activity_1/activity_1.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e32fff45bbcf0d0f4304bf646d52c651063f3c128d974d72cb751d5cf105c83
3
+ size 24576
spider_data/database/activity_1/schema.sql ADDED
@@ -0,0 +1,328 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ create table Activity (
2
+ actid INTEGER PRIMARY KEY,
3
+ activity_name varchar(25)
4
+ );
5
+
6
+ create table Participates_in (
7
+ stuid INTEGER,
8
+ actid INTEGER,
9
+ FOREIGN KEY(stuid) REFERENCES Student(StuID),
10
+ FOREIGN KEY(actid) REFERENCES Activity(actid)
11
+ );
12
+
13
+ create table Faculty_Participates_in (
14
+ FacID INTEGER,
15
+ actid INTEGER,
16
+ FOREIGN KEY(FacID) REFERENCES Faculty(FacID),
17
+ FOREIGN KEY(actid) REFERENCES Activity(actid)
18
+ );
19
+
20
+ create table Student (
21
+ StuID INTEGER PRIMARY KEY,
22
+ LName VARCHAR(12),
23
+ Fname VARCHAR(12),
24
+ Age INTEGER,
25
+ Sex VARCHAR(1),
26
+ Major INTEGER,
27
+ Advisor INTEGER,
28
+ city_code VARCHAR(3)
29
+ );
30
+
31
+ create table Faculty (
32
+ FacID INTEGER PRIMARY KEY,
33
+ Lname VARCHAR(15),
34
+ Fname VARCHAR(15),
35
+ Rank VARCHAR(15),
36
+ Sex VARCHAR(1),
37
+ Phone INTEGER,
38
+ Room VARCHAR(5),
39
+ Building VARCHAR(13)
40
+ );
41
+
42
+
43
+ insert into Faculty values ( 1082, 'Giuliano', 'Mark', 'Instructor', 'M', 2424, '224', 'NEB');
44
+ insert into Faculty values ( 1121, 'Goodrich', 'Michael', 'Professor', 'M', 3593, '219', 'NEB');
45
+ insert into Faculty values ( 1148, 'Masson', 'Gerald', 'Professor', 'M', 3402, '224B', 'NEB');
46
+ insert into Faculty values ( 1193, 'Jones', 'Stacey', 'Instructor', 'F', 3550, '224', 'NEB');
47
+ insert into Faculty values ( 2192, 'Yarowsky', 'David', 'AsstProf', 'M', 6587, '324', 'NEB');
48
+ insert into Faculty values ( 3457, 'Smith', 'Scott', 'AssocProf', 'M', 1035, '318', 'NEB');
49
+ insert into Faculty values ( 4230, 'Houlahan', 'Joanne', 'Instructor', 'F', 1260, '328', 'NEB');
50
+ insert into Faculty values ( 6112, 'Beach', 'Louis', 'Instructor', 'M', 1838, '207', 'NEB');
51
+ insert into Faculty values ( 7712, 'Awerbuch', 'Baruch', 'Professor', 'M', 2105, '220', 'NEB');
52
+ insert into Faculty values ( 7792, 'Brill', 'Eric', 'AsstProf', 'M', 2303, '324B', 'NEB');
53
+ insert into Faculty values ( 7723, 'Taylor', 'Russell', 'Professor', 'M', 2435, '317', 'NEB');
54
+ insert into Faculty values ( 8114, 'Angelopoulou', 'Ellie', 'Instructor', 'F', 2152, '316', 'NEB');
55
+ insert into Faculty values ( 8423, 'Kumar', 'Subodh', 'AsstProf', 'M', 2522, '218', 'NEB');
56
+ insert into Faculty values ( 8721, 'Wolff', 'Lawrence', 'AssocProf', 'M', 2342, '316', 'NEB');
57
+ insert into Faculty values ( 8741, 'Salzberg', 'Steven', 'AssocProf', 'M', 2641, '324A', 'NEB');
58
+ insert into Faculty values ( 8918, 'Amir', 'Yair', 'AsstProf', 'M', 2672, '308', 'NEB');
59
+ insert into Faculty values ( 9172, 'Kosaraju', 'Rao', 'Professor', 'M', 2757, '319', 'NEB');
60
+ insert into Faculty values ( 9826, 'Delcher', 'Arthur', 'Instructor', 'M', 2956, '329', 'NEB');
61
+ insert into Faculty values ( 1172, 'Runolfsson', 'Thordur', 'AssocProf', 'M', 3121, '119', 'Barton');
62
+ insert into Faculty values ( 1177, 'Naiman', 'Daniel', 'Professor', 'M', 3571, '288', 'Krieger');
63
+ insert into Faculty values ( 1823, 'Davidson', 'Frederic', 'Professor', 'M', 5629, '119', 'Barton');
64
+ insert into Faculty values ( 2028, 'Brody', 'William', 'Professor', 'M', 6073, '119', 'Barton');
65
+ insert into Faculty values ( 2119, 'Meyer', 'Gerard', 'Professor', 'M', 6350, '119', 'Barton');
66
+ insert into Faculty values ( 2291, 'Scheinerman', 'Edward', 'Professor', 'M', 6654, '288', 'Krieger');
67
+ insert into Faculty values ( 2311, 'Priebe', 'Carey', 'AsstProf', 'M', 6953, '288', 'Krieger');
68
+ insert into Faculty values ( 2738, 'Fill', 'James', 'Professor', 'M', 8209, '288', 'Krieger');
69
+ insert into Faculty values ( 2881, 'Goldman', 'Alan', 'Professor', 'M', 8335, '288', 'Krieger');
70
+ insert into Faculty values ( 4432, 'Burzio', 'Luigi', 'Professor', 'M', 1813, '288', 'Krieger');
71
+ insert into Faculty values ( 5718, 'Frank', 'Robert', 'AsstProf', 'M', 1751, '288', 'Krieger');
72
+ insert into Faculty values ( 6182, 'Cheng', 'Cheng', 'AsstProf', 'M', 1856, '288', 'Krieger');
73
+ insert into Faculty values ( 6191, 'Kaplan', 'Alexander', 'Professor', 'M', 1825, '119', 'Barton');
74
+ insert into Faculty values ( 6330, 'Byrne', 'William', 'Instructor', 'M', 1691, '119', 'Barton');
75
+ insert into Faculty values ( 6541, 'Han', 'Shih-Ping', 'Professor', 'M', 1914, '288', 'Krieger');
76
+ insert into Faculty values ( 6910, 'Smolensky', 'Paul', 'Professor', 'M', 2072, '288', 'Krieger');
77
+ insert into Faculty values ( 6925, 'Iglesias', 'Pablo', 'AsstProf', 'M', 2021, '119', 'Barton');
78
+ insert into Faculty values ( 7134, 'Goutsias', 'John', 'Professor', 'M', 2184, '119', 'Barton');
79
+ insert into Faculty values ( 7231, 'Rugh', 'Wilson', 'Professor', 'M', 2191, '119', 'Barton');
80
+ insert into Faculty values ( 7271, 'Jelinek', 'Frederick', 'Professor', 'M', 2890, '119', 'Barton');
81
+ insert into Faculty values ( 7506, 'Westgate', 'Charles', 'Professor', 'M', 2932, '119', 'Barton');
82
+ insert into Faculty values ( 8102, 'James', 'Lancelot', 'AsstProf', 'M', 2792, '288', 'Krieger');
83
+ insert into Faculty values ( 8118, 'Weinert', 'Howard', 'Professor', 'M', 3272, '119', 'Barton');
84
+ insert into Faculty values ( 8122, 'Wierman', 'John', 'Professor', 'M', 3392,'288', 'Krieger');
85
+ insert into Faculty values ( 8722, 'Cauwenberghs', 'Gert', 'AsstProf', 'M', 1372, '119', 'Barton');
86
+ insert into Faculty values ( 8723, 'Andreou', 'Andreas', 'Professor', 'M', 1402, '119', 'Barton');
87
+ insert into Faculty values ( 8772, 'Cowen', 'Lenore', 'AsstProf', 'F', 2870, '288', 'Krieger');
88
+ insert into Faculty values ( 8791, 'McCloskey', 'Michael', 'Professor', 'M', 3440, '288', 'Krieger');
89
+ insert into Faculty values ( 8989, 'Brent', 'Michael', 'AsstProf', 'M', 9373, '288', 'Krieger');
90
+ insert into Faculty values ( 9011, 'Rapp', 'Brenda', 'AsstProf', 'F', 2032, '288', 'Krieger');
91
+ insert into Faculty values ( 9191, 'Collins', 'Oliver', 'AssocProf', 'M', 5427, '119', 'Barton');
92
+ insert into Faculty values ( 9199, 'Hughes', 'Brian', 'AssocProf', 'M', 5666, '119', 'Barton');
93
+ insert into Faculty values ( 9210, 'Joseph', 'Richard', 'Professor', 'M', 5996, '119', 'Barton');
94
+ insert into Faculty values ( 9514, 'Prince', 'Jerry', 'AssocProf', 'M', 5106, '119', 'Barton');
95
+ insert into Faculty values ( 9823, 'Pang', 'Jong-Shi', 'Professor', 'M', 4366, '288', 'Krieger');
96
+ insert into Faculty values ( 9824, 'Glaser', 'Robert', 'Instructor', 'M', 4396, '119', 'Barton');
97
+ insert into Faculty values ( 9811, 'Wu', 'Colin', 'AsstProf', 'M', 2906, '288', 'Krieger');
98
+ insert into Faculty values ( 9643, 'Legendre', 'Geraldine', 'AssocProf', 'F', 8972, '288', 'Krieger');
99
+ insert into Faculty values ( 9379, 'Khurgin', 'Jacob', 'Professor', 'M', 1060, '119', 'Barton');
100
+ insert into Faculty values ( 9922, 'Hall', 'Leslie', 'AsstProf', 'F', 7332, '288', 'Krieger');
101
+
102
+ insert into Student values ( 1001, 'Smith', 'Linda', 18, 'F', 600, 1121,'BAL');
103
+ insert into Student values ( 1002, 'Kim', 'Tracy', 19, 'F', 600, 7712,'HKG');
104
+ insert into Student values ( 1003, 'Jones', 'Shiela', 21, 'F', 600, 7792,'WAS');
105
+ insert into Student values ( 1004, 'Kumar', 'Dinesh', 20, 'M', 600, 8423,'CHI');
106
+ insert into Student values ( 1005, 'Gompers', 'Paul', 26, 'M', 600, 1121,'YYZ');
107
+ insert into Student values ( 1006, 'Schultz', 'Andy', 18, 'M', 600, 1148,'BAL');
108
+ insert into Student values ( 1007, 'Apap', 'Lisa', 18, 'F', 600, 8918,'PIT');
109
+ insert into Student values ( 1008, 'Nelson', 'Jandy', 20, 'F', 600, 9172,'BAL');
110
+ insert into Student values ( 1009, 'Tai', 'Eric', 19, 'M', 600, 2192,'YYZ');
111
+ insert into Student values ( 1010, 'Lee', 'Derek', 17, 'M', 600, 2192,'HOU');
112
+ insert into Student values ( 1011, 'Adams', 'David', 22, 'M', 600, 1148,'PHL');
113
+ insert into Student values ( 1012, 'Davis', 'Steven', 20, 'M', 600, 7723,'PIT');
114
+ insert into Student values ( 1014, 'Norris', 'Charles', 18, 'M', 600, 8741, 'DAL');
115
+ insert into Student values ( 1015, 'Lee', 'Susan', 16, 'F', 600, 8721,'HKG');
116
+ insert into Student values ( 1016, 'Schwartz', 'Mark', 17, 'M', 600, 2192,'DET');
117
+ insert into Student values ( 1017, 'Wilson', 'Bruce', 27, 'M', 600, 1148,'LON');
118
+ insert into Student values ( 1018, 'Leighton', 'Michael', 20, 'M', 600, 1121, 'PIT');
119
+ insert into Student values ( 1019, 'Pang', 'Arthur', 18, 'M', 600, 2192,'WAS');
120
+ insert into Student values ( 1020, 'Thornton', 'Ian', 22, 'M', 520, 7271,'NYC');
121
+ insert into Student values ( 1021, 'Andreou', 'George', 19, 'M', 520, 8722, 'NYC');
122
+ insert into Student values ( 1022, 'Woods', 'Michael', 17, 'M', 540, 8722,'PHL');
123
+ insert into Student values ( 1023, 'Shieber', 'David', 20, 'M', 520, 8722,'NYC');
124
+ insert into Student values ( 1024, 'Prater', 'Stacy', 18, 'F', 540, 7271,'BAL');
125
+ insert into Student values ( 1025, 'Goldman', 'Mark', 18, 'M', 520, 7134,'PIT');
126
+ insert into Student values ( 1026, 'Pang', 'Eric', 19, 'M', 520, 7134,'HKG');
127
+ insert into Student values ( 1027, 'Brody', 'Paul', 18, 'M', 520, 8723,'LOS');
128
+ insert into Student values ( 1028, 'Rugh', 'Eric', 20, 'M', 550, 2311,'ROC');
129
+ insert into Student values ( 1029, 'Han', 'Jun', 17, 'M', 100, 2311,'PEK');
130
+ insert into Student values ( 1030, 'Cheng', 'Lisa', 21, 'F', 550, 2311,'SFO');
131
+ insert into Student values ( 1031, 'Smith', 'Sarah', 20, 'F', 550, 8772,'PHL');
132
+ insert into Student values ( 1032, 'Brown', 'Eric', 20, 'M', 550, 8772,'ATL');
133
+ insert into Student values ( 1033, 'Simms', 'William', 18, 'M', 550, 8772,'NAR');
134
+ insert into Student values ( 1034, 'Epp', 'Eric', 18, 'M', 050, 5718,'BOS');
135
+ insert into Student values ( 1035, 'Schmidt', 'Sarah', 26, 'F', 050, 5718,'WAS');
136
+
137
+ insert into Activity values ( 770 , 'Mountain Climbing' ) ;
138
+ insert into Activity values ( 771 , 'Canoeing' ) ;
139
+ insert into Activity values ( 772 , 'Kayaking' ) ;
140
+ insert into Activity values ( 773 , 'Spelunking' ) ;
141
+ insert into Activity values ( 777 , 'Soccer' ) ;
142
+ insert into Activity values ( 778 , 'Baseball' ) ;
143
+ insert into Activity values ( 780 , 'Football' ) ;
144
+ insert into Activity values ( 782 , 'Volleyball' ) ;
145
+ insert into Activity values ( 799 , 'Bungee Jumping' ) ;
146
+ insert into Activity values ( 779 , 'Accordion Ensemble' ) ;
147
+ insert into Activity values ( 784 , 'Canasta' ) ;
148
+ insert into Activity values ( 785 , 'Chess' ) ;
149
+ insert into Activity values ( 776 , 'Extreme Canasta' ) ;
150
+ insert into Activity values ( 790 , 'Crossword Puzzles' ) ;
151
+ insert into Activity values ( 791 , 'Proselytizing' ) ;
152
+ insert into Activity values ( 796 , 'Square Dancing' ) ;
153
+
154
+
155
+
156
+
157
+ insert into Participates_in values (1001 , 770) ;
158
+ insert into Participates_in values (1001 , 771) ;
159
+ insert into Participates_in values (1001 , 777) ;
160
+
161
+ insert into Participates_in values (1002 , 772) ;
162
+ insert into Participates_in values (1002 , 771) ;
163
+
164
+ insert into Participates_in values (1003 , 778) ;
165
+
166
+
167
+ insert into Participates_in values (1004 , 780) ;
168
+ insert into Participates_in values (1004 , 782) ;
169
+ insert into Participates_in values (1004 , 778) ;
170
+ insert into Participates_in values (1004 , 777) ;
171
+
172
+ insert into Participates_in values (1005 , 770) ;
173
+
174
+
175
+ insert into Participates_in values (1006 , 773) ;
176
+
177
+
178
+ insert into Participates_in values (1007 , 773) ;
179
+ insert into Participates_in values (1007 , 784) ;
180
+
181
+ insert into Participates_in values (1008 , 785) ;
182
+ insert into Participates_in values (1008 , 773) ;
183
+ insert into Participates_in values (1008 , 780) ;
184
+ insert into Participates_in values (1008 , 790) ;
185
+
186
+ insert into Participates_in values (1009 , 778) ;
187
+ insert into Participates_in values (1009 , 777) ;
188
+ insert into Participates_in values (1009 , 782) ;
189
+
190
+ insert into Participates_in values (1010 , 780) ;
191
+
192
+
193
+ insert into Participates_in values (1011 , 780) ;
194
+
195
+
196
+ insert into Participates_in values (1012 , 780) ;
197
+
198
+
199
+ insert into Participates_in values (1014 , 780) ;
200
+ insert into Participates_in values (1014 , 777) ;
201
+ insert into Participates_in values (1014 , 778) ;
202
+ insert into Participates_in values (1014 , 782) ;
203
+ insert into Participates_in values (1014 , 770) ;
204
+ insert into Participates_in values (1014 , 772) ;
205
+
206
+ insert into Participates_in values (1015 , 785) ;
207
+
208
+
209
+ insert into Participates_in values (1016 , 791) ;
210
+ insert into Participates_in values (1016 , 772) ;
211
+
212
+ insert into Participates_in values (1017 , 791) ;
213
+ insert into Participates_in values (1017 , 771) ;
214
+ insert into Participates_in values (1017 , 770) ;
215
+
216
+ insert into Participates_in values (1018 , 790) ;
217
+ insert into Participates_in values (1018 , 785) ;
218
+ insert into Participates_in values (1018 , 784) ;
219
+ insert into Participates_in values (1018 , 777) ;
220
+ insert into Participates_in values (1018 , 772) ;
221
+ insert into Participates_in values (1018 , 770) ;
222
+
223
+ insert into Participates_in values (1019 , 785) ;
224
+ insert into Participates_in values (1019 , 790) ;
225
+
226
+ insert into Participates_in values (1020 , 780) ;
227
+
228
+
229
+ insert into Participates_in values (1021 , 780) ;
230
+ insert into Participates_in values (1021 , 776) ;
231
+
232
+ insert into Participates_in values (1022 , 782) ;
233
+ insert into Participates_in values (1022 , 790) ;
234
+
235
+ insert into Participates_in values (1023 , 790) ;
236
+ insert into Participates_in values (1023 , 776) ;
237
+
238
+ insert into Participates_in values (1024 , 778) ;
239
+ insert into Participates_in values (1024 , 777) ;
240
+ insert into Participates_in values (1024 , 780) ;
241
+
242
+ insert into Participates_in values (1025 , 780) ;
243
+ insert into Participates_in values (1025 , 777) ;
244
+ insert into Participates_in values (1025 , 770) ;
245
+
246
+ insert into Participates_in values (1028 , 785) ;
247
+
248
+
249
+ insert into Participates_in values (1029 , 785) ;
250
+ insert into Participates_in values (1029 , 790) ;
251
+
252
+ insert into Participates_in values (1030 , 780) ;
253
+ insert into Participates_in values (1030 , 790) ;
254
+
255
+ insert into Participates_in values (1033 , 780) ;
256
+
257
+ insert into Participates_in values (1034 , 780) ;
258
+ insert into Participates_in values (1034 , 777) ;
259
+ insert into Participates_in values (1034 , 772) ;
260
+ insert into Participates_in values (1034 , 771) ;
261
+
262
+ insert into Participates_in values (1035 , 777) ;
263
+ insert into Participates_in values (1035 , 780) ;
264
+ insert into Participates_in values (1035 , 784) ;
265
+
266
+
267
+
268
+
269
+
270
+
271
+ insert into Faculty_Participates_in values ( 1082, 784) ;
272
+ insert into Faculty_Participates_in values ( 1082, 785) ;
273
+ insert into Faculty_Participates_in values ( 1082, 790) ;
274
+
275
+ insert into Faculty_Participates_in values ( 1121, 771) ;
276
+ insert into Faculty_Participates_in values ( 1121, 777) ;
277
+ insert into Faculty_Participates_in values ( 1121, 770) ;
278
+
279
+ insert into Faculty_Participates_in values ( 1193, 790) ;
280
+ insert into Faculty_Participates_in values ( 1193, 796) ;
281
+ insert into Faculty_Participates_in values ( 1193, 773) ;
282
+
283
+ insert into Faculty_Participates_in values ( 2192, 773) ;
284
+ insert into Faculty_Participates_in values ( 2192, 790) ;
285
+ insert into Faculty_Participates_in values ( 2192, 778) ;
286
+
287
+ insert into Faculty_Participates_in values ( 3457, 782) ;
288
+ insert into Faculty_Participates_in values ( 3457, 771) ;
289
+ insert into Faculty_Participates_in values ( 3457, 784) ;
290
+
291
+ insert into Faculty_Participates_in values ( 4230, 790) ;
292
+ insert into Faculty_Participates_in values ( 4230, 785) ;
293
+
294
+ insert into Faculty_Participates_in values ( 6112, 785) ;
295
+ insert into Faculty_Participates_in values ( 6112, 772) ;
296
+
297
+ insert into Faculty_Participates_in values ( 7723, 785) ;
298
+ insert into Faculty_Participates_in values ( 7723, 770) ;
299
+
300
+ insert into Faculty_Participates_in values ( 8114, 776) ;
301
+
302
+ insert into Faculty_Participates_in values ( 8721, 770) ;
303
+ insert into Faculty_Participates_in values ( 8721, 780) ;
304
+
305
+ insert into Faculty_Participates_in values ( 8741, 780) ;
306
+ insert into Faculty_Participates_in values ( 8741, 790) ;
307
+
308
+ insert into Faculty_Participates_in values ( 8918, 780) ;
309
+ insert into Faculty_Participates_in values ( 8918, 782) ;
310
+ insert into Faculty_Participates_in values ( 8918, 771) ;
311
+
312
+ insert into Faculty_Participates_in values ( 2881, 790) ;
313
+ insert into Faculty_Participates_in values ( 2881, 784) ;
314
+
315
+ insert into Faculty_Participates_in values ( 4432, 770) ;
316
+ insert into Faculty_Participates_in values ( 4432, 771) ;
317
+
318
+ insert into Faculty_Participates_in values ( 5718, 776) ;
319
+
320
+
321
+ insert into Faculty_Participates_in values ( 6182, 776) ;
322
+ insert into Faculty_Participates_in values ( 6182, 785) ;
323
+
324
+ insert into Faculty_Participates_in values ( 1177, 790) ;
325
+ insert into Faculty_Participates_in values ( 1177, 770) ;
326
+ insert into Faculty_Participates_in values ( 1177, 770) ;
327
+
328
+ insert into Faculty_Participates_in values ( 9922, 796) ;
spider_data/database/aircraft/aircraft.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b92973e99d8348a324e318fd4d62645ebe428e7346b51277e78385d1ad3b1ef
3
+ size 45056
spider_data/database/aircraft/schema.sql ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+
5
+ CREATE TABLE `pilot` (
6
+ `Pilot_Id` int(11) NOT NULL,
7
+ `Name` varchar(50) NOT NULL,
8
+ `Age` int(11) NOT NULL,
9
+ PRIMARY KEY (`Pilot_Id`)
10
+ );
11
+
12
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (1, 'Prof. Zackery Collins', 23);
13
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (2, 'Katheryn Gorczany IV', 20);
14
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (3, 'Mr. Cristian Halvorson II', 23);
15
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (4, 'Ayana Spencer', 25);
16
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (5, 'Ellen Ledner III', 31);
17
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (6, 'Elisha Hickle V', 37);
18
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (7, 'Dr. Jade Bradtke V', 26);
19
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (8, 'Winnifred Boyle', 30);
20
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (9, 'Della Lindgren', 29);
21
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (10, 'Maxwell Graham', 26);
22
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (11, 'Blaise Muller', 33);
23
+ INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (12, 'Baylee Steuber', 30);
24
+
25
+
26
+ CREATE TABLE `aircraft` (
27
+ "Aircraft_ID" int(11) NOT NULL,
28
+ "Aircraft" varchar(50) NOT NULL,
29
+ "Description" varchar(50) NOT NULL,
30
+ "Max_Gross_Weight" varchar(50) NOT NULL,
31
+ "Total_disk_area" varchar(50) NOT NULL,
32
+ "Max_disk_Loading" varchar(50) NOT NULL,
33
+ PRIMARY KEY (`Aircraft_ID`)
34
+ );
35
+
36
+
37
+ CREATE TABLE `match` (
38
+ "Round" real,
39
+ "Location" text,
40
+ "Country" text,
41
+ "Date" text,
42
+ "Fastest_Qualifying" text,
43
+ "Winning_Pilot" text,
44
+ "Winning_Aircraft" text,
45
+ PRIMARY KEY ("Round"),
46
+ FOREIGN KEY (`Winning_Aircraft`) REFERENCES `aircraft`(`Aircraft_ID`),
47
+ FOREIGN KEY (`Winning_Pilot`) REFERENCES `pilot`(`Pilot_Id`)
48
+ );
49
+
50
+ CREATE TABLE `airport` (
51
+ "Airport_ID" int,
52
+ "Airport_Name" text,
53
+ "Total_Passengers" real,
54
+ "%_Change_2007" text,
55
+ "International_Passengers" real,
56
+ "Domestic_Passengers" real,
57
+ "Transit_Passengers" real,
58
+ "Aircraft_Movements" real,
59
+ "Freight_Metric_Tonnes" real,
60
+ PRIMARY KEY ("Airport_ID")
61
+ );
62
+
63
+ CREATE TABLE `airport_aircraft` (
64
+ "ID" int,
65
+ "Airport_ID" int,
66
+ "Aircraft_ID" int,
67
+ PRIMARY KEY ("Airport_ID","Aircraft_ID"),
68
+ FOREIGN KEY ("Airport_ID") REFERENCES `airport`(`Airport_ID`),
69
+ FOREIGN KEY ("Aircraft_ID") REFERENCES `aircraft`(`Aircraft_ID`)
70
+ );
71
+
72
+
73
+
74
+ INSERT INTO "aircraft" VALUES (1,"Robinson R-22","Light utility helicopter","1,370 lb (635 kg)","497 ft² (46.2 m²)","2.6 lb/ft² (14 kg/m²)");
75
+ INSERT INTO "aircraft" VALUES (2,"Bell 206B3 JetRanger","Turboshaft utility helicopter","3,200 lb (1,451 kg)","872 ft² (81.1 m²)","3.7 lb/ft² (18 kg/m²)");
76
+ INSERT INTO "aircraft" VALUES (3,"CH-47D Chinook","Tandem rotor helicopter","50,000 lb (22,680 kg)","5,655 ft² (526 m²)","8.8 lb/ft² (43 kg/m²)");
77
+ INSERT INTO "aircraft" VALUES (4,"Mil Mi-26","Heavy-lift helicopter","123,500 lb (56,000 kg)","8,495 ft² (789 m²)","14.5 lb/ft² (71 kg/m²)");
78
+ INSERT INTO "aircraft" VALUES (5,"CH-53E Super Stallion","Heavy-lift helicopter","73,500 lb (33,300 kg)","4,900 ft² (460 m²)","15 lb/ft² (72 kg/m²)");
79
+
80
+
81
+ INSERT INTO "match" VALUES ("1","Mina' Zayid , Abu Dhabi","United Arab Emirates","March 26–27","Hannes Arch",1,1);
82
+ INSERT INTO "match" VALUES ("2","Swan River , Perth","Australia","April 17–18","Paul Bonhomme",4,1);
83
+ INSERT INTO "match" VALUES ("3","Flamengo Beach , Rio de Janeiro","Brazil","May 8–9","Hannes Arch",6,2);
84
+ INSERT INTO "match" VALUES ("4","Windsor , Ontario","Canada","June 5–6","Nigel Lamb",4,4);
85
+ INSERT INTO "match" VALUES ("5","New York City","United States","June 19–20","Hannes Arch",9,3);
86
+ INSERT INTO "match" VALUES ("6","EuroSpeedway Lausitz","Germany","August 7–8","Paul Bonhomme",2,4);
87
+ INSERT INTO "match" VALUES ("7","River Danube , Budapest","Hungary","Cancelled","Cancelled",6,5);
88
+
89
+
90
+
91
+ INSERT INTO "airport" VALUES (1,"London Heathrow","67054745","1.5%","61344438","5562516","147791","478693","1397054");
92
+ INSERT INTO "airport" VALUES (2,"London Gatwick","34205887","2.9%","30431051","3730963","43873","263653","107702");
93
+ INSERT INTO "airport" VALUES (3,"London Stansted","22360364","6.0%","19996947","2343428","19989","193282","197738");
94
+ INSERT INTO "airport" VALUES (4,"Manchester","21219195","4.0%","18119230","2943719","156246","204610","141781");
95
+ INSERT INTO "airport" VALUES (5,"London Luton","10180734","2.6%","8853224","1320678","6832","117859","40518");
96
+ INSERT INTO "airport" VALUES (6,"Birmingham Airport","9627589","4.3%","8105162","1471538","50889","112227","12192");
97
+ INSERT INTO "airport" VALUES (7,"Edinburgh","9006702","0.5%","3711140","5281038","14524","125550","12418");
98
+ INSERT INTO "airport" VALUES (8,"Glasgow International","8178891","7.0%","3943139","4192121","43631","100087","3546");
99
+ INSERT INTO "airport" VALUES (9,"Bristol","6267114","5.7%","5057051","1171605","38458","76517","3");
100
+ INSERT INTO "airport" VALUES (10,"East Midlands","5620673","3.8%","4870184","746094","4395","93038","261507");
101
+
102
+
103
+
104
+ INSERT INTO "airport_aircraft" VALUES (1,6,5);
105
+ INSERT INTO "airport_aircraft" VALUES (2,2,1);
106
+ INSERT INTO "airport_aircraft" VALUES (3,1,2);
107
+ INSERT INTO "airport_aircraft" VALUES (4,9,3);
108
+
spider_data/database/allergy_1/allergy_1.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3ce73d649463526f6f6b04f457f40a778c8c192b8451cc2837437dc7a18a207
3
+ size 20480
spider_data/database/allergy_1/schema.sql ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ create table Allergy_Type (
2
+ Allergy VARCHAR(20) PRIMARY KEY,
3
+ AllergyType VARCHAR(20)
4
+ );
5
+
6
+ create table Has_Allergy (
7
+ StuID INTEGER,
8
+ Allergy VARCHAR(20),
9
+ FOREIGN KEY(StuID) REFERENCES Student(StuID),
10
+ FOREIGN KEY(Allergy) REFERENCES Allergy_Type(Allergy)
11
+ );
12
+
13
+ create table Student (
14
+ StuID INTEGER PRIMARY KEY,
15
+ LName VARCHAR(12),
16
+ Fname VARCHAR(12),
17
+ Age INTEGER,
18
+ Sex VARCHAR(1),
19
+ Major INTEGER,
20
+ Advisor INTEGER,
21
+ city_code VARCHAR(3)
22
+ );
23
+
24
+ insert into Student values ( 1001, 'Smith', 'Linda', 18, 'F', 600, 1121,'BAL');
25
+ insert into Student values ( 1002, 'Kim', 'Tracy', 19, 'F', 600, 7712,'HKG');
26
+ insert into Student values ( 1003, 'Jones', 'Shiela', 21, 'F', 600, 7792,'WAS');
27
+ insert into Student values ( 1004, 'Kumar', 'Dinesh', 20, 'M', 600, 8423,'CHI');
28
+ insert into Student values ( 1005, 'Gompers', 'Paul', 26, 'M', 600, 1121,'YYZ');
29
+ insert into Student values ( 1006, 'Schultz', 'Andy', 18, 'M', 600, 1148,'BAL');
30
+ insert into Student values ( 1007, 'Apap', 'Lisa', 18, 'F', 600, 8918,'PIT');
31
+ insert into Student values ( 1008, 'Nelson', 'Jandy', 20, 'F', 600, 9172,'BAL');
32
+ insert into Student values ( 1009, 'Tai', 'Eric', 19, 'M', 600, 2192,'YYZ');
33
+ insert into Student values ( 1010, 'Lee', 'Derek', 17, 'M', 600, 2192,'HOU');
34
+ insert into Student values ( 1011, 'Adams', 'David', 22, 'M', 600, 1148,'PHL');
35
+ insert into Student values ( 1012, 'Davis', 'Steven', 20, 'M', 600, 7723,'PIT');
36
+ insert into Student values ( 1014, 'Norris', 'Charles', 18, 'M', 600, 8741, 'DAL');
37
+ insert into Student values ( 1015, 'Lee', 'Susan', 16, 'F', 600, 8721,'HKG');
38
+ insert into Student values ( 1016, 'Schwartz', 'Mark', 17, 'M', 600, 2192,'DET');
39
+ insert into Student values ( 1017, 'Wilson', 'Bruce', 27, 'M', 600, 1148,'LON');
40
+ insert into Student values ( 1018, 'Leighton', 'Michael', 20, 'M', 600, 1121, 'PIT');
41
+ insert into Student values ( 1019, 'Pang', 'Arthur', 18, 'M', 600, 2192,'WAS');
42
+ insert into Student values ( 1020, 'Thornton', 'Ian', 22, 'M', 520, 7271,'NYC');
43
+ insert into Student values ( 1021, 'Andreou', 'George', 19, 'M', 520, 8722, 'NYC');
44
+ insert into Student values ( 1022, 'Woods', 'Michael', 17, 'M', 540, 8722,'PHL');
45
+ insert into Student values ( 1023, 'Shieber', 'David', 20, 'M', 520, 8722,'NYC');
46
+ insert into Student values ( 1024, 'Prater', 'Stacy', 18, 'F', 540, 7271,'BAL');
47
+ insert into Student values ( 1025, 'Goldman', 'Mark', 18, 'M', 520, 7134,'PIT');
48
+ insert into Student values ( 1026, 'Pang', 'Eric', 19, 'M', 520, 7134,'HKG');
49
+ insert into Student values ( 1027, 'Brody', 'Paul', 18, 'M', 520, 8723,'LOS');
50
+ insert into Student values ( 1028, 'Rugh', 'Eric', 20, 'M', 550, 2311,'ROC');
51
+ insert into Student values ( 1029, 'Han', 'Jun', 17, 'M', 100, 2311,'PEK');
52
+ insert into Student values ( 1030, 'Cheng', 'Lisa', 21, 'F', 550, 2311,'SFO');
53
+ insert into Student values ( 1031, 'Smith', 'Sarah', 20, 'F', 550, 8772,'PHL');
54
+ insert into Student values ( 1032, 'Brown', 'Eric', 20, 'M', 550, 8772,'ATL');
55
+ insert into Student values ( 1033, 'Simms', 'William', 18, 'M', 550, 8772,'NAR');
56
+ insert into Student values ( 1034, 'Epp', 'Eric', 18, 'M', 050, 5718,'BOS');
57
+ insert into Student values ( 1035, 'Schmidt', 'Sarah', 26, 'F', 050, 5718,'WAS');
58
+
59
+ insert into Has_Allergy values ( 1001, 'Cat' );
60
+ insert into Has_Allergy values ( 1002, 'Shellfish' );
61
+ insert into Has_Allergy values ( 1002, 'Tree Pollen' );
62
+ insert into Has_Allergy values ( 1003, 'Dog' );
63
+ insert into Has_Allergy values ( 1004, 'Nuts' );
64
+ insert into Has_Allergy values ( 1005, 'Nuts' );
65
+ insert into Has_Allergy values ( 1005, 'Tree Pollen' );
66
+ insert into Has_Allergy values ( 1006, 'Nuts' );
67
+ insert into Has_Allergy values ( 1007, 'Ragweed' );
68
+ insert into Has_Allergy values ( 1007, 'Tree Pollen' );
69
+ insert into Has_Allergy values ( 1007, 'Grass Pollen' );
70
+ insert into Has_Allergy values ( 1007, 'Eggs' );
71
+ insert into Has_Allergy values ( 1007, 'Milk' );
72
+ insert into Has_Allergy values ( 1007, 'Shellfish' );
73
+ insert into Has_Allergy values ( 1007, 'Anchovies' );
74
+ insert into Has_Allergy values ( 1007, 'Cat' );
75
+ insert into Has_Allergy values ( 1007, 'Dog' );
76
+ insert into Has_Allergy values ( 1009, 'Tree Pollen' );
77
+ insert into Has_Allergy values ( 1010, 'Ragweed' );
78
+ insert into Has_Allergy values ( 1010, 'Tree Pollen' );
79
+ insert into Has_Allergy values ( 1010, 'Grass Pollen' );
80
+ insert into Has_Allergy values ( 1010, 'Eggs' );
81
+ insert into Has_Allergy values ( 1010, 'Milk' );
82
+ insert into Has_Allergy values ( 1010, 'Shellfish' );
83
+ insert into Has_Allergy values ( 1010, 'Anchovies' );
84
+ insert into Has_Allergy values ( 1010, 'Cat' );
85
+ insert into Has_Allergy values ( 1010, 'Dog' );
86
+ insert into Has_Allergy values ( 1011, 'Ragweed' );
87
+ insert into Has_Allergy values ( 1012, 'Ragweed' );
88
+ insert into Has_Allergy values ( 1013, 'Ragweed' );
89
+ insert into Has_Allergy values ( 1014, 'Nuts' );
90
+ insert into Has_Allergy values ( 1015, 'Nuts' );
91
+ insert into Has_Allergy values ( 1015, 'Soy' );
92
+ insert into Has_Allergy values ( 1016, 'Nuts' );
93
+ insert into Has_Allergy values ( 1016, 'Milk' );
94
+ insert into Has_Allergy values ( 1017, 'Tree Pollen' );
95
+ insert into Has_Allergy values ( 1018, 'Nuts' );
96
+ insert into Has_Allergy values ( 1018, 'Soy' );
97
+ insert into Has_Allergy values ( 1019, 'Tree Pollen' );
98
+ insert into Has_Allergy values ( 1020, 'Tree Pollen' );
99
+ insert into Has_Allergy values ( 1021, 'Tree Pollen' );
100
+ insert into Has_Allergy values ( 1022, 'Nuts' );
101
+ insert into Has_Allergy values ( 1022, 'Anchovies' );
102
+ insert into Has_Allergy values ( 1023, 'Rodent' );
103
+ insert into Has_Allergy values ( 1023, 'Cat' );
104
+ insert into Has_Allergy values ( 1023, 'Nuts' );
105
+ insert into Has_Allergy values ( 1024, 'Ragweed' );
106
+ insert into Has_Allergy values ( 1024, 'Tree Pollen' );
107
+ insert into Has_Allergy values ( 1025, 'Tree Pollen' );
108
+ insert into Has_Allergy values ( 1026, 'Grass Pollen' );
109
+ insert into Has_Allergy values ( 1027, 'Tree Pollen' );
110
+ insert into Has_Allergy values ( 1028, 'Tree Pollen' );
111
+ insert into Has_Allergy values ( 1029, 'Soy' );
112
+ insert into Has_Allergy values ( 1029, 'Nuts' );
113
+ insert into Has_Allergy values ( 1029, 'Eggs' );
114
+ insert into Has_Allergy values ( 1030, 'Grass Pollen' );
115
+ insert into Has_Allergy values ( 1031, 'Nuts' );
116
+ insert into Has_Allergy values ( 1031, 'Shellfish' );
117
+ insert into Has_Allergy values ( 1031, 'Soy' );
118
+
119
+ insert into Allergy_Type values ( 'Eggs', 'food' );
120
+ insert into Allergy_Type values ( 'Nuts', 'food' );
121
+ insert into Allergy_Type values ( 'Milk', 'food' );
122
+ insert into Allergy_Type values ( 'Shellfish', 'food' );
123
+ insert into Allergy_Type values ( 'Anchovies', 'food' );
124
+ insert into Allergy_Type values ( 'Wheat', 'food' );
125
+ insert into Allergy_Type values ( 'Soy', 'food' );
126
+ insert into Allergy_Type values ( 'Ragweed', 'environmental' );
127
+ insert into Allergy_Type values ( 'Tree Pollen', 'environmental' );
128
+ insert into Allergy_Type values ( 'Grass Pollen', 'environmental' );
129
+ insert into Allergy_Type values ( 'Cat', 'animal' );
130
+ insert into Allergy_Type values ( 'Dog', 'animal' );
131
+ insert into Allergy_Type values ( 'Rodent', 'animal' );
132
+ insert into Allergy_Type values ( 'Bee Stings', 'animal' );
spider_data/database/apartment_rentals/apartment_rentals.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42121c39f5132a9df8eea63ff01d4cdb446144e020079c073a58a949f9d40e34
3
+ size 53248
spider_data/database/apartment_rentals/schema.sql ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE Apartment_Buildings (
4
+ building_id INTEGER NOT NULL,
5
+ building_short_name CHAR(15),
6
+ building_full_name VARCHAR(80),
7
+ building_description VARCHAR(255),
8
+ building_address VARCHAR(255),
9
+ building_manager VARCHAR(50),
10
+ building_phone VARCHAR(80),
11
+ PRIMARY KEY (building_id),
12
+ UNIQUE (building_id)
13
+ );
14
+
15
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (133, 'Normandie Court', 'Normandie Court', 'Studio', '7950 Casper Vista Apt. 176
16
+ Marquiseberg, CA 70496', 'Emma', '(948)040-1064x387');
17
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (153, 'Mercedes House', 'Mercedes House', 'Studio', '354 Otto Villages
18
+ Charliefort, VT 71664', 'Brenden', '915-617-2408x832');
19
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (191, 'The Eugene', 'The Eugene', 'Flat', '71537 Gorczany Inlet
20
+ Wisozkburgh, AL 08256', 'Melyssa', '(609)946-0491');
21
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (196, 'VIA 57 WEST', 'VIA 57 WEST', 'Studio', '959 Ethel Viaduct
22
+ West Efrainburgh, DE 40074', 'Kathlyn', '681.772.2454');
23
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (225, 'Columbus Square', 'Columbus Square', 'Studio', '0703 Danika Mountains Apt. 362
24
+ Mohrland, AL 56839-5028', 'Kyle', '1-724-982-9507x640');
25
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (532, 'Avalon Park', 'Avalon Park', 'Duplex', '6827 Kessler Parkway Suite 908
26
+ Ahmedberg, WI 48788', 'Albert', '376-017-3538');
27
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (556, 'Peter Cooper Village', 'Peter Cooper Village', 'Flat', '861 Narciso Glens Suite 392
28
+ East Ottis, ND 73970', 'Darlene', '1-224-619-0295x13195');
29
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (624, 'Stuyvesant Town', 'Stuyvesant Town', 'Studio', '101 Queenie Mountains Suite 619
30
+ New Korbinmouth, KS 88726-1376', 'Marie', '(145)411-6406');
31
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (644, 'The Anthem', 'The Anthem', 'Flat', '50804 Mason Isle Suite 844
32
+ West Whitney, ID 66511', 'Ewald', '(909)086-5221x3455');
33
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (673, 'Barclay Tower', 'Barclay Tower', 'Flat', '1579 Runte Forges Apt. 548
34
+ Leuschkeland, OK 12009-8683', 'Rogers', '1-326-267-3386x613');
35
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (734, 'Windsor Court', 'Windsor Court', 'Studio', '601 Graham Roads
36
+ Port Luz, VA 29660-6703', 'Olaf', '(480)480-7401');
37
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (744, 'Silver Towers', 'Silver Towers', 'Flat', '1844 Armstrong Stravenue Suite 853
38
+ Myrnatown, CT 13528', 'Claude', '1-667-728-2287x3158');
39
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (790, 'Biltmore Plaza', 'Biltmore Plaza', 'Duplex', '489 Josh Orchard Apt. 998
40
+ Sipesview, DE 69053', 'Sydni', '544-148-5565x2847');
41
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (808, 'Petersfield', 'Petersfield', 'Studio', '54686 Christopher Circles Apt. 321
42
+ Daytonland, ID 88081-3991', 'Juvenal', '318-398-8140');
43
+ INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (968, 'The Clinton', 'The Clinton', 'Flat', '012 Arnoldo Mountain
44
+ Gerholdland, ID 23342', 'Holly', '1-605-511-1973x25011');
45
+
46
+ CREATE TABLE Apartments (
47
+ apt_id INTEGER NOT NULL ,
48
+ building_id INTEGER NOT NULL,
49
+ apt_type_code CHAR(15),
50
+ apt_number CHAR(10),
51
+ bathroom_count INTEGER,
52
+ bedroom_count INTEGER,
53
+ room_count CHAR(5),
54
+ PRIMARY KEY (apt_id),
55
+ UNIQUE (apt_id),
56
+ FOREIGN KEY (building_id) REFERENCES Apartment_Buildings (building_id)
57
+ );
58
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (1, 808, 'Flat', 'Suite 645', 1, 3, '7');
59
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (2, 624, 'Flat', 'Apt. 585', 2, 4, '5');
60
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (3, 225, 'Studio', 'Apt. 908', 1, 6, '7');
61
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (4, 225, 'Duplex', 'Suite 749', 1, 5, '8');
62
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (5, 744, 'Flat', 'Suite 307', 2, 4, '9');
63
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (6, 191, 'Studio', 'Apt. 187', 3, 5, '9');
64
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (7, 790, 'Studio', 'Suite 088', 2, 4, '6');
65
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (8, 153, 'Flat', 'Suite 693', 2, 3, '9');
66
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (9, 624, 'Studio', 'Apt. 940', 1, 4, '8');
67
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (10, 225, 'Duplex', 'Apt. 859', 2, 3, '6');
68
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (11, 734, 'Flat', 'Apt. 794', 1, 5, '3');
69
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (12, 673, 'Duplex', 'Apt. 477', 2, 6, '3');
70
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (13, 744, 'Duplex', 'Apt. 411', 2, 5, '9');
71
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (14, 225, 'Flat', 'Apt. 837', 2, 4, '8');
72
+ INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (15, 790, 'Duplex', 'Suite 634', 3, 6, '8');
73
+
74
+ CREATE TABLE Apartment_Facilities (
75
+ apt_id INTEGER NOT NULL,
76
+ facility_code CHAR(15) NOT NULL,
77
+ PRIMARY KEY (apt_id, facility_code),
78
+ FOREIGN KEY (apt_id) REFERENCES Apartments (apt_id)
79
+ );
80
+ INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (1, 'Boardband');
81
+ INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (2, 'Boardband');
82
+ INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (3, 'Gym');
83
+ INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (5, 'Swimming Pool');
84
+ INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (6, 'Cable TV');
85
+ INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (9, 'Boardband');
86
+ INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (15, 'Gym');
87
+ CREATE TABLE Guests (
88
+ guest_id INTEGER NOT NULL ,
89
+ gender_code CHAR(1),
90
+ guest_first_name VARCHAR(80),
91
+ guest_last_name VARCHAR(80),
92
+ date_of_birth DATETIME,
93
+ PRIMARY KEY (guest_id),
94
+ UNIQUE (guest_id)
95
+ );
96
+
97
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (1, 'Male', 'Kip', 'DuBuque', '1995-11-04 07:09:57');
98
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (2, 'Unknown', 'Rebeca', 'Runolfsdottir', '1974-05-12 21:53:58');
99
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (3, 'Female', 'Keon', 'Treutel', '1974-08-20 09:28:05');
100
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (4, 'Female', 'Gabe', 'Bode', '2007-09-11 19:01:39');
101
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (5, 'Female', 'Lou', 'Grady', '1997-01-15 17:37:40');
102
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (6, 'Unknown', 'Josefina', 'Jerde', '1978-03-08 04:43:04');
103
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (7, 'Female', 'Mozell', 'Toy', '1997-01-20 17:11:31');
104
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (8, 'Unknown', 'Keith', 'Hoeger', '2001-06-18 20:05:55');
105
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (9, 'Female', 'Crystal', 'Runolfsson', '1971-01-04 04:22:58');
106
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (10, 'Female', 'Nikki', 'Lehner', '1980-06-20 18:15:39');
107
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (11, 'Male', 'Gregoria', 'Schowalter', '2015-02-03 23:34:13');
108
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (12, 'Male', 'Louvenia', 'Crona', '1983-08-26 15:45:08');
109
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (13, 'Female', 'Else', 'Roberts', '1971-11-02 01:51:56');
110
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (14, 'Female', 'Juvenal', 'Kautzer', '2003-07-29 22:08:15');
111
+ INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (15, 'Female', 'Tamia', 'Mante', '2013-02-22 11:26:22');
112
+
113
+
114
+ CREATE TABLE Apartment_Bookings (
115
+ apt_booking_id INTEGER NOT NULL,
116
+ apt_id INTEGER,
117
+ guest_id INTEGER NOT NULL,
118
+ booking_status_code CHAR(15) NOT NULL,
119
+ booking_start_date DATETIME,
120
+ booking_end_date DATETIME,
121
+ PRIMARY KEY (apt_booking_id),
122
+ UNIQUE (apt_booking_id),
123
+ FOREIGN KEY (apt_id) REFERENCES Apartments (apt_id),
124
+ FOREIGN KEY (guest_id) REFERENCES Guests (guest_id)
125
+ );
126
+ CREATE TABLE View_Unit_Status (
127
+ apt_id INTEGER,
128
+ apt_booking_id INTEGER,
129
+ status_date DATETIME NOT NULL,
130
+ available_yn BIT,
131
+ PRIMARY KEY (status_date),
132
+ FOREIGN KEY (apt_id) REFERENCES Apartments (apt_id),
133
+ FOREIGN KEY (apt_booking_id) REFERENCES Apartment_Bookings (apt_booking_id)
134
+ );
135
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (258, 10, 2, 'Provisional', '2016-09-26 17:13:49', '2017-10-07 11:38:48');
136
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (279, 15, 15, 'Provisional', '2016-04-01 06:28:08', '2017-10-25 11:08:42');
137
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (337, 8, 5, 'Provisional', '2017-03-13 16:20:14', '2018-02-19 16:59:08');
138
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (343, 4, 13, 'Confirmed', '2016-08-04 10:33:00', '2017-09-29 12:43:50');
139
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (365, 9, 12, 'Confirmed', '2017-02-11 14:34:14', '2017-10-07 20:47:19');
140
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (401, 7, 14, 'Provisional', '2016-05-24 20:09:38', '2017-10-03 01:56:21');
141
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (497, 10, 8, 'Confirmed', '2016-07-25 02:57:04', '2017-09-28 11:08:15');
142
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (526, 8, 7, 'Confirmed', '2016-11-26 05:04:31', '2018-02-25 15:15:37');
143
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (575, 6, 3, 'Provisional', '2017-05-13 18:17:20', '2017-10-06 11:15:58');
144
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (577, 12, 2, 'Provisional', '2017-03-04 02:23:49', '2018-02-06 16:57:05');
145
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (623, 4, 5, 'Provisional', '2016-06-07 05:05:18', '2017-11-13 13:59:45');
146
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (807, 11, 2, 'Provisional', '2016-04-17 12:53:59', '2018-03-20 17:32:58');
147
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (889, 10, 4, 'Confirmed', '2016-09-28 05:00:50', '2017-09-30 18:41:04');
148
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (920, 2, 2, 'Confirmed', '2017-04-07 04:53:27', '2017-11-29 12:59:42');
149
+ INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (924, 8, 3, 'Confirmed', '2017-07-03 14:15:56', '2017-11-12 01:05:09');
150
+
151
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (11, 920, '1970-09-28 10:24:29', '1');
152
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (15, 575, '1972-03-23 22:55:53', '1');
153
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (15, 924, '1973-10-28 04:30:14', '1');
154
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (6, 497, '1976-12-18 04:03:51', '1');
155
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (12, 807, '1977-04-15 13:42:19', '1');
156
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (13, 575, '1978-12-28 11:53:34', '1');
157
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (2, 497, '1980-11-12 13:34:45', '1');
158
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (14, 401, '1985-11-05 11:46:35', '0');
159
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (11, 497, '1990-11-04 17:57:50', '1');
160
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (13, 337, '2000-02-04 07:50:09', '0');
161
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (14, 279, '2001-02-17 20:17:09', '1');
162
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (5, 337, '2003-07-25 10:13:48', '1');
163
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (1, 497, '2003-08-02 08:36:36', '1');
164
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (10, 497, '2006-02-23 05:50:04', '1');
165
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (6, 401, '2011-02-12 09:04:07', '1');
166
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (9, 623, '2011-11-06 22:08:42', '1');
167
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (14, 920, '2012-11-24 13:39:37', '0');
168
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (4, 258, '2014-12-10 13:53:21', '1');
169
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (13, 343, '2015-06-19 07:59:01', '1');
170
+ INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (5, 889, '2015-07-15 11:06:29', '1');
spider_data/database/architecture/architecture.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea405f3511d01a3f7d688fbec2b214b7fb82ed9f5795f424a0e1a655f704d406
3
+ size 28672
spider_data/database/architecture/schema.sql ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "architect" (
4
+ "id" text,
5
+ "name" text,
6
+ "nationality" text,
7
+ "gender" text,
8
+ primary key("id")
9
+ );
10
+
11
+ CREATE TABLE "bridge" (
12
+ "architect_id" int,
13
+ "id" int,
14
+ "name" text,
15
+ "location" text,
16
+ "length_meters" real,
17
+ "length_feet" real,
18
+ primary key("id"),
19
+ foreign key ("architect_id" ) references `architect`("id")
20
+ );
21
+
22
+ CREATE TABLE "mill" (
23
+ "architect_id" int,
24
+ "id" int,
25
+ "location" text,
26
+ "name" text,
27
+ "type" text,
28
+ "built_year" int,
29
+ "notes" text,
30
+ primary key ("id"),
31
+ foreign key ("architect_id" ) references `architect`("id")
32
+ );
33
+
34
+
35
+ INSERT INTO "architect" VALUES (1, "Frank Lloyd Wright", "American", "male");
36
+ INSERT INTO "architect" VALUES (2, "Frank Gehry", "Canadian", "male");
37
+ INSERT INTO "architect" VALUES (3, "Zaha Hadid", "Iraqi, British", "female");
38
+ INSERT INTO "architect" VALUES (4, "Mies Van Der Rohe", "German, American", "male");
39
+ INSERT INTO "architect" VALUES (5, "Le Corbusier", "Swiss, French", "male");
40
+
41
+
42
+ INSERT INTO "bridge" VALUES (1,"1","Xian Ren Qiao (Fairy Bridge)","Guangxi , China","121","400");
43
+ INSERT INTO "bridge" VALUES (2,"2","Landscape Arch","Arches National Park , Utah , USA","88","290");
44
+ INSERT INTO "bridge" VALUES (3,"3","Kolob Arch","Zion National Park , Utah , USA","87","287");
45
+ INSERT INTO "bridge" VALUES (4,"4","Aloba Arch","Ennedi Plateau , Chad","76","250");
46
+ INSERT INTO "bridge" VALUES (5,"5","Morning Glory Natural Bridge","Negro Bill Canyon , Utah , USA","74","243");
47
+ INSERT INTO "bridge" VALUES (5,"6","Rainbow Bridge","Glen Canyon National Recreation Area , Utah , USA","71","234");
48
+ INSERT INTO "bridge" VALUES (4,"7","Gaotun Natural Bridge","Guizhou , China","70","230");
49
+ INSERT INTO "bridge" VALUES (3,"8","Sipapu Natural Bridge","Natural Bridges National Monument , Utah , USA","69","225");
50
+ INSERT INTO "bridge" VALUES (2,"9","Stevens Arch","Escalante Canyon , Utah , USA","67","220");
51
+ INSERT INTO "bridge" VALUES (1,"10","Shipton's Arch","Xinjiang , China","65","212");
52
+ INSERT INTO "bridge" VALUES (1,"11","Jiangzhou Arch","Guangxi , China","65","212");
53
+ INSERT INTO "bridge" VALUES (1,"12","Hazarchishma Natural Bridge","Bamiyan Province , Afghanistan","64.2","210.6");
54
+ INSERT INTO "bridge" VALUES (2,"13","Outlaw Arch","Dinosaur National Monument , Colorado , USA","63","206");
55
+ INSERT INTO "bridge" VALUES (2,"14","Snake Bridge","Sanostee , New Mexico , USA","62","204");
56
+ INSERT INTO "bridge" VALUES (5,"15","Wrather Arch","Wrather Canyon , Arizona , USA","75","246");
57
+
58
+
59
+ INSERT INTO "mill" VALUES (1,1,"Coswarem","Le Vieux Molen","Grondzeiler","1840","Molenechos (Dutch)");
60
+ INSERT INTO "mill" VALUES (1,2,"Donceel","Moulin Bertrand","Grondzeiler","1890","Molenechos (Dutch)");
61
+ INSERT INTO "mill" VALUES (2,3,"Fexhe-le-haut-Clocher","Moulin de Fexhe","Grondzeiler","1843","Molenechos (Dutch)");
62
+ INSERT INTO "mill" VALUES (3,4,"Momalle","Moulin de Momalle","Bergmolen","1850","Molenechos (Dutch)");
63
+ INSERT INTO "mill" VALUES (4,5,"Othée","Moulin du Château","Grondzeiler","1856","Molenechos (Dutch)");
64
+ INSERT INTO "mill" VALUES (4,6,"Pousset","Moulin de Pousset","Grondzeiler","1819","Molenechos (Dutch)");
65
+
spider_data/database/assets_maintenance/assets_maintenance.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:847af85ebcc94f6be06e06f5bd8a22500bd4e208a29a3e732eed13c72eda43c1
3
+ size 69632
spider_data/database/assets_maintenance/schema.sql ADDED
@@ -0,0 +1,355 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE `Third_Party_Companies` (
4
+ `company_id` INTEGER PRIMARY KEY ,
5
+ `company_type` VARCHAR(5) NOT NULL,
6
+ `company_name` VARCHAR(255),
7
+ `company_address` VARCHAR(255),
8
+ `other_company_details` VARCHAR(255)
9
+ );
10
+
11
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (1, 'Maintenance Contractor', 'Langworth-Funk', '615 Jacobs Mews', 'Uganda');
12
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (2, 'Maintenance Contractor', 'McDermott Group', '873 Conrad Creek Apt. 286', 'China');
13
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (3, 'Maintenance Contractor', 'Schuppe-Carroll', '066 Bechtelar Ridge', 'United Arab Emirates');
14
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (4, 'Maintenance Contractor', 'Dooley-Langosh', '9576 Jacynthe Point Suite 747', 'Albania');
15
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (5, 'Supplier', 'Dooley and Sons', '84631 Rosenbaum Well Suite 727', 'Palestinian Territory');
16
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (6, 'Supplier', 'Grimes, Mosciski and Renner', '9405 Leffler Hollow Apt. 753', 'Kiribati');
17
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (7, 'Maintenance Contractor', 'Weimann-Swift', '016 Kaitlyn Fall Suite 236', 'Egypt');
18
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (8, 'Maintenance Contractor', 'Glover-Vandervort', '51515 Conn Corner Suite 696', 'Ethiopia');
19
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (9, 'Maintenance Contractor', 'Wisoky, Toy and Bashirian', '605 D''Amore Oval', 'Iran');
20
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (10, 'Maintenance Contractor', 'White Ltd', '680 Hammes Ways', 'Niue');
21
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (11, 'Maintenance Contractor', 'Kuvalis, Boehm and Hettinger', '99335 Cummings Square Apt. 723', 'Somalia');
22
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (12, 'Maintenance Contractor', 'Dicki, Erdman and Kris', '60743 Dion Harbors Suite 825', 'Western Sahara');
23
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (13, 'Supplier', 'Greenholt-D''Amore', '1755 Schaefer Road', 'Slovenia');
24
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (14, 'Supplier', 'Purdy Inc', '846 Casper Route', 'Saint Helena');
25
+ INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (15, 'Maintenance Contractor', 'Rau, Ullrich and King', '5147 Raul Burg Apt. 623', 'Armenia');
26
+
27
+
28
+ CREATE TABLE `Maintenance_Contracts` (
29
+ `maintenance_contract_id` INTEGER PRIMARY KEY,
30
+ `maintenance_contract_company_id` INTEGER NOT NULL,
31
+ `contract_start_date` DATETIME,
32
+ `contract_end_date` DATETIME,
33
+ `other_contract_details` VARCHAR(255),
34
+ FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
35
+ );
36
+
37
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (1, 15, '2017-09-13 11:51:29', '2018-03-16 21:21:50', NULL);
38
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (2, 9, '2017-12-18 11:43:16', '2018-03-22 06:00:37', NULL);
39
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (3, 11, '2017-05-06 02:32:19', '2018-03-20 14:02:54', NULL);
40
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (4, 13, '2018-01-24 00:06:30', '2018-03-02 16:12:23', NULL);
41
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (5, 4, '2017-10-28 05:13:21', '2018-02-27 17:36:59', NULL);
42
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (6, 7, '2018-03-07 10:59:11', '2018-03-14 10:17:43', NULL);
43
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (7, 13, '2017-09-01 05:34:02', '2018-02-27 05:03:22', NULL);
44
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (8, 8, '2017-11-23 11:26:12', '2018-03-02 22:26:54', NULL);
45
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (9, 6, '2017-04-21 00:03:07', '2018-03-07 19:30:50', NULL);
46
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (10, 6, '2017-06-14 01:46:59', '2018-03-09 10:40:10', NULL);
47
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (11, 15, '2017-05-04 13:39:18', '2018-03-14 20:21:10', NULL);
48
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (12, 6, '2017-12-06 20:09:39', '2018-03-06 13:47:14', NULL);
49
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (13, 14, '2017-07-23 05:07:37', '2018-03-05 21:24:36', NULL);
50
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (14, 10, '2017-09-19 17:57:17', '2018-03-15 06:45:00', NULL);
51
+ INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (15, 6, '2017-05-14 11:57:50', '2018-03-23 17:29:21', NULL);
52
+
53
+
54
+ CREATE TABLE `Parts` (
55
+ `part_id` INTEGER PRIMARY KEY,
56
+ `part_name` VARCHAR(255),
57
+ `chargeable_yn` VARCHAR(1),
58
+ `chargeable_amount` VARCHAR(20),
59
+ `other_part_details` VARCHAR(255)
60
+ );
61
+
62
+ INSERT INTO Parts (`part_id`, `part_name`, `chargeable_yn`, `chargeable_amount`, `other_part_details`) VALUES (1, 'top', '0', '4', NULL);
63
+ INSERT INTO Parts (`part_id`, `part_name`, `chargeable_yn`, `chargeable_amount`, `other_part_details`) VALUES (2, 'middle', '1', '9', NULL);
64
+ INSERT INTO Parts (`part_id`, `part_name`, `chargeable_yn`, `chargeable_amount`, `other_part_details`) VALUES (3, 'package', '1', '9', NULL);
65
+
66
+ CREATE TABLE `Skills` (
67
+ `skill_id` INTEGER PRIMARY KEY,
68
+ `skill_code` VARCHAR(20),
69
+ `skill_description` VARCHAR(255)
70
+ );
71
+
72
+ INSERT INTO Skills (`skill_id`, `skill_code`, `skill_description`) VALUES (1, 'ELEC', 'Electrical');
73
+ INSERT INTO Skills (`skill_id`, `skill_code`, `skill_description`) VALUES (2, 'MECH', 'Mechanical');
74
+ INSERT INTO Skills (`skill_id`, `skill_code`, `skill_description`) VALUES (3, 'TV', 'TV, Video');
75
+
76
+
77
+ CREATE TABLE `Staff` (
78
+ `staff_id` INTEGER PRIMARY KEY,
79
+ `staff_name` VARCHAR(255),
80
+ `gender` VARCHAR(1),
81
+ `other_staff_details` VARCHAR(255)
82
+ );
83
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (1, 'Audreanne', '1', 'Manager');
84
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (2, 'Berneice', '1', 'Manager');
85
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (3, 'Helena', '1', NULL);
86
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (4, 'Edmond', '0', NULL);
87
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (5, 'Leola', '1', 'Manager');
88
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (6, 'Rodger', '1', NULL);
89
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (7, 'Kadin', '1', NULL);
90
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (8, 'Christophe', '0', 'Woker');
91
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (9, 'Bernice', '0', NULL);
92
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (10, 'Jayda', '1', NULL);
93
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (11, 'Estel', '0', NULL);
94
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (12, 'Oren', '1', NULL);
95
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (13, 'Howell', '0', NULL);
96
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (14, 'Cyrus', '0', NULL);
97
+ INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (15, 'Jeffry', '0', NULL);
98
+
99
+
100
+
101
+ CREATE TABLE `Assets` (
102
+ `asset_id` INTEGER PRIMARY KEY,
103
+ `maintenance_contract_id` INTEGER NOT NULL,
104
+ `supplier_company_id` INTEGER NOT NULL,
105
+ `asset_details` VARCHAR(255),
106
+ `asset_make` VARCHAR(20),
107
+ `asset_model` VARCHAR(20),
108
+ `asset_acquired_date` DATETIME,
109
+ `asset_disposed_date` DATETIME,
110
+ `other_asset_details` VARCHAR(255),
111
+ FOREIGN KEY (`maintenance_contract_id` )
112
+ REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
113
+ FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
114
+ );
115
+
116
+
117
+
118
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (1, 2, 2, 'dell laptop1', 'PT', '58 ub', '2017-12-25 00:31:27', '2018-03-14 10:50:00', NULL);
119
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (2, 14, 1, 'dell laptop2', 'IN', '35 xt', '2018-01-27 00:59:46', '2018-03-20 04:24:09', NULL);
120
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (3, 7, 2, 'dell laptop3', 'IT', '63 ok', '2017-09-07 08:13:15', '2018-03-08 20:50:40', 'Bad condition');
121
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (4, 11, 5, 'dell laptop4', 'RU', '69 uv', '2017-06-12 17:37:19', '2018-03-16 05:46:55', NULL);
122
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (5, 8, 5, 'dell laptop5', 'DE', '90 oq', '2017-07-21 16:03:19', '2018-02-27 18:59:07', NULL);
123
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (6, 8, 6, 'monitor1', 'CN', '91 ub', '2017-04-22 12:33:39', '2018-03-10 11:11:43', NULL);
124
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (7, 6, 6, 'monitor2', 'CN', '27 du', '2017-07-18 01:22:58', '2018-03-20 22:45:00', NULL);
125
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (8, 15, 7, 'monitor3', 'GB', '94 kg', '2017-10-24 04:29:17', '2018-02-28 18:14:13', 'Bad condition');
126
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (9, 12, 13, 'machine1', 'RU', '07 yt', '2017-04-16 12:19:25', '2018-03-08 18:42:41', NULL);
127
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (10, 2, 2, 'machine2', 'FR', '20 tl', '2017-09-19 16:15:45', '2018-03-06 20:36:14', NULL);
128
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (11, 7, 12, 'machine3', 'FR', '11 wi', '2017-11-25 05:04:20', '2018-03-17 00:51:14', NULL);
129
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (12, 13, 14, 'machine4', 'RU', '95 vn', '2017-09-26 14:05:46', '2018-02-27 23:12:03', 'Bad condition');
130
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (13, 11, 8, 'system1', 'DE', '08 yy', '2017-12-20 14:05:17', '2018-03-07 20:35:19', 'Bad condition');
131
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (14, 10, 6, 'system2', 'IN', '66 xm', '2017-10-19 02:54:52', '2018-03-22 23:48:15', NULL);
132
+ INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (15, 6, 11, 'system3', 'IE', '24 ak', '2017-12-18 19:21:11', '2018-02-27 02:37:16', NULL);
133
+
134
+
135
+
136
+ CREATE TABLE `Asset_Parts` (
137
+ `asset_id` INTEGER NOT NULL,
138
+ `part_id` INTEGER NOT NULL,
139
+ FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
140
+ FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
141
+ );
142
+
143
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (5, 3);
144
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 3);
145
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (10, 1);
146
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (1, 2);
147
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 1);
148
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (1, 3);
149
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (6, 2);
150
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (2, 3);
151
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 2);
152
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (2, 2);
153
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 3);
154
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (15, 3);
155
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (4, 1);
156
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (14, 1);
157
+ INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (15, 2);
158
+
159
+
160
+
161
+ CREATE TABLE `Maintenance_Engineers` (
162
+ `engineer_id` INTEGER PRIMARY KEY,
163
+ `company_id` INTEGER NOT NULL,
164
+ `first_name` VARCHAR(50),
165
+ `last_name` VARCHAR(50),
166
+ `other_details` VARCHAR(255),
167
+ FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
168
+ );
169
+
170
+
171
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (1, 14, 'Etha', 'Reinger', 'Skilled');
172
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (2, 2, 'Clemens', 'Orn', NULL);
173
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (3, 6, 'Samanta', 'Hauck', NULL);
174
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (4, 3, 'Lorine', 'Morar', NULL);
175
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (5, 15, 'Manley', 'Grady', NULL);
176
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (6, 1, 'Courtney', 'Adams', NULL);
177
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (7, 11, 'Josie', 'Harvey', 'Skilled');
178
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (8, 9, 'Nellie', 'Hirthe', NULL);
179
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (9, 4, 'Brian', 'Stamm', NULL);
180
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (10, 4, 'Naomi', 'Price', NULL);
181
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (11, 7, 'Cullen', 'Kunde', NULL);
182
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (12, 10, 'Alexys', 'Simonis', NULL);
183
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (13, 2, 'Weston', 'Hahn', NULL);
184
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (14, 11, 'Jules', 'Goldner', NULL);
185
+ INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (15, 3, 'Archibald', 'Streich', NULL);
186
+
187
+
188
+
189
+ CREATE TABLE `Engineer_Skills` (
190
+ `engineer_id` INTEGER NOT NULL,
191
+ `skill_id` INTEGER NOT NULL,
192
+ FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
193
+ FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
194
+ );
195
+
196
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (10, 2);
197
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (10, 1);
198
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (15, 1);
199
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (6, 1);
200
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (13, 1);
201
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (6, 3);
202
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (13, 2);
203
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (7, 3);
204
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (5, 2);
205
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (8, 3);
206
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (15, 3);
207
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (5, 1);
208
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (9, 3);
209
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (3, 1);
210
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (11, 2);
211
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (12, 2);
212
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (2, 2);
213
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (10, 1);
214
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (8, 1);
215
+ INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (4, 1);
216
+
217
+ CREATE TABLE `Fault_Log` (
218
+ `fault_log_entry_id` INTEGER PRIMARY KEY,
219
+ `asset_id` INTEGER NOT NULL,
220
+ `recorded_by_staff_id` INTEGER NOT NULL,
221
+ `fault_log_entry_datetime` DATETIME,
222
+ `fault_description` VARCHAR(255),
223
+ `other_fault_details` VARCHAR(255),
224
+ FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
225
+ FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
226
+ );
227
+
228
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (1, 3, 14, '2018-03-21 04:25:00', 'system error', NULL);
229
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (2, 7, 4, '2018-03-13 09:43:05', 'system error', NULL);
230
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (3, 6, 9, '2018-02-24 09:28:20', 'system error', NULL);
231
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (4, 5, 13, '2018-02-28 02:07:36', 'failed parts', NULL);
232
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (5, 9, 11, '2018-03-02 03:14:46', 'system error', NULL);
233
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (6, 8, 8, '2018-02-28 20:15:25', 'failed parts', NULL);
234
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (7, 5, 14, '2018-03-05 09:44:08', 'system error', NULL);
235
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (8, 12, 10, '2018-03-19 04:24:18', 'failed parts', NULL);
236
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (9, 3, 5, '2018-03-06 15:52:54', 'system error', NULL);
237
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (10, 2, 9, '2018-03-03 10:41:52', 'failed parts', NULL);
238
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (11, 15, 12, '2018-03-21 15:02:17', 'failed parts', NULL);
239
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (12, 8, 8, '2018-03-10 07:08:34', 'system error', NULL);
240
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (13, 3, 13, '2018-03-11 14:00:39', 'system error', NULL);
241
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (14, 3, 11, '2018-02-27 11:34:20', 'failed parts', NULL);
242
+ INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (15, 12, 13, '2018-03-01 08:52:58', 'system error', NULL);
243
+
244
+ CREATE TABLE `Engineer_Visits` (
245
+ `engineer_visit_id` INTEGER PRIMARY KEY,
246
+ `contact_staff_id` INTEGER,
247
+ `engineer_id` INTEGER NOT NULL,
248
+ `fault_log_entry_id` INTEGER NOT NULL,
249
+ `fault_status` VARCHAR(10) NOT NULL,
250
+ `visit_start_datetime` DATETIME,
251
+ `visit_end_datetime` DATETIME,
252
+ `other_visit_details` VARCHAR(255),
253
+ FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
254
+ FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
255
+ FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
256
+ );
257
+
258
+
259
+
260
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (1, 8, 8, 13, 'Waiting', '1978-10-12 23:14:40', '1988-01-07 06:41:51', NULL);
261
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (2, 7, 15, 13, 'Return', '1980-05-02 23:31:18', '1990-08-30 22:44:16', NULL);
262
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (3, 7, 15, 4, 'Waiting', '2010-02-23 18:16:23', '1982-05-13 02:08:41', NULL);
263
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (4, 12, 12, 13, 'Fixed', '1996-11-07 05:31:35', '1973-09-12 07:06:54', NULL);
264
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (5, 2, 4, 12, 'Fixed', '1994-07-27 22:35:48', '2008-03-24 22:18:47', NULL);
265
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (6, 4, 15, 11, 'Fixed', '1984-07-14 22:47:51', '2010-07-05 18:36:22', NULL);
266
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (7, 7, 15, 14, 'Reported', '1996-07-06 23:59:49', '2012-11-27 06:26:01', NULL);
267
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (8, 6, 15, 2, 'Waiting', '1985-08-26 01:02:49', '1971-03-29 23:46:30', NULL);
268
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (9, 7, 15, 12, 'Waiting', '1991-05-02 01:39:59', '1970-08-01 15:35:51', NULL);
269
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (10, 14, 10, 2, 'Fixed', '1996-07-12 22:38:46', '1970-03-25 14:44:29', NULL);
270
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (11, 9, 6, 3, 'Fixed', '1975-04-06 11:09:23', '2000-01-27 09:33:10', NULL);
271
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (12, 2, 1, 13, 'Return', '2006-03-31 20:03:10', '2013-09-29 20:50:24', NULL);
272
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (13, 4, 10, 8, 'Fixed', '2015-07-05 21:37:55', '1988-10-20 12:02:00', NULL);
273
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (14, 9, 4, 13, 'Return', '1997-06-23 17:45:21', '1980-12-19 08:30:46', NULL);
274
+ INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (15, 4, 11, 10, 'Reported', '1970-07-19 19:21:32', '2007-11-12 04:24:01', NULL);
275
+
276
+
277
+
278
+ CREATE TABLE `Part_Faults` (
279
+ `part_fault_id` INTEGER PRIMARY KEY,
280
+ `part_id` INTEGER NOT NULL,
281
+ `fault_short_name` VARCHAR(20),
282
+ `fault_description` VARCHAR(255),
283
+ `other_fault_details` VARCHAR(255),
284
+ FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
285
+ );
286
+
287
+
288
+ CREATE TABLE `Fault_Log_Parts` (
289
+ `fault_log_entry_id` INTEGER NOT NULL,
290
+ `part_fault_id` INTEGER NOT NULL,
291
+ `fault_status` VARCHAR(10) NOT NULL,
292
+ FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
293
+ FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
294
+ );
295
+
296
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (1, 1, 'PW', 'Package Wrong', NULL);
297
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (2, 1, 'PW', 'Package Wrong', NULL);
298
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (3, 3, 'TW', 'Top Parts Wrong', NULL);
299
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (4, 1, 'PW', 'Package Wrong', NULL);
300
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (5, 1, 'MW', 'Medium Scale Wrong', NULL);
301
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (6, 2, 'PW', 'Package Wrong', NULL);
302
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (7, 1, 'PW', 'Package Wrong', NULL);
303
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (8, 3, 'TW', 'Top Parts Wrong', NULL);
304
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (9, 3, 'PW', 'Package Wrong', NULL);
305
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (10, 1, 'PW', 'Package Wrong', NULL);
306
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (11, 3, 'MW', 'Medium Scale Wrong', NULL);
307
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (12, 2, 'MW', 'Medium Scale Wrong', NULL);
308
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (13, 3, 'TW', 'Top Parts Wrong', NULL);
309
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (14, 1, 'TW', 'Top Parts Wrong', NULL);
310
+ INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (15, 3, 'MW', 'Medium Scale Wrong', NULL);
311
+
312
+
313
+
314
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (12, 3, 'Reported');
315
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (7, 4, 'Reported');
316
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (1, 9, 'Return');
317
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (1, 14, 'Fixed');
318
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (6, 4, 'Waiting');
319
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (14, 8, 'Waiting');
320
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (1, 10, 'Fixed');
321
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (3, 8, 'Return');
322
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (11, 2, 'Reported');
323
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (3, 11, 'Fixed');
324
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (11, 8, 'Reported');
325
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (4, 14, 'Waiting');
326
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (13, 15, 'Fixed');
327
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (13, 1, 'Fixed');
328
+ INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (4, 6, 'Reported');
329
+
330
+
331
+ CREATE TABLE `Skills_Required_To_Fix` (
332
+ `part_fault_id` INTEGER NOT NULL,
333
+ `skill_id` INTEGER NOT NULL,
334
+ FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
335
+ FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
336
+ );
337
+
338
+
339
+
340
+
341
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (3, 2);
342
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (12, 3);
343
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (6, 1);
344
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (15, 3);
345
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (1, 3);
346
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (1, 1);
347
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (5, 3);
348
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (13, 2);
349
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (14, 3);
350
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (10, 2);
351
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (2, 1);
352
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (7, 2);
353
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (1, 3);
354
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (15, 3);
355
+ INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (15, 2);
spider_data/database/baseball_1/baseball_1.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbeb49298ffc84465f7a27f3477fe73e05a2ced8d4c3c972d20d75c25820f29b
3
+ size 29794304
spider_data/database/baseball_1/schema.sql ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2e61f0638e45f4d9f869c377b56f99f988d58f2a64999637c93691ebf2eb3a2
3
+ size 57608249
spider_data/database/battle_death/battle_death.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12569f4493a9655639c4ea86ba4bd8a4ea6411e1b8ae0e1fdf3d6a995344265d
3
+ size 28672
spider_data/database/battle_death/schema.sql ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE "battle" (
3
+ "id" int,
4
+ "name" text,
5
+ "date" text,
6
+ "bulgarian_commander" text,
7
+ "latin_commander" text,
8
+ "result" text,
9
+ primary key("id")
10
+ );
11
+
12
+ CREATE TABLE "ship" (
13
+ "lost_in_battle" int,
14
+ "id" int,
15
+ "name" text,
16
+ "tonnage" text,
17
+ "ship_type" text,
18
+ "location" text,
19
+ "disposition_of_ship" text,
20
+ primary key("id"),
21
+ foreign key (`lost_in_battle`) references `battle`("id")
22
+ );
23
+
24
+
25
+ CREATE TABLE "death" (
26
+ "caused_by_ship_id" int,
27
+ "id" int,
28
+ "note" text,
29
+ "killed" int,
30
+ "injured" int,
31
+ primary key("id"),
32
+ foreign key ("caused_by_ship_id") references `ship`("id")
33
+ );
34
+
35
+ INSERT INTO "battle" VALUES (1,"Battle of Adrianople","14 April 1205","Kaloyan","Baldwin I","Bulgarian victory");
36
+ INSERT INTO "battle" VALUES (2,"Battle of Serres","June 1205","Kaloyan","Unknown","Bulgarian victory");
37
+ INSERT INTO "battle" VALUES (3,"Battle of Rusion","31 January 1206","Kaloyan","Thierry de Termond","Bulgarian victory");
38
+ INSERT INTO "battle" VALUES (4,"Battle of Rodosto","February 1206","Kaloyan","Unknown","Bulgarian victory");
39
+ INSERT INTO "battle" VALUES (5,"Battle of Messinopolis","4 September 1207","Unknown","Boniface of Montferrat","Bulgarian victory");
40
+ INSERT INTO "battle" VALUES (6,"Battle of Boruy","June 1205","Boril","Henry I","Bulgarian victory");
41
+ INSERT INTO "battle" VALUES (7,"Battle of Philippopolis","31 June 1208","Boril","Henry I","Latin victory");
42
+ INSERT INTO "battle" VALUES (8,"Siege of Constantinople","1235","Ivan Asen II","John of Brienne","Two Year Truce");
43
+
44
+
45
+ INSERT INTO "ship" VALUES (8, 1, "Lettice","t","Brig","English Channel","Captured");
46
+ INSERT INTO "ship" VALUES (7, 2, "Bon Accord","t","Brig","English Channel","Captured");
47
+ INSERT INTO "ship" VALUES (6, 3, "Mary","t","Brig","English Channel","Captured");
48
+ INSERT INTO "ship" VALUES (5, 4, "HMS Avon","391","18-gun Brig","English Channel","Wrecked");
49
+ INSERT INTO "ship" VALUES (5, 5, "Three Brothers","t","Brig","SW Approaches","Scuttled");
50
+ INSERT INTO "ship" VALUES (4, 6, "Bacchus","t","Brig","English Channel","Sank");
51
+ INSERT INTO "ship" VALUES (8, 7, "HMS Atalanta","225","8 gun Brig","Mid-Atlantic","Captured");
52
+
53
+ INSERT INTO "death" VALUES (1, "1","Dantewada, Chhattisgarh","8","0");
54
+ INSERT INTO "death" VALUES (2, "2","Dantewada, Chhattisgarh","3","0");
55
+ INSERT INTO "death" VALUES (3, "13","Erraboru, Chhattisgarh","25","0");
56
+ INSERT INTO "death" VALUES (3, "3","East Champaran, Bihar","2","0");
57
+ INSERT INTO "death" VALUES (4, "4","Gajapati, Odisha","3","0");
58
+ INSERT INTO "death" VALUES (4, "5","Sundargarh, Odisha","0","9");
59
+ INSERT INTO "death" VALUES (5, "6","Dantewada, Chhattisgarh","0","0");
60
+ INSERT INTO "death" VALUES (5, "7","Dantewada, Chhattisgarh","4","5");
61
+ INSERT INTO "death" VALUES (6, "8","Kanker, Chhattisgarh","0","0");
62
+ INSERT INTO "death" VALUES (1, "9","Dantewada, Chhattisgarh","29","0");
63
+ INSERT INTO "death" VALUES (3, "10","WestMidnapore, West Bengal","0","0");
64
+ INSERT INTO "death" VALUES (2, "11","Bastar, Chattisgarh","0","0");
65
+ INSERT INTO "death" VALUES (5, "12","Bokaro, Jharkhand","14","0");
spider_data/database/behavior_monitoring/behavior_monitoring.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:689af3fbf11164f50d02f4a75ff6c9a7fb419938de861a1c26477ae577c1443a
3
+ size 65536
spider_data/database/behavior_monitoring/schema.sql ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE `Ref_Address_Types` (
3
+ `address_type_code` VARCHAR(15) PRIMARY KEY,
4
+ `address_type_description` VARCHAR(80)
5
+ );
6
+ CREATE TABLE `Ref_Detention_Type` (
7
+ `detention_type_code` VARCHAR(10) PRIMARY KEY,
8
+ `detention_type_description` VARCHAR(80)
9
+ );
10
+ CREATE TABLE `Ref_Incident_Type` (
11
+ `incident_type_code` VARCHAR(10) PRIMARY KEY,
12
+ `incident_type_description` VARCHAR(80)
13
+ );
14
+
15
+ INSERT INTO Ref_Address_Types (`address_type_code`, `address_type_description`) VALUES ('BILL', 'Billing');
16
+ INSERT INTO Ref_Address_Types (`address_type_code`, `address_type_description`) VALUES ('HOME', 'Home or Residence');
17
+ INSERT INTO Ref_Detention_Type (`detention_type_code`, `detention_type_description`) VALUES ('BREAK ', 'During Break time');
18
+ INSERT INTO Ref_Detention_Type (`detention_type_code`, `detention_type_description`) VALUES ('AFTER', 'After School');
19
+ INSERT INTO Ref_Detention_Type (`detention_type_code`, `detention_type_description`) VALUES ('LUNCH', 'Lunch-time');
20
+ INSERT INTO Ref_Incident_Type (`incident_type_code`, `incident_type_description`) VALUES ('NOISE', 'Noise');
21
+ INSERT INTO Ref_Incident_Type (`incident_type_code`, `incident_type_description`) VALUES ('VIOLENCE', 'Violence');
22
+ INSERT INTO Ref_Incident_Type (`incident_type_code`, `incident_type_description`) VALUES ('DISTURB', 'Disturbance');
23
+
24
+
25
+
26
+
27
+ CREATE TABLE `Addresses` (
28
+ `address_id` INTEGER PRIMARY KEY,
29
+ `line_1` VARCHAR(120),
30
+ `line_2` VARCHAR(120),
31
+ `line_3` VARCHAR(120),
32
+ `city` VARCHAR(80),
33
+ `zip_postcode` VARCHAR(20),
34
+ `state_province_county` VARCHAR(50),
35
+ `country` VARCHAR(50),
36
+ `other_address_details` VARCHAR(255)
37
+ );
38
+
39
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (1, '020 Orie Canyon', NULL, NULL, 'North Loyceville', '197', 'Hawaii', 'USA', NULL);
40
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (2, '1333 Boyle Lane', NULL, NULL, 'West Sean', '937', 'Illinois', 'USA', NULL);
41
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (3, '027 Kim Divide Apt. 492', NULL, NULL, 'Beierview', '918', 'Texas', 'USA', NULL);
42
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (4, '056 Murphy Stravenue Apt. 600', NULL, NULL, 'Elinoreport', '238', 'Wisconsin', 'USA', NULL);
43
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (5, '719 Pfannerstill Ridge Suite 663', NULL, NULL, 'Meganeland', '002', 'SouthDakota', 'USA', NULL);
44
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (6, '420 Zieme Oval', NULL, NULL, 'Corkeryborough', '744', 'Wisconsin', 'USA', NULL);
45
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (7, '27712 Marks Lake Apt. 752', NULL, NULL, 'Gleasonshire', '182', 'Maryland', 'USA', NULL);
46
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (8, '6960 O''Connell Dale Suite 622', NULL, NULL, 'New Annabellefort', '062', 'Kentucky', 'USA', NULL);
47
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (9, '18327 Jaime Terrace Suite 343', NULL, NULL, 'Edmundton', '520', 'Oregon', 'USA', NULL);
48
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (10, '3069 Garrison Squares', NULL, NULL, 'Lake Ahmadland', '748', 'Nevada', 'USA', NULL);
49
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (11, '668 Wilkinson Corners Apt. 992', NULL, NULL, 'North Jayceton', '612', 'Illinois', 'USA', NULL);
50
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (12, '11940 Pauline Shoals', NULL, NULL, 'West Lianafurt', '619', 'Arkansas', 'USA', NULL);
51
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (13, '39834 Anne Mission Apt. 956', NULL, NULL, 'North Orlobury', '663', 'Utah', 'USA', NULL);
52
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (14, '4115 Ebert Fall', NULL, NULL, 'North Fletcherside', '607', 'Arizona', 'USA', NULL);
53
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (15, '920 Brayan Harbors', NULL, NULL, 'Caitlynstad', '435', 'Montana', 'USA', NULL);
54
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (16, '014 Runte Haven Apt. 870', NULL, NULL, 'Tressamouth', '637', 'NewYork', 'USA', NULL);
55
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (17, '654 Fisher Roads', NULL, NULL, 'Hegmannborough', '397', 'Tennessee', 'USA', NULL);
56
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (18, '266 Kub Crossing', NULL, NULL, 'Hintzport', '865', 'Alabama', 'USA', NULL);
57
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (19, '51391 Dach Parkways Apt. 124', NULL, NULL, 'Unachester', '753', 'Wisconsin', 'USA', NULL);
58
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (20, '2451 Wiza Inlet', NULL, NULL, 'Larkinport', '545', 'NewYork', 'USA', NULL);
59
+
60
+
61
+ CREATE TABLE `Students` (
62
+ `student_id` INTEGER PRIMARY KEY,
63
+ `address_id` INTEGER NOT NULL,
64
+ `first_name` VARCHAR(80),
65
+ `middle_name` VARCHAR(40),
66
+ `last_name` VARCHAR(40),
67
+ `cell_mobile_number` VARCHAR(40),
68
+ `email_address` VARCHAR(40),
69
+ `date_first_rental` DATETIME,
70
+ `date_left_university` DATETIME,
71
+ `other_student_details` VARCHAR(255),
72
+ FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
73
+ );
74
+
75
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (1, 19, 'Emma', 'Frederic', 'Rohan', '235.899.9744', 'derrick.jenkins@example.com', '2017-12-05 15:20:04', '2018-03-03 03:33:05', NULL);
76
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (2, 9, 'Louvenia', 'Fatima', 'Hansen', '1-247-673-8446', 'rohan.clarabelle@example.org', '2017-08-08 22:30:36', '2018-02-24 11:12:11', NULL);
77
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (3, 10, 'Rhea', 'Gardner', 'Bergnaum', '1-751-162-9676x115', 'kkirlin@example.org', '2017-11-15 04:57:28', '2018-03-19 12:49:20', NULL);
78
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (4, 8, 'David', 'Darlene', 'Gorczany', '1-895-196-9979', 'eolson@example.com', '2018-02-15 20:03:11', '2018-03-11 02:21:24', NULL);
79
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (5, 8, 'Lucile', 'Stone', 'Gottlieb', '1-036-062-5465', 'dicki.kathryne@example.org', '2017-07-20 18:20:27', '2018-03-18 16:07:42', NULL);
80
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (6, 12, 'Antonietta', 'Crystal', 'Fahey', '(874)070-9495', 'norwood.howell@example.org', '2017-10-31 12:33:09', '2018-03-20 22:01:07', NULL);
81
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (7, 20, 'Rupert', 'Lincoln', 'Marks', '763.072.5520x5907', 'lisette.brekke@example.net', '2017-09-25 12:02:23', '2018-03-01 08:56:04', 'first honor');
82
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (8, 14, 'Julia', 'Arno', 'Balistreri', '319.497.4575x2214', 'jasmin.schuppe@example.com', '2018-02-23 02:28:07', '2018-03-01 16:03:55', NULL);
83
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (9, 19, 'Christy', 'Devonte', 'Huels', '(568)451-0917x3945', 'dora.zboncak@example.org', '2018-01-11 19:49:39', '2018-03-15 01:47:11', NULL);
84
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (10, 2, 'Adella', 'Chesley', 'Krajcik', '08605192839', 'frederique.mante@example.org', '2017-07-05 19:15:29', '2018-03-11 15:57:19', 'first honor');
85
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (11, 2, 'Isac', 'Cleta', 'Fadel', '+60(5)3280072514', 'qharvey@example.com', '2017-09-13 04:06:15', '2018-03-05 07:30:22', 'first honor');
86
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (12, 1, 'Ferne', 'Jerod', 'Weimann', '(921)011-7909x3518', 'mitchel55@example.net', '2017-05-24 05:00:18', '2018-02-28 12:33:53', NULL);
87
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (13, 17, 'Misael', 'Justyn', 'Will', '(062)892-7033', 'gbeatty@example.com', '2017-10-15 06:52:46', '2018-03-18 07:01:27', NULL);
88
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (14, 9, 'Fanny', 'Ashlee', 'Haley', '(820)260-5721', 'foster.zemlak@example.com', '2018-03-14 11:37:10', '2018-03-12 15:05:53', NULL);
89
+ INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (15, 15, 'Eugene', 'Mustafa', 'Tremblay', '1-498-138-8088', 'kertzmann.devon@example.net', '2018-03-11 22:42:47', '2018-03-07 11:41:26', 'first honor');
90
+
91
+
92
+ CREATE TABLE `Teachers` (
93
+ `teacher_id` INTEGER PRIMARY KEY,
94
+ `address_id` INTEGER NOT NULL,
95
+ `first_name` VARCHAR(80),
96
+ `middle_name` VARCHAR(80),
97
+ `last_name` VARCHAR(80),
98
+ `gender` VARCHAR(1),
99
+ `cell_mobile_number` VARCHAR(40),
100
+ `email_address` VARCHAR(40),
101
+ `other_details` VARCHAR(255),
102
+ FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
103
+ );
104
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (1, 15, 'Lyla', 'Wilson', 'Medhurst', '1', '792.333.7714', 'ohammes@example.com', NULL);
105
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (2, 7, 'Sid', 'Tremayne', 'Brakus', '1', '202.626.1698x9242', 'deborah37@example.com', NULL);
106
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (3, 8, 'Trystan', 'Alexane', 'Schuster', '1', '583-467-0403x647', 'hilll.kitty@example.com', NULL);
107
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (4, 7, 'Donnie', 'Morgan', 'Kuhic', '1', '07928511102', 'destany.reichert@example.net', NULL);
108
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (5, 15, 'Aniya', 'Ian', 'Becker', '1', '599.373.0773x67706', 'hahn.isom@example.com', 'Dean');
109
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (6, 16, 'Citlalli', 'Ahmad', 'Kuhic', '1', '017.636.7409', 'kozey.adeline@example.org', NULL);
110
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (7, 3, 'Alvis', 'Macey', 'Schultz', '1', '944-154-5379x4990', 'everardo.lynch@example.net', NULL);
111
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (8, 13, 'Cecilia', 'Mitchel', 'Ward', '0', '809.852.7009', 'paula.abbott@example.org', NULL);
112
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (9, 2, 'Woodrow', 'Lilla', 'Goldner', '1', '084-270-4880', 'ierdman@example.com', NULL);
113
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (10, 8, 'Gregory', 'Ardith', 'Heller', '0', '908-759-1808x63115', 'valentina.yost@example.com', NULL);
114
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (11, 12, 'Edmond', 'Kailyn', 'Lang', '0', '(659)018-0143x379', 'lila58@example.com', NULL);
115
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (12, 10, 'Camren', 'Kendall', 'Moore', '1', '(381)799-4759x169', 'randy.gerhold@example.org', NULL);
116
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (13, 19, 'Stephanie', 'Tamara', 'Price', '0', '952.821.3392', 'kiana.lang@example.net', NULL);
117
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (14, 14, 'Evelyn', 'Keanu', 'Hansen', '0', '1-787-044-8336x606', 'maribel21@example.org', NULL);
118
+ INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (15, 10, 'Hobart', 'Michel', 'Bergnaum', '1', '796-453-5175x64012', 'willms.lane@example.com', NULL);
119
+
120
+
121
+ CREATE TABLE `Assessment_Notes` (
122
+ `notes_id` INTEGER NOT NULL ,
123
+ `student_id` INTEGER,
124
+ `teacher_id` INTEGER NOT NULL,
125
+ `date_of_notes` DATETIME,
126
+ `text_of_notes` VARCHAR(255),
127
+ `other_details` VARCHAR(255),
128
+ FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
129
+ FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
130
+ );
131
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (1, 7, 3, '1978-04-15 04:49:18', NULL, NULL);
132
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (2, 11, 10, '2005-06-30 02:48:35', NULL, NULL);
133
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (3, 15, 3, '1988-06-09 00:24:01', NULL, NULL);
134
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (4, 12, 9, '1991-08-15 01:22:08', NULL, NULL);
135
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (5, 4, 10, '1971-05-05 20:07:08', NULL, NULL);
136
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (6, 12, 6, '2014-01-31 02:05:02', NULL, NULL);
137
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (7, 12, 7, '1984-12-13 23:04:28', NULL, NULL);
138
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (8, 7, 14, '1988-04-11 04:56:26', NULL, NULL);
139
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (9, 14, 15, '1972-04-27 04:51:51', NULL, NULL);
140
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (10, 13, 6, '2017-12-14 08:21:54', NULL, NULL);
141
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (11, 3, 14, '1993-08-16 17:39:53', NULL, NULL);
142
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (12, 1, 1, '1991-08-20 08:03:23', NULL, NULL);
143
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (13, 13, 3, '2014-04-28 02:07:53', NULL, NULL);
144
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (14, 14, 15, '1974-11-26 04:23:22', NULL, NULL);
145
+ INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (15, 1, 9, '1984-09-10 01:18:34', NULL, NULL);
146
+
147
+
148
+ CREATE TABLE `Behavior_Incident` (
149
+ `incident_id` INTEGER PRIMARY KEY,
150
+ `incident_type_code` VARCHAR(10) NOT NULL,
151
+ `student_id` INTEGER NOT NULL,
152
+ `date_incident_start` DATETIME,
153
+ `date_incident_end` DATETIME,
154
+ `incident_summary` VARCHAR(255),
155
+ `recommendations` VARCHAR(255),
156
+ `other_details` VARCHAR(255),
157
+ FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
158
+ FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
159
+ );
160
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (1, 'NOISE', 6, '2017-07-09 10:04:13', '2018-03-08 14:08:54', NULL, NULL, NULL);
161
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (2, 'DISTURB', 13, '2018-01-31 10:51:13', '2018-03-18 18:40:05', NULL, NULL, NULL);
162
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (3, 'VIOLENCE', 1, '2017-10-10 22:43:54', '2018-03-22 02:10:35', NULL, 'Transfer schools', NULL);
163
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (4, 'VIOLENCE', 10, '2017-07-20 17:43:50', '2018-03-09 06:28:44', NULL, NULL, NULL);
164
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (5, 'NOISE', 7, '2017-08-13 22:15:05', '2018-02-25 05:38:58', NULL, NULL, NULL);
165
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (6, 'VIOLENCE', 8, '2017-06-09 18:32:28', '2018-03-20 10:32:10', NULL, NULL, NULL);
166
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (7, 'VIOLENCE', 4, '2017-04-23 07:03:17', '2018-03-19 02:35:39', NULL, NULL, NULL);
167
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (8, 'DISTURB', 1, '2017-05-02 12:52:09', '2018-03-18 01:23:29', NULL, NULL, NULL);
168
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (9, 'NOISE', 11, '2017-06-19 14:25:54', '2018-03-08 09:36:36', NULL, NULL, NULL);
169
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (10, 'NOISE', 1, '2018-01-27 09:24:45', '2018-03-13 05:18:05', NULL, NULL, NULL);
170
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (11, 'VIOLENCE', 9, '2018-03-06 21:03:58', '2018-03-06 14:44:37', NULL, 'Transfer schools', NULL);
171
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (12, 'DISTURB', 7, '2017-08-27 03:21:30', '2018-03-02 16:06:34', NULL, NULL, NULL);
172
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (13, 'VIOLENCE', 5, '2017-05-25 15:02:53', '2018-03-10 21:12:22', NULL, NULL, NULL);
173
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (14, 'NOISE', 1, '2017-08-29 20:48:56', '2018-03-16 14:37:20', NULL, 'Transfer schools', NULL);
174
+ INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (15, 'NOISE', 15, '2018-02-05 13:13:45', '2018-03-08 09:00:48', NULL, NULL, NULL);
175
+
176
+
177
+ CREATE TABLE `Detention` (
178
+ `detention_id` INTEGER PRIMARY KEY,
179
+ `detention_type_code` VARCHAR(10) NOT NULL,
180
+ `teacher_id` INTEGER,
181
+ `datetime_detention_start` DATETIME,
182
+ `datetime_detention_end` DATETIME,
183
+ `detention_summary` VARCHAR(255),
184
+ `other_details` VARCHAR(255),
185
+ FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
186
+ FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
187
+ );
188
+
189
+ CREATE TABLE `Student_Addresses` (
190
+ `student_id` INTEGER NOT NULL,
191
+ `address_id` INTEGER NOT NULL,
192
+ `date_address_from` DATETIME NOT NULL,
193
+ `date_address_to` DATETIME,
194
+ `monthly_rental` DECIMAL(19,4),
195
+ `other_details` VARCHAR(255),
196
+ FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
197
+ FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
198
+ );
199
+
200
+ CREATE TABLE `Students_in_Detention` (
201
+ `student_id` INTEGER NOT NULL,
202
+ `detention_id` INTEGER NOT NULL,
203
+ `incident_id` INTEGER NOT NULL,
204
+ FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
205
+ FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
206
+ FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
207
+ );
208
+
209
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (1, 'AFTER', 7, '2017-09-05 00:38:25', '2018-03-08 02:08:32', NULL, NULL);
210
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (2, 'AFTER', 14, '2018-01-10 08:09:02', '2018-03-07 04:24:48', NULL, NULL);
211
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (3, 'BREAK ', 11, '2017-12-14 06:40:29', '2018-03-08 09:16:38', NULL, NULL);
212
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (4, 'AFTER', 8, '2017-06-09 06:13:09', '2018-03-21 19:34:56', NULL, NULL);
213
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (5, 'BREAK ', 3, '2017-08-25 12:00:46', '2018-03-11 13:21:07', NULL, NULL);
214
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (6, 'BREAK ', 12, '2017-10-20 22:34:44', '2018-03-11 12:58:40', NULL, NULL);
215
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (7, 'BREAK ', 15, '2018-02-19 11:44:52', '2018-03-17 12:35:41', NULL, NULL);
216
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (8, 'BREAK ', 5, '2017-11-26 15:05:05', '2018-03-16 01:37:25', NULL, NULL);
217
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (9, 'LUNCH', 15, '2017-10-30 16:04:00', '2018-03-22 20:15:47', NULL, NULL);
218
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (10, 'AFTER', 15, '2018-01-29 20:43:45', '2018-03-05 03:31:24', NULL, NULL);
219
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (11, 'AFTER', 8, '2017-10-03 18:44:31', '2018-03-03 14:58:43', NULL, NULL);
220
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (12, 'LUNCH', 3, '2018-01-20 19:06:56', '2018-02-25 07:20:30', NULL, NULL);
221
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (13, 'BREAK ', 10, '2017-08-02 07:46:39', '2018-03-10 14:58:31', NULL, NULL);
222
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (14, 'AFTER', 12, '2017-12-18 13:47:51', '2018-03-04 20:52:51', NULL, NULL);
223
+ INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (15, 'LUNCH', 11, '2017-08-21 06:41:29', '2018-03-13 20:37:39', NULL, NULL);
224
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (6, 12, '2017-10-16 13:56:34', '2018-03-15 10:37:19', '826.4319', 'house');
225
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (3, 18, '2017-06-19 12:39:39', '2018-03-02 00:19:57', '1113.0996', 'house');
226
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (8, 1, '2017-10-31 12:40:34', '2018-02-25 05:21:34', '1297.3186', 'apartment');
227
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (7, 3, '2017-04-28 06:27:14', '2018-03-23 09:52:56', '894.0958', 'house');
228
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (13, 16, '2018-03-23 08:25:36', '2018-03-12 17:21:24', '1297.8070', 'apartment');
229
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (11, 12, '2018-02-18 06:58:49', '2018-02-27 04:45:57', '747.5312', 'house');
230
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (4, 1, '2017-06-22 12:20:52', '2018-03-04 17:04:35', '756.6745', 'house');
231
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (2, 8, '2017-07-21 10:13:10', '2018-03-20 09:02:48', '1287.5604', 'house');
232
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (7, 13, '2018-01-13 22:56:06', '2018-03-22 17:56:20', '1067.8383', 'house');
233
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (4, 2, '2017-09-10 19:41:10', '2018-03-04 06:51:19', '1132.7420', 'house');
234
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (8, 16, '2018-01-12 13:23:23', '2018-03-04 06:05:45', '683.0735', 'house');
235
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (5, 13, '2017-03-29 18:22:55', '2018-03-14 09:12:05', '1036.8462', 'apartment');
236
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (2, 3, '2017-08-12 18:28:31', '2018-03-06 21:41:20', '800.1214', 'house');
237
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (2, 8, '2017-04-18 05:36:44', '2018-03-07 04:29:28', '865.2615', 'house');
238
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (9, 9, '2018-02-04 02:28:04', '2018-03-12 02:57:48', '679.2988', 'house');
239
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (13, 19, '2017-08-17 11:51:00', '2018-03-04 13:24:28', '644.9306', 'apartment');
240
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (15, 1, '2018-03-05 19:28:26', '2018-03-15 04:44:58', '1032.8717', 'apartment');
241
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (12, 10, '2017-09-23 05:16:17', '2018-03-05 21:12:37', '1032.9782', 'apartment');
242
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (1, 5, '2017-11-12 04:24:02', '2018-03-14 17:00:44', '1007.2597', 'apartment');
243
+ INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (10, 18, '2017-10-09 17:31:44', '2018-03-18 03:28:47', '620.2801', 'house');
244
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (3, 15, 1);
245
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (8, 13, 3);
246
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (11, 6, 11);
247
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (12, 12, 1);
248
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (14, 15, 13);
249
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (7, 7, 8);
250
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (13, 9, 12);
251
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (10, 14, 8);
252
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (12, 2, 13);
253
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (12, 12, 1);
254
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (9, 15, 15);
255
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (10, 7, 12);
256
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (13, 3, 3);
257
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (8, 15, 14);
258
+ INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (8, 14, 14);
spider_data/database/bike_1/bike_1.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5ae0e24e3a9d860a38ec6256828e3b9e37691c80931ef554adc202f8eb2950c
3
+ size 1785856
spider_data/database/bike_1/schema.sql ADDED
The diff for this file is too large to render. See raw diff
 
spider_data/database/body_builder/body_builder.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76221ea59be7c46e0712e308dd9f0527c63b71669186b2e97c23df78ab974108
3
+ size 20480
spider_data/database/body_builder/schema.sql ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "body_builder" (
4
+ "Body_Builder_ID" int,
5
+ "People_ID" int,
6
+ "Snatch" real,
7
+ "Clean_Jerk" real,
8
+ "Total" real,
9
+ PRIMARY KEY ("Body_Builder_ID"),
10
+ FOREIGN KEY ("People_ID") REFERENCES `people`("People_ID")
11
+ );
12
+
13
+ CREATE TABLE "people" (
14
+ "People_ID" int,
15
+ "Name" text,
16
+ "Height" real,
17
+ "Weight" real,
18
+ "Birth_Date" text,
19
+ "Birth_Place" text,
20
+ PRIMARY KEY ("People_ID")
21
+ );
22
+
23
+ INSERT INTO "people" VALUES (1,"Jack Campbell","182","80","January 1, 1992","Port Huron, Michigan");
24
+ INSERT INTO "people" VALUES (2,"Ty Conklin","192","90","March 30, 1976","Anchorage, Alaska");
25
+ INSERT INTO "people" VALUES (3,"Al Montoya","195","100","February 13, 1985","Glenview, Illinois");
26
+ INSERT INTO "people" VALUES (4,"Mark Fayne","215","102","May 5, 1987","Nashua, New Hampshire");
27
+ INSERT INTO "people" VALUES (5,"Cam Fowler","196","89","December 5, 1991","Farmington Hills, Michigan");
28
+ INSERT INTO "people" VALUES (6,"Jake Gardiner","205","92","July 4, 1990","Minnetonka, Minnesota");
29
+
30
+
31
+ INSERT INTO "body_builder" VALUES (1,1,"142.5","175.0","317.5");
32
+ INSERT INTO "body_builder" VALUES (2,2,"137.5","177.5","315.0");
33
+ INSERT INTO "body_builder" VALUES (3,3,"140.0","175.0","315.0");
34
+ INSERT INTO "body_builder" VALUES (4,5,"137.5","175.0","312.5");
35
+ INSERT INTO "body_builder" VALUES (5,6,"130.0","162.5","292.5");
36
+
37
+
spider_data/database/book_2/book_2.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b0bffbf8805809461b29573dc55782d810cc688af526e28088b299326d72407
3
+ size 20480
spider_data/database/book_2/schema.sql ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "publication" (
4
+ "Publication_ID" int,
5
+ "Book_ID" int,
6
+ "Publisher" text,
7
+ "Publication_Date" text,
8
+ "Price" real,
9
+ PRIMARY KEY ("Publication_ID"),
10
+ FOREIGN KEY ("Book_ID") REFERENCES "book"("Book_ID")
11
+ );
12
+
13
+ CREATE TABLE "book" (
14
+ "Book_ID" int,
15
+ "Title" text,
16
+ "Issues" real,
17
+ "Writer" text,
18
+ PRIMARY KEY ("Book_ID")
19
+ );
20
+
21
+
22
+ INSERT INTO "book" VALUES (1,"The Black Lamb","6","Timothy Truman");
23
+ INSERT INTO "book" VALUES (2,"Bloody Mary","4","Garth Ennis");
24
+ INSERT INTO "book" VALUES (3,"Bloody Mary : Lady Liberty","4","Garth Ennis");
25
+ INSERT INTO "book" VALUES (4,"BrainBanx","6","Elaine Lee");
26
+ INSERT INTO "book" VALUES (5,"Cyberella","12","Howard Chaykin");
27
+ INSERT INTO "book" VALUES (6,"Dead Corps","4","Christopher Hinz");
28
+ INSERT INTO "book" VALUES (7,"The Dome: Ground Zero","1","Dave Gibbons");
29
+ INSERT INTO "book" VALUES (8,"Gemini Blood","9","Christopher Hinz");
30
+ INSERT INTO "book" VALUES (9,"Michael Moorcock's Multiverse","12","Michael Moorcock");
31
+ INSERT INTO "book" VALUES (10,"Sheva's War","5","Christopher Moeller");
32
+
33
+
34
+ INSERT INTO "publication" VALUES (1,1,"Pearson","August 2008","15000000");
35
+ INSERT INTO "publication" VALUES (2,3,"Thomson Reuters","March 2008","6000000");
36
+ INSERT INTO "publication" VALUES (3,4,"Wiley","June 2006","4100000");
37
+ INSERT INTO "publication" VALUES (4,5,"Wiley","October 2005","3000000");
38
+ INSERT INTO "publication" VALUES (5,7,"Springer Nature","August 2008","3000000");
39
+ INSERT INTO "publication" VALUES (6,9,"Pearson","March 2007","2000000");
40
+ INSERT INTO "publication" VALUES (7,10,"Bertelsmann","April 2007","2000000");
spider_data/database/browser_web/browser_web.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ced1ee75f531e02adf66f387ced5997f416653adbcf519c037813aa69599f17a
3
+ size 28672
spider_data/database/browser_web/schema.sql ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys=OFF;
2
+ BEGIN TRANSACTION;
3
+ CREATE TABLE IF NOT EXISTS "Web_client_accelerator" (
4
+ "id" int,
5
+ "name" text,
6
+ "Operating_system" text,
7
+ "Client" text,
8
+ "Connection" text,
9
+ primary key("id")
10
+ );
11
+ INSERT INTO Web_client_accelerator VALUES(1,'CACHEbox','Appliance (Linux)','End user, ISP','Broadband, Satellite, Wireless, Fiber, DSL');
12
+ INSERT INTO Web_client_accelerator VALUES(2,'CProxy','Windows','user','up to 756kbit/s');
13
+ INSERT INTO Web_client_accelerator VALUES(3,'Fasterfox','Windows, Mac, Linux and Mobile devices','user','Dialup, Wireless, Broadband, DSL');
14
+ INSERT INTO Web_client_accelerator VALUES(4,'fasTun','Any','All','Any');
15
+ INSERT INTO Web_client_accelerator VALUES(5,'Freewire','Windows, except NT and 95','ISP','Dial-up');
16
+ INSERT INTO Web_client_accelerator VALUES(6,'Google Web Accelerator (discontinued)','Windows','user/Google server','Broadband');
17
+ INSERT INTO Web_client_accelerator VALUES(7,'Heigh Speed','Windows','All','Any');
18
+ INSERT INTO Web_client_accelerator VALUES(8,'Netfury','Windows, Mac','End User, ISP','Dial-up, Broadband, DSL, ISDN, Satellite, Wireless');
19
+ INSERT INTO Web_client_accelerator VALUES(9,'Nitro','Windows, Mac','End User, ISP','Dial-up, Broadband, DSL, ISDN, Satellite, Wireless');
20
+ INSERT INTO Web_client_accelerator VALUES(10,'ONSPEED','Windows, Mac and Mobile devices','user','Dialup, Wireless, Broadband, DSL');
21
+ INSERT INTO Web_client_accelerator VALUES(11,'Opera Turbo','Android, Linux, Mac and Windows devices','user/Opera server','Any');
22
+ INSERT INTO Web_client_accelerator VALUES(12,'Polipo','Unix (Linux, *BSD, Mac OS X, others), Windows','user/ISP','Any');
23
+ INSERT INTO Web_client_accelerator VALUES(13,'Propel','Windows, Mac','End User, ISP','Dial, DSL, ISDN, Satellite, wireless');
24
+ INSERT INTO Web_client_accelerator VALUES(14,'Proxyconn Web Accelerator','Windows, Mac, Mobile devices','user','Dialup, Wireless, Broadband, DSL');
25
+ INSERT INTO Web_client_accelerator VALUES(15,'RabbIT','Any system with Java 1.6 VM available','ISP','Any');
26
+ INSERT INTO Web_client_accelerator VALUES(16,'Squid','Unix (Linux, *BSD, Mac OS X, others), Windows','user/ISP','Any');
27
+ INSERT INTO Web_client_accelerator VALUES(17,'Toonel','Windows, Linux, Mac OS, Symbian, WindowsMobile','user/ISP','Any');
28
+ INSERT INTO Web_client_accelerator VALUES(18,'WinGate','Windows (2000 onwards)','All','Any');
29
+ INSERT INTO Web_client_accelerator VALUES(19,'Ziproxy','Unix (Linux, *BSD, Mac OS X, others)','ISP','Any');
30
+ CREATE TABLE IF NOT EXISTS "browser" (
31
+ "id" int,
32
+ "name" text,
33
+ "market_share" real,
34
+ primary key("id")
35
+ );
36
+ INSERT INTO browser VALUES(1,'Internet Explorer',28.960000000000000852);
37
+ INSERT INTO browser VALUES(2,'Firefox',18.109999999999999431);
38
+ INSERT INTO browser VALUES(3,'Safari',8.5399999999999991473);
39
+ INSERT INTO browser VALUES(4,'Opera',1.1999999999999999555);
40
+ CREATE TABLE IF NOT EXISTS "accelerator_compatible_browser" (
41
+ "accelerator_id" int,
42
+ "browser_id" int,
43
+ "compatible_since_year" int,
44
+ primary key("accelerator_id", "browser_id"),
45
+ foreign key ("accelerator_id") references `Web_client_accelerator`("id"),
46
+ foreign key ("browser_id") references `browser`("id")
47
+ );
48
+ INSERT INTO accelerator_compatible_browser VALUES(1,1,1995);
49
+ INSERT INTO accelerator_compatible_browser VALUES(1,2,1996);
50
+ INSERT INTO accelerator_compatible_browser VALUES(2,3,1996);
51
+ INSERT INTO accelerator_compatible_browser VALUES(2,4,2000);
52
+ INSERT INTO accelerator_compatible_browser VALUES(3,1,2005);
53
+ INSERT INTO accelerator_compatible_browser VALUES(3,2,2007);
54
+ INSERT INTO accelerator_compatible_browser VALUES(3,3,2008);
55
+ INSERT INTO accelerator_compatible_browser VALUES(4,4,2009);
56
+ INSERT INTO accelerator_compatible_browser VALUES(9,1,2010);
57
+ COMMIT;
58
+
spider_data/database/candidate_poll/candidate_poll.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7df58984f9d9796538716294ba0dda9f48a4a54907f03a3859285aa4b5cf8dc5
3
+ size 20480
spider_data/database/candidate_poll/schema.sql ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "candidate" (
4
+ "Candidate_ID" int,
5
+ "People_ID" int,
6
+ "Poll_Source" text,
7
+ "Date" text,
8
+ "Support_rate" real,
9
+ "Consider_rate" real,
10
+ "Oppose_rate" real,
11
+ "Unsure_rate" real,
12
+ PRIMARY KEY ("Candidate_ID"),
13
+ FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID")
14
+ );
15
+
16
+ CREATE TABLE "people" (
17
+ "People_ID" int,
18
+ "Sex" text,
19
+ "Name" text,
20
+ "Date_of_Birth" text,
21
+ "Height" real,
22
+ "Weight" real,
23
+ PRIMARY KEY ("People_ID")
24
+ );
25
+
26
+ INSERT INTO "people" VALUES (1,"M","Hubert Henno","06.10.1976","188","83");
27
+ INSERT INTO "people" VALUES (2,"M","Dominique Daquin","10.11.1972","197","85");
28
+ INSERT INTO "people" VALUES (3,"F","Stéphane Antiga","03.02.1976","200","94");
29
+ INSERT INTO "people" VALUES (4,"M","Laurent Capet","05.05.1972","202","92");
30
+ INSERT INTO "people" VALUES (5,"F","Frantz Granvorka","10.03.1976","195","90");
31
+ INSERT INTO "people" VALUES (6,"M","Vincent Montméat","01.09.1977","196","88");
32
+ INSERT INTO "people" VALUES (7,"M","Loïc De Kergret","20.08.1970","193","89");
33
+ INSERT INTO "people" VALUES (8,"M","Philippe Barça-Cysique","22.04.1977","194","88");
34
+ INSERT INTO "people" VALUES (9,"M","Guillaume Samica","28.09.1981","196","82");
35
+
36
+ INSERT INTO "candidate" VALUES (1,1,"WNBC/Marist Poll","Feb 12–15, 2007","0.25","0.30","0.43","0.2");
37
+ INSERT INTO "candidate" VALUES (2,3,"WNBC/Marist Poll","Feb 12–15, 2007","0.17","0.42","0.32","0.9");
38
+ INSERT INTO "candidate" VALUES (3,4,"FOX News/Opinion Dynamics Poll","Feb 13–14, 2007","0.18","0.34","0.44","0.3");
39
+ INSERT INTO "candidate" VALUES (4,6,"Newsweek Poll","Nov 9–10, 2006","0.33","0.20","0.45","0.2");
40
+ INSERT INTO "candidate" VALUES (5,7,"Newsweek Poll","Nov 9–10, 2006","0.24","0.30","0.32","0.4");
41
+ INSERT INTO "candidate" VALUES (6,9,"Newsweek Poll","Nov 9–10, 2006","0.24","0.27","0.43","0.2");
42
+
spider_data/database/car_1/annotation.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label_id": null,
3
+ "data": [
4
+ {
5
+ "nl": "Find all Reanults (\u2019renault\u2019) in the database. For each, report the name and the year.\n",
6
+ "id": 0
7
+ },
8
+ {
9
+ "nl": "Find all cars produced by Volvo between 1977 and 1981 (inclusive). Report the name of the car and the year it was produced.\n",
10
+ "id": 1
11
+ },
12
+ {
13
+ "nl": "Report all Asian automakers. Output the full name of the automaker and the country of origin\n",
14
+ "id": 2
15
+ },
16
+ {
17
+ "nl": "Find all non-four cylinder cars produced in 1980 that have a better fuel economy better than 20 MPG and that accelerate to 60 mph faster than in 15 seconds. Report the name of the car and the name of the automaker.\n",
18
+ "id": 3
19
+ },
20
+ {
21
+ "nl": "For each saab released after 1978, compute the ratio between the weight of the car and its number of horsepowers. Report the full name of the car, the year it was produced and the ratio.\n",
22
+ "id": 4
23
+ },
24
+ {
25
+ "nl": "Find the average, maximum and minimum horsepower for 4-cylinder vehicles manufactured by renault between 1971 and 1976 inclusively.\n",
26
+ "id": 5
27
+ },
28
+ {
29
+ "nl": "Find how many different car manufacturers produced a vehicle heavier than 4000 lbs.\n",
30
+ "id": 6
31
+ },
32
+ {
33
+ "nl": "Find the minimum horsepower for 4-cylinder vehicles manufactured by renault between 1971 and 1976 inclusively.\n",
34
+ "id": 7
35
+ },
36
+ {
37
+ "nl": "For each year when US-manufactured cars averaged less than 100 horsepowers, report the highest and the lowest engine displacement number.\n",
38
+ "id": 8
39
+ },
40
+ {
41
+ "nl": "For each year in which honda produced more than 2 models, report the best, the worst and the average gas milage of a toyota vehicle.\n",
42
+ "id": 9
43
+ },
44
+ {
45
+ "nl": "Report all vehicles with the best gas mileage. For each vehicle, report its full name and the year of production.\n",
46
+ "id": 10
47
+ },
48
+ {
49
+ "nl": "Among the vehicles with the gas mileage, report the one with the best acceleration. Report full name and the year of production.\n",
50
+ "id": 11
51
+ },
52
+ {
53
+ "nl": "For each country report the automaker with the largest number of cars in the database. Report the name of the country.\n",
54
+ "id": 12
55
+ },
56
+ {
57
+ "nl": "Find the difference in gas milage between the most fuel-efficient 8-cylinder model and the least fuel-efficient 4-cylinder model. Report just the number.\n",
58
+ "id": 13
59
+ }
60
+ ],
61
+ "review_id": null
62
+ }
spider_data/database/car_1/car_1.json ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "col_data": [
4
+ {
5
+ "column_name": "ContId",
6
+ "data_type": "INTEGER",
7
+ "default_column_name": "ContId",
8
+ "default_value": null,
9
+ "not_null": 0,
10
+ "primary_key": 1
11
+ },
12
+ {
13
+ "column_name": "Continent",
14
+ "data_type": "TEXT",
15
+ "default_column_name": "Continent",
16
+ "default_value": null,
17
+ "not_null": 0,
18
+ "primary_key": 0
19
+ }
20
+ ],
21
+ "table": "continents"
22
+ },
23
+ {
24
+ "col_data": [
25
+ {
26
+ "column_name": "CountryId",
27
+ "data_type": "INTEGER",
28
+ "default_column_name": "CountryId",
29
+ "default_value": null,
30
+ "not_null": 0,
31
+ "primary_key": 1
32
+ },
33
+ {
34
+ "column_name": "CountryName",
35
+ "data_type": "TEXT",
36
+ "default_column_name": "CountryName",
37
+ "default_value": null,
38
+ "not_null": 0,
39
+ "primary_key": 0
40
+ },
41
+ {
42
+ "column_name": "Continent",
43
+ "data_type": "INTEGER",
44
+ "default_column_name": "Continent",
45
+ "default_value": null,
46
+ "not_null": 0,
47
+ "primary_key": 0
48
+ }
49
+ ],
50
+ "table": "countries"
51
+ },
52
+ {
53
+ "col_data": [
54
+ {
55
+ "column_name": "Id",
56
+ "data_type": "INTEGER",
57
+ "default_column_name": "Id",
58
+ "default_value": null,
59
+ "not_null": 0,
60
+ "primary_key": 1
61
+ },
62
+ {
63
+ "column_name": "Maker",
64
+ "data_type": "TEXT",
65
+ "default_column_name": "Maker",
66
+ "default_value": null,
67
+ "not_null": 0,
68
+ "primary_key": 0
69
+ },
70
+ {
71
+ "column_name": "FullName",
72
+ "data_type": "TEXT",
73
+ "default_column_name": "FullName",
74
+ "default_value": null,
75
+ "not_null": 0,
76
+ "primary_key": 0
77
+ },
78
+ {
79
+ "column_name": "Country",
80
+ "data_type": "TEXT",
81
+ "default_column_name": "Country",
82
+ "default_value": null,
83
+ "not_null": 0,
84
+ "primary_key": 0
85
+ }
86
+ ],
87
+ "table": "car-makers"
88
+ },
89
+ {
90
+ "col_data": [
91
+ {
92
+ "column_name": "MakeId",
93
+ "data_type": "INTEGER",
94
+ "default_column_name": "MakeId",
95
+ "default_value": null,
96
+ "not_null": 0,
97
+ "primary_key": 1
98
+ },
99
+ {
100
+ "column_name": "Model",
101
+ "data_type": "TEXT",
102
+ "default_column_name": "Model",
103
+ "default_value": null,
104
+ "not_null": 0,
105
+ "primary_key": 0
106
+ },
107
+ {
108
+ "column_name": "Make",
109
+ "data_type": "TEXT",
110
+ "default_column_name": "Make",
111
+ "default_value": null,
112
+ "not_null": 0,
113
+ "primary_key": 0
114
+ }
115
+ ],
116
+ "table": "car-names"
117
+ },
118
+ {
119
+ "col_data": [
120
+ {
121
+ "column_name": "Id",
122
+ "data_type": "INTEGER",
123
+ "default_column_name": "Id",
124
+ "default_value": null,
125
+ "not_null": 0,
126
+ "primary_key": 1
127
+ },
128
+ {
129
+ "column_name": "MPG",
130
+ "data_type": "TEXT",
131
+ "default_column_name": "MPG",
132
+ "default_value": null,
133
+ "not_null": 0,
134
+ "primary_key": 0
135
+ },
136
+ {
137
+ "column_name": "Cylinders",
138
+ "data_type": "INTEGER",
139
+ "default_column_name": "Cylinders",
140
+ "default_value": null,
141
+ "not_null": 0,
142
+ "primary_key": 0
143
+ },
144
+ {
145
+ "column_name": "Edispl",
146
+ "data_type": "REAL",
147
+ "default_column_name": "Edispl",
148
+ "default_value": null,
149
+ "not_null": 0,
150
+ "primary_key": 0
151
+ },
152
+ {
153
+ "column_name": "Horsepower",
154
+ "data_type": "TEXT",
155
+ "default_column_name": "Horsepower",
156
+ "default_value": null,
157
+ "not_null": 0,
158
+ "primary_key": 0
159
+ },
160
+ {
161
+ "column_name": "Weight",
162
+ "data_type": "INTEGER",
163
+ "default_column_name": "Weight",
164
+ "default_value": null,
165
+ "not_null": 0,
166
+ "primary_key": 0
167
+ },
168
+ {
169
+ "column_name": "Accelerate",
170
+ "data_type": "REAL",
171
+ "default_column_name": "Accelerate",
172
+ "default_value": null,
173
+ "not_null": 0,
174
+ "primary_key": 0
175
+ },
176
+ {
177
+ "column_name": "Year",
178
+ "data_type": "INTEGER",
179
+ "default_column_name": "Year",
180
+ "default_value": null,
181
+ "not_null": 0,
182
+ "primary_key": 0
183
+ }
184
+ ],
185
+ "table": "cars-data"
186
+ },
187
+ {
188
+ "col_data": [
189
+ {
190
+ "column_name": "ModelId",
191
+ "data_type": "INTEGER",
192
+ "default_column_name": "ModelId",
193
+ "default_value": null,
194
+ "not_null": 0,
195
+ "primary_key": 1
196
+ },
197
+ {
198
+ "column_name": "Maker",
199
+ "data_type": "INTEGER",
200
+ "default_column_name": "Maker",
201
+ "default_value": null,
202
+ "not_null": 0,
203
+ "primary_key": 0
204
+ },
205
+ {
206
+ "column_name": "Model",
207
+ "data_type": "TEXT",
208
+ "default_column_name": "Model",
209
+ "default_value": null,
210
+ "not_null": 0,
211
+ "primary_key": 0
212
+ }
213
+ ],
214
+ "table": "model-list"
215
+ }
216
+ ]
spider_data/database/car_1/car_1.sql ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CREATE TABLE "continents" (
2
+ "ContId" INTEGER PRIMARY KEY,
3
+ "Continent" TEXT
4
+ );
5
+
6
+ CREATE TABLE "countries" (
7
+ "CountryId" INTEGER PRIMARY KEY,
8
+ "CountryName" TEXT,
9
+ "Continent" INTEGER,
10
+ FOREIGN KEY (Continent) REFERENCES continents(ContId)
11
+ );
12
+
13
+
14
+ CREATE TABLE "car_makers" (
15
+ "Id" INTEGER PRIMARY KEY,
16
+ "Maker" TEXT,
17
+ "FullName" TEXT,
18
+ "Country" TEXT,
19
+ FOREIGN KEY (Country) REFERENCES countries(CountryId)
20
+ );
21
+
22
+
23
+ CREATE TABLE "model_list" (
24
+ "ModelId" INTEGER PRIMARY KEY,
25
+ "Maker" INTEGER,
26
+ "Model" TEXT UNIQUE,
27
+ FOREIGN KEY (Maker) REFERENCES car_makers (Id)
28
+
29
+ );
30
+
31
+
32
+
33
+ CREATE TABLE "car_names" (
34
+ "MakeId" INTEGER PRIMARY KEY,
35
+ "Model" TEXT,
36
+ "Make" TEXT,
37
+ FOREIGN KEY (Model) REFERENCES model_list (Model)
38
+ );
39
+
40
+ CREATE TABLE "cars_data" (
41
+ "Id" INTEGER PRIMARY KEY,
42
+ "MPG" TEXT,
43
+ "Cylinders" INTEGER,
44
+ "Edispl" REAL,
45
+ "Horsepower" TEXT,
46
+ "Weight" INTEGER,
47
+ "Accelerate" REAL,
48
+ "Year" INTEGER,
49
+ FOREIGN KEY (Id) REFERENCES car_names (MakeId)
50
+ );
51
+
52
+
spider_data/database/car_1/car_1.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d851e396e02997a1de073ae982fe1e4b1769fdffce2fac6e325857a3a938709
3
+ size 65536
spider_data/database/car_1/data_csv/README.CARS.TXT ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *****************************************************
2
+ CPE 365 Alex Dekhtyar
3
+ Cal Poly Computer Science Department
4
+ San Luis Obispo College of Engineering
5
+ California dekhtyar@csc.calpoly.edu
6
+ *****************************************************
7
+ CARS DATASET
8
+ Version 1.0
9
+ September 26, 2007
10
+ *****************************************************
11
+ Sources:
12
+ The Committee on Statistical Graphics of
13
+ the American Statistical Association (ASA)
14
+ 1983 Cars dataset
15
+ available (among other places) from
16
+ CMU's StatLib server:
17
+ http://lib.stat.cmu.edu/datasets/
18
+
19
+ ******************************************************
20
+
21
+
22
+ This file describes the contents of the CARS dataset
23
+ developed for the CPE 365, Introduction to Databases
24
+ course at Cal Poly.
25
+
26
+ The dataset is a normalized and slightly enhanced version
27
+ of the ASA's Committee on Statistical Graphics "cars"
28
+ dataset offered in 1983 for the visualization competition.
29
+ Please refer to the original dataset description
30
+ in the file "cars.desc" included with this distribution for
31
+ historical purposes. (please, note, cars.desc file does not
32
+ describe the format of this dataset correctly).
33
+
34
+
35
+ The dataset describes the origins and different parameters
36
+ of 406 car models produced in the world between 1970 and 1982.
37
+ The dataset consists of the following files:
38
+
39
+ General Conventions.
40
+
41
+ 1. All files in the dataset are CSV (comma-separated values) files.
42
+ 2. First line of each file provides the names of
43
+ columns. Second line may be empty, or may contain
44
+ the first row of the data
45
+ 3. All string values are enclosed in single quotes (')
46
+
47
+ - car-makers.csv : information about companies that produce cars
48
+ - car-names.csv : information about specific cars (by name)
49
+ - cars-data.csv : operational parameters of the cars
50
+ - continents.csv : list of continents
51
+ - countries.csv : list of countries
52
+ - model-list.csv : information about car models produced by car makers
53
+
54
+
55
+ The core of the dataset consists of four files: car-makes.csv, model-list.csv,
56
+ car-names.csv and cars-data.csv. The first file identifies companies
57
+ that produce cars (e.g, "Ford Motor Company", "Toyota"), the second file
58
+ lists various models and identified their makes (e.g., "Ford" and "Mercury"
59
+ produced by Ford, "Oldsmobile" and "Chevrolet" produced by GM). The third
60
+ file is the masterlist of 406 car makes considered in the database
61
+ (e.g., "ford torino" or "amc rebel set"). The fourth file contains information
62
+ about the operating parameters (see below for a full list) for each make.
63
+
64
+
65
+ Individual files have the following formats.
66
+
67
+
68
+ **************************************************************************
69
+
70
+ car-makers.csv
71
+
72
+ Id : unique identifier of the car maker
73
+ Maker : short nickname for the car maker
74
+ FullName : full name of the car maker
75
+ Country : Id of the home country of the maker (see countries.CountryId)
76
+
77
+
78
+
79
+ **************************************************************************
80
+
81
+ car-names.csv
82
+
83
+ MakeId : unique identifier of the car make
84
+ Model : unique name of the car model (see model-list.Model)
85
+ MakeDescription : description (name) of the car make
86
+
87
+
88
+
89
+ **************************************************************************
90
+
91
+
92
+ cars-data.csv
93
+
94
+ Id : unique identifier of the car make (see car-names.MakeId)
95
+ MPG : milage per gallon
96
+ Cylinders : number of cylinders
97
+ Edispl : engine displacement volume in cubic inches
98
+ Horsepower : power of the engine in horsepowers
99
+ Weight : weight of the car in lbs
100
+ Accelerate : time to accelerate from 0 to 60mph in seconds (possibly
101
+ with fractions of a second)
102
+ Year : year the car was made
103
+
104
+
105
+ NOTE: this file adds the Id attribute to the original cars.data file from
106
+ the ASA cars dataset, removes the Origin attribute (the origin is
107
+ now dealt with elsewhere), and modifies year to be the actual year
108
+ rather than "year - 1900".
109
+
110
+
111
+
112
+ **************************************************************************
113
+
114
+
115
+ continents.csv
116
+
117
+ ContId : unique identifier of the continent
118
+ Continent : name of the continent
119
+
120
+
121
+ **************************************************************************
122
+
123
+ countries.csv
124
+
125
+ CountryId : unique identifier of the country
126
+ CountryName : name of the country
127
+ Continent : unique identifier of the continent the country is on
128
+ (see continents.ContId)
129
+
130
+
131
+ **************************************************************************
132
+
133
+ model-list.csv
134
+
135
+ ModelId : unique identifier of the car model
136
+ Maker : unique identifier of the car maker (see car-makers.id)
137
+ Model : name of the car model (also unique)
138
+
139
+
140
+
141
+ **************************************************************************
142
+ **************************************************************************
143
+
144
+
145
+
146
+
147
+
148
+
149
+
spider_data/database/car_1/data_csv/car-makers.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e799cefbae504a6d2f616c99e64017b5124e37e98eadc41a8cedc4b3a6f98506
3
+ size 588
spider_data/database/car_1/data_csv/car-names.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4db9751bbee98a3943c8242dc08cb0ba7b4043e039de72ad2f24578863337bdd
3
+ size 13468
spider_data/database/car_1/data_csv/cars-data.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95937d7f6535282015dded5894e7e1fa63f6627a2d9ef2049cee8e9ee7ae644b
3
+ size 13071
spider_data/database/car_1/data_csv/cars.desc ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The Committee on Statistical Graphics of the American Statistical
2
+ Association (ASA) invites you to participate in its Second (1983)
3
+ Exposition of Statistical Graphics Technology. The purposes of the
4
+ Exposition are (l) to provide a forum in which users and providers of
5
+ statistical graphics technology can exchange information and ideas and
6
+ (2) to expose those members of the ASA community who are less familiar
7
+ with statistical graphics to its capabilities and potential benefits
8
+ to them. The Exposition wil1 be held in conjunction with the Annual
9
+ Meetings in Toronto, August 15-18, 1983 and is tentatively scheduled
10
+ for the afternoon of Wednesday, August 17.
11
+
12
+ Seven providers of statistical graphics technology participated in the
13
+ l982 Exposition. By all accounts, the Exposition was well received by
14
+ the ASA community and was a worthwhile experience for the
15
+ participants. We hope to have those seven involved again this year,
16
+ along with as many new participants as we can muster. The 1982
17
+ Exposition was summarized in a paper to appear in the Proceeding of
18
+ the Statistical Computing Section. A copy of that paper is enclosed
19
+ for your information.
20
+
21
+ The basic format of the 1983 Exposition will be similar to that of
22
+ 1982. However, based upon comments received and experience gained,
23
+ there are some changes. The basic structure, intended to be simpler
24
+ and more flexible than last year, is as follows:
25
+
26
+ A fixed data set is to be analyzed. This data set is a version of the
27
+ CRCARS data set of
28
+
29
+ Donoho, David and Ramos, Ernesto (1982), ``PRIMDATA:
30
+ Data Sets for Use With PRIM-H'' (DRAFT).
31
+
32
+ Because of the Committee's limited (zero) budget for the Exposition,
33
+ we are forced to provide the data in hardcopy form only (enclosed).
34
+ (Sorry!)
35
+
36
+ There are 406 observations on the following 8 variables: MPG (miles
37
+ per gallon), # cylinders, engine displacement (cu. inches), horsepower,
38
+ vehicle weight (lbs.), time to accelerate from O to 60 mph (sec.),
39
+ model year (modulo 100), and origin of car (1. American, 2. European,
40
+ 3. Japanese). These data appear on seven pages. Also provided are the
41
+ car labels (types) in the same order as the 8 variables on seven
42
+ separate pages. Missing data values are marked by series of question
43
+ marks.
44
+
45
+ You are asked to analyze these data using your statistical graphics
46
+ software. Your objective should be to achieve graphical displays which
47
+ will be meaningful to the viewers and highlight relevant aspects of
48
+ the data. If you can best achieve this using simple graphical formats,
49
+ fine. If you choose to illustrate some of the more sophisticated
50
+ capabilities of your software and can do so without losing relevancy
51
+ to the data, that is fine, too. This year, there will be no Committee
52
+ commentary on the individual presentations, so you are not competing
53
+ with other presenters. The role of each presenter is to do his/her
54
+ best job of presenting their statistical graphics technology to the
55
+ viewers.
56
+
57
+ Each participant will be provided with a 6'(long) by 4'(tall)
58
+ posterboard on which to display the results of their analyses. This is
59
+ the same format as last year. You are encouraged to remain by your
60
+ presentation during the Exposition to answer viewers' questions. Three
61
+ copies of your presentation must be submitted to me by July 1. Movie
62
+ or slide show presentations cannot be accommodated (sorry). The
63
+ Committee will prepare its own poster presentation which will orient
64
+ the viewers to the data and the purposes of the Exposition.
65
+
66
+ The ASA has asked us to remind all participants that the Exposition is
67
+ intended for educational and scientific purposes and is not a
68
+ marketing activity. Even though last year's participants did an
69
+ excellent job of maintaining that distinction, a cautionary note at
70
+ this point is appropriate.
71
+
72
+ Those of us who were involved with the 1982 Exposition found it
73
+ worthwhile and fun to do. We would very much like to have you
74
+ participate this year. For planning purposes, please RSVP (to me, in
75
+ writing please) by April 15 as to whether you plan to accept the
76
+ Committee's invitation.
77
+
78
+ If you have any questions about the Exposition, please call me on
79
+ (301/763-5350). If you have specific questions about the data, or the
80
+ analysis, please call Karen Kafadar on (301/921-3651). If you cannot
81
+ participate but know of another person or group in your organization
82
+ who can, please pass this invitation along to them.
83
+
84
+ Sincerely,
85
+
86
+
87
+
88
+ LAWRENCE H. COX
89
+ Statistical Research Division
90
+ Bureau of the Census
91
+ Room 3524-3
92
+ Washington, DC 20233
93
+
94
+
spider_data/database/car_1/data_csv/continents.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20735553edaaa41856e3413ffc22de9026649db723928a72a8e896a0143b311d
3
+ size 80
spider_data/database/car_1/data_csv/countries.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec03acf6d53e10e6299279f46a544952d18a247ad096d7f5fb6231e542032e70
3
+ size 248
spider_data/database/car_1/data_csv/model-list.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5362df5563333aa282c8ca9f6ddbf24c5b9b2799305f6711e7c0cd342fa5694f
3
+ size 569
spider_data/database/car_1/link.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ http://users.csc.calpoly.edu/~dekhtyar/365-Spring2017/index.html
spider_data/database/car_1/q.txt ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Find all Reanults (’renault’) in the database. For each, report the name and the year.
2
+
3
+ Find all cars produced by Volvo between 1977 and 1981 (inclusive). Report the name of the car and the year it was produced.
4
+
5
+ Report all Asian automakers. Output the full name of the automaker and the country of origin
6
+
7
+ Find all non-four cylinder cars produced in 1980 that have a better fuel economy better than 20 MPG and that accelerate to 60 mph faster than in 15 seconds. Report the name of the car and the name of the automaker.
8
+
9
+ For each saab released after 1978, compute the ratio between the weight of the car and its number of horsepowers. Report the full name of the car, the year it was produced and the ratio.
10
+
11
+ Find the average, maximum and minimum horsepower for 4-cylinder vehicles manufactured by renault between 1971 and 1976 inclusively.
12
+
13
+ Find how many different car manufacturers produced a vehicle heavier than 4000 lbs.
14
+
15
+ Find the minimum horsepower for 4-cylinder vehicles manufactured by renault between 1971 and 1976 inclusively.
16
+
17
+ For each year when US-manufactured cars averaged less than 100 horsepowers, report the highest and the lowest engine displacement number.
18
+
19
+ For each year in which honda produced more than 2 models, report the best, the worst and the average gas milage of a toyota vehicle.
20
+
21
+ Report all vehicles with the best gas mileage. For each vehicle, report its full name and the year of production.
22
+
23
+ Among the vehicles with the gas mileage, report the one with the best acceleration. Report full name and the year of production.
24
+
25
+ For each country report the automaker with the largest number of cars in the database. Report the name of the country.
26
+
27
+ Find the difference in gas milage between the most fuel-efficient 8-cylinder model and the least fuel-efficient 4-cylinder model. Report just the number.
spider_data/database/chinook_1/annotation.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "label_id": null,
3
+ "data": [],
4
+ "review_id": null
5
+ }
spider_data/database/chinook_1/chinook_1.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70b3eb8c3ffb5351eb7943e3bf05b693a5397c22d200ff022ef99e2ca18ab7b9
3
+ size 901120
spider_data/database/cinema/cinema.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fbcc850e33d813a792417291ddfb1cebc4a31716621284ed28ef53df360a14e
3
+ size 28672
spider_data/database/cinema/schema.sql ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+
5
+ CREATE TABLE "film" (
6
+ "Film_ID" int,
7
+ "Rank_in_series" int,
8
+ "Number_in_season" int,
9
+ "Title" text,
10
+ "Directed_by" text,
11
+ "Original_air_date" text,
12
+ "Production_code" text,
13
+ PRIMARY KEY ("Film_ID")
14
+ );
15
+
16
+ CREATE TABLE "cinema" (
17
+ "Cinema_ID" int,
18
+ "Name" text,
19
+ "Openning_year" int,
20
+ "Capacity" int,
21
+ "Location" text,
22
+ PRIMARY KEY ("Cinema_ID"));
23
+
24
+ INSERT INTO "film" VALUES (1,"26","1","The Case of the Mystery Weekend","Bill Schreiner","September 21–25, 1992","50021–50025");
25
+ INSERT INTO "film" VALUES (2,"27","2","The Case of the Smart Dummy","Bill Schreiner","September 28–October 2, 1992","50231–50235");
26
+ INSERT INTO "film" VALUES (3,"28","3","The Case: Off the Record","Bill Schreiner","October 5–9, 1992","50011–50015");
27
+ INSERT INTO "film" VALUES (4,"29","4","The Case of the Bermuda Triangle","Jesus Salvador Treviño","October 12–16, 1992","50251–50255");
28
+ INSERT INTO "film" VALUES (5,"30","5","The Case of the Piggy Banker","Bill Schreiner","October 19–23, 1992","50241–50245");
29
+
30
+ INSERT INTO "cinema" VALUES (1,"Codling","2010","1100","County Wicklow");
31
+ INSERT INTO "cinema" VALUES (2,"Carrowleagh","2012","368","County Cork");
32
+ INSERT INTO "cinema" VALUES (3,"Dublin Array","2015","364","County Dublin");
33
+ INSERT INTO "cinema" VALUES (4,"Glenmore","2009","305","County Clare");
34
+ INSERT INTO "cinema" VALUES (5,"Glenough","2010","325","County Tipperary");
35
+ INSERT INTO "cinema" VALUES (6,"Gortahile","2010","208","County Laois");
36
+ INSERT INTO "cinema" VALUES (7,"Grouse Lodge","2011","203","County Tipperary");
37
+ INSERT INTO "cinema" VALUES (8,"Moneypoint","2011","225","County Clare");
38
+ INSERT INTO "cinema" VALUES (9,"Mount Callan","2011","908","County Clare");
39
+ INSERT INTO "cinema" VALUES (10,"Oriel","2013","330","County Louth");
40
+
41
+ CREATE TABLE "schedule" (
42
+ "Cinema_ID" int,
43
+ "Film_ID" int,
44
+ "Date" text,
45
+ "Show_times_per_day" int,
46
+ "Price" float,
47
+ PRIMARY KEY ("Cinema_ID","Film_ID"),
48
+ FOREIGN KEY (`Film_ID`) REFERENCES `film`(`Film_ID`),
49
+ FOREIGN KEY (`Cinema_ID`) REFERENCES `cinema`(`Cinema_ID`)
50
+ );
51
+
52
+
53
+ INSERT INTO "schedule" VALUES (1,1,"21 May",5,12.99);
54
+ INSERT INTO "schedule" VALUES (1,2,"21 May",3,12.99);
55
+ INSERT INTO "schedule" VALUES (1,3,"21 Jun",2,8.99);
56
+ INSERT INTO "schedule" VALUES (2,1,"11 July",5,9.99);
57
+ INSERT INTO "schedule" VALUES (6,5,"2 Aug",4,12.99);
58
+ INSERT INTO "schedule" VALUES (9,4,"20 May",5,9.99);
59
+ INSERT INTO "schedule" VALUES (10,1,"19 May",5,15.99);
60
+
spider_data/database/city_record/city_record.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:112ff582c4552d8b35a0a70205fb7d8562f18c6a231b86fe8ac19beebebc4d4b
3
+ size 36864