target-benchmark commited on
Commit
c34f052
·
verified ·
1 Parent(s): 49cb3da

Upload folder using huggingface_hub

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 +12 -0
  2. spider-corpus-train.json +3 -0
  3. train_database/activity_1/activity_1.sqlite +0 -0
  4. train_database/activity_1/schema.sql +328 -0
  5. train_database/aircraft/aircraft.sqlite +0 -0
  6. train_database/aircraft/schema.sql +108 -0
  7. train_database/allergy_1/allergy_1.sqlite +0 -0
  8. train_database/allergy_1/schema.sql +132 -0
  9. train_database/apartment_rentals/apartment_rentals.sqlite +0 -0
  10. train_database/apartment_rentals/schema.sql +170 -0
  11. train_database/architecture/architecture.sqlite +0 -0
  12. train_database/architecture/schema.sql +65 -0
  13. train_database/assets_maintenance/assets_maintenance.sqlite +0 -0
  14. train_database/assets_maintenance/schema.sql +355 -0
  15. train_database/baseball_1/baseball_1.sqlite +3 -0
  16. train_database/baseball_1/schema.sql +3 -0
  17. train_database/behavior_monitoring/behavior_monitoring.sqlite +0 -0
  18. train_database/behavior_monitoring/schema.sql +258 -0
  19. train_database/bike_1/bike_1.sqlite +3 -0
  20. train_database/bike_1/schema.sql +0 -0
  21. train_database/body_builder/body_builder.sqlite +0 -0
  22. train_database/body_builder/schema.sql +37 -0
  23. train_database/book_2/book_2.sqlite +0 -0
  24. train_database/book_2/schema.sql +40 -0
  25. train_database/browser_web/browser_web.sqlite +0 -0
  26. train_database/browser_web/schema.sql +58 -0
  27. train_database/candidate_poll/candidate_poll.sqlite +0 -0
  28. train_database/candidate_poll/schema.sql +42 -0
  29. train_database/chinook_1/annotation.json +5 -0
  30. train_database/chinook_1/chinook_1.sqlite +0 -0
  31. train_database/cinema/cinema.sqlite +0 -0
  32. train_database/cinema/schema.sql +60 -0
  33. train_database/city_record/city_record.sqlite +0 -0
  34. train_database/city_record/schema.sql +88 -0
  35. train_database/climbing/climbing.sqlite +0 -0
  36. train_database/climbing/schema.sql +43 -0
  37. train_database/club_1/club_1.sqlite +0 -0
  38. train_database/club_1/schema.sql +73 -0
  39. train_database/coffee_shop/coffee_shop.sqlite +0 -0
  40. train_database/coffee_shop/schema.sql +85 -0
  41. train_database/college_1/TinyCollege.sql +194 -0
  42. train_database/college_1/college_1.sqlite +0 -0
  43. train_database/college_1/link.txt +1 -0
  44. train_database/college_2/TextBookExampleSchema.sql +0 -0
  45. train_database/college_2/college_2.sqlite +3 -0
  46. train_database/college_2/link.txt +1 -0
  47. train_database/college_3/college_3.sqlite +0 -0
  48. train_database/college_3/schema.sql +575 -0
  49. train_database/company_1/company_1.sqlite +0 -0
  50. train_database/company_1/link.txt +1 -0
.gitattributes CHANGED
@@ -53,3 +53,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
+ spider-corpus-train.json filter=lfs diff=lfs merge=lfs -text
57
+ train_database/baseball_1/baseball_1.sqlite filter=lfs diff=lfs merge=lfs -text
58
+ train_database/baseball_1/schema.sql filter=lfs diff=lfs merge=lfs -text
59
+ train_database/bike_1/bike_1.sqlite filter=lfs diff=lfs merge=lfs -text
60
+ train_database/college_2/college_2.sqlite filter=lfs diff=lfs merge=lfs -text
61
+ train_database/flight_4/flight_4.sqlite filter=lfs diff=lfs merge=lfs -text
62
+ train_database/formula_1/data_csv/lapTimes.csv filter=lfs diff=lfs merge=lfs -text
63
+ train_database/formula_1/formula_1.sqlite filter=lfs diff=lfs merge=lfs -text
64
+ train_database/sakila_1/sakila_1.sqlite filter=lfs diff=lfs merge=lfs -text
65
+ train_database/soccer_1/schema.sql filter=lfs diff=lfs merge=lfs -text
66
+ train_database/soccer_1/soccer_1.sqlite filter=lfs diff=lfs merge=lfs -text
67
+ train_database/store_1/store_1.sqlite filter=lfs diff=lfs merge=lfs -text
spider-corpus-train.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b9474e617f3572d8dcc343b40b48684d0129f67daf513bbbd74b34907f8ed4d
3
+ size 468617763
train_database/activity_1/activity_1.sqlite ADDED
Binary file (24.6 kB). View file
 
train_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) ;
train_database/aircraft/aircraft.sqlite ADDED
Binary file (45.1 kB). View file
 
train_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
+
train_database/allergy_1/allergy_1.sqlite ADDED
Binary file (20.5 kB). View file
 
train_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' );
train_database/apartment_rentals/apartment_rentals.sqlite ADDED
Binary file (53.2 kB). View file
 
train_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');
train_database/architecture/architecture.sqlite ADDED
Binary file (28.7 kB). View file
 
train_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
+
train_database/assets_maintenance/assets_maintenance.sqlite ADDED
Binary file (69.6 kB). View file
 
train_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);
train_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
train_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
train_database/behavior_monitoring/behavior_monitoring.sqlite ADDED
Binary file (65.5 kB). View file
 
train_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);
train_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
train_database/bike_1/schema.sql ADDED
The diff for this file is too large to render. See raw diff
 
train_database/body_builder/body_builder.sqlite ADDED
Binary file (20.5 kB). View file
 
train_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
+
train_database/book_2/book_2.sqlite ADDED
Binary file (20.5 kB). View file
 
train_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");
train_database/browser_web/browser_web.sqlite ADDED
Binary file (28.7 kB). View file
 
train_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
+
train_database/candidate_poll/candidate_poll.sqlite ADDED
Binary file (20.5 kB). View file
 
train_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
+
train_database/chinook_1/annotation.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "label_id": null,
3
+ "data": [],
4
+ "review_id": null
5
+ }
train_database/chinook_1/chinook_1.sqlite ADDED
Binary file (901 kB). View file
 
train_database/cinema/cinema.sqlite ADDED
Binary file (28.7 kB). View file
 
train_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
+
train_database/city_record/city_record.sqlite ADDED
Binary file (36.9 kB). View file
 
train_database/city_record/schema.sql ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+
4
+ CREATE TABLE "city" (
5
+ "City_ID" int,
6
+ "City" text,
7
+ "Hanzi" text,
8
+ "Hanyu_Pinyin" text,
9
+ "Regional_Population" int,
10
+ "GDP" real,
11
+ PRIMARY KEY ("City_ID")
12
+ );
13
+
14
+ CREATE TABLE "match" (
15
+ "Match_ID" int,
16
+ "Date" text,
17
+ "Venue" text,
18
+ "Score" text,
19
+ "Result" text,
20
+ "Competition" text,
21
+ PRIMARY KEY ("Match_ID")
22
+ );
23
+
24
+
25
+
26
+ CREATE TABLE "temperature" (
27
+ "City_ID" int,
28
+ "Jan" real,
29
+ "Feb" real,
30
+ "Mar" real,
31
+ "Apr" real,
32
+ "Jun" real,
33
+ "Jul" real,
34
+ "Aug" real,
35
+ "Sep" real,
36
+ "Oct" real,
37
+ "Nov" real,
38
+ "Dec" real,
39
+ PRIMARY KEY ("City_ID"),
40
+ FOREIGN KEY (`City_ID`) REFERENCES `city`(`City_ID`)
41
+ );
42
+
43
+ INSERT INTO "city" VALUES (1,"Shanghai","上海","Shànghǎi","23019148","1919.57");
44
+ INSERT INTO "city" VALUES (2,"Nanjing ( Jiangsu )","南京","Nánjīng","8004680","614.55");
45
+ INSERT INTO "city" VALUES (3,"Hangzhou ( Zhejiang )","杭州","Hángzhōu","8700400","701.18");
46
+ INSERT INTO "city" VALUES (4,"Suzhou ( Jiangsu )","苏州/ 蘇州","Sūzhōu","10465994","1071.70");
47
+ INSERT INTO "city" VALUES (5,"Ningbo ( Zhejiang )","宁波/ 寧波","Níngbō","7605689","601.05");
48
+ INSERT INTO "city" VALUES (6,"Wuxi ( Jiangsu )","无锡/ 無錫","Wúxī","6372624","688.02");
49
+ INSERT INTO "city" VALUES (7,"Nantong ( Jiangsu )","南通","Nántōng","7282835","408.02");
50
+ INSERT INTO "city" VALUES (8,"Shaoxing ( Zhejiang )","绍兴/ 紹興","Shàoxīng","4912200","329.12");
51
+ INSERT INTO "city" VALUES (9,"Changzhou ( Jiangsu )","常州","Chángzhōu","4591972","358.04");
52
+ INSERT INTO "city" VALUES (10,"Jinhua ( Zhejiang )","金华/ 金華","Jīnhuá","4614100","244.77");
53
+ INSERT INTO "city" VALUES (11,"Jiaxing ( Zhejiang )","嘉兴/ 嘉興","Jiāxīng","4501700","266.81");
54
+ INSERT INTO "city" VALUES (12,"Taizhou ( Zhejiang )","台州","Tāizhōu","5968800","279.49");
55
+ INSERT INTO "city" VALUES (13,"Yangzhou ( Jiangsu )","扬州/ 揚州","Yángzhōu","4459760","263.03");
56
+
57
+ INSERT INTO "temperature" VALUES (1,17.8,17.8,18.3,18.9,20.0,20.6,20.6,20.6,20.0,19.4,18.3);
58
+ INSERT INTO "temperature" VALUES (2,26.1,26.1,26.1,26.1,27.8,27.8,28.3,28.3,28.3,27.2,26.7);
59
+ INSERT INTO "temperature" VALUES (3,18.9,18.3,19.4,20.0,22.2,23.3,23.9,23.3,22.8,21.7,20.0);
60
+ INSERT INTO "temperature" VALUES (4,26.7,27.2,27.8,28.3,30.6,31.1,31.7,31.7,30.6,28.9,27.8);
61
+ INSERT INTO "temperature" VALUES (6,17.2,17.2,18.3,18.9,20.6,21.7,21.7,21.1,20.6,20.0,18.3);
62
+ INSERT INTO "temperature" VALUES (10,26.7,27.2,27.8,27.8,30.0,30.6,31.1,31.1,30.6,28.9,27.8);
63
+ INSERT INTO "temperature" VALUES (7,18.3,18.9,19.4,20.6,22.8,23.3,23.3,23.3,22.8,21.7,20.0);
64
+ INSERT INTO "temperature" VALUES (11,25.6,26.6,26.6,26.1,28.3,28.9,29.4,29.4,28.9,27.2,26.1);
65
+
66
+ INSERT INTO "match" VALUES (1,"18 February 1992","Estadio Cuscatlán , San Salvador , El Salvador","1-0","2-0","Friendly match");
67
+ INSERT INTO "match" VALUES (2,"19 July 1992","Estadio Rigoberto López , Managua , Nicaragua","3-0","5-0","1994 FIFA World Cup qualification");
68
+ INSERT INTO "match" VALUES (3,"23 July 1992","Estadio Cuscatlán , San Salvador , El Salvador","1-0","5-1","1994 FIFA World Cup qualification");
69
+ INSERT INTO "match" VALUES (4,"23 July 1992","Estadio Cuscatlán , San Salvador , El Salvador","3-0","5-1","1994 FIFA World Cup qualification");
70
+ INSERT INTO "match" VALUES (5,"4 April 1993","Estadio Cuscatlán , San Salvador , El Salvador","1–0","2–1","1994 FIFA World Cup qualification");
71
+ INSERT INTO "match" VALUES (6,"23 July 2000","Estadio Cuscatlán , San Salvador , El Salvador","2–1","7–1","2002 FIFA World Cup qualification");
72
+
73
+
74
+ CREATE TABLE "hosting_city" (
75
+ "Year" int,
76
+ "Match_ID" int,
77
+ "Host_City" text,
78
+ PRIMARY KEY ("Year"),
79
+ FOREIGN KEY (`Host_City`) REFERENCES `city`(`City_ID`),
80
+ FOREIGN KEY (`Match_ID`) REFERENCES `match`(`Match_ID`)
81
+ );
82
+
83
+ INSERT INTO "hosting_city" VALUES ("2008",1,1);
84
+ INSERT INTO "hosting_city" VALUES ("2009",2,2);
85
+ INSERT INTO "hosting_city" VALUES ("2010",3,2);
86
+ INSERT INTO "hosting_city" VALUES ("2011",4,6);
87
+ INSERT INTO "hosting_city" VALUES ("2012",5,12);
88
+ INSERT INTO "hosting_city" VALUES ("2013",6,11);
train_database/climbing/climbing.sqlite ADDED
Binary file (20.5 kB). View file
 
