Chinastark commited on
Commit
c549bcb
·
verified ·
1 Parent(s): 9b73cec

Add files using upload-large-folder tool

Browse files
database/car_1/data_csv/continents.csv ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ ContId,Continent
2
+ 1,'america'
3
+ 2,'europe'
4
+ 3,'asia'
5
+ 4,'africa'
6
+ 5,'australia'
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
+
database/course_teach/course_teach.sqlite ADDED
Binary file (28.7 kB). View file
 
database/formula_1/annotation.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "label_id": null,
3
+ "data": [],
4
+ "review_id": null
5
+ }
database/formula_1/data_csv/constructors.csv ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ constructorId,constructorRef,name,nationality,url,
2
+ 1,mclaren,McLaren,British,http://en.wikipedia.org/wiki/McLaren
3
+ 2,bmw_sauber,BMW Sauber,German,http://en.wikipedia.org/wiki/BMW_Sauber
4
+ 3,williams,Williams,British,http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering
5
+ 4,renault,Renault,French,http://en.wikipedia.org/wiki/Renault_F1
6
+ 5,toro_rosso,Toro Rosso,Italian,http://en.wikipedia.org/wiki/Scuderia_Toro_Rosso
7
+ 6,ferrari,Ferrari,Italian,http://en.wikipedia.org/wiki/Scuderia_Ferrari
8
+ 7,toyota,Toyota,Japanese,http://en.wikipedia.org/wiki/Toyota_Racing
9
+ 8,super_aguri,Super Aguri,Japanese,http://en.wikipedia.org/wiki/Super_Aguri_F1
10
+ 9,red_bull,Red Bull,Austrian,http://en.wikipedia.org/wiki/Red_Bull_Racing
11
+ 10,force_india,Force India,Indian,http://en.wikipedia.org/wiki/Force_India
12
+ 11,honda,Honda,Japanese,http://en.wikipedia.org/wiki/Honda_Racing_F1
13
+ 12,spyker,Spyker,Dutch,http://en.wikipedia.org/wiki/Spyker_F1
14
+ 13,mf1,MF1,Russian,http://en.wikipedia.org/wiki/Midland_F1_Racing
15
+ 14,spyker_mf1,Spyker MF1,Dutch,http://en.wikipedia.org/wiki/Midland_F1_Racing
16
+ 15,sauber,Sauber,Swiss,http://en.wikipedia.org/wiki/Sauber
17
+ 16,bar,BAR,British,http://en.wikipedia.org/wiki/British_American_Racing
18
+ 17,jordan,Jordan,Irish,http://en.wikipedia.org/wiki/Jordan_Grand_Prix
19
+ 18,minardi,Minardi,Italian,http://en.wikipedia.org/wiki/Minardi
20
+ 19,jaguar,Jaguar,British,http://en.wikipedia.org/wiki/Jaguar_Racing
21
+ 20,prost,Prost,French,http://en.wikipedia.org/wiki/Prost_Grand_Prix
22
+ 21,arrows,Arrows,British,http://en.wikipedia.org/wiki/Arrows_Grand_Prix_International
23
+ 22,benetton,Benetton,Italian,http://en.wikipedia.org/wiki/Benetton_Formula
24
+ 23,brawn,Brawn,British,http://en.wikipedia.org/wiki/Brawn_GP
25
+ 24,stewart,Stewart,British,http://en.wikipedia.org/wiki/Stewart_Grand_Prix
26
+ 25,tyrrell,Tyrrell,British,http://en.wikipedia.org/wiki/Tyrrell_Racing
27
+ 26,lola,Lola,British,http://en.wikipedia.org/wiki/MasterCard_Lola
28
+ 27,ligier,Ligier,French,http://en.wikipedia.org/wiki/Ligier
29
+ 28,forti,Forti,Italian,http://en.wikipedia.org/wiki/Forti
30
+ 29,footwork,Footwork,British,http://en.wikipedia.org/wiki/Footwork_Arrows
31
+ 30,pacific,Pacific,British,http://en.wikipedia.org/wiki/Pacific_Racing
32
+ 31,simtek,Simtek,British,http://en.wikipedia.org/wiki/Simtek
33
+ 32,team_lotus,Team Lotus,British,http://en.wikipedia.org/wiki/Team_Lotus
34
+ 33,larrousse,Larrousse,French,http://en.wikipedia.org/wiki/Larrousse
35
+ 34,brabham,Brabham,British,http://en.wikipedia.org/wiki/Brabham
36
+ 35,dallara,Dallara,Italian,http://en.wikipedia.org/wiki/Dallara
37
+ 36,fondmetal,Fondmetal,Italian,http://en.wikipedia.org/wiki/Fondmetal
38
+ 37,march,March,British,http://en.wikipedia.org/wiki/March_Engineering
39
+ 38,moda,Andrea Moda,Italian,http://en.wikipedia.org/wiki/Andrea_Moda_Formula
40
+ 39,ags,AGS,French,http://en.wikipedia.org/wiki/Automobiles_Gonfaronnaises_Sportives
41
+ 40,lambo,Lambo,Italian,http://en.wikipedia.org/wiki/Modena_(racing_team)
42
+ 41,leyton,Leyton House,British,http://en.wikipedia.org/wiki/Leyton_House
43
+ 42,coloni,Coloni,Italian,http://en.wikipedia.org/wiki/Enzo_Coloni_Racing_Car_Systems
44
+ 44,eurobrun,Euro Brun,Italian,http://en.wikipedia.org/wiki/Euro_Brun
45
+ 45,osella,Osella,Italian,http://en.wikipedia.org/wiki/Osella
46
+ 46,onyx,Onyx,British,http://en.wikipedia.org/wiki/Onyx_(racing_team)
47
+ 47,life,Life,Italian,http://en.wikipedia.org/wiki/Life_(Racing_Team)
48
+ 48,rial,Rial,German,http://en.wikipedia.org/wiki/Rial_%28racing_team%29
49
+ 49,zakspeed,Zakspeed,German,http://en.wikipedia.org/wiki/Zakspeed
50
+ 50,ram,RAM,British,http://en.wikipedia.org/wiki/RAM_Racing
51
+ 51,alfa,Alfa Romeo,Italian,http://en.wikipedia.org/wiki/Alfa_Romeo_(Formula_One)
52
+ 52,spirit,Spirit,British,http://en.wikipedia.org/wiki/Spirit_(racing_team)
53
+ 53,toleman,Toleman,British,http://en.wikipedia.org/wiki/Toleman
54
+ 54,ats,ATS,Italian,http://en.wikipedia.org/wiki/ATS_(wheels)
55
+ 55,theodore,Theodore,Hong Kong,http://en.wikipedia.org/wiki/Theodore_Racing
56
+ 56,fittipaldi,Fittipaldi,Brazilian,http://en.wikipedia.org/wiki/Fittipaldi_%28constructor%29
57
+ 57,ensign,Ensign,British,http://en.wikipedia.org/wiki/Ensign_%28racing_team%29
58
+ 58,shadow,Shadow,British,http://en.wikipedia.org/wiki/Shadow_Racing_Cars
59
+ 59,wolf,Wolf,Canadian,http://en.wikipedia.org/wiki/Walter_Wolf_Racing
60
+ 60,merzario,Merzario,Italian,http://en.wikipedia.org/wiki/Merzario
61
+ 61,kauhsen,Kauhsen,German,http://en.wikipedia.org/wiki/Kauhsen
62
+ 62,rebaque,Rebaque,Mexican,http://en.wikipedia.org/wiki/Rebaque
63
+ 63,surtees,Surtees,British,http://en.wikipedia.org/wiki/Surtees
64
+ 64,hesketh,Hesketh,British,http://en.wikipedia.org/wiki/Hesketh_Racing
65
+ 65,martini,Martini,French,http://en.wikipedia.org/wiki/Martini_(cars)
66
+ 66,brm,BRM,British,http://en.wikipedia.org/wiki/BRM
67
+ 67,penske,Penske,American,http://en.wikipedia.org/wiki/Penske_Racing
68
+ 68,lec,LEC,British,http://en.wikipedia.org/wiki/LEC_(Formula_One)
69
+ 69,mcguire,McGuire,Australian,http://en.wikipedia.org/wiki/McGuire_(Formula_One)
70
+ 70,boro,Boro,Dutch,http://en.wikipedia.org/wiki/Boro_(Formula_One)
71
+ 71,apollon,Apollon,Swiss,http://en.wikipedia.org/wiki/Apollon_(Formula_One)
72
+ 72,kojima,Kojima,Japanese,http://en.wikipedia.org/wiki/Kojima_Engineering
73
+ 73,parnelli,Parnelli,American,http://en.wikipedia.org/wiki/Parnelli
74
+ 74,maki,Maki,Japanese,http://en.wikipedia.org/wiki/Maki_(cars)
75
+ 75,hill,Embassy Hill,British,http://en.wikipedia.org/wiki/Hill_(constructor)
76
+ 76,lyncar,Lyncar,British,http://en.wikipedia.org/wiki/Lyncar
77
+ 77,trojan,Trojan,British,http://en.wikipedia.org/wiki/Trojan_(Racing_team)
78
+ 78,amon,Amon,New Zealand,http://en.wikipedia.org/wiki/Amon_(Formula_One_team)
79
+ 79,token,Token,British,http://en.wikipedia.org/wiki/Token_(Racing_team)
80
+ 80,iso_marlboro,Iso Marlboro,British,http://en.wikipedia.org/wiki/Iso_Marlboro
81
+ 81,tecno,Tecno,Italian,http://en.wikipedia.org/wiki/Tecno
82
+ 82,matra,Matra,French,http://en.wikipedia.org/wiki/Matra
83
+ 83,politoys,Politoys,British,http://en.wikipedia.org/wiki/Frank_Williams_Racing_Cars
84
+ 84,connew,Connew,British,http://en.wikipedia.org/wiki/Connew
85
+ 85,bellasi,Bellasi,Swiss,http://en.wikipedia.org/wiki/Bellasi
86
+ 86,tomaso,De Tomaso,Italian,http://en.wikipedia.org/wiki/De_Tomaso
87
+ 87,cooper,Cooper,British,http://en.wikipedia.org/wiki/Cooper_Car_Company
88
+ 88,eagle,Eagle,American,http://en.wikipedia.org/wiki/Anglo_American_Racers
89
+ 89,lds,LDS,South African,http://en.wikipedia.org/wiki/LDS_(automobile)
90
+ 90,protos,Protos,British,http://en.wikipedia.org/wiki/Protos_(constructor)
91
+ 91,shannon,Shannon,British,http://en.wikipedia.org/wiki/Shannon_(Formula_One)
92
+ 92,scirocco,Scirocco,British,http://en.wikipedia.org/wiki/Scirocco-Powell
93
+ 93,re,RE,Rhodesian,http://en.wikipedia.org/wiki/RE_%28automobile%29
94
+ 94,brp,BRP,British,http://en.wikipedia.org/wiki/British_Racing_Partnership
95
+ 95,porsche,Porsche,German,http://en.wikipedia.org/wiki/Porsche_in_Formula_One
96
+ 96,derrington,Derrington,British,http://en.wikipedia.org/wiki/Derrington-Francis
97
+ 97,gilby,Gilby,British,http://en.wikipedia.org/wiki/Gilby
98
+ 98,stebro,Stebro,Canadian,http://en.wikipedia.org/wiki/Stebro
99
+ 99,emeryson,Emeryson,British,http://en.wikipedia.org/wiki/Emeryson
100
+ 100,enb,ENB,Belgium,http://en.wikipedia.org/wiki/Ecurie_Nationale_Belge
101
+ 101,jbw,JBW,British,http://en.wikipedia.org/wiki/JBW
102
+ 102,ferguson,Ferguson,British,http://en.wikipedia.org/wiki/Ferguson_Research_Ltd.
103
+ 103,mbm,MBM,Swiss,http://en.wikipedia.org/wiki/Monteverdi_Basel_Motors
104
+ 104,behra-porsche,Behra-Porsche,Italian,http://en.wikipedia.org/wiki/Behra-Porsche
105
+ 105,maserati,Maserati,Italian,http://en.wikipedia.org/wiki/Maserati
106
+ 106,scarab,Scarab,American,http://en.wikipedia.org/wiki/Scarab_(constructor)
107
+ 107,watson,Watson,American,http://en.wikipedia.org/wiki/A.J._Watson
108
+ 108,epperly,Epperly,American,http://en.wikipedia.org/wiki/Epperly
109
+ 109,phillips,Phillips,American,http://en.wikipedia.org/wiki/Phillips_(constructor)
110
+ 110,lesovsky,Lesovsky,American,http://en.wikipedia.org/wiki/Lesovsky
111
+ 111,trevis,Trevis,American,http://en.wikipedia.org/wiki/Trevis
112
+ 112,meskowski,Meskowski,American,http://en.wikipedia.org/wiki/Meskowski
113
+ 113,kurtis_kraft,Kurtis Kraft,American,http://en.wikipedia.org/wiki/Kurtis_Kraft
114
+ 114,kuzma,Kuzma,American,http://en.wikipedia.org/wiki/Kuzma_(constructor)
115
+ 115,vhristensen,Christensen,American,http://en.wikipedia.org/wiki/Christensen_(constructor)
116
+ 116,ewing,Ewing,American,http://en.wikipedia.org/wiki/Ewing_(constructor)
117
+ 117,aston_martin,Aston Martin,British,http://en.wikipedia.org/wiki/Aston_Martin
118
+ 118,vanwall,Vanwall,British,http://en.wikipedia.org/wiki/Vanwall
119
+ 119,moore,Moore,American,http://en.wikipedia.org/wiki/Moore_(constructor)
120
+ 120,dunn,Dunn,American,http://en.wikipedia.org/wiki/Dunn_Engineering
121
+ 121,elder,Elder,American,http://en.wikipedia.org/wiki/Elder_(constructor)
122
+ 122,sutton,Sutton,American,http://en.wikipedia.org/wiki/Sutton_(constructor)
123
+ 123,fry,Fry,British,http://en.wikipedia.org/wiki/Fry_(racing_team)
124
+ 124,tec-mec,Tec-Mec,Italian,http://en.wikipedia.org/wiki/Tec-Mec
125
+ 125,connaught,Connaught,British,http://en.wikipedia.org/wiki/Connaught_Engineering
126
+ 126,alta,Alta,British,http://en.wikipedia.org/wiki/Alta_auto_racing_team
127
+ 127,osca,OSCA,Italian,http://en.wikipedia.org/wiki/Officine_Specializate_Costruzione_Automobili
128
+ 128,gordini,Gordini,French,http://en.wikipedia.org/wiki/Gordini
129
+ 129,stevens,Stevens,American,http://en.wikipedia.org/wiki/Stevens_(constructor)
130
+ 130,bugatti,Bugatti,French,http://en.wikipedia.org/wiki/Bugatti
131
+ 131,mercedes,Mercedes,German,http://en.wikipedia.org/wiki/Mercedes-Benz_in_Formula_One
132
+ 132,lancia,Lancia,Italian,http://en.wikipedia.org/wiki/Lancia_in_Formula_One
133
+ 133,hwm,HWM,British,http://en.wikipedia.org/wiki/Hersham_and_Walton_Motors
134
+ 134,schroeder,Schroeder,American,http://en.wikipedia.org/wiki/Schroeder_(constructor)
135
+ 135,pawl,Pawl,American,http://en.wikipedia.org/wiki/Pawl_(constructor)
136
+ 136,pankratz,Pankratz,American,http://en.wikipedia.org/wiki/Pankratz
137
+ 137,arzani-volpini,Arzani-Volpini,Italian,http://en.wikipedia.org/wiki/Arzani-Volpini
138
+ 138,nichels,Nichels,American,http://en.wikipedia.org/wiki/Nichels
139
+ 139,bromme,Bromme,American,http://en.wikipedia.org/wiki/Bromme
140
+ 140,klenk,Klenk,German,http://en.wikipedia.org/wiki/Klenk
141
+ 141,simca,Simca,French,http://en.wikipedia.org/wiki/Simca
142
+ 142,turner,Turner,American,http://en.wikipedia.org/wiki/Turner_(constructor)
143
+ 143,del_roy,Del Roy,American,http://en.wikipedia.org/wiki/Del_Roy
144
+ 144,veritas,Veritas,German,http://en.wikipedia.org/wiki/Veritas_(constructor)
145
+ 145,bmw,BMW,German,http://en.wikipedia.org/wiki/BMW
146
+ 146,emw,EMW,East German,http://en.wikipedia.org/wiki/Eisenacher_Motorenwerk
147
+ 147,afm,AFM,German,http://en.wikipedia.org/wiki/Alex_von_Falkenhausen_Motorenbau
148
+ 148,frazer_nash,Frazer Nash,British,http://en.wikipedia.org/wiki/Frazer_Nash
149
+ 149,sherman,Sherman,American,http://en.wikipedia.org/wiki/Sherman_(constructor)
150
+ 150,deidt,Deidt,American,http://en.wikipedia.org/wiki/Deidt
151
+ 151,era,ERA,British,http://en.wikipedia.org/wiki/English_Racing_Automobiles
152
+ 152,butterworth,Aston Butterworth,British,http://en.wikipedia.org/wiki/Aston_Butterworth
153
+ 153,cisitalia,Cisitalia,Italian,http://en.wikipedia.org/wiki/Cisitalia
154
+ 154,lago,Talbot-Lago,French,http://en.wikipedia.org/wiki/Talbot-Lago
155
+ 155,hall,Hall,American,http://en.wikipedia.org/wiki/Hall_(constructor)
156
+ 156,marchese,Marchese,American,http://en.wikipedia.org/wiki/Marchese_(constructor)
157
+ 157,langley,Langley,American,http://en.wikipedia.org/wiki/Langley_(constructor)
158
+ 158,rae,Rae,American,http://en.wikipedia.org/wiki/Rae_(motorsport)
159
+ 159,olson,Olson,American,http://en.wikipedia.org/wiki/Olson_(constructor)
160
+ 160,wetteroth,Wetteroth,American,http://en.wikipedia.org/wiki/Wetteroth
161
+ 161,adams,Adams,American,http://en.wikipedia.org/wiki/Adams_(constructor)
162
+ 162,snowberger,Snowberger,American,http://en.wikipedia.org/wiki/Snowberger
163
+ 163,milano,Milano,Italian,http://en.wikipedia.org/wiki/Scuderia_Milano
164
+ 164,hrt,HRT,Spanish,http://en.wikipedia.org/wiki/Hispania_Racing
165
+ 167,cooper-maserati,Cooper-Maserati,British,http://en.wikipedia.org/wiki/Cooper_Car_Company
166
+ 166,virgin,Virgin,British,http://en.wikipedia.org/wiki/Virgin_Racing
167
+ 168,cooper-osca,Cooper-OSCA,British,http://en.wikipedia.org/wiki/Cooper_Car_Company
168
+ 169,cooper-borgward,Cooper-Borgward,British,http://en.wikipedia.org/wiki/Cooper_Car_Company
169
+ 170,cooper-climax,Cooper-Climax,British,http://en.wikipedia.org/wiki/Cooper_Car_Company
170
+ 171,cooper-castellotti,Cooper-Castellotti,British,http://en.wikipedia.org/wiki/Cooper_Car_Company
171
+ 172,lotus-climax,Lotus-Climax,British,http://en.wikipedia.org/wiki/Team_Lotus
172
+ 173,lotus-maserati,Lotus-Maserati,British,http://en.wikipedia.org/wiki/Team_Lotus
173
+ 174,de_tomaso-osca,De Tomaso-Osca,Italian,http://en.wikipedia.org/wiki/De_Tomaso
174
+ 175,de_tomaso-alfa_romeo,De Tomaso-Alfa Romeo,Italian,http://en.wikipedia.org/wiki/De_Tomaso
175
+ 176,lotus-brm,Lotus-BRM,British,http://en.wikipedia.org/wiki/Team_Lotus
176
+ 177,lotus-borgward,Lotus-Borgward,British,http://en.wikipedia.org/wiki/Team_Lotus
177
+ 178,cooper-alfa_romeo,Cooper-Alfa Romeo,British,http://en.wikipedia.org/wiki/Cooper_Car_Company
178
+ 179,de_tomaso-ferrari,De Tomaso-Ferrari,Italian,http://en.wikipedia.org/wiki/De_Tomaso
179
+ 180,lotus-ford,Lotus-Ford,British,http://en.wikipedia.org/wiki/Team_Lotus
180
+ 181,brabham-brm,Brabham-BRM,British,http://en.wikipedia.org/wiki/Brabham
181
+ 182,brabham-ford,Brabham-Ford,British,http://en.wikipedia.org/wiki/Brabham
182
+ 183,brabham-climax,Brabham-Climax,British,http://en.wikipedia.org/wiki/Brabham
183
+ 184,lds-climax,LDS-Climax,South African,http://en.wikipedia.org/wiki/LDS_(automobile)
184
+ 185,lds-alfa_romeo,LDS-Alfa Romeo,South African,http://en.wikipedia.org/wiki/LDS_(automobile)
185
+ 186,cooper-ford,Cooper-Ford,British,http://en.wikipedia.org/wiki/Cooper_Car_Company
186
+ 187,mclaren-ford,McLaren-Ford,British,http://en.wikipedia.org/wiki/Team_McLaren
187
+ 188,mclaren-seren,McLaren-Serenissima,British,http://en.wikipedia.org/wiki/Team_McLaren
188
+ 189,eagle-climax,Eagle-Climax,American,http://en.wikipedia.org/wiki/Anglo_American_Racers
189
+ 190,eagle-weslake,Eagle-Weslake,American,http://en.wikipedia.org/wiki/Anglo_American_Racers
190
+ 191,brabham-repco,Brabham-Repco,British,http://en.wikipedia.org/wiki/Brabham
191
+ 192,cooper-ferrari,Cooper-Ferrari,British,http://en.wikipedia.org/wiki/Cooper_Car_Company
192
+ 193,cooper-ats,Cooper-ATS,British,http://en.wikipedia.org/wiki/Cooper_Car_Company
193
+ 194,mclaren-brm,McLaren-BRM,British,http://en.wikipedia.org/wiki/McLaren_(racing)
194
+ 195,cooper-brm,Cooper-BRM,British,http://en.wikipedia.org/wiki/Cooper_Car_Company
195
+ 196,matra-ford,Matra-Ford,French,http://en.wikipedia.org/wiki/Matra
196
+ 197,brm-ford,BRM-Ford,British,http://en.wikipedia.org/wiki/BRM
197
+ 198,mclaren-alfa_romeo,McLaren-Alfa Romeo,British,http://en.wikipedia.org/wiki/McLaren_(racing)
198
+ 199,march-alfa_romeo,March-Alfa Romeo,British,http://en.wikipedia.org/wiki/March_Engineering
199
+ 200,march-ford,March-Ford,British,http://en.wikipedia.org/wiki/March_Engineering
200
+ 201,lotus-pw,Lotus-Pratt & Whitney,British,http://en.wikipedia.org/wiki/Team_Lotus
201
+ 202,shadow-ford,Shadow-Ford,British,http://en.wikipedia.org/wiki/Shadow_Racing_Cars
202
+ 203,shadow-matra,Shadow-Matra,British,http://en.wikipedia.org/wiki/Shadow_Racing_Cars
203
+ 204,brabham-alfa_romeo,Brabham-Alfa Romeo,British,http://en.wikipedia.org/wiki/Brabham
204
+ 205,lotus_racing,Lotus,Malaysian,http://en.wikipedia.org/wiki/Lotus_Racing
205
+ 206,marussia,Marussia,Russian,http://en.wikipedia.org/wiki/Marussia_F1
206
+ 207,caterham,Caterham,Malaysian,http://en.wikipedia.org/wiki/Caterham_F1
207
+ 208,lotus_f1,Lotus F1,British,http://en.wikipedia.org/wiki/Lotus_F1
208
+ 209,manor,Manor Marussia,British,http://en.wikipedia.org/wiki/Manor_Motorsport
209
+ 210,haas,Haas F1 Team,American,http://en.wikipedia.org/wiki/Haas_F1_Team
database/manufactory_1/schema.sql ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- LINK: https://en.wikibooks.org/wiki/SQL_Exercises/The_computer_store
2
+
3
+ CREATE TABLE Manufacturers (
4
+ Code INTEGER,
5
+ Name VARCHAR(255) NOT NULL,
6
+ Headquarter VARCHAR(255) NOT NULL,
7
+ Founder VARCHAR(255) NOT NULL,
8
+ Revenue REAL,
9
+ PRIMARY KEY (Code)
10
+ );
11
+
12
+ CREATE TABLE Products (
13
+ Code INTEGER,
14
+ Name VARCHAR(255) NOT NULL ,
15
+ Price DECIMAL NOT NULL ,
16
+ Manufacturer INTEGER NOT NULL,
17
+ PRIMARY KEY (Code),
18
+ FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)
19
+ );
20
+
21
+ INSERT INTO Manufacturers VALUES(1,'Sony', 'Tokyo', 'Andy', 120);
22
+ INSERT INTO Manufacturers VALUES(2,'Creative Labs', 'Austin', 'Owen', 100);
23
+ INSERT INTO Manufacturers VALUES(3,'Hewlett-Packard', 'Los Angeles', 'James', 50);
24
+ INSERT INTO Manufacturers VALUES(4,'Iomega', 'Beijing', 'Mary', 200);
25
+ INSERT INTO Manufacturers VALUES(5,'Fujitsu', 'Taiwan', 'John', 130);
26
+ INSERT INTO Manufacturers VALUES(6,'Winchester', 'Paris', 'Robert', 30);
27
+
28
+ INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(1,'Hard drive',240,5);
29
+ INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(2,'Memory',120,6);
30
+ INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(3,'ZIP drive',150,4);
31
+ INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(4,'Floppy disk',5,6);
32
+ INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(5,'Monitor',240,1);
33
+ INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(6,'DVD drive',180,2);
34
+ INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(7,'CD drive',90,2);
35
+ INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(8,'Printer',270,3);
36
+ INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(9,'Toner cartridge',66,3);
37
+ INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(10,'DVD burner',180,2);
38
+ INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(11,'DVD drive',150,3);
database/manufacturer/schema.sql ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+ CREATE TABLE "manufacturer" (
5
+ "Manufacturer_ID" int,
6
+ "Open_Year" real,
7
+ "Name" text,
8
+ "Num_of_Factories" int,
9
+ "Num_of_Shops" int,
10
+ PRIMARY KEY ("Manufacturer_ID")
11
+ );
12
+
13
+
14
+
15
+ INSERT INTO "manufacturer" VALUES (1,"1980","Chevrolet House","36","8");
16
+ INSERT INTO "manufacturer" VALUES (2,"1990","IKEA","21","19");
17
+ INSERT INTO "manufacturer" VALUES (3,"1991","Ford Make","12","2");
18
+ INSERT INTO "manufacturer" VALUES (4,"1992","Jiaju","1","35");
19
+ INSERT INTO "manufacturer" VALUES (5,"2000","Chevrolet","38","24");
20
+ INSERT INTO "manufacturer" VALUES (6,"2001","Dodge","3","7");
21
+ INSERT INTO "manufacturer" VALUES (7,"2008","Tomorrow","12","4");
22
+
23
+
24
+ CREATE TABLE "furniture" (
25
+ "Furniture_ID" int,
26
+ "Name" text,
27
+ "Num_of_Component" int,
28
+ "Market_Rate" real,
29
+ PRIMARY KEY ("Furniture_ID")
30
+ );
31
+
32
+ INSERT INTO "furniture" VALUES (1,"Billiard table",14,"52.5");
33
+ INSERT INTO "furniture" VALUES (2,"Chabudai",4,"40.0");
34
+ INSERT INTO "furniture" VALUES (3,"Bookcase",6,"1.0");
35
+ INSERT INTO "furniture" VALUES (4,"Hatstand",5,"0.5");
36
+ INSERT INTO "furniture" VALUES (5,"Bench",5,"3.5");
37
+ INSERT INTO "furniture" VALUES (6,"Four-poster bed",3,"2.0");
38
+ INSERT INTO "furniture" VALUES (7,"Dining set",12,"0.5");
39
+
40
+
41
+ CREATE TABLE "furniture_manufacte" (
42
+ "Manufacturer_ID" int,
43
+ "Furniture_ID" int,
44
+ "Price_in_Dollar" real,
45
+ PRIMARY KEY ("Manufacturer_ID","Furniture_ID"),
46
+ FOREIGN KEY ("Manufacturer_ID") REFERENCES `manufacturer`("Manufacturer_ID"),
47
+ FOREIGN KEY ("Furniture_ID") REFERENCES `furniture`("Furniture_ID")
48
+ );
49
+
50
+ INSERT INTO "furniture_manufacte" VALUES (1,3,239);
51
+ INSERT INTO "furniture_manufacte" VALUES (4,2,450);
52
+ INSERT INTO "furniture_manufacte" VALUES (7,7,2124);
53
+ INSERT INTO "furniture_manufacte" VALUES (5,1,443);
54
+ INSERT INTO "furniture_manufacte" VALUES (7,4,1234);
55
+
database/solvency_ii/solvency_ii.sqlite ADDED
Binary file (73.7 kB). View file
 
