-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodified_query1.txt
530 lines (530 loc) · 4.99 KB
/
modified_query1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
l_returnflag
l_linestatus
l_discount
l_discount
l_tax
lineitem
l_shipdate
interval
l_returnflag
l_linestatus
l_returnflag
l_linestatus
s_acctbal
s_name
n_name
p_partkey
p_mfgr
s_address
s_phone
s_comment
part
supplier
partsupp
nation
region
p_partkey
ps_partkey
s_suppkey
ps_suppkey
p_size
p_type
s_nationkey
n_nationkey
n_regionkey
r_regionkey
r_name
ps_supplycost
partsupp
supplier
nation
region
p_partkey
ps_partkey
s_suppkey
ps_suppkey
s_nationkey
n_nationkey
n_regionkey
r_regionkey
r_name
s_acctbal
n_name
s_name
p_partkey
l_orderkey
l_discount
revenue
o_orderdate
o_shippriority
customer
orders
lineitem
c_mktsegment
c_custkey
o_custkey
l_orderkey
o_orderkey
o_orderdate
l_shipdate
l_orderkey
o_orderdate
o_shippriority
revenue
o_orderdate
o_orderpriority
order_count
orders
o_orderdate
o_orderdate
interval
lineitem
l_orderkey
o_orderkey
l_commitdate
l_receiptdate
o_orderpriority
o_orderpriority
n_name
l_discount
revenue
customer
orders
lineitem
supplier
nation
region
c_custkey
o_custkey
l_orderkey
o_orderkey
l_suppkey
s_suppkey
c_nationkey
s_nationkey
s_nationkey
n_nationkey
n_regionkey
r_regionkey
r_name
o_orderdate
o_orderdate
interval
n_name
revenue
l_discount
revenue
lineitem
l_shipdate
l_shipdate
interval
l_discount
l_quantity
supp_nation
cust_nation
l_year
revenue
n1.n_name
supp_nation
n2.n_name
cust_nation
l_extendedprice
l_discount
volume
supplier
lineitem
orders
customer
nation
n1
nation
n2
s_suppkey
l_suppkey
o_orderkey
l_orderkey
c_custkey
o_custkey
s_nationkey
n1.n_nationkey
c_nationkey
n2.n_nationkey
n1.n_name
n2.n_name
n1.n_name
n2.n_name
l_shipdate
shipping
supp_nation
cust_nation
l_year
supp_nation
cust_nation
l_year
o_year
when
nation
then
volume
else
end
mkt_share
l_extendedprice
l_discount
volume
n2.n_name
nation
part
supplier
lineitem
orders
customer
nation
n1
nation
n2
region
p_partkey
l_partkey
s_suppkey
l_suppkey
l_orderkey
o_orderkey
o_custkey
c_custkey
c_nationkey
n1.n_nationkey
n1.n_regionkey
r_regionkey
r_name
s_nationkey
n2.n_nationkey
o_orderdate
p_type
brushed
all_nations
o_year
o_year
nation
o_year
n_name
nation
l_extendedprice
l_discount
ps_supplycost
l_quantity
amount
part
supplier
lineitem
partsupp
orders
nation
s_suppkey
l_suppkey
ps_suppkey
l_suppkey
ps_partkey
l_partkey
p_partkey
l_partkey
o_orderkey
l_orderkey
s_nationkey
n_nationkey
p_name
profit
nation
o_year
nation
o_year
c_custkey
c_name
l_discount
revenue
--c_acctbal
--n_name
--c_address
--c_phone
--c_comment
customer
orders
lineitem
nation
c_custkey
o_custkey
l_orderkey
o_orderkey
o_orderdate
o_orderdate
interval
month
l_returnflag
c_nationkey
n_nationkey
c_custkey
c_name
c_acctbal
c_phone
n_name
c_address
c_comment
revenue
ps_partkey
ps_availqty
value
partsupp
supplier
nation
ps_suppkey
s_suppkey
s_nationkey
n_nationkey
n_name
ps_partkey
having
ps_availqty
ps_availqty
partsupp
supplier
nation
ps_suppkey
s_suppkey
s_nationkey
n_nationkey
n_name
value
l_shipmode
when
o_orderpriority
o_orderpriority
then
else
end
high_line_count
when
o_orderpriority
<>
o_orderpriority
<>
then
else
end
low_line_count
orders
lineitem
o_orderkey
l_orderkey
l_shipmode
l_commitdate
l_receiptdate
l_shipdate
l_commitdate
l_receiptdate
l_receiptdate
interval
year
l_shipmode
l_shipmode
c_count
custdist
c_custkey
customer
orders
on
c_custkey
o_custkey
o_comment
not
c_custkey
c_orders
c_custkey
c_count
c_count
custdist
c_count
when
p_type
then
l_extendedprice
l_discount
else
end
l_discount
promo_revenue
lineitem
part
l_partkey
p_partkey
l_shipdate
l_shipdate
interval
month
p_brand
p_type
p_size
ps_suppkey
supplier_cnt
partsupp
part
p_partkey
ps_partkey
p_brand
<>
p_type
not
p_size
ps_suppkey
not
s_suppkey
supplier
s_comment
p_brand
p_type
p_size
supplier_cnt
p_brand
p_type
p_size;
lineitem
part
p_partkey
l_partkey
p_brand
p_container
l_quantity
lineitem
l_partkey
p_partkey
c_name
c_custkey
o_orderkey
o_orderdate
o_totalprice
customer
orders
lineitem
o_orderkey
l_orderkey
lineitem
l_orderkey
having
c_custkey
o_custkey
o_orderkey
l_orderkey
c_name
c_custkey
o_orderkey
o_orderdate
o_totalprice
o_totalprice
o_orderdate
l_discount
revenue
lineitem
part
p_partkey
l_partkey
p_brand
p_container
l_quantity
l_quantity
p_size
l_shipmode
l_shipinstruct
p_partkey
l_partkey
p_brand
p_container
l_quantity
l_quantity
p_size
l_shipmode
l_shipinstruct
p_partkey
l_partkey
p_brand
p_container
l_quantity
l_quantity
p_size
l_shipmode
l_shipinstruct
s_name
s_address
supplier
nation
s_suppkey
ps_suppkey
partsupp
ps_partkey
p_partkey
part
p_name
ps_availqty
lineitem
l_partkey
ps_partkey
l_suppkey
ps_suppkey
l_shipdate
l_shipdate
interval
year
s_nationkey
n_nationkey
n_name
s_name
s_name
numwait
supplier
lineitem
l1
orders
nation
s_suppkey
l1.l_suppkey
o_orderkey
l1.l_orderkey
o_orderstatus
l1.l_receiptdate
l1.l_commitdate
lineitem
l2
l2.l_orderkey
l1.l_orderkey
l2.l_suppkey
<>
l1.l_suppkey
not
lineitem
l3
l3.l_orderkey
l1.l_orderkey
l3.l_suppkey
<>
l1.l_suppkey
l3.l_receiptdate
l3.l_commitdate
s_nationkey
n_nationkey
n_name
s_name
numwait
s_name
cntrycode
numcust
totacctbal
c_acctbal
customer
c_acctbal
customer
c_acctbal
not
orders
o_custkey
c_custkey
custsale
cntrycode
cntrycode