train_database/climbing/schema.sql ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "mountain" (
4
+ "Mountain_ID" int,
5
+ "Name" text,
6
+ "Height" real,
7
+ "Prominence" real,
8
+ "Range" text,
9
+ "Country" text,
10
+ PRIMARY KEY ("Mountain_ID")
11
+ );
12
+
13
+ CREATE TABLE "climber" (
14
+ "Climber_ID" int,
15
+ "Name" text,
16
+ "Country" text,
17
+ "Time" text,
18
+ "Points" real,
19
+ "Mountain_ID" int,
20
+ PRIMARY KEY ("Climber_ID"),
21
+ FOREIGN KEY ("Mountain_ID") REFERENCES "mountain"("Mountain_ID")
22
+ );
23
+
24
+ INSERT INTO "mountain" VALUES (1,"Kibo (Uhuru Pk)","5895","5885","Kilimanjaro","Tanzania");
25
+ INSERT INTO "mountain" VALUES (2,"Mount Kenya (Batian)","5199","3825","Mount Kenya","Kenya");
26
+ INSERT INTO "mountain" VALUES (3,"Mawenzi (Hans Meyer Pk)","5148","850","Kilimanjaro","Tanzania");
27
+ INSERT INTO "mountain" VALUES (4,"Ngaliema / Mt Stanley (Margherita Pk)","5109","3951","Rwenzori","DR Congo Uganda");
28
+ INSERT INTO "mountain" VALUES (5,"Mount Kenya (Lenana)","4985","130","Mount Kenya","Kenya");
29
+ INSERT INTO "mountain" VALUES (6,"Ngaliema / Mt Stanley (Savoia Pk)","4977","110","Rwenzori","Uganda");
30
+ INSERT INTO "mountain" VALUES (7,"Duwoni / Mt Speke (Vittorio Emanuele Pk)","4890","720","Rwenzori","Uganda");
31
+
32
+
33
+ INSERT INTO "climber" VALUES ("1","Klaus Enders","West Germany","1:13.05.6","15",1);
34
+ INSERT INTO "climber" VALUES ("2","Siegfried Schauzu","West Germany","1:14.56.4","12",1);
35
+ INSERT INTO "climber" VALUES ("3","Hans Luthringhauser","West Germany","1:16.58.0","10",2);
36
+ INSERT INTO "climber" VALUES ("4","Jean Claude Castella","Switzerland","1:17.16.0","8",2);
37
+ INSERT INTO "climber" VALUES ("5","Horst Owesle","West Germany","1:17.22.0","6",2);
38
+ INSERT INTO "climber" VALUES ("6","Georg Auerbacher","West Germany","1:18.14.6","5",3);
39
+ INSERT INTO "climber" VALUES ("7","Arseneus Butscher","West Germany","1:21.35.6","4",5);
40
+ INSERT INTO "climber" VALUES ("8","Charlie Freedman","United Kingdom","1:25.02.8","3",5);
41
+ INSERT INTO "climber" VALUES ("9","L Currie","United Kingdom","1:25.40.6","2",7);
42
+ INSERT INTO "climber" VALUES ("10","Mick Horsepole","United Kingdom","1:27.28.8","1",7);
43
+
train_database/club_1/club_1.sqlite ADDED
Binary file (16.4 kB). View file
 
train_database/club_1/schema.sql ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ create table Student (
2
+ StuID INTEGER PRIMARY KEY,
3
+ LName VARCHAR(12),
4
+ Fname VARCHAR(12),
5
+ Age INTEGER,
6
+ Sex VARCHAR(1),
7
+ Major INTEGER,
8
+ Advisor INTEGER,
9
+ city_code VARCHAR(3)
10
+ );
11
+
12
+
13
+ create table Club (
14
+ ClubID INTEGER PRIMARY KEY,
15
+ ClubName VARCHAR(40),
16
+ ClubDesc VARCHAR(1024),
17
+ ClubLocation VARCHAR(40)
18
+ );
19
+
20
+ create table Member_of_club (
21
+ StuID INTEGER,
22
+ ClubID INTEGER,
23
+ Position VARCHAR(40),
24
+ FOREIGN KEY(StuID) REFERENCES Student(StuID),
25
+ FOREIGN KEY(ClubID) REFERENCES Club(ClubID)
26
+ );
27
+
28
+
29
+ insert into Student values ( 1001, 'Smith', 'Linda', 18, 'F', 600, 1121,'BAL');
30
+ insert into Student values ( 1002, 'Kim', 'Tracy', 19, 'F', 600, 7712,'HKG');
31
+ insert into Student values ( 1003, 'Jones', 'Shiela', 21, 'F', 600, 7792,'WAS');
32
+ insert into Student values ( 1004, 'Kumar', 'Dinesh', 20, 'M', 600, 8423,'CHI');
33
+ insert into Student values ( 1005, 'Gompers', 'Paul', 26, 'M', 600, 1121,'YYZ');
34
+ insert into Student values ( 1006, 'Schultz', 'Andy', 18, 'M', 600, 1148,'BAL');
35
+ insert into Student values ( 1007, 'Apap', 'Lisa', 18, 'F', 600, 8918,'PIT');
36
+ insert into Student values ( 1008, 'Nelson', 'Jandy', 20, 'F', 600, 9172,'BAL');
37
+ insert into Student values ( 1009, 'Tai', 'Eric', 19, 'M', 600, 2192,'YYZ');
38
+ insert into Student values ( 1010, 'Lee', 'Derek', 17, 'M', 600, 2192,'HOU');
39
+ insert into Student values ( 1011, 'Adams', 'David', 22, 'M', 600, 1148,'PHL');
40
+ insert into Student values ( 1012, 'Davis', 'Steven', 20, 'M', 600, 7723,'PIT');
41
+ insert into Student values ( 1014, 'Norris', 'Charles', 18, 'M', 600, 8741, 'DAL');
42
+ insert into Student values ( 1015, 'Lee', 'Susan', 16, 'F', 600, 8721,'HKG');
43
+ insert into Student values ( 1016, 'Schwartz', 'Mark', 17, 'M', 600, 2192,'DET');
44
+ insert into Student values ( 1017, 'Wilson', 'Bruce', 27, 'M', 600, 1148,'LON');
45
+ insert into Student values ( 1018, 'Leighton', 'Michael', 20, 'M', 600, 1121, 'PIT');
46
+ insert into Student values ( 1019, 'Pang', 'Arthur', 18, 'M', 600, 2192,'WAS');
47
+ insert into Student values ( 1020, 'Thornton', 'Ian', 22, 'M', 520, 7271,'NYC');
48
+ insert into Student values ( 1021, 'Andreou', 'George', 19, 'M', 520, 8722, 'NYC');
49
+ insert into Student values ( 1022, 'Woods', 'Michael', 17, 'M', 540, 8722,'PHL');
50
+ insert into Student values ( 1023, 'Shieber', 'David', 20, 'M', 520, 8722,'NYC');
51
+ insert into Student values ( 1024, 'Prater', 'Stacy', 18, 'F', 540, 7271,'BAL');
52
+ insert into Student values ( 1025, 'Goldman', 'Mark', 18, 'M', 520, 7134,'PIT');
53
+ insert into Student values ( 1026, 'Pang', 'Eric', 19, 'M', 520, 7134,'HKG');
54
+ insert into Student values ( 1027, 'Brody', 'Paul', 18, 'M', 520, 8723,'LOS');
55
+ insert into Student values ( 1028, 'Rugh', 'Eric', 20, 'M', 550, 2311,'ROC');
56
+ insert into Student values ( 1029, 'Han', 'Jun', 17, 'M', 100, 2311,'PEK');
57
+ insert into Student values ( 1030, 'Cheng', 'Lisa', 21, 'F', 550, 2311,'SFO');
58
+ insert into Student values ( 1031, 'Smith', 'Sarah', 20, 'F', 550, 8772,'PHL');
59
+ insert into Student values ( 1032, 'Brown', 'Eric', 20, 'M', 550, 8772,'ATL');
60
+ insert into Student values ( 1033, 'Simms', 'William', 18, 'M', 550, 8772,'NAR');
61
+ insert into Student values ( 1034, 'Epp', 'Eric', 18, 'M', 050, 5718,'BOS');
62
+ insert into Student values ( 1035, 'Schmidt', 'Sarah', 26, 'F', 050, 5718,'WAS');
63
+
64
+
65
+ insert into Club values ( 1, 'Bootup Baltimore', 'Refurbish computers; teach kids and adults about computer basics.', 'AKW');
66
+ insert into Club values ( 2, 'Hopkins Student Enterprises', 'Venture capital fund for student business.', 'AKW');
67
+ insert into Club values ( 3, 'Pen and Paper Gaming', 'Play pen and paper games on campus.', 'HHH');
68
+ insert into Club values ( 4, 'Tennis Club', 'A competitive tennis club.', 'AKW');
69
+
70
+ insert into Member_of_club values ( 1001, 1, 'President');
71
+ insert into Member_of_club values ( 1007, 4, 'Vice-President');
72
+ insert into Member_of_club values ( 1008, 2, 'CTO');
73
+ insert into Member_of_club values ( 1010, 1, 'Teaching Coordinator');
train_database/coffee_shop/coffee_shop.sqlite ADDED
Binary file (36.9 kB). View file
 