database/tracking_grants_for_research/tracking_grants_for_research.sqlite ADDED
Binary file (73.7 kB). View file
 
database/wine_1/data_csv/grapes.csv ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ID,Grape,Color
2
+ 1,'Barbera','Red'
3
+ 2,'Cabernet Franc','Red'
4
+ 3,'Cabernet Sauvingnon','Red'
5
+ 4,'Chardonnay','White'
6
+ 5,'Grenache','Red'
7
+ 6,'Malbec','Red'
8
+ 7,'Marsanne','White'
9
+ 8,'Merlot','Red'
10
+ 9,'Mourvedre','Red'
11
+ 10,'Muscat','White'
12
+ 11,'Petite Sirah','Red'
13
+ 12,'Pinot Noir','Red'
14
+ 13,'Riesling','White'
15
+ 14,'Roussanne','White'
16
+ 15,'Sangiovese','Red'
17
+ 16,'Sauvignon Blanc','White'
18
+ 17,'Syrah','Red'
19
+ 18,'Tempranillo','Red'
20
+ 19,'Viognier','White'
21
+ 20,'Zinfandel','Red'
database/wine_1/q.txt ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ List all AVAs located in Monterey county. Output just the names of the AVA appellations
2
+
3
+ List all white grape varieties for which at least one wine of the 2008 vintage is rated at 90 points or above in the database.
4
+
5
+ List all Sonoma county appellations for which the database contains at least one rating for a ’Grenache’. For each appellation list its name and county.
6
+
7
+ List all vintage years in which at least one Zinfandel from Sonoma County (any appellation) scored above 92.
8
+
9
+ A case of wine is 12 bottles. For each Carlisle (name of the winery) Syrah compute the total revenue assuming that all the wine sold at the specified price.
10
+
11
+ Find the total revenue from all red wines made by Kosta Browne.
12
+
13
+ Find the average number of cases of a Pinor Noir produced from grapes sourced from the Central Coast.
14
+
15
+ For each year, report the total number of red Sonoma County wines whose scores are 90 or above.
16
+
17
+ Find the most popular red grape (i.e., the grape that is used to make the largest number of white wines) in San Luis Obispo County.
18
+
19
+ Report the grape with the largest number of high-ranked wines (wines ranked 93 or higher).
20
+
21
+ Report the appellation responsible for the largest number of high-ranked wines (score of 93 and above). Report just the name of the appellation.
22
+
23
+ Find if there are any 2008 Zinfandels that scored better than all 2007 Grenaches. Report winery, wine name, score and price.
24
+
25
+ Find how many cases were produced of the most expensive red wine from Napa county.
test_database/bakery_1/data_csv/receipts (3:11:18, 5:53 PM)_original.csv ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ RecieptNumber, Date, CustomerId
2
+ 18129, '28-Oct-2007', 15
3
+ 51991, '17-Oct-2007', 14
4
+ 83085, '12-Oct-2007', 7
5
+ 70723, '28-Oct-2007', 20
6
+ 13355, '19-Oct-2007', 7
7
+ 52761, '27-Oct-2007', 8
8
+ 99002, '13-Oct-2007', 20
9
+ 58770, '22-Oct-2007', 18
10
+ 84665, '10-Oct-2007', 6
11
+ 55944, '16-Oct-2007', 19
12
+ 42166, '14-Oct-2007', 8
13
+ 16034, '10-Oct-2007', 4
14
+ 25906, '29-Oct-2007', 15
15
+ 27741, '25-Oct-2007', 8
16
+ 64451, '10-Oct-2007', 11
17
+ 41028, '6-Oct-2007', 17
18
+ 73716, '29-Oct-2007', 18
19
+ 76667, '14-Oct-2007', 15
20
+ 21040, '3-Oct-2007', 6
21
+ 48332, '15-Oct-2007', 20
22
+ 35011, '10-Oct-2007', 20
23
+ 95962, '26-Oct-2007', 8
24
+ 44798, '4-Oct-2007', 16
25
+ 60270, '31-Oct-2007', 11
26
+ 21162, '4-Oct-2007', 8
27
+ 77406, '9-Oct-2007', 13
28
+ 32565, '24-Oct-2007', 14
29
+ 36343, '31-Oct-2007', 19
30
+ 96619, '7-Oct-2007', 18
31
+ 86678, '24-Oct-2007', 3
32
+ 44330, '20-Oct-2007', 18
33
+ 91937, '21-Oct-2007', 12
34
+ 21545, '22-Oct-2007', 12
35
+ 29226, '26-Oct-2007', 14
36
+ 25121, '20-Oct-2007', 18
37
+ 54935, '16-Oct-2007', 14
38
+ 36423, '24-Oct-2007', 16
39
+ 83437, '15-Oct-2007', 8
40
+ 49854, '12-Oct-2007', 2
41
+ 99994, '21-Oct-2007', 6
42
+ 21622, '10-Oct-2007', 7
43
+ 64861, '15-Oct-2007', 10
44
+ 33456, '5-Oct-2007', 16
45
+ 75468, '21-Oct-2007', 10
46
+ 56365, '14-Oct-2007', 12
47
+ 91192, '10-Oct-2007', 5
48
+ 82056, '7-Oct-2007', 18
49
+ 27192, '28-Oct-2007', 9
50
+ 59716, '30-Oct-2007', 2
51
+ 82795, '8-Oct-2007', 15
52
+ 26240, '7-Oct-2007', 16
53
+ 56724, '9-Oct-2007', 13
54
+ 70796, '31-Oct-2007', 12
55
+ 37636, '20-Oct-2007', 1
56
+ 63998, '13-Oct-2007', 20
57
+ 48981, '24-Oct-2007', 20
58
+ 66704, '29-Oct-2007', 14
59
+ 12698, '23-Oct-2007', 19
60
+ 79287, '30-Oct-2007', 8
61
+ 55690, '15-Oct-2007', 19
62
+ 94371, '22-Oct-2007', 8
63
+ 26148, '19-Oct-2007', 20
64
+ 11923, '9-Oct-2007', 15
65
+ 46598, '3-Oct-2007', 14
66
+ 76951, '27-Oct-2007', 14
67
+ 85858, '31-Oct-2007', 1
68
+ 85881, '13-Oct-2007', 1
69
+ 89937, '20-Oct-2007', 7
70
+ 66227, '10-Oct-2007', 1
71
+ 60240, '17-Oct-2007', 17
72
+ 86085, '16-Oct-2007', 1
73
+ 67314, '23-Oct-2007', 6
74
+ 10013, '17-Oct-2007', 15
75
+ 26741, '24-Oct-2007', 7
76
+ 38157, '23-Oct-2007', 16
77
+ 45873, '5-Oct-2007', 13
78
+ 37540, '3-Oct-2007', 20
79
+ 11891, '30-Oct-2007', 7
80
+ 61797, '30-Oct-2007', 8
81
+ 52369, '15-Oct-2007', 5
82
+ 96430, '4-Oct-2007', 18
83
+ 64301, '12-Oct-2007', 14
84
+ 45976, '3-Oct-2007', 10
85
+ 39605, '12-Oct-2007', 12
86
+ 52013, '5-Oct-2007', 13
87
+ 88626, '25-Oct-2007', 17
88
+ 53376, '30-Oct-2007', 8
89
+ 15584, '13-Oct-2007', 3
90
+ 73437, '1-Oct-2007', 6
91
+ 24200, '16-Oct-2007', 9
92
+ 92252, '25-Oct-2007', 7
93
+ 39685, '28-Oct-2007', 1
94
+ 61378, '8-Oct-2007', 11
95
+ 96761, '14-Oct-2007', 20
96
+ 26198, '12-Oct-2007', 11
97
+ 78179, '24-Oct-2007', 14
98
+ 68890, '27-Oct-2007', 7
99
+ 75526, '22-Oct-2007', 18
100
+ 86162, '10-Oct-2007', 16
101
+ 13496, '30-Oct-2007', 11
102
+ 60469, '20-Oct-2007', 4
103
+ 50660, '18-Oct-2007', 9
104
+ 64553, '8-Oct-2007', 17
105
+ 57784, '15-Oct-2007', 7
106
+ 84258, '22-Oct-2007', 2
107
+ 68199, '4-Oct-2007', 9
108
+ 78187, '17-Oct-2007', 14
109
+ 81517, '10-Oct-2007', 1
110
+ 18951, '14-Oct-2007', 20
111
+ 20411, '8-Oct-2007', 7
112
+ 55494, '20-Oct-2007', 15
113
+ 42162, '16-Oct-2007', 7
114
+ 49977, '18-Oct-2007', 3
115
+ 89638, '7-Oct-2007', 4
116
+ 73438, '18-Oct-2007', 10
117
+ 96258, '12-Oct-2007', 8
118
+ 19258, '25-Oct-2007', 5
119
+ 12800, '22-Oct-2007', 11
120
+ 81368, '17-Oct-2007', 19
121
+ 70655, '6-Oct-2007', 2
122
+ 19002, '19-Oct-2007', 6
123
+ 31874, '13-Oct-2007', 2
124
+ 72207, '15-Oct-2007', 1
125
+ 65091, '9-Oct-2007', 17
126
+ 42833, '22-Oct-2007', 3
127
+ 72949, '2-Oct-2007', 6
128
+ 46248, '12-Oct-2007', 11
129
+ 38849, '25-Oct-2007', 1
130
+ 86861, '26-Oct-2007', 9
131
+ 32701, '19-Oct-2007', 16
132
+ 89182, '29-Oct-2007', 5
133
+ 68753, '11-Oct-2007', 5
134
+ 39217, '19-Oct-2007', 20
135
+ 96531, '12-Oct-2007', 8
136
+ 53922, '13-Oct-2007', 2
137
+ 64477, '16-Oct-2007', 6
138
+ 99058, '3-Oct-2007', 14
139
+ 77032, '28-Oct-2007', 14
140
+ 15286, '11-Oct-2007', 6
141
+ 59774, '2-Oct-2007', 16
142
+ 35073, '23-Oct-2007', 5
143
+ 34910, '7-Oct-2007', 20
144
+ 17685, '2-Oct-2007', 12
145
+ 45062, '23-Oct-2007', 1
146
+ 39109, '2-Oct-2007', 16
147
+ 37063, '22-Oct-2007', 14
148
+ 18567, '13-Oct-2007', 7
149
+ 37586, '3-Oct-2007', 8
150
+ 62707, '7-Oct-2007', 8
151
+ 28117, '9-Oct-2007', 5
152
+ 64574, '2-Oct-2007', 6
153
+ 40305, '25-Oct-2007', 8
154
+ 33060, '29-Oct-2007', 20
155
+ 12396, '10-Oct-2007', 10
156
+ 43103, '7-Oct-2007', 4
157
+ 39575, '20-Oct-2007', 20
158
+ 70162, '9-Oct-2007', 19
159
+ 23034, '15-Oct-2007', 17
160
+ 79296, '3-Oct-2007', 19
161
+ 74741, '12-Oct-2007', 20
162
+ 98806, '15-Oct-2007', 17
163
+ 43752, '5-Oct-2007', 5
164
+ 47353, '12-Oct-2007', 6
165
+ 39829, '31-Oct-2007', 3
166
+ 87454, '21-Oct-2007', 6
167
+ 76663, '4-Oct-2007', 10
168
+ 85492, '20-Oct-2007', 12
169
+ 48647, '9-Oct-2007', 3
170
+ 61008, '9-Oct-2007', 14
171
+ 96402, '4-Oct-2007', 6
172
+ 35904, '21-Oct-2007', 10
173
+ 49845, '31-Oct-2007', 20
174
+ 46014, '16-Oct-2007', 15
175
+ 46876, '6-Oct-2007', 13
176
+ 34579, '8-Oct-2007', 7
177
+ 17729, '16-Oct-2007', 16
178
+ 74952, '16-Oct-2007', 5
179
+ 61948, '4-Oct-2007', 5
180
+ 41064, '25-Oct-2007', 16
181
+ 17947, '27-Oct-2007', 7
182
+ 20913, '7-Oct-2007', 8
183
+ 95514, '9-Oct-2007', 10
184
+ 24829, '7-Oct-2007', 15
185
+ 44590, '12-Oct-2007', 1
186
+ 65165, '4-Oct-2007', 4
187
+ 89588, '9-Oct-2007', 7
188
+ 53240, '3-Oct-2007', 14
189
+ 46674, '29-Oct-2007', 15
190
+ 67946, '18-Oct-2007', 7
191
+ 31233, '20-Oct-2007', 13
192
+ 15904, '6-Oct-2007', 13
193
+ 17488, '20-Oct-2007', 6
194
+ 97097, '23-Oct-2007', 9
195
+ 50512, '27-Oct-2007', 8
196
+ 11548, '21-Oct-2007', 13
197
+ 29908, '14-Oct-2007', 13
198
+ 20127, '7-Oct-2007', 15
199
+ 41963, '29-Oct-2007', 8
200
+ 16532, '21-Oct-2007', 4
201
+ 34378, '23-Oct-2007', 6
test_database/car_1/car_1.sqlite ADDED
Binary file (65.5 kB). View file
 