train_database/coffee_shop/schema.sql ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+ CREATE TABLE "shop" (
4
+ "Shop_ID" int,
5
+ "Address" text,
6
+ "Num_of_staff" text,
7
+ "Score" real,
8
+ "Open_Year" text,
9
+ PRIMARY KEY ("Shop_ID")
10
+ );
11
+
12
+
13
+ INSERT INTO "shop" VALUES ("1","1200 Main Street","13","42","2010");
14
+ INSERT INTO "shop" VALUES ("2","1111 Main Street","19","38","2008");
15
+ INSERT INTO "shop" VALUES ("3","1330 Baltimore Street","42","36","2010");
16
+ INSERT INTO "shop" VALUES ("4","909 Walnut Street","27","32","2010");
17
+ INSERT INTO "shop" VALUES ("5","414 E. 12th Street","24","30","2011");
18
+ INSERT INTO "shop" VALUES ("6","1201 Walnut Street","34","30","2010");
19
+ INSERT INTO "shop" VALUES ("7","2345 McGee Street","425","40","2008");
20
+ INSERT INTO "shop" VALUES ("8","909 Main Street","28","30","2011");
21
+ INSERT INTO "shop" VALUES ("9","1100 Main Street","23","30","2006");
22
+ INSERT INTO "shop" VALUES ("10","324 E. 11th Street","16","28","2008");
23
+
24
+
25
+
26
+ CREATE TABLE "member" (
27
+ "Member_ID" int,
28
+ "Name" text,
29
+ "Membership_card" text,
30
+ "Age" int,
31
+ "Time_of_purchase" int,
32
+ "Level_of_membership" int,
33
+ "Address" text,
34
+ PRIMARY KEY ("Member_ID")
35
+ );
36
+
37
+
38
+ INSERT INTO "member" VALUES (1,"Ashby, Lazale","Black","29","18","5","Hartford");
39
+ INSERT INTO "member" VALUES (2,"Breton, Robert","White","67","41","4","Waterbury");
40
+ INSERT INTO "member" VALUES (3,"Campbell, Jessie","Black","34","20","6","Hartford");
41
+ INSERT INTO "member" VALUES (4,"Cobb, Sedrick","Black","51","27","2","Waterbury");
42
+ INSERT INTO "member" VALUES (5,"Hayes, Steven","White","50","44","3","Cheshire");
43
+ INSERT INTO "member" VALUES (6,"Komisarjevsky, Joshua","White","33","26","2","Cheshire");
44
+ INSERT INTO "member" VALUES (7,"Peeler, Russell","Black","42","26","6","Bridgeport");
45
+ INSERT INTO "member" VALUES (8,"Reynolds, Richard","Black","45","24","1","Waterbury");
46
+ INSERT INTO "member" VALUES (9,"Rizzo, Todd","White","35","18","4","Waterbury");
47
+ INSERT INTO "member" VALUES (10,"Webb, Daniel","Black","51","27","22","Hartford");
48
+
49
+ CREATE TABLE "happy_hour" (
50
+ "HH_ID" int,
51
+ "Shop_ID" int,
52
+ "Month" text,
53
+ "Num_of_shaff_in_charge" int,
54
+ PRIMARY KEY ("HH_ID","Shop_ID","Month"),
55
+ FOREIGN KEY ("Shop_ID") REFERENCES `shop`("Shop_ID")
56
+ );
57
+
58
+ INSERT INTO "happy_hour" VALUES (1,1,"May",10);
59
+ INSERT INTO "happy_hour" VALUES (2,1,"April",12);
60
+ INSERT INTO "happy_hour" VALUES (3,10,"June",15);
61
+ INSERT INTO "happy_hour" VALUES (4,5,"July",5);
62
+ INSERT INTO "happy_hour" VALUES (5,1,"May",10);
63
+ INSERT INTO "happy_hour" VALUES (6,1,"April",12);
64
+ INSERT INTO "happy_hour" VALUES (7,2,"June",5);
65
+ INSERT INTO "happy_hour" VALUES (8,3,"July",15);
66
+ INSERT INTO "happy_hour" VALUES (9,3,"May",3);
67
+ INSERT INTO "happy_hour" VALUES (10,3,"April",4);
68
+
69
+
70
+ CREATE TABLE "happy_hour_member" (
71
+ "HH_ID" int,
72
+ "Member_ID" int,
73
+ "Total_amount" real,
74
+ PRIMARY KEY ("HH_ID","Member_ID"),
75
+ FOREIGN KEY ("Member_ID") REFERENCES `member`("Member_ID")
76
+ );
77
+
78
+ INSERT INTO "happy_hour_member" VALUES (1,3,20.90);
79
+ INSERT INTO "happy_hour_member" VALUES (4,3,20.92);
80
+ INSERT INTO "happy_hour_member" VALUES (7,9,4.90);
81
+ INSERT INTO "happy_hour_member" VALUES (2,5,16.90);
82
+ INSERT INTO "happy_hour_member" VALUES (5,5,16.92);
83
+ INSERT INTO "happy_hour_member" VALUES (8,9,4.20);
84
+
85
+
train_database/college_1/TinyCollege.sql ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Database Systems, Coronel/Morris */
2
+ /* Type of SQL : MySQL */
3
+
4
+
5
+ CREATE TABLE CLASS (
6
+ CLASS_CODE varchar(5) PRIMARY KEY,
7
+ CRS_CODE varchar(10),
8
+ CLASS_SECTION varchar(2),
9
+ CLASS_TIME varchar(20),
10
+ CLASS_ROOM varchar(8),
11
+ PROF_NUM int,
12
+ FOREIGN KEY (CRS_CODE) REFERENCES COURSE(CRS_CODE)
13
+ FOREIGN KEY (PROF_NUM) REFERENCES EMPLOYEE(EMP_NUM)
14
+ );
15
+ INSERT INTO CLASS VALUES('10012','ACCT-211','1','MWF 8:00-8:50 a.m.','BUS311','105');
16
+ INSERT INTO CLASS VALUES('10013','ACCT-211','2','MWF 9:00-9:50 a.m.','BUS200','105');
17
+ INSERT INTO CLASS VALUES('10014','ACCT-211','3','TTh 2:30-3:45 p.m.','BUS252','342');
18
+ INSERT INTO CLASS VALUES('10015','ACCT-212','1','MWF 10:00-10:50 a.m.','BUS311','301');
19
+ INSERT INTO CLASS VALUES('10016','ACCT-212','2','Th 6:00-8:40 p.m.','BUS252','301');
20
+ INSERT INTO CLASS VALUES('10017','CIS-220','1','MWF 9:00-9:50 a.m.','KLR209','228');
21
+ INSERT INTO CLASS VALUES('10018','CIS-220','2','MWF 9:00-9:50 a.m.','KLR211','114');
22
+ INSERT INTO CLASS VALUES('10019','CIS-220','3','MWF 10:00-10:50 a.m.','KLR209','228');
23
+ INSERT INTO CLASS VALUES('10020','CIS-420','1','W 6:00-8:40 p.m.','KLR209','162');
24
+ INSERT INTO CLASS VALUES('10021','QM-261','1','MWF 8:00-8:50 a.m.','KLR200','114');
25
+ INSERT INTO CLASS VALUES('10022','QM-261','2','TTh 1:00-2:15 p.m.','KLR200','114');
26
+ INSERT INTO CLASS VALUES('10023','QM-362','1','MWF 11:00-11:50 a.m.','KLR200','162');
27
+ INSERT INTO CLASS VALUES('10024','QM-362','2','TTh 2:30-3:45 p.m.','KLR200','162');
28
+
29
+ /* -- */
30
+
31
+
32
+ CREATE TABLE COURSE (
33
+ CRS_CODE varchar(10) PRIMARY KEY,
34
+ DEPT_CODE varchar(10),
35
+ CRS_DESCRIPTION varchar(35),
36
+ CRS_CREDIT float(8),
37
+ FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
38
+ );
39
+ INSERT INTO COURSE VALUES('ACCT-211','ACCT','Accounting I','3');
40
+ INSERT INTO COURSE VALUES('ACCT-212','ACCT','Accounting II','3');
41
+ INSERT INTO COURSE VALUES('CIS-220','CIS','Intro. to Microcomputing','3');
42
+ INSERT INTO COURSE VALUES('CIS-420','CIS','Database Design and Implementation','4');
43
+ INSERT INTO COURSE VALUES('QM-261','CIS','Intro. to Statistics','3');
44
+ INSERT INTO COURSE VALUES('QM-362','CIS','Statistical Applications','4');
45
+
46
+ /* -- */
47
+
48
+ CREATE TABLE DEPARTMENT (
49
+ DEPT_CODE varchar(10) PRIMARY KEY,
50
+ DEPT_NAME varchar(30),
51
+ SCHOOL_CODE varchar(8),
52
+ EMP_NUM int,
53
+ DEPT_ADDRESS varchar(20),
54
+ DEPT_EXTENSION varchar(4),
55
+ FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM)
56
+ );
57
+ INSERT INTO DEPARTMENT VALUES('ACCT','Accounting','BUS','114','KLR 211, Box 52','3119');
58
+ INSERT INTO DEPARTMENT VALUES('ART','Fine Arts','A&SCI','435','BBG 185, Box 128','2278');
59
+ INSERT INTO DEPARTMENT VALUES('BIOL','Biology','A&SCI','387','AAK 230, Box 415','4117');
60
+ INSERT INTO DEPARTMENT VALUES('CIS','Computer Info. Systems','BUS','209','KLR 333, Box 56','3245');
61
+ INSERT INTO DEPARTMENT VALUES('ECON/FIN','Economics/Finance','BUS','299','KLR 284, Box 63','3126');
62
+ INSERT INTO DEPARTMENT VALUES('ENG','English','A&SCI','160','DRE 102, Box 223','1004');
63
+ INSERT INTO DEPARTMENT VALUES('HIST','History','A&SCI','103','DRE 156, Box 284','1867');
64
+ INSERT INTO DEPARTMENT VALUES('MATH','Mathematics','A&SCI','297','AAK 194, Box 422','4234');
65
+ INSERT INTO DEPARTMENT VALUES('MKT/MGT','Marketing/Management','BUS','106','KLR 126, Box 55','3342');
66
+ INSERT INTO DEPARTMENT VALUES('PSYCH','Psychology','A&SCI','195','AAK 297, Box 438','4110');
67
+ INSERT INTO DEPARTMENT VALUES('SOC','Sociology','A&SCI','342','BBG 208, Box 132','2008');
68
+
69
+ /* -- */
70
+
71
+ CREATE TABLE EMPLOYEE (
72
+ EMP_NUM int PRIMARY KEY,
73
+ EMP_LNAME varchar(15),
74
+ EMP_FNAME varchar(12),
75
+ EMP_INITIAL varchar(1),
76
+ EMP_JOBCODE varchar(5),
77
+ EMP_HIREDATE datetime,
78
+ EMP_DOB datetime
79
+ );
80
+ INSERT INTO EMPLOYEE VALUES('100','Worley','James','F','CUST','1978-2-23','1950-6-12');
81
+ INSERT INTO EMPLOYEE VALUES('101','Ramso','Henry','B','CUST','1994-11-15','1961-11-2');
82
+ INSERT INTO EMPLOYEE VALUES('102','Edwards','Rosemary','D','TECH','1990-7-23','1953-7-3');
83
+ INSERT INTO EMPLOYEE VALUES('103','Donelly','Ronald','O','PROF','1987-7-1','1952-10-2');
84
+ INSERT INTO EMPLOYEE VALUES('104','Yukon','Preston','D','PROF','1992-5-1','1948-2-23');
85
+ INSERT INTO EMPLOYEE VALUES('105','Heffington','Arnelle','B','PROF','1991-7-1','1950-11-2');
86
+ INSERT INTO EMPLOYEE VALUES('106','Washington','Ross','E','PROF','1976-8-1','1941-3-4');
87
+ INSERT INTO EMPLOYEE VALUES('108','Robertson','Elaine','W','TECH','1983-10-18','1961-6-20');
88
+ INSERT INTO EMPLOYEE VALUES('110','Thieu','Van','S','PROF','1989-8-1','1951-8-12');
89
+ INSERT INTO EMPLOYEE VALUES('114','Graztevski','Gerald','B','PROF','1978-8-1','1939-3-18');
90
+ INSERT INTO EMPLOYEE VALUES('122','Wilson','Todd','H','CUST','1990-11-6','1966-10-19');
91
+ INSERT INTO EMPLOYEE VALUES('123','Jones','Suzanne','B','TECH','1994-1-5','1967-12-30');
92
+ INSERT INTO EMPLOYEE VALUES('124','Smith','Elsa','K','CLRK','1982-12-16','1943-9-13');
93
+ INSERT INTO EMPLOYEE VALUES('126','Ardano','James','G','CLRK','1994-10-1','1970-3-12');
94
+ INSERT INTO EMPLOYEE VALUES('155','Ritula','Annelise','','PROF','1990-8-1','1957-5-24');
95
+ INSERT INTO EMPLOYEE VALUES('160','Smith','Robert','T','PROF','1992-8-1','1955-6-19');
96
+ INSERT INTO EMPLOYEE VALUES('161','Watson','George','F','CUST','1994-11-1','1962-10-2');
97
+ INSERT INTO EMPLOYEE VALUES('162','Rob','Peter','','PROF','1981-8-1','1940-6-20');
98
+ INSERT INTO EMPLOYEE VALUES('165','Williamson','Kathryn','A','CLRK','1992-6-15','1968-11-17');
99
+ INSERT INTO EMPLOYEE VALUES('166','Herndon','Jill','M','TECH','1990-8-18','1965-8-29');
100
+ INSERT INTO EMPLOYEE VALUES('173','Teng','Weston','J','TECH','1980-7-15','1951-11-17');
101
+ INSERT INTO EMPLOYEE VALUES('191','Dexter','Willa','N','PROF','1984-8-1','1953-5-17');
102
+ INSERT INTO EMPLOYEE VALUES('195','Williams','Herman','H','PROF','1988-8-1','1955-11-19');
103
+ INSERT INTO EMPLOYEE VALUES('209','Smith','Melanie','K','PROF','1983-8-1','1946-5-24');
104
+ INSERT INTO EMPLOYEE VALUES('228','Coronel','Carlos','M','PROF','1988-8-1','1949-5-16');
105
+ INSERT INTO EMPLOYEE VALUES('231','Shebert','Rebecca','A','CUST','1994-2-21','1963-2-27');
106
+ INSERT INTO EMPLOYEE VALUES('297','Jones','Hermine','','PROF','1985-1-1','1950-7-4');
107
+ INSERT INTO EMPLOYEE VALUES('299','Stoddard','Doreen','L','PROF','1994-8-1','1960-4-25');
108
+ INSERT INTO EMPLOYEE VALUES('301','Osaki','Ismael','K','PROF','1989-8-1','1952-5-25');
109
+ INSERT INTO EMPLOYEE VALUES('333','Jordan','Julian','H','TECH','1991-4-23','1968-7-16');
110
+ INSERT INTO EMPLOYEE VALUES('335','Okomoto','Ronald','F','PROF','1975-8-1','1944-3-3');
111
+ INSERT INTO EMPLOYEE VALUES('342','Smith','Robert','A','PROF','1978-8-1','1937-12-30');
112
+ INSERT INTO EMPLOYEE VALUES('387','Smithson','George','D','PROF','1982-8-1','1948-10-1');
113
+ INSERT INTO EMPLOYEE VALUES('401','Blalock','James','G','PROF','1981-8-1','1945-3-15');
114
+ INSERT INTO EMPLOYEE VALUES('412','Smith','Robert','E','CUST','1985-6-24','1963-9-25');
115
+ INSERT INTO EMPLOYEE VALUES('425','Matler','Ralph','F','PROF','1995-8-1','1973-12-2');
116
+ INSERT INTO EMPLOYEE VALUES('435','Doornberg','Anne','D','PROF','1992-8-1','1963-10-2');
117
+
118
+ /* -- */
119
+
120
+
121
+ CREATE TABLE ENROLL (
122
+ CLASS_CODE varchar(5),
123
+ STU_NUM int,
124
+ ENROLL_GRADE varchar(50),
125
+ FOREIGN KEY (CLASS_CODE) REFERENCES CLASS(CLASS_CODE)
126
+ FOREIGN KEY (STU_NUM) REFERENCES STUDENT(STU_NUM)
127
+ );
128
+ INSERT INTO ENROLL VALUES('10014','321452','C');
129
+ INSERT INTO ENROLL VALUES('10014','324257','B');
130
+ INSERT INTO ENROLL VALUES('10018','321452','A');
131
+ INSERT INTO ENROLL VALUES('10018','324257','B');
132
+ INSERT INTO ENROLL VALUES('10021','321452','C');
133
+ INSERT INTO ENROLL VALUES('10021','324257','C');
134
+
135
+ /* -- */
136
+
137
+
138
+ CREATE TABLE PROFESSOR (
139
+ EMP_NUM int,
140
+ DEPT_CODE varchar(10),
141
+ PROF_OFFICE varchar(50),
142
+ PROF_EXTENSION varchar(4),
143
+ PROF_HIGH_DEGREE varchar(5),
144
+ FOREIGN KEY (EMP_NUM) REFERENCES EMPLOYEE(EMP_NUM),
145
+ FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
146
+ );
147
+ INSERT INTO PROFESSOR VALUES('103','HIST','DRE 156','6783','Ph.D.');
148
+ INSERT INTO PROFESSOR VALUES('104','ENG','DRE 102','5561','MA');
149
+ INSERT INTO PROFESSOR VALUES('105','ACCT','KLR 229D','8665','Ph.D.');
150
+ INSERT INTO PROFESSOR VALUES('106','MKT/MGT','KLR 126','3899','Ph.D.');
151
+ INSERT INTO PROFESSOR VALUES('110','BIOL','AAK 160','3412','Ph.D.');
152
+ INSERT INTO PROFESSOR VALUES('114','ACCT','KLR 211','4436','Ph.D.');
153
+ INSERT INTO PROFESSOR VALUES('155','MATH','AAK 201','4440','Ph.D.');
154
+ INSERT INTO PROFESSOR VALUES('160','ENG','DRE 102','2248','Ph.D.');
155
+ INSERT INTO PROFESSOR VALUES('162','CIS','KLR 203E','2359','Ph.D.');
156
+ INSERT INTO PROFESSOR VALUES('191','MKT/MGT','KLR 409B','4016','DBA');
157
+ INSERT INTO PROFESSOR VALUES('195','PSYCH','AAK 297','3550','Ph.D.');
158
+ INSERT INTO PROFESSOR VALUES('209','CIS','KLR 333','3421','Ph.D.');
159
+ INSERT INTO PROFESSOR VALUES('228','CIS','KLR 300','3000','Ph.D.');
160
+ INSERT INTO PROFESSOR VALUES('297','MATH','AAK 194','1145','Ph.D.');
161
+ INSERT INTO PROFESSOR VALUES('299','ECON/FIN','KLR 284','2851','Ph.D.');
162
+ INSERT INTO PROFESSOR VALUES('301','ACCT','KLR 244','4683','Ph.D.');
163
+ INSERT INTO PROFESSOR VALUES('335','ENG','DRE 208','2000','Ph.D.');
164
+ INSERT INTO PROFESSOR VALUES('342','SOC','BBG 208','5514','Ph.D.');
165
+ INSERT INTO PROFESSOR VALUES('387','BIOL','AAK 230','8665','Ph.D.');
166
+ INSERT INTO PROFESSOR VALUES('401','HIST','DRE 156','6783','MA');
167
+ INSERT INTO PROFESSOR VALUES('425','ECON/FIN','KLR 284','2851','MBA');
168
+ INSERT INTO PROFESSOR VALUES('435','ART','BBG 185','2278','Ph.D.');
169
+
170
+ /* -- */
171
+
172
+ CREATE TABLE STUDENT (
173
+ STU_NUM int PRIMARY KEY,
174
+ STU_LNAME varchar(15),
175
+ STU_FNAME varchar(15),
176
+ STU_INIT varchar(1),
177
+ STU_DOB datetime,
178
+ STU_HRS int,
179
+ STU_CLASS varchar(2),
180
+ STU_GPA float(8),
181
+ STU_TRANSFER numeric,
182
+ DEPT_CODE varchar(18),
183
+ STU_PHONE varchar(4),
184
+ PROF_NUM int,
185
+ FOREIGN KEY (DEPT_CODE) REFERENCES DEPARTMENT(DEPT_CODE)
186
+ );
187
+ INSERT INTO STUDENT VALUES('321452','Bowser','William','C','1975-2-12','42','So','2.84','0','BIOL','2134','205');
188
+ INSERT INTO STUDENT VALUES('324257','Smithson','Anne','K','1981-11-15','81','Jr','3.27','1','CIS','2256','222');
189
+ INSERT INTO STUDENT VALUES('324258','Brewer','Juliette','','1969-8-23','36','So','2.26','1','ACCT','2256','228');
190
+ INSERT INTO STUDENT VALUES('324269','Oblonski','Walter','H','1976-9-16','66','Jr','3.09','0','CIS','2114','222');
191
+ INSERT INTO STUDENT VALUES('324273','Smith','John','D','1958-12-30','102','Sr','2.11','1','ENGL','2231','199');
192
+ INSERT INTO STUDENT VALUES('324274','Katinga','Raphael','P','1979-10-21','114','Sr','3.15','0','ACCT','2267','228');
193
+ INSERT INTO STUDENT VALUES('324291','Robertson','Gerald','T','1973-4-8','120','Sr','3.87','0','EDU','2267','311');
194
+ INSERT INTO STUDENT VALUES('324299','Smith','John','B','1986-11-30','15','Fr','2.92','0','ACCT','2315','230');
train_database/college_1/college_1.sqlite ADDED
Binary file (53.2 kB). View file
 
train_database/college_1/link.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ http://www.cs.dartmouth.edu/~cs61/Examples/
train_database/college_2/TextBookExampleSchema.sql ADDED
The diff for this file is too large to render. See raw diff
 
train_database/college_2/college_2.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb729920ad0b7f06d38a12f6f678307964acc7d3417af83d98c519c65c90d386
3
+ size 2117632
train_database/college_2/link.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ http://www.cs.dartmouth.edu/~cs61/Examples/
train_database/college_3/college_3.sqlite ADDED
Binary file (45.1 kB). View file
 
train_database/college_3/schema.sql ADDED
@@ -0,0 +1,575 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ create table Student (
2
+ StuID INTEGER PRIMARY KEY,
3
+ LName VARCHAR(12),
4
+ Fname VARCHAR(12),
5
+ Age INTEGER,
6
+ Sex VARCHAR(1),
7
+ Major INTEGER,
8
+ Advisor INTEGER,
9
+ city_code VARCHAR(3)
10
+ );
11
+
12
+ create table Faculty (
13
+ FacID INTEGER PRIMARY KEY,
14
+ Lname VARCHAR(15),
15
+ Fname VARCHAR(15),
16
+ Rank VARCHAR(15),
17
+ Sex VARCHAR(1),
18
+ Phone INTEGER,
19
+ Room VARCHAR(5),
20
+ Building VARCHAR(13)
21
+ );
22
+
23
+ create table Department (
24
+ DNO INTEGER PRIMARY KEY,
25
+ Division VARCHAR(2),
26
+ DName VARCHAR(25),
27
+ Room VARCHAR(5),
28
+ Building VARCHAR(13),
29
+ DPhone INTEGER
30
+ );
31
+
32
+ create table Member_of (
33
+ FacID INTEGER,
34
+ DNO INTEGER,
35
+ Appt_Type VARCHAR(15),
36
+ FOREIGN KEY(FacID) REFERENCES Faculty(FacID),
37
+ FOREIGN KEY(DNO) REFERENCES Department(DNO)
38
+ );
39
+
40
+ create table Course (
41
+ CID VARCHAR(7) PRIMARY KEY,
42
+ CName VARCHAR(40),
43
+ Credits INTEGER,
44
+ Instructor INTEGER,
45
+ Days VARCHAR(5),
46
+ Hours VARCHAR(11),
47
+ DNO INTEGER,
48
+ FOREIGN KEY(Instructor) REFERENCES Faculty(FacID),
49
+ FOREIGN KEY(DNO) REFERENCES Department(DNO)
50
+ );
51
+
52
+ create table Minor_in (
53
+ StuID INTEGER,
54
+ DNO INTEGER,
55
+ FOREIGN KEY(StuID) REFERENCES Student(StuID),
56
+ FOREIGN KEY(DNO) REFERENCES Department(DNO)
57
+ );
58
+
59
+ create table Enrolled_in (
60
+ StuID INTEGER,
61
+ CID VARCHAR(7),
62
+ Grade VARCHAR(2),
63
+ FOREIGN KEY(StuID) REFERENCES Student(StuID),
64
+ FOREIGN KEY(CID) REFERENCES Course(CID),
65
+ FOREIGN KEY(Grade) REFERENCES Gradeconversion(lettergrade)
66
+ );
67
+
68
+ create table Gradeconversion (
69
+ lettergrade VARCHAR(2) PRIMARY KEY,
70
+ gradepoint FLOAT
71
+ );
72
+
73
+ insert into Minor_in values ( 1004, 520);
74
+ insert into Minor_in values ( 1005, 550);
75
+ insert into Minor_in values ( 1006, 050);
76
+ insert into Minor_in values ( 1007, 520);
77
+ insert into Minor_in values ( 1008, 550);
78
+ insert into Minor_in values ( 1014, 090);
79
+ insert into Minor_in values ( 1015, 140);
80
+ insert into Minor_in values ( 1016, 190);
81
+ insert into Minor_in values ( 1027, 530);
82
+ insert into Minor_in values ( 1031, 540);
83
+
84
+
85
+ insert into Enrolled_in values ( 1001, '550.681', 'A-');
86
+ insert into Enrolled_in values ( 1001, '600.303', 'B');
87
+ insert into Enrolled_in values ( 1001, '600.315', 'B+');
88
+ insert into Enrolled_in values ( 1001, '600.337', 'A');
89
+ insert into Enrolled_in values ( 1001, '600.461', 'B-');
90
+ insert into Enrolled_in values ( 1001, '600.465', 'B');
91
+ insert into Enrolled_in values ( 1002, '520.213', 'B+');
92
+ insert into Enrolled_in values ( 1002, '600.211', 'C');
93
+ insert into Enrolled_in values ( 1002, '600.303', 'C+');
94
+ insert into Enrolled_in values ( 1002, '600.337', 'A');
95
+ insert into Enrolled_in values ( 1002, '600.463', 'B');
96
+ insert into Enrolled_in values ( 1002, '600.465', 'B+');
97
+ insert into Enrolled_in values ( 1003, '600.333', 'B');
98
+ insert into Enrolled_in values ( 1003, '600.337', 'B');
99
+ insert into Enrolled_in values ( 1003, '600.415', 'B');
100
+ insert into Enrolled_in values ( 1003, '600.461', 'B+');
101
+ insert into Enrolled_in values ( 1003, '600.465', 'B');
102
+ insert into Enrolled_in values ( 1004, '600.303', 'C-');
103
+ insert into Enrolled_in values ( 1004, '600.415', 'C-');
104
+ insert into Enrolled_in values ( 1004, '600.437', 'C-');
105
+ insert into Enrolled_in values ( 1004, '600.445', 'A-');
106
+ insert into Enrolled_in values ( 1004, '600.461', 'C');
107
+ insert into Enrolled_in values ( 1004, '600.463', 'A+');
108
+ insert into Enrolled_in values ( 1004, '600.465', 'A');
109
+ insert into Enrolled_in values ( 1005, '600.103', 'A');
110
+ insert into Enrolled_in values ( 1005, '600.107', 'C+');
111
+ insert into Enrolled_in values ( 1005, '600.113', 'C');
112
+ insert into Enrolled_in values ( 1005, '600.227', 'A');
113
+ insert into Enrolled_in values ( 1005, '600.303', 'B');
114
+ insert into Enrolled_in values ( 1006, '550.420', 'B');
115
+ insert into Enrolled_in values ( 1006, '600.107', 'B+');
116
+ insert into Enrolled_in values ( 1006, '600.227', 'B-');
117
+ insert into Enrolled_in values ( 1006, '600.232', 'C-');
118
+ insert into Enrolled_in values ( 1006, '600.303', 'A-');
119
+ insert into Enrolled_in values ( 1006, '600.315', 'A');
120
+ insert into Enrolled_in values ( 1007, '550.420', 'A');
121
+ insert into Enrolled_in values ( 1007, '600.113', 'A-');
122
+ insert into Enrolled_in values ( 1007, '600.227', 'C+');
123
+ insert into Enrolled_in values ( 1007, '600.315', 'A');
124
+ insert into Enrolled_in values ( 1007, '600.333', 'A-');
125
+ insert into Enrolled_in values ( 1007, '600.337', 'C');
126
+ insert into Enrolled_in values ( 1008, '600.415', 'A+');
127
+ insert into Enrolled_in values ( 1008, '600.463', 'B');
128
+ insert into Enrolled_in values ( 1008, '600.465', 'B');
129
+ insert into Enrolled_in values ( 1008, '600.657', 'B');
130
+ insert into Enrolled_in values ( 1008, '600.787', 'B');
131
+ insert into Enrolled_in values ( 1009, '550.413', 'B+');
132
+ insert into Enrolled_in values ( 1009, '550.471', 'C');
133
+ insert into Enrolled_in values ( 1009, '550.620', 'A-');
134
+ insert into Enrolled_in values ( 1009, '550.626', 'B');
135
+ insert into Enrolled_in values ( 1009, '550.671', 'C');
136
+ insert into Enrolled_in values ( 1009, '550.681', 'A');
137
+ insert into Enrolled_in values ( 1009, '550.661', 'B-');
138
+ insert into Enrolled_in values ( 1009, '550.631', 'A-');
139
+ insert into Enrolled_in values ( 1010, '550.291', 'A');
140
+ insert into Enrolled_in values ( 1010, '550.310', 'A');
141
+ insert into Enrolled_in values ( 1010, '550.413', 'C+');
142
+ insert into Enrolled_in values ( 1010, '550.420', 'A');
143
+ insert into Enrolled_in values ( 1010, '550.471', 'A');
144
+ insert into Enrolled_in values ( 1010, '600.107', 'B+');
145
+ insert into Enrolled_in values ( 1011, '520.213', 'B');
146
+ insert into Enrolled_in values ( 1011, '520.345', 'B');
147
+ insert into Enrolled_in values ( 1011, '520.349', 'A');
148
+ insert into Enrolled_in values ( 1011, '520.353', 'A-');
149
+ insert into Enrolled_in values ( 1011, '550.420', 'B');
150
+ insert into Enrolled_in values ( 1011, '600.415', 'B+');
151
+ insert into Enrolled_in values ( 1012, '050.109', 'B-');
152
+ insert into Enrolled_in values ( 1012, '050.203', 'B-');
153
+ insert into Enrolled_in values ( 1012, '050.325', 'A-');
154
+ insert into Enrolled_in values ( 1012, '600.107', 'A');
155
+ insert into Enrolled_in values ( 1012, '600.315', 'B');
156
+ insert into Enrolled_in values ( 1014, '600.107', 'A');
157
+ insert into Enrolled_in values ( 1014, '600.227', 'A');
158
+ insert into Enrolled_in values ( 1014, '600.232', 'A');
159
+ insert into Enrolled_in values ( 1014, '600.315', 'A+');
160
+ insert into Enrolled_in values ( 1014, '600.445', 'B');
161
+ insert into Enrolled_in values ( 1014, '600.461', 'B');
162
+ insert into Enrolled_in values ( 1014, '600.463', 'B');
163
+ insert into Enrolled_in values ( 1015, '550.420', 'A');
164
+ insert into Enrolled_in values ( 1015, '600.227', 'A+');
165
+ insert into Enrolled_in values ( 1015, '600.303', 'A');
166
+ insert into Enrolled_in values ( 1015, '600.315', 'C-');
167
+ insert into Enrolled_in values ( 1015, '600.333', 'A');
168
+ insert into Enrolled_in values ( 1016, '050.109', 'B-');
169
+ insert into Enrolled_in values ( 1016, '050.203', 'D-');
170
+ insert into Enrolled_in values ( 1016, '050.325', 'A');
171
+ insert into Enrolled_in values ( 1016, '050.821', 'A');
172
+ insert into Enrolled_in values ( 1016, '550.420', 'A-');
173
+ insert into Enrolled_in values ( 1016, '600.107', 'B+');
174
+ insert into Enrolled_in values ( 1016, '600.315', 'B-');
175
+ insert into Enrolled_in values ( 1017, '050.427', 'B');
176
+ insert into Enrolled_in values ( 1017, '050.670', 'B');
177
+ insert into Enrolled_in values ( 1017, '050.802', 'C');
178
+ insert into Enrolled_in values ( 1017, '550.681', 'B');
179
+ insert into Enrolled_in values ( 1017, '600.109', 'A-');
180
+ insert into Enrolled_in values ( 1017, '600.461', 'A');
181
+ insert into Enrolled_in values ( 1017, '600.465', 'C');
182
+ insert into Enrolled_in values ( 1018, '520.213', 'A-');
183
+ insert into Enrolled_in values ( 1018, '600.211', 'A');
184
+ insert into Enrolled_in values ( 1018, '600.303', 'A');
185
+ insert into Enrolled_in values ( 1018, '600.337', 'C-');
186
+ insert into Enrolled_in values ( 1018, '600.463', 'B');
187
+ insert into Enrolled_in values ( 1018, '600.465', 'B');
188
+ insert into Enrolled_in values ( 1019, '600.103', 'B');
189
+ insert into Enrolled_in values ( 1019, '600.107', 'B');
190
+ insert into Enrolled_in values ( 1019, '600.113', 'D+');
191
+ insert into Enrolled_in values ( 1019, '600.227', 'A');
192
+ insert into Enrolled_in values ( 1019, '600.303', 'A');
193
+ insert into Enrolled_in values ( 1020, '600.333', 'A');
194
+ insert into Enrolled_in values ( 1020, '600.337', 'A');
195
+ insert into Enrolled_in values ( 1020, '600.415', 'A');
196
+ insert into Enrolled_in values ( 1020, '600.461', 'A');
197
+ insert into Enrolled_in values ( 1020, '600.465', 'A');
198
+ insert into Enrolled_in values ( 1021, '600.303', 'B-');
199
+ insert into Enrolled_in values ( 1021, '600.303', 'B');
200
+ insert into Enrolled_in values ( 1021, '600.415', 'B');
201
+ insert into Enrolled_in values ( 1021, '600.437', 'B');
202
+ insert into Enrolled_in values ( 1021, '600.437', 'B');
203
+ insert into Enrolled_in values ( 1021, '600.445', 'B-');
204
+ insert into Enrolled_in values ( 1021, '600.445', 'C');
205
+ insert into Enrolled_in values ( 1021, '600.463', 'A');
206
+ insert into Enrolled_in values ( 1021, '600.463', 'B');
207
+ insert into Enrolled_in values ( 1022, '550.420', 'B');
208
+ insert into Enrolled_in values ( 1022, '550.420', 'B+');
209
+ insert into Enrolled_in values ( 1022, '600.107', 'A');
210
+ insert into Enrolled_in values ( 1022, '600.227', 'A');
211
+ insert into Enrolled_in values ( 1022, '600.227', 'A');
212
+ insert into Enrolled_in values ( 1022, '600.232', 'B');
213
+ insert into Enrolled_in values ( 1022, '600.303', 'B');
214
+ insert into Enrolled_in values ( 1022, '600.315', 'D');
215
+ insert into Enrolled_in values ( 1022, '600.461', 'A');
216
+ insert into Enrolled_in values ( 1023, '600.113', 'A-');
217
+ insert into Enrolled_in values ( 1023, '600.315', 'B');
218
+ insert into Enrolled_in values ( 1023, '600.333', 'B');
219
+ insert into Enrolled_in values ( 1023, '600.337', 'B+');
220
+ insert into Enrolled_in values ( 1023, '600.463', 'A');
221
+ insert into Enrolled_in values ( 1023, '600.465', 'A');
222
+ insert into Enrolled_in values ( 1023, '600.657', 'B');
223
+ insert into Enrolled_in values ( 1023, '600.787', 'B');
224
+ insert into Enrolled_in values ( 1024, '550.291', 'B');
225
+ insert into Enrolled_in values ( 1024, '550.413', 'C');
226
+ insert into Enrolled_in values ( 1024, '550.471', 'A-');
227
+ insert into Enrolled_in values ( 1024, '550.620', 'A');
228
+ insert into Enrolled_in values ( 1024, '550.626', 'B');
229
+ insert into Enrolled_in values ( 1024, '550.671', 'B');
230
+ insert into Enrolled_in values ( 1024, '550.681', 'B');
231
+ insert into Enrolled_in values ( 1024, '600.415', 'B');
232
+ insert into Enrolled_in values ( 1025, '520.213', 'A');
233
+ insert into Enrolled_in values ( 1025, '520.345', 'A+');
234
+ insert into Enrolled_in values ( 1025, '550.310', 'A');
235
+ insert into Enrolled_in values ( 1025, '550.413', 'A');
236
+ insert into Enrolled_in values ( 1025, '550.420', 'C');
237
+ insert into Enrolled_in values ( 1025, '550.471', 'B');
238
+ insert into Enrolled_in values ( 1025, '600.107', 'B');
239
+ insert into Enrolled_in values ( 1026, '520.349', 'A');
240
+ insert into Enrolled_in values ( 1026, '520.353', 'A');
241
+ insert into Enrolled_in values ( 1026, '600.303', 'A');
242
+ insert into Enrolled_in values ( 1026, '600.437', 'A');
243
+ insert into Enrolled_in values ( 1026, '600.445', 'A');
244
+ insert into Enrolled_in values ( 1026, '600.463', 'B-');
245
+ insert into Enrolled_in values ( 1027, '600.107', 'B');
246
+ insert into Enrolled_in values ( 1027, '600.227', 'B');
247
+ insert into Enrolled_in values ( 1027, '600.232', 'B');
248
+ insert into Enrolled_in values ( 1027, '600.303', 'B');
249
+ insert into Enrolled_in values ( 1027, '600.315', 'B-');
250
+ insert into Enrolled_in values ( 1027, '600.461', 'B-');
251
+ insert into Enrolled_in values ( 1027, '600.463', 'B');
252
+ insert into Enrolled_in values ( 1028, '550.420', 'B+');
253
+ insert into Enrolled_in values ( 1028, '600.227', 'A');
254
+ insert into Enrolled_in values ( 1028, '600.315', 'A+');
255
+ insert into Enrolled_in values ( 1028, '600.333', 'A');
256
+ insert into Enrolled_in values ( 1028, '600.337', 'A+');
257
+ insert into Enrolled_in values ( 1029, '550.413', 'C-');
258
+ insert into Enrolled_in values ( 1029, '550.471', 'A');
259
+ insert into Enrolled_in values ( 1029, '550.620', 'B-');
260
+ insert into Enrolled_in values ( 1029, '550.671', 'A-');
261
+ insert into Enrolled_in values ( 1029, '600.113', 'B-');
262
+ insert into Enrolled_in values ( 1029, '600.463', 'A+');
263
+ insert into Enrolled_in values ( 1030, '520.345', 'B');
264
+ insert into Enrolled_in values ( 1030, '550.291', 'B');
265
+ insert into Enrolled_in values ( 1030, '550.310', 'B-');
266
+ insert into Enrolled_in values ( 1030, '550.413', 'B-');
267
+ insert into Enrolled_in values ( 1030, '550.420', 'B');
268
+ insert into Enrolled_in values ( 1030, '550.471', 'B+');
269
+ insert into Enrolled_in values ( 1030, '600.107', 'B');
270
+ insert into Enrolled_in values ( 1031, '520.213', 'B+');
271
+ insert into Enrolled_in values ( 1031, '520.349', 'B');
272
+ insert into Enrolled_in values ( 1031, '520.353', 'C');
273
+ insert into Enrolled_in values ( 1031, '600.437', 'A+');
274
+ insert into Enrolled_in values ( 1032, '550.420', 'A-');
275
+ insert into Enrolled_in values ( 1032, '550.420', 'D-');
276
+ insert into Enrolled_in values ( 1032, '600.232', 'A-');
277
+ insert into Enrolled_in values ( 1032, '600.303', 'A');
278
+ insert into Enrolled_in values ( 1032, '600.315', 'A');
279
+ insert into Enrolled_in values ( 1033, '600.113', 'A');
280
+ insert into Enrolled_in values ( 1033, '600.227', 'A');
281
+ insert into Enrolled_in values ( 1033, '600.315', 'A');
282
+ insert into Enrolled_in values ( 1033, '600.333', 'A');
283
+ insert into Enrolled_in values ( 1033, '600.337', 'B');
284
+ insert into Enrolled_in values ( 1034, '050.109', 'B+');
285
+ insert into Enrolled_in values ( 1034, '050.203', 'B');
286
+ insert into Enrolled_in values ( 1034, '050.325', 'B');
287
+ insert into Enrolled_in values ( 1034, '600.107', 'B+');
288
+ insert into Enrolled_in values ( 1034, '600.315', 'B');
289
+ insert into Enrolled_in values ( 1035, '050.381', 'B-');
290
+ insert into Enrolled_in values ( 1035, '050.427', 'A-');
291
+ insert into Enrolled_in values ( 1035, '050.670', 'B');
292
+ insert into Enrolled_in values ( 1035, '050.802', 'D');
293
+ insert into Enrolled_in values ( 1035, '050.821', 'A');
294
+ insert into Enrolled_in values ( 1035, '600.109', 'B-');
295
+
296
+
297
+ insert into Gradeconversion values ('A+', 4.0);
298
+ insert into Gradeconversion values ('A', 4.0);
299
+ insert into Gradeconversion values ('A-', 3.7);
300
+ insert into Gradeconversion values ('B+', 3.3);
301
+ insert into Gradeconversion values ('B', 3.0);
302
+ insert into Gradeconversion values ('B-', 2.7);
303
+ insert into Gradeconversion values ('C+', 2.3);
304
+ insert into Gradeconversion values ('C', 2.0);
305
+ insert into Gradeconversion values ('C-', 1.7);
306
+ insert into Gradeconversion values ('D+', 1.3);
307
+ insert into Gradeconversion values ('D', 1.0);
308
+ insert into Gradeconversion values ('D-', 0.7);
309
+ insert into Gradeconversion values ('F', 0.0);
310
+
311
+
312
+ insert into Faculty values ( 1082, 'Giuliano', 'Mark', 'Instructor', 'M', 2424, '224', 'NEB');
313
+ insert into Faculty values ( 1121, 'Goodrich', 'Michael', 'Professor', 'M', 3593, '219', 'NEB');
314
+ insert into Faculty values ( 1148, 'Masson', 'Gerald', 'Professor', 'M', 3402, '224B', 'NEB');
315
+ insert into Faculty values ( 1193, 'Jones', 'Stacey', 'Instructor', 'F', 3550, '224', 'NEB');
316
+ insert into Faculty values ( 2192, 'Yarowsky', 'David', 'AsstProf', 'M', 6587, '324', 'NEB');
317
+ insert into Faculty values ( 3457, 'Smith', 'Scott', 'AssocProf', 'M', 1035, '318', 'NEB');
318
+ insert into Faculty values ( 4230, 'Houlahan', 'Joanne', 'Instructor', 'F', 1260, '328', 'NEB');
319
+ insert into Faculty values ( 6112, 'Beach', 'Louis', 'Instructor', 'M', 1838, '207', 'NEB');
320
+ insert into Faculty values ( 7712, 'Awerbuch', 'Baruch', 'Professor', 'M', 2105, '220', 'NEB');
321
+ insert into Faculty values ( 7792, 'Brill', 'Eric', 'AsstProf', 'M', 2303, '324B', 'NEB');
322
+ insert into Faculty values ( 7723, 'Taylor', 'Russell', 'Professor', 'M', 2435, '317', 'NEB');
323
+ insert into Faculty values ( 8114, 'Angelopoulou', 'Ellie', 'Instructor', 'F', 2152, '316', 'NEB');
324
+ insert into Faculty values ( 8423, 'Kumar', 'Subodh', 'AsstProf', 'M', 2522, '218', 'NEB');
325
+ insert into Faculty values ( 8721, 'Wolff', 'Lawrence', 'AssocProf', 'M', 2342, '316', 'NEB');
326
+ insert into Faculty values ( 8741, 'Salzberg', 'Steven', 'AssocProf', 'M', 2641, '324A', 'NEB');
327
+ insert into Faculty values ( 8918, 'Amir', 'Yair', 'AsstProf', 'M', 2672, '308', 'NEB');
328
+ insert into Faculty values ( 9172, 'Kosaraju', 'Rao', 'Professor', 'M', 2757, '319', 'NEB');
329
+ insert into Faculty values ( 9826, 'Delcher', 'Arthur', 'Instructor', 'M', 2956, '329', 'NEB');
330
+ insert into Faculty values ( 1172, 'Runolfsson', 'Thordur', 'AssocProf', 'M', 3121, '119', 'Barton');
331
+ insert into Faculty values ( 1177, 'Naiman', 'Daniel', 'Professor', 'M', 3571, '288', 'Krieger');
332
+ insert into Faculty values ( 1823, 'Davidson', 'Frederic', 'Professor', 'M', 5629, '119', 'Barton');
333
+ insert into Faculty values ( 2028, 'Brody', 'William', 'Professor', 'M', 6073, '119', 'Barton');
334
+ insert into Faculty values ( 2119, 'Meyer', 'Gerard', 'Professor', 'M', 6350, '119', 'Barton');
335
+ insert into Faculty values ( 2291, 'Scheinerman', 'Edward', 'Professor', 'M', 6654, '288', 'Krieger');
336
+ insert into Faculty values ( 2311, 'Priebe', 'Carey', 'AsstProf', 'M', 6953, '288', 'Krieger');
337
+ insert into Faculty values ( 2738, 'Fill', 'James', 'Professor', 'M', 8209, '288', 'Krieger');
338
+ insert into Faculty values ( 2881, 'Goldman', 'Alan', 'Professor', 'M', 8335, '288', 'Krieger');
339
+ insert into Faculty values ( 4432, 'Burzio', 'Luigi', 'Professor', 'M', 1813, '288', 'Krieger');
340
+ insert into Faculty values ( 5718, 'Frank', 'Robert', 'AsstProf', 'M', 1751, '288', 'Krieger');
341
+ insert into Faculty values ( 6182, 'Cheng', 'Cheng', 'AsstProf', 'M', 1856, '288', 'Krieger');
342
+ insert into Faculty values ( 6191, 'Kaplan', 'Alexander', 'Professor', 'M', 1825, '119', 'Barton');
343
+ insert into Faculty values ( 6330, 'Byrne', 'William', 'Instructor', 'M', 1691, '119', 'Barton');
344
+ insert into Faculty values ( 6541, 'Han', 'Shih-Ping', 'Professor', 'M', 1914, '288', 'Krieger');
345
+ insert into Faculty values ( 6910, 'Smolensky', 'Paul', 'Professor', 'M', 2072, '288', 'Krieger');
346
+ insert into Faculty values ( 6925, 'Iglesias', 'Pablo', 'AsstProf', 'M', 2021, '119', 'Barton');
347
+ insert into Faculty values ( 7134, 'Goutsias', 'John', 'Professor', 'M', 2184, '119', 'Barton');
348
+ insert into Faculty values ( 7231, 'Rugh', 'Wilson', 'Professor', 'M', 2191, '119', 'Barton');
349
+ insert into Faculty values ( 7271, 'Jelinek', 'Frederick', 'Professor', 'M', 2890, '119', 'Barton');
350
+ insert into Faculty values ( 7506, 'Westgate', 'Charles', 'Professor', 'M', 2932, '119', 'Barton');
351
+ insert into Faculty values ( 8102, 'James', 'Lancelot', 'AsstProf', 'M', 2792, '288', 'Krieger');
352
+ insert into Faculty values ( 8118, 'Weinert', 'Howard', 'Professor', 'M', 3272, '119', 'Barton');
353
+ insert into Faculty values ( 8122, 'Wierman', 'John', 'Professor', 'M', 3392,'288', 'Krieger');
354
+ insert into Faculty values ( 8722, 'Cauwenberghs', 'Gert', 'AsstProf', 'M', 1372, '119', 'Barton');
355
+ insert into Faculty values ( 8723, 'Andreou', 'Andreas', 'Professor', 'M', 1402, '119', 'Barton');
356
+ insert into Faculty values ( 8772, 'Cowen', 'Lenore', 'AsstProf', 'F', 2870, '288', 'Krieger');
357
+ insert into Faculty values ( 8791, 'McCloskey', 'Michael', 'Professor', 'M', 3440, '288', 'Krieger');
358
+ insert into Faculty values ( 8989, 'Brent', 'Michael', 'AsstProf', 'M', 9373, '288', 'Krieger');
359
+ insert into Faculty values ( 9011, 'Rapp', 'Brenda', 'AsstProf', 'F', 2032, '288', 'Krieger');
360
+ insert into Faculty values ( 9191, 'Collins', 'Oliver', 'AssocProf', 'M', 5427, '119', 'Barton');
361
+ insert into Faculty values ( 9199, 'Hughes', 'Brian', 'AssocProf', 'M', 5666, '119', 'Barton');
362
+ insert into Faculty values ( 9210, 'Joseph', 'Richard', 'Professor', 'M', 5996, '119', 'Barton');
363
+ insert into Faculty values ( 9514, 'Prince', 'Jerry', 'AssocProf', 'M', 5106, '119', 'Barton');
364
+ insert into Faculty values ( 9823, 'Pang', 'Jong-Shi', 'Professor', 'M', 4366, '288', 'Krieger');
365
+ insert into Faculty values ( 9824, 'Glaser', 'Robert', 'Instructor', 'M', 4396, '119', 'Barton');
366
+ insert into Faculty values ( 9811, 'Wu', 'Colin', 'AsstProf', 'M', 2906, '288', 'Krieger');
367
+ insert into Faculty values ( 9643, 'Legendre', 'Geraldine', 'AssocProf', 'F', 8972, '288', 'Krieger');
368
+ insert into Faculty values ( 9379, 'Khurgin', 'Jacob', 'Professor', 'M', 1060, '119', 'Barton');
369
+ insert into Faculty values ( 9922, 'Hall', 'Leslie', 'AsstProf', 'F', 7332, '288', 'Krieger');
370
+
371
+
372
+ insert into Department values ( 010, 'AS', 'History of Art', '268', 'Mergenthaler', 7117);
373
+ insert into Department values ( 020, 'AS', 'Biology', '144', 'Mudd', 7330);
374
+ insert into Department values ( 030, 'AS', 'Chemistry', '113', 'Remsen', 7429);
375
+ insert into Department values ( 040, 'AS', 'Classics', '121', 'Gilman', 7556);
376
+ insert into Department values ( 050, 'AS', 'Cognitive Science', '381', 'Krieger', 7119);
377
+ insert into Department values ( 060, 'AS', 'English', '146', 'Gilman', 7544);
378
+ insert into Department values ( 070, 'AS', 'Anthropology', '404B', 'Macaulay', 7272);
379
+ insert into Department values ( 090, 'AS', 'German', '245', 'Gilman', 7508);
380
+ insert into Department values ( 100, 'AS', 'History', '312', 'Gilman', 7575);
381
+ insert into Department values ( 110, 'AS', 'Mathematics', '404', 'Krieger', 7399);
382
+ insert into Department values ( 130, 'AS', 'Near Eastern Studies', '128', 'Gilman', 7499);
383
+ insert into Department values ( 140, 'AS', 'History of Science', '234', 'Gilman', 7501);
384
+ insert into Department values ( 150, 'AS', 'Philosophy', '347', 'Gilman', 7524);
385
+ insert into Department values ( 170, 'AS', 'Physics and Astronomy', '366', 'Bloomberg', 7347);
386
+ insert into Department values ( 180, 'AS', 'Economics', '440', 'Mergenthaler', 7601);
387
+ insert into Department values ( 190, 'AS', 'Political Science', '338', 'Mergenthaler', 7540);
388
+ insert into Department values ( 200, 'AS', 'Psychology', '223', 'Ames', 7055);
389
+ insert into Department values ( 340, 'AS', 'French', '225', 'Gilman', 7227);
390
+ insert into Department values ( 350, 'AS', 'Hispanic/Italian Studies', '221', 'Gilman', 7226);
391
+ insert into Department values ( 520, 'EN', 'ECE', '105', 'Barton', 7033);
392
+ insert into Department values ( 530, 'EN', 'Mechanical Engineering', '122', 'Latrobe', 7132);
393
+ insert into Department values ( 540, 'EN', 'Chemical Engineering', '24', 'NEB', 7170);
394
+ insert into Department values ( 550, 'EN', 'Mathematical Sciences', '221', 'Maryland', 7195);
395
+ insert into Department values ( 560, 'EN', 'Civil Engineering', '206', 'Latrobe', 8680);
396
+ insert into Department values ( 580, 'EN', 'Biomedical Engineering', '144', 'NEB', 8482);
397
+ insert into Department values ( 600, 'EN', 'Computer Science', '224', 'NEB', 8577);
398
+
399
+
400
+ insert into Member_of values (7792, 600, 'Primary');
401
+ insert into Member_of values (9210, 520, 'Primary');
402
+ insert into Member_of values (9811, 550, 'Primary');
403
+ insert into Member_of values (9643, 050, 'Primary');
404
+ insert into Member_of values (9379, 520, 'Primary');
405
+ insert into Member_of values (8918, 600, 'Primary');
406
+ insert into Member_of values (7712, 600, 'Primary');
407
+ insert into Member_of values (1121, 600, 'Primary');
408
+ insert into Member_of values (9172, 600, 'Primary');
409
+ insert into Member_of values (8423, 600, 'Primary');
410
+ insert into Member_of values (1148, 600, 'Primary');
411
+ insert into Member_of values (8741, 600, 'Primary');
412
+ insert into Member_of values (3457, 600, 'Primary');
413
+ insert into Member_of values (7723, 600, 'Primary');
414
+ insert into Member_of values (8721, 600, 'Primary');
415
+ insert into Member_of values (2192, 600, 'Primary');
416
+ insert into Member_of values (8114, 600, 'Primary');
417
+ insert into Member_of values (6112, 600, 'Primary');
418
+ insert into Member_of values (9826, 600, 'Primary');
419
+ insert into Member_of values (1193, 600, 'Primary');
420
+ insert into Member_of values (1082, 600, 'Primary');
421
+ insert into Member_of values (4230, 600, 'Primary');
422
+ insert into Member_of values (8989, 600, 'Secondary');
423
+ insert into Member_of values (7271, 600, 'Secondary');
424
+ insert into Member_of values (8721, 520, 'Secondary');
425
+ insert into Member_of values (8741, 050, 'Secondary');
426
+ insert into Member_of values (7271, 050, 'Secondary');
427
+ insert into Member_of values (6182, 550, 'Primary');
428
+ insert into Member_of values (8772, 550, 'Primary');
429
+ insert into Member_of values (2738, 550, 'Primary');
430
+ insert into Member_of values (2881, 550, 'Primary');
431
+ insert into Member_of values (9922, 550, 'Primary');
432
+ insert into Member_of values (6541, 550, 'Primary');
433
+ insert into Member_of values (8102, 550, 'Primary');
434
+ insert into Member_of values (1177, 550, 'Primary');
435
+ insert into Member_of values (9823, 550, 'Primary');
436
+ insert into Member_of values (2311, 550, 'Primary');
437
+ insert into Member_of values (2291, 550, 'Primary');
438
+ insert into Member_of values (8122, 550, 'Primary');
439
+ insert into Member_of values (8989, 050, 'Primary');
440
+ insert into Member_of values (4432, 050, 'Primary');
441
+ insert into Member_of values (5718, 050, 'Primary');
442
+ insert into Member_of values (8791, 050, 'Primary');
443
+ insert into Member_of values (9011, 050, 'Primary');
444
+ insert into Member_of values (6910, 050, 'Primary');
445
+ insert into Member_of values (8723, 520, 'Primary');
446
+ insert into Member_of values (2028, 520, 'Primary');
447
+ insert into Member_of values (8722, 520, 'Primary');
448
+ insert into Member_of values (9191, 520, 'Primary');
449
+ insert into Member_of values (1823, 520, 'Primary');
450
+ insert into Member_of values (7134, 520, 'Primary');
451
+ insert into Member_of values (9199, 520, 'Primary');
452
+ insert into Member_of values (6925, 520, 'Primary');
453
+ insert into Member_of values (7271, 520, 'Primary');
454
+ insert into Member_of values (6191, 520, 'Primary');
455
+ insert into Member_of values (2119, 520, 'Primary');
456
+ insert into Member_of values (9514, 520, 'Primary');
457
+ insert into Member_of values (7231, 520, 'Primary');
458
+ insert into Member_of values (1172, 520, 'Primary');
459
+ insert into Member_of values (8118, 520, 'Primary');
460
+ insert into Member_of values (7506, 520, 'Primary');
461
+ insert into Member_of values (6330, 520, 'Primary');
462
+ insert into Member_of values (9824, 520, 'Primary');
463
+
464
+
465
+ insert into Course values ( '600.101', 'COMPUTER LITERACY', 3, 6112, 'MTW', '3',600);
466
+ insert into Course values ( '600.103', 'INTRODUCTION TO COMPUTER SCIENCE', 1, 4230, 'Th', '4',600);
467
+ insert into Course values ( '600.107', 'INTRO TO PROGRAMMING IN JAVA', 3, 1193, 'MTW', '3',600);
468
+ insert into Course values ( '600.109', 'INTRO TO PROGRAMMING IN C/C++', 3, 4230, 'MTW', '12',600);
469
+ insert into Course values ( '600.113', 'EXPLORING THE INTERNET', 3, 6112, 'MTW', '4',600);
470
+ insert into Course values ( '600.121', 'JAVA PROGRAMMING', 3, 6112, 'ThF', '10:30-12',600);
471
+ insert into Course values ( '600.211', 'UNIX SYSTEMS PROGRAMMING', 3, 6112, 'ThF', '1-2:15',600);
472
+ insert into Course values ( '600.227', 'DATA STRUCTURES in JAVA', 3, 1121, 'MTW', '9',600);
473
+ insert into Course values ( '600.232', 'MULTIMEDIA COMPUTING', 3, 9826, 'MW', '1-2:30',600);
474
+ insert into Course values ( '600.271', 'COMPUTATIONAL MODELS', 3, 9172, 'MTW', '1',600);
475
+ insert into Course values ( '600.303', 'SUPERCOMPUTING', 1, 9826, 'W', '4-6:20',600);
476
+ insert into Course values ( '600.315', 'DATABASE SYSTEMS', 3, 2192, 'ThF', '2:30-4',600);
477
+ insert into Course values ( '600.333', 'COMPUTER SYSTEM FUNDAMENTALS', 3, 1148, 'MTW', '8',600);
478
+ insert into Course values ( '600.337', 'DISTRIBUTED SYSTEMS', 3, 8918, 'M', '3',600);
479
+ insert into Course values ( '600.363', 'INTRODUCTION TO ALGORITHMS', 3, 7712, 'MTW', '9',600);
480
+ insert into Course values ( '600.415', 'DATABASE SYSTEMS', 3, 2192, 'ThF', '2:30-4',600);
481
+ insert into Course values ( '600.433', 'COMPUTER SYSTEMS', 3, 1148, 'MTW', '8',600);
482
+ insert into Course values ( '600.437', 'DISTRIBUTED SYSTEMS', 3, 8918, 'M', '3',600);
483
+ insert into Course values ( '600.445', 'QUANTITATIVE MEDICAL COMPUTING', 3, 7723, 'ThF', '1-2:15',600);
484
+ insert into Course values ( '600.461', 'COMPUTER VISION', 3, 8114, 'MTW', '1',600);
485
+ insert into Course values ( '600.463', 'ALGORITHMS I', 3, 7712, 'MTW', '9',600);
486
+ insert into Course values ( '600.465', 'INTRO TO NATURAL LANGUAGE PROCESSING', 3, 7792, 'MTW', '2',600);
487
+ insert into Course values ( '600.509', 'COMPUTER SCIENCE INTERNSHIP', 3, 1121, 'M', '1',600);
488
+ insert into Course values ( '600.601', 'COMPUTER SCIENCE SEMINAR', 1, 6191, 'ThF', '10:30-12',600);
489
+ insert into Course values ( '600.657', 'HIGH PERFORMANCE GRAPHICS AND MODELING', 3, 8423, 'M', '4-5:30',600);
490
+ insert into Course values ( '600.787', 'SEMINAR ON COMPUTATIONAL GEOMETRY', 3, 1121, 'Th', '2',600);
491
+ insert into Course values ( '550.111', 'STATISTICAL ANALYSIS', 4, 2311, 'MTW', '12',550);
492
+ insert into Course values ( '550.171', 'DISCRETE MATHEMATICS', 4, 8772, 'MTW', '11',550);
493
+ insert into Course values ( '500.203', 'ACCOUNTING I', 3, 9823, 'T', '6:15-8:45',550);
494
+ insert into Course values ( '500.204', 'ACCOUNTING II', 3, 9823, 'Th', '6:15-8:45',550);
495
+ insert into Course values ( '500.205', 'BUSINESS LAW I', 3, 8791, 'W', '6:15-8:45',550);
496
+ insert into Course values ( '500.206', 'BUSINESS LAW II', 3, 8791, 'M', '6:15-8:45',550);
497
+ insert into Course values ( '550.291', 'LINEAR ALGEBRA AND DIFFERENTIAL EQNS', 4, 6541, 'MTW', '9',550);
498
+ insert into Course values ( '550.310', 'PROBABILITY AND STATISTICS', 4, 8102, 'MTW', '10',550);
499
+ insert into Course values ( '550.361', 'INTRODUCTION TO OPTIMIZATION', 4, 2881, 'MTW', '2',550);
500
+ insert into Course values ( '550.413', 'APPLIED STATISTICS AND DATA ANALYSIS', 4, 1177, 'MTW', '11',550);
501
+ insert into Course values ( '550.420', 'INTRODUCTION TO PROBABILITY', 4, 2738, 'MTW', '1',550);
502
+ insert into Course values ( '550.471', 'COMBINATORIAL ANALYSIS', 4, 8772, 'MTW', '12',550);
503
+ insert into Course values ( '550.620', 'PROBABILITY THEORY I', 3, 2738, 'MTW', '2',550);
504
+ insert into Course values ( '550.626', 'STOCHASTIC PROCESSES II', 3, 8102, 'MTW', '1',550);
505
+ insert into Course values ( '550.631', 'STATISTICAL INFERENCE', 3, 6182, 'MTW', '3',550);
506
+ insert into Course values ( '550.661', 'FOUNDATIONS OF OPTIMIZATION', 3, 9823, 'MTW', '10',550);
507
+ insert into Course values ( '550.671', 'COMBINATORIAL ANALYSIS', 3, 8772, 'MTW', '12',550);
508
+ insert into Course values ( '550.681', 'NUMERICAL ANALYSIS', 3, 6541, 'MTW', '11',550);
509
+ insert into Course values ( '550.721', 'PERCOLATION THEORY', 3, 8122, 'MTW', '9',550);
510
+ insert into Course values ( '550.750', 'TOPICS IN OPERATIONS RESEARCH', 3, 9922, 'MW', '3-4:30',550);
511
+ insert into Course values ( '550.790', 'TOPICS IN APPLIED MATH', 2, 2881, 'MT', '4:30-6',550);
512
+ insert into Course values ( '520.137', 'INTRODUCTION TO ECE', 3, 8723, 'MTW', '11',520);
513
+ insert into Course values ( '520.213', 'CIRCUITS', 4, 9210, 'MTW', '2',520);
514
+ insert into Course values ( '520.219', 'FIELDS, MATTER AND WAVES', 3, 9210, 'MTW', '3',520);
515
+ insert into Course values ( '520.325', 'INTEGRATED ELECTRONICS', 3, 6191, 'MTW', '3',520);
516
+ insert into Course values ( '520.345', 'ECE LABORATORY', 3, 1823, 'W', '2',520);
517
+ insert into Course values ( '520.349', 'MICROPROCESSOR LAB I', 3, 9824, 'Th', '8',520);
518
+ insert into Course values ( '520.353', 'CONTROL SYSTEMS', 3, 6925, 'MTW', '10',520);
519
+ insert into Course values ( '520.401', 'BASIC COMMUNICATIONS', 3, 6191, 'MTW', '1',520);
520
+ insert into Course values ( '520.410', 'FIBER OPTICS AND PHOTONICS', 3, 6191, 'MTW', '1',520);
521
+ insert into Course values ( '520.419', 'ITERATIVE ALGORITHMS', 3, 2119, 'MT', '4-5:15',520);
522
+ insert into Course values ( '520.421', 'INTRODUCTION TO NON-LINEAR SYSTEMS', 3, 7231, 'MTW', '9',520);
523
+ insert into Course values ( '520.432', 'TOPICS IN MEDICAL IMAGING SYSTEMS', 3, 9514, 'TTh', '8:30-10',520);
524
+ insert into Course values ( '520.435', 'DIGITAL SIGNAL PROCESSING', 4, 8118, 'MTW', '11',520);
525
+ insert into Course values ( '520.475', 'PROCESSING AND RECOGNITION OF SPEECH', 3, 6330, 'TW', '2-3:30',520);
526
+ insert into Course values ( '520.490', 'ANALOG AND DIGITAL VLSI SYSTEMS', 3, 8722, 'ThF', '10:30-12',520);
527
+ insert into Course values ( '520.603', 'ELECTROMAGNETIC WAVES', 4, 9210, 'Th', '1-4:30',520);
528
+ insert into Course values ( '520.605', 'SOLID STATE PHYSICS', 3, 9379, 'Tu', '1-4',520);
529
+ insert into Course values ( '520.609', 'NONLINEAR TECHNICAL IMAGE PROCESSING', 3, 7134, 'Th', '1-4',520);
530
+ insert into Course values ( '520.651', 'RANDOM SIGNAL ANALYSIS', 3, 9514, 'ThF', '10:30-12',520);
531
+ insert into Course values ( '050.102', 'LANGUAGE AND MIND', 3, 4432, 'MTW', '10',050);
532
+ insert into Course values ( '050.109', 'MIND, BRAIN, COMPUTERS', 3, 6910, 'MW', '2-3:15',050);
533
+ insert into Course values ( '050.203', 'COGNITIVE NEUROSCIENCE', 4, 9011, 'MT', '3:30-4:45',050);
534
+ insert into Course values ( '050.325', 'SOUND STRUCTURES IN NATURAL LANGUAGE', 3, 4432, 'T', '10-12',050);
535
+ insert into Course values ( '050.370', 'FORMAL METHODS IN COGNITIVE SCIENCE', 3, 6910, 'MW', '11:30',050);
536
+ insert into Course values ( '050.381', 'LANGUAGE DEVELOPMENT', 3, 8989, 'T', '1-3',050);
537
+ insert into Course values ( '050.427', 'THE HISTORY OF ROMANCE LANGUAGES', 3, 4432, 'W', '1-3',050);
538
+ insert into Course values ( '050.670', 'FORMAL METHODS IN COGNITIVE SCIENCE', 3, 4432, 'MW', '11:30-12:45',050);
539
+ insert into Course values ( '050.802', 'RESEARCH SEMINAR IN COGNITIVE PROCESSES', 1, 9011, 'W', '1-3',050);
540
+ insert into Course values ( '050.821', 'COMP. MODELS OF SENTENCE PROCESSING', 3, 5718, 'M', '1-4',050);
541
+
542
+ insert into Student values ( 1001, 'Smith', 'Linda', 18, 'F', 600, 1121,'BAL');
543
+ insert into Student values ( 1002, 'Kim', 'Tracy', 19, 'F', 600, 7712,'HKG');
544
+ insert into Student values ( 1003, 'Jones', 'Shiela', 21, 'F', 600, 7792,'WAS');
545
+ insert into Student values ( 1004, 'Kumar', 'Dinesh', 20, 'M', 600, 8423,'CHI');
546
+ insert into Student values ( 1005, 'Gompers', 'Paul', 26, 'M', 600, 1121,'YYZ');
547
+ insert into Student values ( 1006, 'Schultz', 'Andy', 18, 'M', 600, 1148,'BAL');
548
+ insert into Student values ( 1007, 'Apap', 'Lisa', 18, 'F', 600, 8918,'PIT');
549
+ insert into Student values ( 1008, 'Nelson', 'Jandy', 20, 'F', 600, 9172,'BAL');
550
+ insert into Student values ( 1009, 'Tai', 'Eric', 19, 'M', 600, 2192,'YYZ');
551
+ insert into Student values ( 1010, 'Lee', 'Derek', 17, 'M', 600, 2192,'HOU');
552
+ insert into Student values ( 1011, 'Adams', 'David', 22, 'M', 600, 1148,'PHL');
553
+ insert into Student values ( 1012, 'Davis', 'Steven', 20, 'M', 600, 7723,'PIT');
554
+ insert into Student values ( 1014, 'Norris', 'Charles', 18, 'M', 600, 8741, 'DAL');
555
+ insert into Student values ( 1015, 'Lee', 'Susan', 16, 'F', 600, 8721,'HKG');
556
+ insert into Student values ( 1016, 'Schwartz', 'Mark', 17, 'M', 600, 2192,'DET');
557
+ insert into Student values ( 1017, 'Wilson', 'Bruce', 27, 'M', 600, 1148,'LON');
558
+ insert into Student values ( 1018, 'Leighton', 'Michael', 20, 'M', 600, 1121, 'PIT');
559
+ insert into Student values ( 1019, 'Pang', 'Arthur', 18, 'M', 600, 2192,'WAS');
560
+ insert into Student values ( 1020, 'Thornton', 'Ian', 22, 'M', 520, 7271,'NYC');
561
+ insert into Student values ( 1021, 'Andreou', 'George', 19, 'M', 520, 8722, 'NYC');
562
+ insert into Student values ( 1022, 'Woods', 'Michael', 17, 'M', 540, 8722,'PHL');
563
+ insert into Student values ( 1023, 'Shieber', 'David', 20, 'M', 520, 8722,'NYC');
564
+ insert into Student values ( 1024, 'Prater', 'Stacy', 18, 'F', 540, 7271,'BAL');
565
+ insert into Student values ( 1025, 'Goldman', 'Mark', 18, 'M', 520, 7134,'PIT');
566
+ insert into Student values ( 1026, 'Pang', 'Eric', 19, 'M', 520, 7134,'HKG');
567
+ insert into Student values ( 1027, 'Brody', 'Paul', 18, 'M', 520, 8723,'LOS');
568
+ insert into Student values ( 1028, 'Rugh', 'Eric', 20, 'M', 550, 2311,'ROC');
569
+ insert into Student values ( 1029, 'Han', 'Jun', 17, 'M', 100, 2311,'PEK');
570
+ insert into Student values ( 1030, 'Cheng', 'Lisa', 21, 'F', 550, 2311,'SFO');
571
+ insert into Student values ( 1031, 'Smith', 'Sarah', 20, 'F', 550, 8772,'PHL');
572
+ insert into Student values ( 1032, 'Brown', 'Eric', 20, 'M', 550, 8772,'ATL');
573
+ insert into Student values ( 1033, 'Simms', 'William', 18, 'M', 550, 8772,'NAR');
574
+ insert into Student values ( 1034, 'Epp', 'Eric', 18, 'M', 050, 5718,'BOS');
575
+ insert into Student values ( 1035, 'Schmidt', 'Sarah', 26, 'F', 050, 5718,'WAS');
train_database/company_1/company_1.sqlite ADDED
Binary file (12.3 kB). View file
 
train_database/company_1/link.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ https://www.classes.cs.uchicago.edu/archive/2009/spring/23500-1/homework.html