test_database/debate/schema.sql ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+ CREATE TABLE "people" (
5
+ "People_ID" int,
6
+ "District" text,
7
+ "Name" text,
8
+ "Party" text,
9
+ "Age" int,
10
+ PRIMARY KEY ("People_ID")
11
+ );
12
+
13
+ CREATE TABLE "debate" (
14
+ "Debate_ID" int,
15
+ "Date" text,
16
+ "Venue" text,
17
+ "Num_of_Audience" int,
18
+ PRIMARY KEY ("Debate_ID")
19
+ );
20
+
21
+ INSERT INTO "people" VALUES (1,"New York 1","Luther C. Carter","Republican",35);
22
+ INSERT INTO "people" VALUES (2,"New York 2","James Humphrey","Republican",38);
23
+ INSERT INTO "people" VALUES (3,"New York 3","Daniel Sickles","Democratic",46);
24
+ INSERT INTO "people" VALUES (4,"New York 4","Thomas J. Barr","Independent Democrat",48);
25
+ INSERT INTO "people" VALUES (5,"New York 5","William B. Maclay","Democratic",36);
26
+ INSERT INTO "people" VALUES (6,"New York 6","John Cochrane","Democratic",46);
27
+ INSERT INTO "people" VALUES (7,"New York 7","George Briggs","Republican",42);
28
+ INSERT INTO "people" VALUES (8,"New York 8","Horace F. Clark","Anti-Lecompton Democrat",45);
29
+ INSERT INTO "people" VALUES (9,"New York 9","John B. Haskin","Anti-Lecompton Democrat",43);
30
+ INSERT INTO "people" VALUES (10,"New York 10","Charles Van Wyck","Republican",36);
31
+
32
+
33
+
34
+ INSERT INTO "debate" VALUES (1,"October 21, 2011","Manama , Bahrain",342);
35
+ INSERT INTO "debate" VALUES (2,"December 17, 2014","Doha , Qatar",134);
36
+ INSERT INTO "debate" VALUES (3,"August 3, 2015","Manama , Bahrain",90);
37
+ INSERT INTO "debate" VALUES (4,"October 27, 2015","Manama , Bahrain",209);
38
+ INSERT INTO "debate" VALUES (5,"January 12, 2017","Dubai , UAE",313);
39
+ INSERT INTO "debate" VALUES (6,"January 21, 2017","Abu Dhabi , UAE",159);
40
+
41
+
42
+
43
+
44
+ CREATE TABLE "debate_people" (
45
+ "Debate_ID" int,
46
+ "Affirmative" int,
47
+ "Negative" int,
48
+ "If_Affirmative_Win" bool,
49
+ PRIMARY KEY ("Debate_ID","Affirmative","Negative"),
50
+ FOREIGN KEY ("Debate_ID") REFERENCES `debate`("Debate_ID"),
51
+ FOREIGN KEY ("Affirmative") REFERENCES `people`("People_ID"),
52
+ FOREIGN KEY ("Negative") REFERENCES `people`("People_ID")
53
+ );
54
+
55
+
56
+ INSERT INTO "debate_people" VALUES (1,1,10,"F");
57
+ INSERT INTO "debate_people" VALUES (5,2,8,"F");
58
+ INSERT INTO "debate_people" VALUES (3,4,7,"T");
59
+ INSERT INTO "debate_people" VALUES (6,5,6,"T");
60
+ INSERT INTO "debate_people" VALUES (4,5,8,"F");
test_database/insurance_policies/insurance_policies.sqlite ADDED
Binary file (24.6 kB). View file
 
test_database/machine_repair/machine_repair.sqlite ADDED
Binary file (36.9 kB). View file
 
test_database/vehicle_driver/schema.sql ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "vehicle" (
4
+ "Vehicle_ID" int,
5
+ "Model" text,
6
+ "Build_Year" text,
7
+ "Top_Speed" int,
8
+ "Power" int,
9
+ "Builder" text,
10
+ "Total_Production" text,
11
+ PRIMARY KEY ("Vehicle_ID")
12
+ );
13
+
14
+ CREATE TABLE "driver" (
15
+ "Driver_ID" int,
16
+ "Name" text,
17
+ "Citizenship" text,
18
+ "Racing_Series" text,
19
+ PRIMARY KEY ("Driver_ID")
20
+ );
21
+
22
+ INSERT INTO "vehicle" VALUES (1,"AC4000","1996","120","4000","Zhuzhou","1");
23
+ INSERT INTO "vehicle" VALUES (2,"DJ ","2000","200","4800","Zhuzhou","2");
24
+ INSERT INTO "vehicle" VALUES (3,"DJ1","2000–2001","120","6400","Zhuzhou Siemens , Germany","20");
25
+ INSERT INTO "vehicle" VALUES (4,"DJ2","2001","200","4800","Zhuzhou","3");
26
+ INSERT INTO "vehicle" VALUES (5,"Tiansuo","2003","200","4800","Datong","1");
27
+ INSERT INTO "vehicle" VALUES (6,"HXD1","2006–2010","120","9600","Zhuzhou Siemens , Germany","220");
28
+ INSERT INTO "vehicle" VALUES (7,"HXD1.1","2012–","120","9600","Zhuzhou","50");
29
+ INSERT INTO "vehicle" VALUES (8,"HXD1.6","2012","120","9600","Ziyang","1");
30
+
31
+
32
+ INSERT INTO "driver" VALUES (1,"Jeff Gordon","United States","NASCAR");
33
+ INSERT INTO "driver" VALUES (2,"Jimmie Johnson","United States","NASCAR");
34
+ INSERT INTO "driver" VALUES (3,"Tony Stewart","United States","NASCAR");
35
+ INSERT INTO "driver" VALUES (4,"Ryan Hunter-Reay","United States","IndyCar Series");
36
+
37
+ CREATE TABLE "vehicle_driver" (
38
+ "Driver_ID" int,
39
+ "Vehicle_ID" int,
40
+ PRIMARY KEY ("Driver_ID","Vehicle_ID"),
41
+ FOREIGN KEY ("Driver_ID") REFERENCES "driver"("Driver_ID"),
42
+ FOREIGN KEY ("Vehicle_ID") REFERENCES "vehicle"("Vehicle_ID")
43
+ );
44
+
45
+ INSERT INTO "vehicle_driver" VALUES (1,1);
46
+ INSERT INTO "vehicle_driver" VALUES (1,3);
47
+ INSERT INTO "vehicle_driver" VALUES (1,5);
48
+ INSERT INTO "vehicle_driver" VALUES (2,2);
49
+ INSERT INTO "vehicle_driver" VALUES (2,6);
50
+ INSERT INTO "vehicle_driver" VALUES (2,7);
51
+ INSERT INTO "vehicle_driver" VALUES (2,8);
52
+ INSERT INTO "vehicle_driver" VALUES (3,1);
53
+ INSERT INTO "vehicle_driver" VALUES (4,1);
54
+ INSERT INTO "vehicle_driver" VALUES (4,2);
55
+ INSERT INTO "vehicle_driver" VALUES (4,6);
56
+
test_database/vehicle_driver/vehicle_driver.sqlite ADDED
Binary file (28.7 kB). View file
 
test_database/wedding/schema.sql ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+ CREATE TABLE "people" (
5
+ "People_ID" int,
6
+ "Name" text,
7
+ "Country" text,
8
+ "Is_Male" text,
9
+ "Age" int,
10
+ PRIMARY KEY ("People_ID")
11
+ );
12
+
13
+
14
+
15
+ INSERT INTO "people" VALUES ("1","Mike Weir","Canada","T",34);
16
+ INSERT INTO "people" VALUES ("2","Juli Hanson","Sweden","F",32);
17
+ INSERT INTO "people" VALUES ("3","Ricky Barnes","United States","T",30);
18
+ INSERT INTO "people" VALUES ("4","Summer Duval","United States","F",30);
19
+ INSERT INTO "people" VALUES ("5","Todd Hamilton","United States","T",27);
20
+ INSERT INTO "people" VALUES ("6","Annie Mediate","United States","F",26);
21
+ INSERT INTO "people" VALUES ("7","Lucas Glover","United States","T",31);
22
+ INSERT INTO "people" VALUES ("8","Joe O'Hair","United States","F",31);
23
+ INSERT INTO "people" VALUES ("9","Graeme McDowell","Northern Ireland","T",34);
24
+ INSERT INTO "people" VALUES ("10","Jamie Mickelson","United States","F",36);
25
+ INSERT INTO "people" VALUES ("11","Adam Scott","Australia","T",26);
26
+ INSERT INTO "people" VALUES ("12","Danny Toms","United States","F",25);
27
+
28
+
29
+ CREATE TABLE "church" (
30
+ "Church_ID" int,
31
+ "Name" text,
32
+ "Organized_by" text,
33
+ "Open_Date" int,
34
+ "Continuation_of" text,
35
+ PRIMARY KEY ("Church_ID")
36
+ );
37
+
38
+
39
+ INSERT INTO "church" VALUES (1,"Pure Church of Christ","Wycam Clark","1831","Church of Christ");
40
+ INSERT INTO "church" VALUES (2,"Independent Church","– Hoton","1832","Church of Christ");
41
+ INSERT INTO "church" VALUES (3,"Church of Christ","Ezra Booth","1836","Church of the Latter Day Saints");
42
+ INSERT INTO "church" VALUES (4,"Church of Christ (Parrishite)","Warren Parrish","1837","Church of the Latter Day Saints");
43
+ INSERT INTO "church" VALUES (5,"Alston Church","Isaac Russell","1839","Church of Jesus Christ of Latter Day Saints");
44
+ INSERT INTO "church" VALUES (6,"Church of Christ","William Chubby","1830","Church of Jesus Christ of Latter Day Saints");
45
+ INSERT INTO "church" VALUES (7,"Church of Jesus Christ, the Bride, the Lamb's Wife","George M. Hinkle","1840","Church of Jesus Christ of Latter Day Saints");
46
+ INSERT INTO "church" VALUES (8,"Church of Christ","Hiram Page","1842","Church of Jesus Christ of Latter Day Saints");
47
+ INSERT INTO "church" VALUES (9,"True Church of Jesus Christ of Latter Day Saints","William Law","1844","Church of Jesus Christ of Latter Day Saints");
48
+
49
+
50
+ CREATE TABLE "wedding" (
51
+ "Church_ID" int,
52
+ "Male_ID" int,
53
+ "Female_ID" int,
54
+ "Year" int,
55
+ PRIMARY KEY ("Church_ID","Male_ID","Female_ID"),
56
+ FOREIGN KEY ("Church_ID") REFERENCES `church`("Church_ID"),
57
+ FOREIGN KEY ("Male_ID") REFERENCES `people`("People_ID"),
58
+ FOREIGN KEY ("Female_ID") REFERENCES `people`("People_ID")
59
+ );
60
+
61
+ INSERT INTO "wedding" VALUES (1,1,2,"2014");
62
+ INSERT INTO "wedding" VALUES (3,3,4,"2015");
63
+ INSERT INTO "wedding" VALUES (5,5,6,"2016");
64
+ INSERT INTO "wedding" VALUES (4,7,8,"2016");
65
+
test_database/wrestler/wrestler.sqlite ADDED
Binary file (20.5 kB). View file